Class PneumaticTubeBlockEntity.Input

java.lang.Object
com.petrolpark.petrolsparts.content.logistics.pneumaticTube.PneumaticTubeBlockEntity.Input
All Implemented Interfaces:
net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Enclosing class:
PneumaticTubeBlockEntity

public class PneumaticTubeBlockEntity.Input extends Object implements net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
  • Field Details

  • Constructor Details

    • Input

      protected Input()
  • Method Details

    • enclosing

      public PneumaticTubeBlockEntity enclosing()
    • getOrCreateOutput

      public Optional<PneumaticTubeBlockEntity.Output> getOrCreateOutput()
    • getStacksTransporting

    • tick

      public void tick()
    • input

      public boolean input()
      Try and input an Item
      Returns:
      Whether an Item was transported, meaning the delay to wait to try and transport again should be reset
    • transport

      protected void transport(net.minecraft.world.item.ItemStack stack)
    • transportAnimationOnly

      public Runnable transportAnimationOnly()
      Animate this Pneumatic Tube as if it is transporting an Item, even if it is not.
      Returns:
      Callback to remove the animated Stack
    • getModeToExtract

      public com.simibubi.create.foundation.item.ItemHelper.ExtractionCountMode getModeToExtract()
    • getAmountToExtract

      public int getAmountToExtract()
    • dropItems

      public void dropItems()
    • updateFromSpeed

      public void updateFromSpeed()
    • resetInputCooldown

      protected void resetInputCooldown()
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT(net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      serializeNBT in interface net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
    • deserializeNBT

      public void deserializeNBT(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      deserializeNBT in interface net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>