Package forestry.api.core.backpacks
Class BackpackEvent
java.lang.Object
net.neoforged.bus.api.Event
forestry.api.core.backpacks.BackpackEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Direct Known Subclasses:
BackpackResupplyEvent,BackpackStowEvent
public abstract class BackpackEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IBackpackDefinitionfinal net.minecraft.world.Containerfinal net.minecraft.world.entity.player.Player -
Constructor Summary
ConstructorsConstructorDescriptionBackpackEvent(net.minecraft.world.entity.player.Player player, IBackpackDefinition backpackDefinition, net.minecraft.world.Container backpackInventory) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
player
public final net.minecraft.world.entity.player.Player player -
backpackDefinition
-
backpackInventory
public final net.minecraft.world.Container backpackInventory
-
-
Constructor Details
-
BackpackEvent
public BackpackEvent(net.minecraft.world.entity.player.Player player, IBackpackDefinition backpackDefinition, net.minecraft.world.Container backpackInventory)
-