Class ChainConveyorItemEvent
java.lang.Object
net.neoforged.bus.api.Event
com.petrolpark.compat.create.core.chainconveyor.ChainConveyorItemEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Direct Known Subclasses:
ChainConveyorItemEvent.Add,ChainConveyorItemEvent.Remove
public abstract class ChainConveyorItemEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntityfinal net.minecraft.core.BlockPosfinal floatfinal net.minecraft.world.level.Levelprotected final net.minecraft.world.item.ItemStackfinal booleanprotected net.minecraft.world.item.ItemStack -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChainConveyorItemEvent(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate) -
Method Summary
Modifier and TypeMethodDescriptionvoidallow()static final booleancanAdd(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate) static final booleancanAddClient(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) static final ChainConveyorItemEvent.AddgetAdded(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate) static final ChainConveyorItemEvent.RemovegetRemoved(net.minecraft.world.level.Level level, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorPackage box, boolean simulate) static final ChainConveyorItemEvent.RemovegetRemoved(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate) net.minecraft.world.item.ItemStackgetStack()booleanvoidvoidsetCanceled(boolean canceled) voidsetTransformedStack(net.minecraft.world.item.ItemStack stack) 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
-
Field Details
-
level
public final net.minecraft.world.level.Level level -
originalStack
protected final net.minecraft.world.item.ItemStack originalStack -
chainConveyor
public final com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor -
chainConveyorConnection
@Nullable public final net.minecraft.core.BlockPos chainConveyorConnection -
chainConveyorPosition
public final float chainConveyorPosition -
simulate
public final boolean simulate -
transformedStack
protected net.minecraft.world.item.ItemStack transformedStack -
onSuccess
-
-
Constructor Details
-
ChainConveyorItemEvent
protected ChainConveyorItemEvent(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate)
-
-
Method Details
-
canAdd
public static final boolean canAdd(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate) -
getAdded
public static final ChainConveyorItemEvent.Add getAdded(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate) -
getRemoved
public static final ChainConveyorItemEvent.Remove getRemoved(net.minecraft.world.level.Level level, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorPackage box, boolean simulate) -
getRemoved
public static final ChainConveyorItemEvent.Remove getRemoved(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity chainConveyor, net.minecraft.core.BlockPos chainConveyorConnection, float chainConveyorPosition, boolean simulate) -
canAddClient
public static final boolean canAddClient(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) -
getStack
public net.minecraft.world.item.ItemStack getStack() -
allow
public void allow() -
setTransformedStack
public void setTransformedStack(net.minecraft.world.item.ItemStack stack) -
onSuccess
-
setCanceled
public void setCanceled(boolean canceled) - Specified by:
setCanceledin interfacenet.neoforged.bus.api.ICancellableEvent
-
isAllowed
public boolean isAllowed()
-