Interface ITubeBlock
public interface ITubeBlock
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnectTube(net.minecraft.world.level.Level level, TubeSpline spline) Called on the controller only, after all validations.intgetItemsForTubeLength(double length) net.minecraft.core.DirectiongetTubeConnectingFace(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) doubleIn radians.doubledoubledefault booleantryReconnect(net.minecraft.world.item.context.UseOnContext context)
-
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
Called on the controller only, after all validations.- Parameters:
level-spline-
-
tryReconnect
default boolean tryReconnect(net.minecraft.world.item.context.UseOnContext context)
-