Uses of Enum Class
net.minecraft.util.BlockRotation
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of BlockRotation in net.minecraft.block
Modifier and TypeMethodDescriptionstatic BlockState
PillarBlock.changeRotation
(BlockState state, BlockRotation rotation) AbstractBlock.AbstractBlockState.rotate
(BlockRotation rotation) AbstractBlock.rotate
(BlockState state, BlockRotation rotation) Deprecated.AbstractFurnaceBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.AmethystClusterBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.AnvilBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.AttachedStemBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.BannerBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.BarrelBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.CalibratedSculkSensorBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.CampfireBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.ChestBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.ChiseledBookshelfBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.CommandBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.DeadCoralWallFanBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.DetectorRailBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.DispenserBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.DoorBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.EnderChestBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.EndPortalFrameBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.FlowerbedBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.GrindstoneBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.HangingSignBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.HopperBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.HorizontalConnectingBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.HorizontalFacingBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.JigsawBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.LadderBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.LecternBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.MultifaceGrowthBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.MushroomBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.NetherPortalBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.ObserverBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.PillarBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.PistonBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.PistonExtensionBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.PistonHeadBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.PoweredRailBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.RailBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.RedstoneWireBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.RodBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.RotatedInfestedBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.ShulkerBoxBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.SignBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.SkullBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.SmallDripleafBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.StairsBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.StonecutterBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.TripwireBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.TripwireHookBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.VineBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.WallBannerBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.WallBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.WallHangingSignBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.WallRedstoneTorchBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.WallSignBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.WallSkullBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.WallTorchBlock.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
. -
Uses of BlockRotation in net.minecraft.block.entity
Modifier and TypeMethodDescriptionvoid
StructureBlockBlockEntity.setRotation
(BlockRotation rotation) -
Uses of BlockRotation in net.minecraft.client.gui.screen.ingame
-
Uses of BlockRotation in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic BlockRotation
BlockRotationArgumentType.getBlockRotation
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String id) -
Uses of BlockRotation in net.minecraft.entity
Modifier and TypeMethodDescriptionfloat
Entity.applyRotation
(BlockRotation rotation) Appliesrotation
to the entity's yaw. -
Uses of BlockRotation in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionfloat
AbstractDecorationEntity.applyRotation
(BlockRotation rotation) Appliesrotation
to the entity's yaw. -
Uses of BlockRotation in net.minecraft.network.packet.c2s.play
Modifier and TypeFieldDescriptionprivate final BlockRotation
UpdateStructureBlockC2SPacket.rotation
ModifierConstructorDescriptionUpdateStructureBlockC2SPacket
(BlockPos pos, StructureBlockBlockEntity.Action action, StructureBlockMode mode, String templateName, BlockPos offset, Vec3i size, BlockMirror mirror, BlockRotation rotation, String metadata, boolean ignoreEntities, boolean showAir, boolean showBoundingBox, float integrity, long seed) -
Uses of BlockRotation in net.minecraft.server.command
Modifier and TypeMethodDescriptionstatic int
PlaceCommand.executePlaceTemplate
(ServerCommandSource source, Identifier id, BlockPos pos, BlockRotation rotation, BlockMirror mirror, float integrity, int seed) -
Uses of BlockRotation in net.minecraft.structure
Modifier and TypeFieldDescriptionprotected final BlockRotation
PoolStructurePiece.rotation
private BlockRotation
StructurePiece.rotation
private BlockRotation
StructurePlacementData.rotation
WoodlandMansionGenerator.GenerationPiece.rotation
Modifier and TypeFieldDescription(package private) static final List<Pair<BlockRotation,
BlockPos>> EndCityGenerator.FAT_TOWER_BRIDGE_ATTACHMENTS
(package private) static final List<Pair<BlockRotation,
BlockPos>> EndCityGenerator.SMALL_TOWER_BRIDGE_ATTACHMENTS
Modifier and TypeMethodDescriptionPoolStructurePiece.getRotation()
SimpleStructurePiece.getRotation()
StructurePiece.getRotation()
StructurePlacementData.getRotation()
Modifier and TypeMethodDescriptionprivate void
WoodlandMansionGenerator.LayoutGenerator.addBigRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction connectedRoomDirection, Direction entranceDirection, WoodlandMansionGenerator.RoomPool pool) private void
WoodlandMansionGenerator.LayoutGenerator.addBigSecretRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, WoodlandMansionGenerator.RoomPool pool) private static void
OceanRuinGenerator.addCluster
(StructureTemplateManager manager, Random random, BlockRotation rotation, BlockPos pos, OceanRuinStructure structure, StructurePiecesHolder pieces) private void
WoodlandMansionGenerator.LayoutGenerator.addMediumRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction connectedRoomDirection, Direction entranceDirection, WoodlandMansionGenerator.RoomPool pool, boolean staircase) static void
ShipwreckGenerator.addParts
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, boolean beached) static void
EndCityGenerator.addPieces
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, List<StructurePiece> pieces, Random random) static void
IglooGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random) static void
OceanRuinGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure structure) private static void
OceanRuinGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure structure, boolean large, float integrity) static void
WoodlandMansionGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, List<WoodlandMansionGenerator.Piece> pieces, Random random) private void
WoodlandMansionGenerator.LayoutGenerator.addRoof
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, WoodlandMansionGenerator.FlagMatrix layout, @Nullable WoodlandMansionGenerator.FlagMatrix nextFloorLayout) private void
WoodlandMansionGenerator.LayoutGenerator.addSmallRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction direction, WoodlandMansionGenerator.RoomPool pool) static BlockPos
StructureTemplate.applyTransformedOffset
(BlockPos pos, BlockMirror mirror, BlockRotation rotation, int offsetX, int offsetZ) StructureTemplate.calculateBoundingBox
(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror) protected static BlockBox
StructureTemplate.createBox
(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror, Vec3i dimensions) (package private) static EndCityGenerator.Piece
EndCityGenerator.createPiece
(StructureTemplateManager structureTemplateManager, EndCityGenerator.Piece lastPiece, BlockPos relativePosition, String template, BlockRotation rotation, boolean ignoreAir) private static StructurePlacementData
EndCityGenerator.Piece.createPlacementData
(boolean includeAir, BlockRotation rotation) private static StructurePlacementData
IglooGenerator.Piece.createPlacementData
(BlockRotation rotation, Identifier identifier) private static StructurePlacementData
NetherFossilGenerator.Piece.createPlacementData
(BlockRotation rotation) private static StructurePlacementData
OceanRuinGenerator.Piece.createPlacementData
(BlockRotation rotation, float integrity, OceanRuinStructure.BiomeTemperature temperature) private static StructurePlacementData
RuinedPortalStructurePiece.createPlacementData
(BlockMirror mirror, BlockRotation rotation, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, BlockPos pos, RuinedPortalStructurePiece.Properties properties) private static StructurePlacementData
ShipwreckGenerator.Piece.createPlacementData
(BlockRotation rotation) private static StructurePlacementData
WoodlandMansionGenerator.Piece.createPlacementData
(BlockMirror mirror, BlockRotation rotation) void
WoodlandMansionGenerator.LayoutGenerator.generate
(BlockPos pos, BlockRotation rotation, List<WoodlandMansionGenerator.Piece> pieces, WoodlandMansionGenerator.MansionParameters parameters) StructureTemplate.getRotatedSize
(BlockRotation rotation) StructureTemplate.offsetByTransformedSize
(BlockPos pos, BlockMirror mirror, BlockRotation rotation) StructurePlacementData.setRotation
(BlockRotation rotation) private void
StructureTemplate.spawnEntities
(ServerWorldAccess world, BlockPos pos, BlockMirror mirror, BlockRotation rotation, BlockPos pivot, @Nullable BlockBox area, boolean initializeMobs) static BlockPos
StructureTemplate.transformAround
(BlockPos pos, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) static Vec3d
StructureTemplate.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) ModifierConstructorDescriptionPiece
(StructureTemplateManager manager, String template, BlockPos pos, BlockRotation rotation, boolean includeAir) Piece
(StructureTemplateManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, int yOffset) Piece
(StructureTemplateManager manager, Identifier template, BlockPos pos, BlockRotation rotation) private
Piece
(StructureTemplateManager holder, NbtCompound nbt, BlockRotation rotation, float integrity, OceanRuinStructure.BiomeTemperature biomeType, boolean large) Piece
(StructureTemplateManager structureTemplateManager, Identifier template, BlockPos pos, BlockRotation rotation, float integrity, OceanRuinStructure.BiomeTemperature biomeType, boolean large) Piece
(StructureTemplateManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, boolean grounded) Piece
(StructureTemplateManager manager, String template, BlockPos pos, BlockRotation rotation) Piece
(StructureTemplateManager manager, String template, BlockPos pos, BlockRotation rotation, BlockMirror mirror) PoolStructurePiece
(StructureTemplateManager structureTemplateManager, StructurePoolElement poolElement, BlockPos pos, int groundLevelDelta, BlockRotation rotation, BlockBox boundingBox) RuinedPortalStructurePiece
(StructureTemplateManager manager, BlockPos pos, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, RuinedPortalStructurePiece.Properties properties, Identifier id, StructureTemplate template, BlockRotation rotation, BlockMirror mirror, BlockPos blockPos) -
Uses of BlockRotation in net.minecraft.structure.pool
Modifier and TypeMethodDescriptionprotected StructurePlacementData
LegacySinglePoolElement.createPlacementData
(BlockRotation rotation, BlockBox box, boolean keepJigsaws) protected StructurePlacementData
SinglePoolElement.createPlacementData
(BlockRotation rotation, BlockBox box, boolean keepJigsaws) StructurePoolBasedGenerator.findStartingJigsawPos
(StructurePoolElement pool, Identifier id, BlockPos pos, BlockRotation rotation, StructureTemplateManager structureManager, ChunkRandom random) boolean
EmptyPoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
FeaturePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
ListPoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
SinglePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) abstract boolean
StructurePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) EmptyPoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) FeaturePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) ListPoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) SinglePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) abstract BlockBox
StructurePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) SinglePoolElement.getDataStructureBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, boolean mirroredAndRotated) EmptyPoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) FeaturePoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) ListPoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) SinglePoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) abstract Vec3i
StructurePoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) EmptyPoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) FeaturePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) ListPoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) SinglePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) abstract List<StructureTemplate.StructureBlockInfo>
StructurePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) void
StructurePoolElement.method_16756
(WorldAccess world, StructureTemplate.StructureBlockInfo structureBlockInfo, BlockPos pos, BlockRotation rotation, Random random, BlockBox box) -
Uses of BlockRotation in net.minecraft.test
Modifier and TypeFieldDescriptionprivate final BlockRotation
GameTestState.rotation
private final BlockRotation
TestFunction.rotation
Modifier and TypeMethodDescriptionGameTestState.getRotation()
static BlockRotation
StructureTestUtil.getRotation
(int steps) TestFunction.getRotation()
Modifier and TypeMethodDescriptionstatic StructureBlockBlockEntity
StructureTestUtil.createStructureTemplate
(String templateName, BlockPos pos, BlockRotation rotation, int int2, ServerWorld world, boolean bool) static void
StructureTestUtil.createTestArea
(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world) static int
StructureTestUtil.getRotationSteps
(BlockRotation rotation) static BlockBox
StructureTestUtil.getStructureBlockBox
(BlockPos pos, Vec3i relativePos, BlockRotation rotation) static void
StructureTestUtil.placeStartButton
(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world) private static StructureBlockBlockEntity
StructureTestUtil.placeStructureTemplate
(String name, BlockPos pos, BlockRotation rotation, ServerWorld world, boolean bool) static Collection<GameTestState>
TestUtil.runTestBatches
(Collection<GameTestBatch> batches, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) static Collection<GameTestState>
TestUtil.runTestFunctions
(Collection<TestFunction> testFunctions, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) ModifierConstructorDescriptionGameTestState
(TestFunction testFunction, BlockRotation rotation, ServerWorld world) TestFunction
(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long duration, boolean required, int requiredSuccesses, int maxAttempts, Consumer<TestContext> starter) TestFunction
(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long duration, boolean required, Consumer<TestContext> starter) TestRunner
(Collection<GameTestBatch> batches, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) -
Uses of BlockRotation in net.minecraft.util
Modifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<BlockRotation>
BlockRotation.CODEC
Modifier and TypeMethodDescriptionBlockMirror.getRotation
(Direction direction) static BlockRotation
BlockRotation.rotate
(BlockRotation rotation) static BlockRotation
Returns the enum constant of this class with the specified name.static BlockRotation[]
BlockRotation.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic List<BlockRotation>
BlockRotation.randomRotationOrder
(Random random) -
Uses of BlockRotation in net.minecraft.util.math
Modifier and TypeMethodDescriptionBlockPos.Mutable.rotate
(BlockRotation rotation) BlockPos.rotate
(BlockRotation rotation) -
Uses of BlockRotation in net.minecraft.world.gen.structure
Modifier and TypeMethodDescriptionprivate void
EndCityStructure.addPieces
(StructurePiecesCollector collector, BlockPos pos, BlockRotation rotation, Structure.Context context) private void
WoodlandMansionStructure.addPieces
(StructurePiecesCollector collector, Structure.Context context, BlockPos pos, BlockRotation rotation) protected BlockPos
Structure.getShiftedPos
(Structure.Context context, BlockRotation rotation) Deprecated.
AbstractBlock.AbstractBlockState.rotate(net.minecraft.util.BlockRotation)
instead.