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
  • 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

      public ItemModificationEvent setMaxStackSize(int size)
    • setMaxDamage

      public ItemModificationEvent setMaxDamage(int damage)
    • setUnbreakable

      public ItemModificationEvent setUnbreakable()
    • setFood

      public ItemModificationEvent setFood(net.minecraft.world.food.FoodProperties food)
    • setTool

      public ItemModificationEvent setTool(net.minecraft.world.item.component.Tool tool)
    • setAttributeModifiers

      public ItemModificationEvent setAttributeModifiers(net.minecraft.world.item.component.ItemAttributeModifiers modifiers)