Interface ITubeBlock


public interface ITubeBlock
  • Method Details

    • getTubeSegmentRadius

      double getTubeSegmentRadius()
    • getTubeSegmentLength

      double getTubeSegmentLength()
    • getTubeMaxAngle

      double getTubeMaxAngle()
      In radians.
    • getItemsForTubeLength

      int getItemsForTubeLength(double length)
    • getTubeConnectingFace

      net.minecraft.core.Direction getTubeConnectingFace(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Parameters:
      level -
      pos -
      state -
    • connectTube

      void connectTube(net.minecraft.world.level.Level level, TubeSpline spline)
      Called on the controller only, after all validations.
      Parameters:
      level -
      spline -
    • tryReconnect

      default boolean tryReconnect(net.minecraft.world.item.context.UseOnContext context)