Class BlockUtils
java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.BlockUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.minecraft.world.level.block.entity.BlockEntity>
Tstatic net.minecraft.core.BlockPos[]getBlocksAroundSelf3x3(net.minecraft.core.BlockPos selfPos) static net.minecraft.core.BlockPos[]getBlocksAroundSelfHorizontal(net.minecraft.core.BlockPos blockPos) static net.minecraft.world.level.block.state.BlockStaterotateBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.properties.DirectionProperty prop, Comparable<?> currentValue)
-
Constructor Details
-
BlockUtils
public BlockUtils()
-
-
Method Details
-
getBlocksAroundSelfHorizontal
public static net.minecraft.core.BlockPos[] getBlocksAroundSelfHorizontal(net.minecraft.core.BlockPos blockPos) -
getBlocksAroundSelf3x3
public static net.minecraft.core.BlockPos[] getBlocksAroundSelf3x3(net.minecraft.core.BlockPos selfPos) -
rotateBlock
public static net.minecraft.world.level.block.state.BlockState rotateBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.properties.DirectionProperty prop, Comparable<?> currentValue) -
getBE
@Nullable public static <T extends net.minecraft.world.level.block.entity.BlockEntity> T getBE(Class<T> clazz, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
-