Class TubeBehaviour

java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.petrolpark.tube.TubeBehaviour

public class TubeBehaviour extends com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
  • Field Details

    • TYPE

      public static final com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<TubeBehaviour> TYPE
    • tubeBlockEntity

      protected final ITubeBlockEntity tubeBlockEntity
    • controller

      protected boolean controller
    • initializationTicks

      protected int initializationTicks
    • spline

      protected TubeSpline spline
    • otherEndPos

      protected net.minecraft.core.BlockPos otherEndPos
    • disconnecting

      protected boolean disconnecting
  • Constructor Details

    • TubeBehaviour

      public TubeBehaviour(BE be)
  • Method Details

    • isController

      public boolean isController()
    • getSpline

      public TubeSpline getSpline()
    • getOtherEndPos

      public net.minecraft.core.BlockPos getOtherEndPos()
    • connect

      public void connect(TubeSpline spline)
    • disconnect

      public void disconnect()
    • disconnect

      public void disconnect(Consumer<BigItemStack> leftoverItemsConsumer)
    • sendDestroyTubeParticles

      public void sendDestroyTubeParticles()
    • playSound

      public void playSound(boolean destroy)
    • reconnect

      public boolean reconnect(net.minecraft.world.entity.player.Player player, boolean tryOtherIfNotController)
    • reconnectClient

      public void reconnectClient(TubeSpline oldSpline, net.minecraft.world.item.ItemStack stack)
    • getRequiredStack

      public BigItemStack getRequiredStack()
    • get

      public static Optional<TubeBehaviour> get(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
    • tick

      public void tick()
      Overrides:
      tick in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • read

      public void read(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket)
      Overrides:
      read in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • write

      public void write(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket)
      Overrides:
      write in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • getType

      public com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<TubeBehaviour> getType()
      Specified by:
      getType in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour