Class BeltHelper
java.lang.Object
com.simibubi.create.content.kinetics.belt.BeltHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.server.packs.resources.ResourceManagerReloadListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BeltBlockEntitygetBeltAtSegment(BeltBlockEntity controller, int segment) static BeltBlockEntitygetBeltForOffset(BeltBlockEntity controller, float offset) static net.minecraft.world.phys.Vec3getBeltVector(net.minecraft.world.level.block.state.BlockState state) static BeltBlockEntitygetControllerBE(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos) static net.minecraft.core.BlockPosgetPositionForOffset(BeltBlockEntity controller, int offset) static BeltBlockEntitygetSegmentBE(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos) static net.minecraft.world.phys.Vec3getVectorForOffset(BeltBlockEntity controller, float offset) static booleanisItemUpright(net.minecraft.world.item.ItemStack stack)
-
Field Details
-
uprightCache
-
LISTENER
public static final net.minecraft.server.packs.resources.ResourceManagerReloadListener LISTENER
-
-
Constructor Details
-
BeltHelper
public BeltHelper()
-
-
Method Details
-
isItemUpright
public static boolean isItemUpright(net.minecraft.world.item.ItemStack stack) -
getSegmentBE
public static BeltBlockEntity getSegmentBE(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos) -
getControllerBE
public static BeltBlockEntity getControllerBE(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos) -
getBeltForOffset
-
getBeltAtSegment
-
getPositionForOffset
public static net.minecraft.core.BlockPos getPositionForOffset(BeltBlockEntity controller, int offset) -
getVectorForOffset
public static net.minecraft.world.phys.Vec3 getVectorForOffset(BeltBlockEntity controller, float offset) -
getBeltVector
public static net.minecraft.world.phys.Vec3 getBeltVector(net.minecraft.world.level.block.state.BlockState state)
-