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 Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity
     
    final net.minecraft.core.BlockPos
     
    final float
     
    final net.minecraft.world.level.Level
     
    protected List<Consumer<net.minecraft.world.item.ItemStack>>
     
    protected final net.minecraft.world.item.ItemStack
     
    final boolean
     
    protected net.minecraft.world.item.ItemStack
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    void
     
    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)
     
    static final boolean
    canAddClient(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)
     
    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(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(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.ItemStack
     
    boolean
     
    void
    onSuccess(Consumer<net.minecraft.world.item.ItemStack> consumer)
     
    void
    setCanceled(boolean canceled)
     
    void
    setTransformedStack(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      protected List<Consumer<net.minecraft.world.item.ItemStack>> 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

      public void onSuccess(Consumer<net.minecraft.world.item.ItemStack> consumer)
    • setCanceled

      public void setCanceled(boolean canceled)
      Specified by:
      setCanceled in interface net.neoforged.bus.api.ICancellableEvent
    • isAllowed

      public boolean isAllowed()