Klasse ItemModificationEvent
java.lang.Object
net.neoforged.bus.api.Event
de.luckymcdev.foundryengine.common.event.modification.ItemModificationEvent
public class ItemModificationEvent
extends net.neoforged.bus.api.Event
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic voidbind(net.neoforged.neoforge.event.ModifyDefaultComponentsEvent event) static voidflush()net.minecraft.world.item.ItemgetItem()setAttributeModifiers(net.minecraft.world.item.component.ItemAttributeModifiers modifiers) setFood(net.minecraft.world.food.FoodProperties food) setMaxDamage(int damage) setMaxStackSize(int size) setTool(net.minecraft.world.item.component.Tool tool)
-
Konstruktordetails
-
ItemModificationEvent
public ItemModificationEvent(net.minecraft.world.item.Item item)
-
-
Methodendetails
-
bind
@Internal public static void bind(net.neoforged.neoforge.event.ModifyDefaultComponentsEvent event) -
flush
@Internal public static void flush() -
getItem
public net.minecraft.world.item.Item getItem() -
setMaxStackSize
-
setMaxDamage
-
setUnbreakable
-
setFood
-
setTool
-
setAttributeModifiers
public ItemModificationEvent setAttributeModifiers(net.minecraft.world.item.component.ItemAttributeModifiers modifiers)
-