Class PneumaticTubeBlockEntity.Output

java.lang.Object
com.petrolpark.petrolsparts.content.pneumatic_tube.PneumaticTubeBlockEntity.Output
Enclosing class:
PneumaticTubeBlockEntity

public class PneumaticTubeBlockEntity.Output extends Object
  • Field Details

    • blocked

      protected Boolean blocked
    • lastBlockingEntityRef

      protected WeakReference<net.minecraft.world.entity.Entity> lastBlockingEntityRef
  • Constructor Details

    • Output

      public Output()
  • Method Details

    • enclosing

      public PneumaticTubeBlockEntity enclosing()
    • getInput

    • getOutputFace

      public net.minecraft.core.Direction getOutputFace()
    • getOutputLocation

      public net.minecraft.world.phys.Vec3 getOutputLocation()
    • forgetBlocked

      public void forgetBlocked()
    • isBlocked

      public boolean isBlocked()
    • tick

      public void tick()
    • output

      protected net.minecraft.world.item.ItemStack output(net.minecraft.world.item.ItemStack stack, boolean simulate)
      Attempt to insert the Item Stack into the space in front of this output.
      Parameters:
      stack -
      simulate - Whether to not actually store/shoot out the Item, but just try
      Returns:
      The remaining Items after the Insertion is/would be complete
      See Also:
    • outputOrBacklog

      protected void outputOrBacklog(net.minecraft.world.item.ItemStack stack)
      Attempt to insert the Item Stack into the space in front of this output. If the Stack cannot be outputted and this is not simulated, stores the Stack in the backlog.
      Parameters:
      stack -
    • getItemBacklog

      protected com.petrolpark.core.item.QueueItemHandler getItemBacklog()