Uses of Enum Class
net.minecraft.core.Direction
Packages that use Direction
Package
Description
-
Uses of Direction in com.mojang.math
Fields in com.mojang.math with type parameters of type DirectionModifier and TypeFieldDescriptionOctahedralGroup.rotatedDirectionsOctahedralGroup.rotatedDirectionsMethods in com.mojang.math that return DirectionMethods in com.mojang.math with parameters of type Direction -
Uses of Direction in net.minecraft.client.data.models
Fields in net.minecraft.client.data.models with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final Map<Direction, VariantMutator> BlockModelGenerators.MULTIFACE_GENERATORMethods in net.minecraft.client.data.models with parameters of type DirectionModifier and TypeMethodDescriptionBlockModelGenerators.createPointedDripstoneVariant(Direction direction, DripstoneThickness dripstoneThickness) static ConditionBlockModelGenerators.shelfCondition(Direction direction, @Nullable Boolean isPowered, @Nullable SideChainPart sideChainPart) Method parameters in net.minecraft.client.data.models with type arguments of type DirectionModifier and TypeMethodDescriptionstatic voidBlockModelGenerators.forEachHorizontalDirection(BiConsumer<Direction, VariantMutator> consumer) static <T extends Property<?>>
Map<T, VariantMutator> BlockModelGenerators.selectMultifaceProperties(StateHolder<?, ?> holder, Function<Direction, T> converter) -
Uses of Direction in net.minecraft.client.model.geom
Methods in net.minecraft.client.model.geom that return DirectionModifier and TypeMethodDescriptionprivate static DirectionModelPart.Polygon.mirrorFacing(Direction facing) Methods in net.minecraft.client.model.geom with parameters of type DirectionModifier and TypeMethodDescriptionprivate static DirectionModelPart.Polygon.mirrorFacing(Direction facing) Constructors in net.minecraft.client.model.geom with parameters of type DirectionModifierConstructorDescriptionPolygon(ModelPart.Vertex[] vertices, float u0, float v0, float u1, float v1, float xTexSize, float yTexSize, boolean mirror, Direction facing) Constructor parameters in net.minecraft.client.model.geom with type arguments of type Direction -
Uses of Direction in net.minecraft.client.model.geom.builders
Fields in net.minecraft.client.model.geom.builders with type parameters of type DirectionMethod parameters in net.minecraft.client.model.geom.builders with type arguments of type DirectionModifier and TypeMethodDescriptionCubeListBuilder.addBox(float x0, float y0, float z0, float w, float h, float d, Set<Direction> visibleSides) Constructor parameters in net.minecraft.client.model.geom.builders with type arguments of type DirectionModifierConstructorDescriptionprotectedCubeDefinition(@Nullable String comment, float xTexOffs, float yTexOffs, float minX, float minY, float minZ, float width, float height, float depth, CubeDeformation grow, boolean mirror, float xTexScale, float yTexScale, Set<Direction> visibleFaces) -
Uses of Direction in net.minecraft.client.model.object.bell
Fields in net.minecraft.client.model.object.bell declared as DirectionModifier and TypeFieldDescriptionprivate final @Nullable DirectionBellModel.State.shakeDirectionThe field for theshakeDirectionrecord component.Methods in net.minecraft.client.model.object.bell that return DirectionModifier and TypeMethodDescription@Nullable DirectionBellModel.State.shakeDirection()Returns the value of theshakeDirectionrecord component.Constructors in net.minecraft.client.model.object.bell with parameters of type Direction -
Uses of Direction in net.minecraft.client.model.object.statue
Subclasses with type arguments of type Direction in net.minecraft.client.model.object.statueMethods in net.minecraft.client.model.object.statue with parameters of type Direction -
Uses of Direction in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type DirectionModifier and TypeMethodDescriptionvoidClientLevel.addBreakingBlockEffect(BlockPos pos, Direction direction) Deprecated.voidClientLevel.addBreakingBlockEffect(BlockPos pos, Direction direction, @Nullable HitResult hitResult) booleanMultiPlayerGameMode.continueDestroyBlock(BlockPos pos, Direction direction) floatbooleanMultiPlayerGameMode.startDestroyBlock(BlockPos pos, Direction direction) Called when the player is hitting a block with an item. -
Uses of Direction in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]SectionOcclusionGraph.DIRECTIONSFields in net.minecraft.client.renderer with type parameters of type DirectionMethods in net.minecraft.client.renderer with parameters of type DirectionModifier and TypeMethodDescriptionprivate voidSectionOcclusionGraph.Node.addSourceDirection(Direction direction) private voidCloudRenderer.encodeFace(ByteBuffer faceBuffer, int x, int z, Direction direction, int flags) static FaceInfoFaceInfo.fromFacing(Direction direction) private @Nullable SectionRenderDispatcher.RenderSectionSectionOcclusionGraph.getRelativeFrom(long cameraSectionNode, SectionRenderDispatcher.RenderSection renderSection, Direction direction) private booleanSectionOcclusionGraph.Node.hasDirection(Direction direction) private voidSectionOcclusionGraph.Node.setDirections(byte oldDirections, Direction direction) Constructors in net.minecraft.client.renderer with parameters of type DirectionModifierConstructorDescriptionprivateNode(SectionRenderDispatcher.RenderSection section, @Nullable Direction sourceDirection, int step) -
Uses of Direction in net.minecraft.client.renderer.block
Fields in net.minecraft.client.renderer.block declared as DirectionModifier and TypeFieldDescriptionfinal Direction[]ModelBlockRenderer.AdjacencyInfo.cornersprivate static final Direction[]ModelBlockRenderer.DIRECTIONSMethods in net.minecraft.client.renderer.block with parameters of type DirectionModifier and TypeMethodDescriptionvoidModelBlockRenderer.AmbientOcclusionRenderStorage.calculate(BlockAndTintGetter level, BlockState state, BlockPos centerPosition, Direction direction, boolean shade) ModelBlockRenderer.AdjacencyInfo.fromFacing(Direction direction) ModelBlockRenderer.AmbientVertexRemap.fromFacing(Direction direction) floatprivate static booleanLiquidBlockRenderer.isFaceOccludedByNeighbor(Direction direction, float height, BlockState neighborState) private static booleanLiquidBlockRenderer.isFaceOccludedBySelf(BlockState state, Direction direction) private static booleanLiquidBlockRenderer.isFaceOccludedByState(Direction direction, float height, BlockState state) private static booleanLiquidBlockRenderer.isNeighborStateHidingOverlay(FluidState selfState, BlockState otherState, Direction neighborFace) static booleanLiquidBlockRenderer.shouldRenderFace(FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static booleanLiquidBlockRenderer.shouldRenderFace(FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) Deprecated.Neo: use overload that accepts BlockStateprotected static booleanModelBlockRenderer.shouldRenderFace(BlockAndTintGetter level, BlockPos pos, BlockState state, boolean cullEnabled, Direction direction, BlockPos neighborPos) private static booleanModelBlockRenderer.shouldRenderFace(BlockAndTintGetter level, BlockState state, boolean cullEnabled, Direction direction, BlockPos neighborPos) Deprecated.Constructors in net.minecraft.client.renderer.block with parameters of type DirectionModifierConstructorDescriptionprivateAdjacencyInfo(Direction[] corners, float shadeWeight, boolean doNonCubicWeight, ModelBlockRenderer.SizeInfo[] vert0Weights, ModelBlockRenderer.SizeInfo[] vert1Weights, ModelBlockRenderer.SizeInfo[] vert2Weights, ModelBlockRenderer.SizeInfo[] vert3Weights) -
Uses of Direction in net.minecraft.client.renderer.block.model
Fields in net.minecraft.client.renderer.block.model declared as DirectionModifier and TypeFieldDescriptionprivate final @Nullable DirectionBlockElementFace.cullForDirectionThe field for thecullForDirectionrecord component.private final DirectionBakedQuad.directionThe field for thedirectionrecord component.private final DirectionItemModelGenerator.SideDirection.directionFields in net.minecraft.client.renderer.block.model with type parameters of type DirectionModifier and TypeFieldDescriptionprivate final Map<Direction, BlockElementFace> BlockElement.facesThe field for thefacesrecord component.Methods in net.minecraft.client.renderer.block.model that return DirectionModifier and TypeMethodDescriptionprivate static @Nullable DirectionFaceBakery.calculateFacing(Vector3fc[] positions) @Nullable DirectionBlockElementFace.cullForDirection()Returns the value of thecullForDirectionrecord component.BakedQuad.direction()Returns the value of thedirectionrecord component.private static @Nullable DirectionFaceBakery.findClosestDirection(Vector3f direction) private static @Nullable DirectionBlockElementFace.Deserializer.getCullFacing(JsonObject object) ItemModelGenerator.SideDirection.getDirection()private DirectionMethods in net.minecraft.client.renderer.block.model that return types with arguments of type DirectionModifier and TypeMethodDescriptionBlockElement.faces()Returns the value of thefacesrecord component.private Map<Direction, BlockElementFace> BlockElement.Deserializer.filterNullFromFaces(JsonDeserializationContext context, JsonObject object) private Map<Direction, BlockElementFace> BlockElement.Deserializer.getFaces(JsonDeserializationContext context, JsonObject object) Methods in net.minecraft.client.renderer.block.model with parameters of type DirectionModifier and TypeMethodDescriptionstatic BakedQuadFaceBakery.bakeQuad(ModelBaker.Interner interner, Vector3fc from, Vector3fc to, BlockElementFace.UVs uvs, Quadrant uvRotation, int tintIndex, BakedQuad.SpriteInfo spriteInfo, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission) static BakedQuadFaceBakery.bakeQuad(ModelBaker.Interner interner, Vector3fc from, Vector3fc to, BlockElementFace.UVs uvs, Quadrant uvRotation, int tintIndex, BakedQuad.SpriteInfo spriteInfo, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission, ExtraFaceData faceData) static BakedQuadFaceBakery.bakeQuad(ModelBaker modelBaker, Vector3fc from, Vector3fc to, BlockElementFace face, Material.Baked material, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission) static BlockElementFace.UVsFaceBakery.defaultFaceUV(Vector3fc from, Vector3fc to, Direction facing) static voidFaceBakery.recalculateWinding(Vector3fc[] positions, long[] uvs, Direction direction) static voidFaceBakery.recalculateWinding(Vector3fc[] positions, long[] uvs, Direction direction, int @Nullable [] colors, int @Nullable [] normals) Constructors in net.minecraft.client.renderer.block.model with parameters of type DirectionModifierConstructorDescriptionBakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, BakedQuad.SpriteInfo spriteInfo, boolean shade, int lightEmission) BakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, BakedQuad.SpriteInfo spriteInfo, boolean shade, int lightEmission, BakedNormals bakedNormals, BakedColors bakedColors, boolean hasAmbientOcclusion) Creates an instance of aBakedQuadrecord class.BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, @Nullable BlockElementFace.UVs uvs, Quadrant rotation) BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, @Nullable BlockElementFace.UVs uvs, Quadrant rotation, @Nullable ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent) Creates an instance of aBlockElementFacerecord class.privateSideDirection(Direction direction) Constructor parameters in net.minecraft.client.renderer.block.model with type arguments of type DirectionModifierConstructorDescriptionBlockElement(Vector3fc from, Vector3fc to, Map<Direction, BlockElementFace> faces) BlockElement(Vector3fc from, Vector3fc to, Map<Direction, BlockElementFace> faces, @Nullable BlockElementRotation rotation, boolean shade, int lightEmission) BlockElement(Vector3fc from, Vector3fc to, Map<Direction, BlockElementFace> faces, @Nullable BlockElementRotation rotation, boolean shade, int lightEmission, ExtraFaceData faceData) Creates an instance of aBlockElementrecord class. -
Uses of Direction in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type DirectionModifier and TypeMethodDescriptionvoidShulkerBoxRenderer.getExtents(Direction direction, float progress, Consumer<Vector3fc> output) private voidShulkerBoxRenderer.prepareModel(PoseStack poseStack, Direction direction, float progress) private static voidBedRenderer.preparePose(PoseStack poseStack, boolean translateZ, Direction direction) private static voidAbstractEndPortalRenderer.renderFace(Set<Direction> facesToShow, Matrix4f pose, VertexConsumer builder, float x1, float x2, float y1, float y2, float z1, float z2, float z3, float z4, Direction face) voidShulkerBoxRenderer.submit(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, int lightCoords, int overlayCoords, Direction direction, float progress, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress, SpriteId sprite, int outlineColor) private voidBedRenderer.submitPiece(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, Model.Simple model, Direction direction, SpriteId sprite, int lightCoords, int overlayCoords, boolean translateZ, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress, int outlineColor) static voidSkullBlockRenderer.submitSkull(@Nullable Direction direction, float rot, float animationValue, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, int lightCoords, SkullModelBase model, RenderType renderType, int outlineColor, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) private float[]BrushableBlockRenderer.translations(Direction direction, int completionState) Method parameters in net.minecraft.client.renderer.blockentity with type arguments of type DirectionModifier and TypeMethodDescriptionprivate voidAbstractEndPortalRenderer.renderCube(Set<Direction> facesToShow, Matrix4f pose, VertexConsumer builder) private static voidAbstractEndPortalRenderer.renderFace(Set<Direction> facesToShow, Matrix4f pose, VertexConsumer builder, float x1, float x2, float y1, float y2, float z1, float z2, float z3, float z4, Direction face) -
Uses of Direction in net.minecraft.client.renderer.blockentity.state
Fields in net.minecraft.client.renderer.blockentity.state declared as DirectionModifier and TypeFieldDescriptionCopperGolemStatueRenderState.directionDecoratedPotRenderState.directionShulkerBoxRenderState.directionSkullBlockRenderState.directionBedRenderState.facingCampfireRenderState.facing@Nullable DirectionBrushableBlockRenderState.hitDirection@Nullable DirectionBellRenderState.shakeDirectionFields in net.minecraft.client.renderer.blockentity.state with type parameters of type Direction -
Uses of Direction in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk declared as DirectionMethods in net.minecraft.client.renderer.chunk that return types with arguments of type DirectionMethods in net.minecraft.client.renderer.chunk with parameters of type DirectionModifier and TypeMethodDescriptionbooleanCompiledSectionMesh.facesCanSeeEachother(Direction direction1, Direction direction2) booleanSectionMesh.facesCanSeeEachother(Direction direction1, Direction direction2) private intVisGraph.getNeighborIndexAtFace(int index, Direction direction) longSectionRenderDispatcher.RenderSection.getNeighborSectionNode(Direction direction) floatvoidbooleanVisibilitySet.visibilityBetween(Direction direction1, Direction direction2) Method parameters in net.minecraft.client.renderer.chunk with type arguments of type Direction -
Uses of Direction in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug declared as DirectionMethods in net.minecraft.client.renderer.debug with parameters of type DirectionModifier and TypeMethodDescriptionprivate static voidSolidFaceRenderer.addFaceIfSturdy(BlockPos blockPos, BlockState blockState, BlockGetter level, Direction direction, Vec3 cornerA, Vec3 cornerB, int color) private static voidLightSectionDebugRenderer.renderFace(Direction direction, int sectionX, int sectionY, int sectionZ, int color) -
Uses of Direction in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type DirectionModifier and TypeMethodDescriptionprivate static floatLivingEntityRenderer.sleepDirectionToRotation(Direction direction) -
Uses of Direction in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as DirectionModifier and TypeFieldDescriptionShulkerRenderState.attachFace@Nullable DirectionLivingEntityRenderState.bedOrientationItemFrameRenderState.directionPaintingRenderState.direction -
Uses of Direction in net.minecraft.client.renderer.special
Fields in net.minecraft.client.renderer.special declared as DirectionModifier and TypeFieldDescriptionprivate static final DirectionCopperGolemStatueSpecialRenderer.MODEL_STATEprivate final DirectionShulkerBoxSpecialRenderer.orientationprivate final DirectionShulkerBoxSpecialRenderer.Unbaked.orientationThe field for theorientationrecord component.Methods in net.minecraft.client.renderer.special that return DirectionModifier and TypeMethodDescriptionShulkerBoxSpecialRenderer.Unbaked.orientation()Returns the value of theorientationrecord component.Constructors in net.minecraft.client.renderer.special with parameters of type DirectionModifierConstructorDescriptionShulkerBoxSpecialRenderer(ShulkerBoxRenderer shulkerBoxRenderer, float openness, Direction orientation, SpriteId sprite) Unbaked(Identifier texture, float openness, Direction orientation) Creates an instance of aUnbakedrecord class. -
Uses of Direction in net.minecraft.client.renderer.state
Fields in net.minecraft.client.renderer.state declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionWorldBorderRenderState.DistancePerDirection.directionThe field for thedirectionrecord component.Methods in net.minecraft.client.renderer.state that return DirectionModifier and TypeMethodDescriptionWorldBorderRenderState.DistancePerDirection.direction()Returns the value of thedirectionrecord component.Constructors in net.minecraft.client.renderer.state with parameters of type DirectionModifierConstructorDescriptionDistancePerDirection(Direction direction, double distance) Creates an instance of aDistancePerDirectionrecord class. -
Uses of Direction in net.minecraft.client.resources.model
Fields in net.minecraft.client.resources.model with type parameters of type DirectionModifier and TypeFieldDescriptionQuadCollection.Builder.culledFacesBlockModelRotation.faceMappingBlockModelRotation.inverseFaceMappingMethods in net.minecraft.client.resources.model with parameters of type DirectionModifier and TypeMethodDescriptionQuadCollection.Builder.addCulledFace(Direction direction, BakedQuad quad) BlockModelRotation.WithUvLock.faceTransformation(Direction face) default Matrix4fcModelState.faceTransformation(Direction face) BlockModelRotation.WithUvLock.inverseFaceTransformation(Direction face) default Matrix4fcModelState.inverseFaceTransformation(Direction face) -
Uses of Direction in net.minecraft.core
Subclasses with type arguments of type Direction in net.minecraft.coreClasses in net.minecraft.core that implement interfaces with type arguments of type DirectionModifier and TypeClassDescriptionstatic enumstatic enumstatic enumFields in net.minecraft.core declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]Direction.BY_2D_DATAAll Facings with horizontal axis in order S-W-N-Eprivate static final Direction[]Direction.BY_3D_DATAprivate final Direction[]Direction.Plane.facesprivate final DirectionFrontAndTop.frontprivate final DirectionFrontAndTop.topprivate static final Direction[]Direction.VALUESFields in net.minecraft.core with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final IntFunction<Direction> Direction.BY_IDstatic final StringRepresentable.EnumCodec<Direction> Direction.CODECDirection8.directionsstatic final com.mojang.serialization.Codec<Direction> Direction.LEGACY_ID_CODECDeprecated.static final com.mojang.serialization.Codec<Direction> Direction.LEGACY_ID_CODEC_2DDeprecated.static final StreamCodec<io.netty.buffer.ByteBuf, Direction> Direction.STREAM_CODECprivate static final Map<Direction, Transformation> BlockMath.VANILLA_UV_TRANSFORM_GLOBAL_TO_LOCALprivate static final Map<Direction, Transformation> BlockMath.VANILLA_UV_TRANSFORM_LOCAL_TO_GLOBALstatic final com.mojang.serialization.Codec<Direction> Direction.VERTICAL_CODECMethods in net.minecraft.core that return DirectionModifier and TypeMethodDescriptionstatic @Nullable Directionstatic DirectionDirection.from2DDataValue(int data) static DirectionDirection.from3DDataValue(int data) static DirectionDirection.fromAxisAndDirection(Direction.Axis axis, Direction.AxisDirection direction) static DirectionDirection.fromYRot(double yRot) FrontAndTop.front()static DirectionDirection.get(Direction.AxisDirection axisDirection, Direction.Axis axis) static DirectionDirection.getApproximateNearest(double dx, double dy, double dz) static DirectionDirection.getApproximateNearest(float dx, float dy, float dz) static DirectionDirection.getApproximateNearest(Vec3 vec) Direction.getClockWise()Direction.getClockWise(Direction.Axis axis) private DirectionDirection.getClockWiseX()private DirectionDirection.getClockWiseZ()Direction.getCounterClockWise()Direction.getCounterClockWise(Direction.Axis axis) private DirectionDirection.getCounterClockWiseX()private DirectionDirection.getCounterClockWiseZ()Direction.Axis.getDirections()static DirectionDirection.getFacingAxis(Entity entity, Direction.Axis axis) static @Nullable DirectionDirection.getNearest(int x, int y, int z, @Nullable Direction orElse) static @Nullable DirectionDirection.getNearest(Vec3i vec, @Nullable Direction orElse) abstract DirectionDirection.Axis.getNegative()Direction.getOpposite()abstract DirectionDirection.Axis.getPositive()static DirectionDirection.getRandom(RandomSource random) Direction.Plane.getRandomDirection(RandomSource random) private static Direction[]Direction.makeDirectionArray(Direction axis1, Direction axis2, Direction axis3) static Direction[]Direction.orderedByNearest(Entity entity) Gets theDirectionvalues for the provided entity's looking direction.static DirectionFrontAndTop.top()static DirectionReturns the enum constant of this class with the specified name.static Direction[]Direction.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.core that return types with arguments of type DirectionModifier and TypeMethodDescriptionstatic Collection<Direction> Direction.allShuffled(RandomSource random) Direction8.getDirections()Direction.Plane.iterator()Direction.Plane.shuffledCopy(RandomSource random) Direction.Plane.stream()Direction.stream()private static com.mojang.serialization.DataResult<Direction> Direction.verifyVertical(Direction v) Methods in net.minecraft.core with parameters of type DirectionModifier and TypeMethodDescriptionstatic FrontAndTopFrontAndTop.fromFrontAndTop(Direction front, Direction top) static TransformationBlockMath.getFaceTransformation(Transformation transformation, Direction originalSide) static @Nullable DirectionDirection.getNearest(int x, int y, int z, @Nullable Direction orElse) static @Nullable DirectionDirection.getNearest(Vec3i vec, @Nullable Direction orElse) static floatprivate static intprivate static Direction[]Direction.makeDirectionArray(Direction axis1, Direction axis2, Direction axis3) static longstatic longOffsets this Vector by the given distance in the specified direction.static DirectionBlockPos.MutableBlockPos.setWithOffset(Vec3i pos, Direction direction) static Iterable<BlockPos.MutableBlockPos> BlockPos.spiralAround(BlockPos center, int radius, Direction firstDirection, Direction secondDirection) booleanbooleanprivate static com.mojang.serialization.DataResult<Direction> Direction.verifyVertical(Direction v) Constructors in net.minecraft.core with parameters of type DirectionModifierConstructorDescriptionprivateDirection8(Direction... directions) privateFrontAndTop(String name, Direction front, Direction top) privatePlane(Direction[] faces, Direction.Axis[] axis) -
Uses of Direction in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser with parameters of type DirectionModifier and TypeMethodDescriptionprotected voidDefaultDispenseItemBehavior.playAnimation(BlockSource source, Direction direction) private static voidDefaultDispenseItemBehavior.playDefaultAnimation(BlockSource source, Direction direction) static voidDefaultDispenseItemBehavior.spawnItem(Level level, ItemStack itemStack, int accuracy, Direction direction, Position position) -
Uses of Direction in net.minecraft.data.worldgen.features
Methods in net.minecraft.data.worldgen.features with parameters of type DirectionModifier and TypeMethodDescriptionprivate static Holder<PlacedFeature> CaveFeatures.makeDripleaf(Direction direction) Method parameters in net.minecraft.data.worldgen.features with type arguments of type DirectionModifier and TypeMethodDescriptionprivate static WeightedList.Builder<BlockState> VegetationFeatures.segmentedBlockPatchBuilder(Block block, int minState, int maxState, IntegerProperty amountProperty, EnumProperty<Direction> directionProperty) -
Uses of Direction in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return DirectionModifier and TypeMethodDescriptionGameTestHelper.getAbsoluteDirection(Direction direction) GameTestHelper.getTestDirection()Methods in net.minecraft.gametest.framework with parameters of type DirectionModifier and TypeMethodDescriptionvoidGameTestHelper.assertRedstoneSignal(BlockPos pos, Direction direction, IntPredicate levelPredicate, Supplier<Component> errorMessage) GameTestHelper.getAbsoluteDirection(Direction direction) voidvoidvoidGameTestHelper.setBlock(BlockPos blockPos, BlockState blockState, Direction direction) -
Uses of Direction in net.minecraft.gizmos
Methods in net.minecraft.gizmos with parameters of type DirectionModifier and TypeMethodDescriptionstatic RectGizmoRectGizmo.fromCuboidFace(Vec3 cuboidCornerA, Vec3 cuboidCornerB, Direction face, GizmoStyle style) static GizmoPropertiesGizmos.rect(Vec3 cuboidCornerA, Vec3 cuboidCornerB, Direction face, GizmoStyle style) -
Uses of Direction in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as DirectionMethods in net.minecraft.network.protocol.game that return DirectionConstructors in net.minecraft.network.protocol.game with parameters of type DirectionModifierConstructorDescriptionServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction) ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction, int sequence) -
Uses of Direction in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final EntityDataSerializer<Direction> EntityDataSerializers.DIRECTION -
Uses of Direction in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type DirectionModifier and TypeMethodDescriptionprivate booleanServerPlayer.bedBlocked(BlockPos pos, Direction direction) private booleanServerPlayer.bedInRange(BlockPos pos, Direction direction) floatfloatvoidDemoMode.handleBlockBreakAction(BlockPos pos, ServerboundPlayerActionPacket.Action action, Direction direction, int maxY, int sequence) voidServerPlayerGameMode.handleBlockBreakAction(BlockPos pos, ServerboundPlayerActionPacket.Action action, Direction direction, int maxY, int sequence) voidServerLevel.updateNeighborsAtExceptFromFacing(BlockPos pos, Block blockObject, Direction skipDirection, @Nullable Orientation orientation) -
Uses of Direction in net.minecraft.util
Methods in net.minecraft.util with parameters of type DirectionModifier and TypeMethodDescriptionintSegmentedAnglePrecision.fromDirection(Direction direction) private static intBlockUtil.getLimit(Predicate<BlockPos> test, BlockPos.MutableBlockPos pos, Direction direction, int limit) Finds the distance we can travel in the given direction while the predicate returns trueBlockUtil.getTopConnectedBlock(BlockGetter level, BlockPos pos, Block bodyBlock, Direction growthDirection, Block headBlock) static voidParticleUtils.spawnParticleOnFace(Level level, BlockPos pos, Direction face, ParticleOptions particle, Vec3 speed, double stepFactor) static voidParticleUtils.spawnParticlesOnBlockFace(Level level, BlockPos pos, ParticleOptions particle, IntProvider particlesPerFaceRange, Direction face, Supplier<Vec3> speedSupplier, double stepFactor) -
Uses of Direction in net.minecraft.world
Methods in net.minecraft.world with parameters of type DirectionModifier and TypeMethodDescriptionbooleanWorldlyContainer.canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleanWorldlyContainer.canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.int[]WorldlyContainer.getSlotsForFace(Direction direction) -
Uses of Direction in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return DirectionModifier and TypeMethodDescription@Nullable DirectionLivingEntity.getBedOrientation()Entity.getDirection()Entity.getMotionDirection()Entity.getNearestViewDirection() -
Uses of Direction in net.minecraft.world.entity.decoration
Fields in net.minecraft.world.entity.decoration declared as DirectionFields in net.minecraft.world.entity.decoration with type parameters of type DirectionModifier and TypeFieldDescriptionprivate static final EntityDataAccessor<Direction> HangingEntity.DATA_DIRECTIONMethods in net.minecraft.world.entity.decoration that return DirectionMethods in net.minecraft.world.entity.decoration with parameters of type DirectionModifier and TypeMethodDescriptionprotected abstract AABBHangingEntity.calculateBoundingBox(BlockPos pos, Direction direction) protected AABBItemFrame.calculateBoundingBox(BlockPos blockPos, Direction direction) private AABBItemFrame.createBoundingBox(BlockPos blockPos, Direction direction, boolean hasFramedMap) protected voidHangingEntity.setDirection(Direction direction) Updates facing and bounding box based on itprotected voidItemFrame.setDirection(Direction direction) Updates facing and bounding box based on itprotected voidHangingEntity.setDirectionRaw(Direction direction) Constructors in net.minecraft.world.entity.decoration with parameters of type Direction -
Uses of Direction in net.minecraft.world.entity.decoration.painting
Methods in net.minecraft.world.entity.decoration.painting with parameters of type DirectionModifier and TypeMethodDescriptionprotected AABBPainting.calculateBoundingBox(BlockPos pos, Direction direction) Constructors in net.minecraft.world.entity.decoration.painting with parameters of type Direction -
Uses of Direction in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as DirectionModifier and TypeFieldDescriptionprivate static final DirectionShulker.DEFAULT_ATTACH_FACEprivate @Nullable DirectionSilverfish.SilverfishMergeWithStoneGoal.selectedDirectionFields in net.minecraft.world.entity.monster with type parameters of type DirectionModifier and TypeFieldDescriptionprotected static final EntityDataAccessor<Direction> Shulker.DATA_ATTACH_FACE_IDMethods in net.minecraft.world.entity.monster that return DirectionModifier and TypeMethodDescriptionprotected @Nullable DirectionShulker.findAttachableSurface(BlockPos target) Shulker.getAttachFace()Methods in net.minecraft.world.entity.monster with parameters of type DirectionModifier and TypeMethodDescriptionprivate booleanstatic AABBShulker.getProgressAabb(float size, Direction direction, float progressTo, Vec3 position) static AABBShulker.getProgressDeltaAabb(float size, Direction direction, float progressFrom, float progressTo, Vec3 position) private voidShulker.setAttachFace(Direction attachmentDirection) -
Uses of Direction in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type DirectionModifier and TypeMethodDescriptionbooleanPlayer.mayUseItemAt(BlockPos pos, Direction direction, ItemStack itemStack) Returns whether this player can modify the block at a certain location with the given stack. -
Uses of Direction in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as DirectionMethods in net.minecraft.world.entity.projectile that return DirectionMethods in net.minecraft.world.entity.projectile with parameters of type DirectionModifier and TypeMethodDescriptionprivate voidShulkerBullet.setMoveDirection(@Nullable Direction direction) -
Uses of Direction in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type DirectionModifier and TypeMethodDescriptionstatic int[][]DismountHelper.offsetsForDirection(Direction forward) -
Uses of Direction in net.minecraft.world.entity.vehicle.boat
Methods in net.minecraft.world.entity.vehicle.boat that return Direction -
Uses of Direction in net.minecraft.world.entity.vehicle.minecart
Methods in net.minecraft.world.entity.vehicle.minecart that return DirectionModifier and TypeMethodDescriptionAbstractMinecart.getMotionDirection()MinecartBehavior.getMotionDirection()OldMinecartBehavior.getMotionDirection() -
Uses of Direction in net.minecraft.world.item
Fields in net.minecraft.world.item declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionStandingAndWallBlockItem.attachmentDirectionMethods in net.minecraft.world.item with parameters of type DirectionModifier and TypeMethodDescriptionArrowItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) EggItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) ExperienceBottleItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) FireChargeItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) FireworkRocketItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) ProjectileItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) SnowballItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) SpectralArrowItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) ThrowablePotionItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) TridentItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) WindChargeItem.asProjectile(Level level, Position position, ItemStack itemStack, Direction direction) static BrushItem.DustParticlesDeltaBrushItem.DustParticlesDelta.fromDirection(Vec3 viewVector, Direction hitDirection) ProjectileItem.PositionFunction.getDispensePosition(BlockSource source, Direction direction) private static Vec3FireworkRocketItem.getEntityJustOutsideOfBlockPos(BlockSource source, Direction direction) static booleanBoneMealItem.growWaterPlant(ItemStack itemStack, Level level, BlockPos pos, @Nullable Direction clickedFace) protected booleanHangingEntityItem.mayPlace(Player player, Direction direction, ItemStack itemStack, BlockPos blockPos) protected booleanConstructors in net.minecraft.world.item with parameters of type DirectionModifierConstructorDescriptionSignItem(Item.Properties properties, Block sign, Block wallSign, Direction direction) StandingAndWallBlockItem(Block block, Block wallBlock, Direction attachmentDirection, Item.Properties properties) -
Uses of Direction in net.minecraft.world.item.context
Fields in net.minecraft.world.item.context declared as DirectionMethods in net.minecraft.world.item.context that return DirectionModifier and TypeMethodDescriptionUseOnContext.getClickedFace()DirectionalPlaceContext.getHorizontalDirection()UseOnContext.getHorizontalDirection()BlockPlaceContext.getNearestLookingDirection()DirectionalPlaceContext.getNearestLookingDirection()BlockPlaceContext.getNearestLookingDirections()DirectionalPlaceContext.getNearestLookingDirections()BlockPlaceContext.getNearestLookingVerticalDirection()Methods in net.minecraft.world.item.context with parameters of type DirectionModifier and TypeMethodDescriptionstatic BlockPlaceContextBlockPlaceContext.at(BlockPlaceContext context, BlockPos pos, Direction direction) Constructors in net.minecraft.world.item.context with parameters of type Direction -
Uses of Direction in net.minecraft.world.level
Fields in net.minecraft.world.level declared as DirectionModifier and TypeFieldDescriptionstatic final Direction[]SignalGetter.DIRECTIONSprivate static final Direction[]Level.NEIGHBOR_UPDATE_LISTMethods in net.minecraft.world.level with parameters of type DirectionModifier and TypeMethodDescriptiondefault intSignalGetter.getControlInputSignal(BlockPos pos, Direction direction, boolean onlyDiodes) Returns the control signal emitted from the given position in the given direction.default intSignalGetter.getDirectSignal(BlockPos pos, Direction direction) Returns the direct redstone signal emitted from the given position in the given direction.floatfloatdefault intReturns the redstone signal emitted from the given position in the given direction.default booleanReturns whether a redstone signal is emitted from the given position in the given direction.booleanLevel.loadedAndEntityCanStandOnFace(BlockPos pos, Entity entity, Direction faceDirection) voidLevel.neighborShapeChanged(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int updateFlags, int updateLimit) default voidLevelAccessor.neighborShapeChanged(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int updateFlags, int updateLimit) voidLevel.updateNeighborsAtExceptFromFacing(BlockPos pos, Block blockObject, Direction skipDirection, @Nullable Orientation orientation) -
Uses of Direction in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]SpongeBlock.ALL_DIRECTIONSprivate static final Direction[]BuddingAmethystBlock.DIRECTIONSprotected static final Direction[]MultifaceBlock.DIRECTIONSprivate final DirectionMultifaceSpreader.SpreadPos.faceThe field for thefacerecord component.private final DirectionSideChainPartBlock.Neighbors.facingThe field for thefacingrecord component.protected final DirectionGrowingPlantBlock.growthDirectionFields in net.minecraft.world.level.block with type parameters of type DirectionModifier and TypeFieldDescriptionSculkSpreader.ChargeCursor.DIRECTION_SETstatic final EnumProperty<Direction> AbstractFurnaceBlock.FACINGstatic final EnumProperty<Direction> AmethystClusterBlock.FACINGstatic final EnumProperty<Direction> AnvilBlock.FACINGstatic final EnumProperty<Direction> AttachedStemBlock.FACINGstatic final EnumProperty<Direction> BarrelBlock.FACINGstatic final EnumProperty<Direction> BaseCoralWallFanBlock.FACINGstatic final EnumProperty<Direction> BeehiveBlock.FACINGstatic final EnumProperty<Direction> BellBlock.FACINGstatic final EnumProperty<Direction> CalibratedSculkSensorBlock.FACINGstatic final EnumProperty<Direction> CampfireBlock.FACINGstatic final EnumProperty<Direction> CarvedPumpkinBlock.FACINGstatic final EnumProperty<Direction> ChestBlock.FACINGstatic final EnumProperty<Direction> ChiseledBookShelfBlock.FACINGstatic final EnumProperty<Direction> CommandBlock.FACINGstatic final EnumProperty<Direction> CopperGolemStatueBlock.FACINGstatic final EnumProperty<Direction> DirectionalBlock.FACINGstatic final EnumProperty<Direction> DispenserBlock.FACINGstatic final EnumProperty<Direction> DoorBlock.FACINGstatic final EnumProperty<Direction> EnderChestBlock.FACINGstatic final EnumProperty<Direction> EndPortalFrameBlock.FACINGstatic final EnumProperty<Direction> FlowerBedBlock.FACINGstatic final EnumProperty<Direction> HopperBlock.FACINGstatic final EnumProperty<Direction> HorizontalDirectionalBlock.FACINGstatic final EnumProperty<Direction> LadderBlock.FACINGstatic final EnumProperty<Direction> LeafLitterBlock.FACINGstatic final EnumProperty<Direction> LecternBlock.FACINGstatic final EnumProperty<Direction> RedstoneWallTorchBlock.FACINGstatic final EnumProperty<Direction> ShelfBlock.FACINGstatic final EnumProperty<Direction> ShulkerBoxBlock.FACINGstatic final EnumProperty<Direction> SmallDripleafBlock.FACINGstatic final EnumProperty<Direction> StairBlock.FACINGstatic final EnumProperty<Direction> StonecutterBlock.FACINGstatic final EnumProperty<Direction> TripWireHookBlock.FACINGstatic final EnumProperty<Direction> VaultBlock.FACINGstatic final EnumProperty<Direction> WallBannerBlock.FACINGstatic final EnumProperty<Direction> WallHangingSignBlock.FACINGstatic final EnumProperty<Direction> WallSignBlock.FACINGstatic final EnumProperty<Direction> WallSkullBlock.FACINGstatic final EnumProperty<Direction> WallTorchBlock.FACINGSculkSpreader.ChargeCursor.facingsprivate static final Map<Direction, VoxelShape> ChestBlock.HALF_SHAPESstatic final EnumProperty<Direction> DecoratedPotBlock.HORIZONTAL_FACINGprivate final Map<Direction, VoxelShape> HopperBlock.interactionShapesstatic final ImmutableList<Direction> LiquidBlock.POSSIBLE_FLOW_DIRECTIONSstatic final Map<Direction, BooleanProperty> CrossCollisionBlock.PROPERTY_BY_DIRECTIONstatic final Map<Direction, BooleanProperty> FireBlock.PROPERTY_BY_DIRECTIONprivate static final Map<Direction, BooleanProperty> HugeMushroomBlock.PROPERTY_BY_DIRECTIONstatic final Map<Direction, EnumProperty<WallSide>> MossyCarpetBlock.PROPERTY_BY_DIRECTIONprivate static final Map<Direction, BooleanProperty> MultifaceBlock.PROPERTY_BY_DIRECTIONstatic final Map<Direction, BooleanProperty> PipeBlock.PROPERTY_BY_DIRECTIONstatic final Map<Direction, EnumProperty<RedstoneSide>> RedStoneWireBlock.PROPERTY_BY_DIRECTIONprivate static final Map<Direction, BooleanProperty> TripWireBlock.PROPERTY_BY_DIRECTIONstatic final Map<Direction, BooleanProperty> VineBlock.PROPERTY_BY_DIRECTIONstatic final Map<Direction, EnumProperty<WallSide>> WallBlock.PROPERTY_BY_DIRECTIONprivate static final Map<Direction, VoxelShape> StairBlock.SHAPE_BOTTOM_INNERprivate static final Map<Direction, VoxelShape> StairBlock.SHAPE_BOTTOM_OUTERprivate static final Map<Direction, VoxelShape> StairBlock.SHAPE_BOTTOM_STRAIGHTprivate static final Map<Direction, VoxelShape> BellBlock.SHAPE_SINGLE_WALLprivate static final Map<Direction, VoxelShape> StairBlock.SHAPE_TOP_INNERprivate static final Map<Direction, VoxelShape> StairBlock.SHAPE_TOP_OUTERprivate static final Map<Direction, VoxelShape> StairBlock.SHAPE_TOP_STRAIGHTprivate final Map<Direction, VoxelShape> AmethystClusterBlock.shapesprivate static final Map<Direction, VoxelShape> AttachedStemBlock.SHAPESprivate static final Map<Direction, VoxelShape> BaseCoralWallFanBlock.SHAPESprivate static final Map<Direction, VoxelShape> BedBlock.SHAPESprivate static final Map<Direction, VoxelShape> BigDripleafStemBlock.SHAPESprivate static final List<Map<Direction, VoxelShape>> CocoaBlock.SHAPESprivate static final Map<Direction, VoxelShape> DoorBlock.SHAPESstatic final Map<Direction, VoxelShape> LadderBlock.SHAPESprivate static final Map<Direction, VoxelShape> LecternBlock.SHAPESprivate static final Map<Direction, VoxelShape> PiglinWallSkullBlock.SHAPESprivate static final Map<Direction, VoxelShape> ShelfBlock.SHAPESprivate static final Map<Direction, VoxelShape> TrapDoorBlock.SHAPESprivate static final Map<Direction, VoxelShape> TripWireHookBlock.SHAPESprivate static final Map<Direction, VoxelShape> WallBannerBlock.SHAPESprivate static final Map<Direction, VoxelShape> WallSignBlock.SHAPESprivate static final Map<Direction, VoxelShape> WallSkullBlock.SHAPESprivate static final Map<Direction, VoxelShape> WallTorchBlock.SHAPESstatic final Map<Direction, VoxelShape> ShulkerBoxBlock.SHAPES_OPEN_SUPPORTprivate static final Map<Direction, VoxelShape> WallBlock.TEST_SHAPES_WALLstatic final EnumProperty<Direction> PointedDripstoneBlock.TIP_DIRECTIONMethods in net.minecraft.world.level.block that return DirectionModifier and TypeMethodDescriptionprivate static @Nullable DirectionPointedDripstoneBlock.calculateTipDirection(LevelReader level, BlockPos pos, Direction defaultTipDirection) private @Nullable DirectionChestBlock.candidatePartnerFacing(Level level, BlockPos pos, Direction neighbourDirection) MultifaceSpreader.SpreadPos.face()Returns the value of thefacerecord component.SideChainPartBlock.Neighbors.facing()Returns the value of thefacingrecord component.static @Nullable DirectionBedBlock.getBedOrientation(BlockGetter level, BlockPos pos) static DirectionBedBlock.getConnectedDirection(BlockState state) private static DirectionBellBlock.getConnectedDirection(BlockState state) static DirectionChestBlock.getConnectedDirection(BlockState state) protected static DirectionFaceAttachedHorizontalDirectionalBlock.getConnectedDirection(BlockState state) protected static DirectionLanternBlock.getConnectedDirection(BlockState state) ShelfBlock.getFacing(BlockState state) SideChainPartBlock.getFacing(BlockState state) static DirectionJigsawBlock.getFrontFacing(BlockState state) This represents the face that the puzzle piece is on.private static DirectionBedBlock.getNeighbourDirection(BedPart part, Direction facing) Given a bed part and the direction it's facing, find the direction to move to get the other bed partstatic DirectionJigsawBlock.getTopFacing(BlockState state) This represents the face that the line connector is on.Mirror the given facing according to this mirrorMethods in net.minecraft.world.level.block that return types with arguments of type DirectionModifier and TypeMethodDescriptionMultifaceBlock.availableFaces(BlockState state) SculkSpreader.ChargeCursor.getFacingData()MultifaceBlock.unpack(byte data) Methods in net.minecraft.world.level.block with parameters of type DirectionModifier and TypeMethodDescriptionprivate static booleanChorusFlowerBlock.allNeighborsEmpty(LevelReader level, BlockPos pos, @Nullable Direction ignore) booleanBellBlock.attemptToRing(@Nullable Entity ringingEntity, Level level, BlockPos pos, @Nullable Direction direction) booleanBellBlock.attemptToRing(Level level, BlockPos pos, @Nullable Direction direction) private static int[][]BedBlock.bedAboveStandUpOffsets(Direction forward) private static int[][]BedBlock.bedStandUpOffsets(Direction forward, Direction side) private static int[][]BedBlock.bedSurroundStandUpOffsets(Direction forward, Direction side) private static DripstoneThicknessPointedDripstoneBlock.calculateDripstoneThickness(LevelReader level, BlockPos pos, Direction tipDirection, boolean mergeOpposingTips) private static @Nullable DirectionPointedDripstoneBlock.calculateTipDirection(LevelReader level, BlockPos pos, Direction defaultTipDirection) static booleanFaceAttachedHorizontalDirectionalBlock.canAttach(LevelReader level, BlockPos pos, Direction direction) private booleanLadderBlock.canAttachTo(BlockGetter level, BlockPos pos, Direction direction) static booleanMultifaceBlock.canAttachTo(BlockGetter level, BlockPos pos, Direction directionTowardsNeighbour) static booleanMultifaceBlock.canAttachTo(BlockGetter level, Direction directionTowardsNeighbour, BlockPos neighbourPos, BlockState neighbourState) booleanWallHangingSignBlock.canAttachTo(LevelReader level, BlockState state, BlockPos attachPos, Direction attachFace) static booleanBaseFireBlock.canBePlacedAt(Level level, BlockPos pos, Direction forwardDirection) booleanFireBlock.canCatchFire(BlockGetter world, BlockPos pos, Direction face) Side sensitive version that calls the block function.private @Nullable DirectionChestBlock.candidatePartnerFacing(Level level, BlockPos pos, Direction neighbourDirection) booleanComposterBlock.EmptyContainer.canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleanComposterBlock.InputContainer.canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) booleanComposterBlock.OutputContainer.canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) default booleanMultifaceSpreader.SpreadConfig.canSpreadFrom(BlockState state, Direction face) booleanMultifaceSpreader.canSpreadInAnyDirection(BlockState state, BlockGetter level, BlockPos pos, Direction startingFace) private static booleanMossyCarpetBlock.canSupportAtFace(BlockGetter level, BlockPos pos, Direction direction) private booleanVineBlock.canSupportAtFace(BlockGetter level, BlockPos pos, Direction direction) static booleanBlock.canSupportCenter(LevelReader level, BlockPos belowPos, Direction direction) static booleanWallTorchBlock.canSurvive(LevelReader level, BlockPos pos, Direction facing) booleanComposterBlock.EmptyContainer.canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.booleanComposterBlock.InputContainer.canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) booleanComposterBlock.OutputContainer.canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) private static booleanStairBlock.canTakeShape(BlockState state, BlockGetter level, BlockPos pos, Direction neighbour) private voidFireBlock.checkBurnOut(Level level, BlockPos pos, int chance, RandomSource random, int age, Direction face) booleanFenceBlock.connectsTo(BlockState state, boolean faceSolid, Direction direction) private booleanWallBlock.connectsTo(BlockState state, boolean faceSolid, Direction direction) static booleanFenceGateBlock.connectsToDirection(BlockState state, Direction direction) private static voidPointedDripstoneBlock.createDripstone(LevelAccessor level, BlockPos pos, Direction direction, DripstoneThickness thickness) private static voidCommandBlock.executeChain(ServerLevel level, BlockPos blockPos, Direction direction) BedBlock.findBunkBedStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos, Direction forward, Direction side) BedBlock.findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos, Direction forward, float yaw) protected intAbstractFurnaceBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intBarrelBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intBeehiveBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intBrewingStandBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intCakeBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intCandleCakeBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intChestBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intChiseledBookShelfBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intCommandBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intComposterBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intCopperBulbBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intCopperGolemStatueBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intCrafterBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intCreakingHeartBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intDecoratedPotBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intDetectorRailBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intDispenserBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intEndPortalFrameBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intHopperBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intJukeboxBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intLavaCauldronBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intLayeredCauldronBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intLecternBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intRespawnAnchorBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intSculkSensorBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intShelfBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected intShulkerBoxBlock.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected ChestTypeChestBlock.getChestType(Level level, BlockPos pos, Direction facingDirection) private RedstoneSideRedStoneWireBlock.getConnectingSide(BlockGetter level, BlockPos pos, Direction direction) private RedstoneSideRedStoneWireBlock.getConnectingSide(BlockGetter level, BlockPos pos, Direction direction, boolean canConnectUp) protected intBasePressurePlateBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intButtonBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intDetectorRailBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intDiodeBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intLecternBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intLeverBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intLightningRodBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intObserverBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intRedstoneTorchBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intRedStoneWireBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) intSculkSensorBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intTrappedChestBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intTripWireHookBlock.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) static BooleanPropertyMultifaceBlock.getFaceProperty(Direction faceDirection) static BlockStateCopperChestBlock.getFromCopperBlock(Block copperBlock, Direction facing, Level level, BlockPos pos) default OptionalIntSelectableSlotContainer.getHitSlot(BlockHitResult hitResult, Direction blockFacing) private @Nullable ItemFrameComparatorBlock.getItemFrame(Level level, Direction direction, BlockPos tPos) private SideChainPartBlock.NeighborsSideChainPartBlock.getNeighbors(LevelAccessor level, BlockPos center, Direction facing) private static DirectionBedBlock.getNeighbourDirection(BedPart part, Direction facing) Given a bed part and the direction it's facing, find the direction to move to get the other bed partprivate SideChainPartBlock.NeighborSideChainPartBlock.Neighbors.getOrCreateNeighbor(Direction dir, Integer steps) static @Nullable EnumProperty<WallSide> MossyCarpetBlock.getPropertyForFace(Direction direction) static BooleanPropertyVineBlock.getPropertyForFace(Direction direction) SelectableSlotContainer.getRelativeHitCoordinatesForBlockFace(BlockHitResult hitResult, Direction blockFacing) Mirror.getRotation(Direction value) Determines the rotation that is equivalent to this mirror if the rotating object faces in the given directionprotected intBasePressurePlateBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intButtonBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) intCalibratedSculkSensorBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intDaylightDetectorBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intDetectorRailBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intDiodeBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) intJukeboxBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intLecternBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intLeverBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intLightningRodBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intObserverBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intPoweredBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intRedstoneTorchBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intRedstoneWallTorchBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intRedStoneWireBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intSculkSensorBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intTargetBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) intTestBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intTrappedChestBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) protected intTripWireHookBlock.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) int[]ComposterBlock.EmptyContainer.getSlotsForFace(Direction direction) int[]ComposterBlock.InputContainer.getSlotsForFace(Direction direction) int[]ComposterBlock.OutputContainer.getSlotsForFace(Direction direction) MultifaceSpreader.getSpreadFromFaceTowardDirection(BlockState state, BlockGetter level, BlockPos pos, Direction startingFace, Direction spreadDirection, MultifaceSpreader.SpreadPredicate canSpreadInto) abstract MultifaceSpreader.SpreadPosMultifaceSpreader.SpreadType.getSpreadPos(BlockPos pos, Direction spreadDirection, Direction fromFace) @Nullable BlockStateMultifaceBlock.getStateForPlacement(BlockState oldState, BlockGetter level, BlockPos placementPos, Direction placementDirection) @Nullable BlockStateMultifaceSpreader.DefaultSpreaderConfig.getStateForPlacement(BlockState oldState, BlockGetter level, BlockPos placementPos, Direction placementDirection) @Nullable BlockStateMultifaceSpreader.SpreadConfig.getStateForPlacement(BlockState oldState, BlockGetter level, BlockPos placementPos, Direction placementDirection) private static voidPointedDripstoneBlock.grow(ServerLevel level, BlockPos growFromPos, Direction growToDirection) static booleanMultifaceBlock.hasFace(BlockState state, Direction faceDirection) default booleanMultifaceSpreader.SpreadConfig.hasFace(BlockState state, Direction face) static booleanVineBlock.isAcceptableNeighbour(BlockGetter level, BlockPos neighbourPos, Direction directionToNeighbour) static booleanBlock.isFaceFull(VoxelShape shape, Direction direction) protected booleanMultifaceBlock.isFaceSupported(Direction faceDirection) private static booleanPointedDripstoneBlock.isPointedDripstoneWithDirection(BlockState blockState, Direction tipDirection) private static booleanprivate booleanBellBlock.isProperHit(BlockState state, Direction clickedDirection, double clickY) abstract booleanSupportType.isSupporting(BlockState state, BlockGetter level, BlockPos pos, Direction direction) private static booleanPointedDripstoneBlock.isUnmergedTipWithDirection(BlockState state, Direction tipDirection) private static booleanSculkSpreader.ChargeCursor.isUnobstructed(LevelAccessor level, BlockPos from, Direction direction) private static booleanPointedDripstoneBlock.isValidPointedDripstonePlacement(LevelReader level, BlockPos pos, Direction tipDirection) booleanMultifaceBlock.isValidStateForPlacement(BlockGetter level, BlockState oldState, BlockPos placementPos, Direction placementDirection) Mirror the given facing according to this mirrorprivate static voidTripWireHookBlock.notifyNeighbors(Block block, Level level, BlockPos pos, Direction direction) booleanTntBlock.onCaughtFire(BlockState state, Level world, BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter) protected static booleanBigDripleafBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction facing) protected static booleanBigDripleafStemBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction facing) static voidBigDripleafBlock.placeWithRandomHeight(LevelAccessor level, RandomSource random, BlockPos stemBottomPos, Direction facing) static voidBlock.popResourceFromFace(Level level, BlockPos pos, Direction face, ItemStack itemStack) protected static booleanRedStoneWireBlock.shouldConnectTo(BlockState blockState, @Nullable Direction direction) booleanTripWireBlock.shouldConnectTo(BlockState blockState, Direction direction) static booleanBlock.shouldRenderFace(BlockState state, BlockState neighborState, Direction direction) Deprecated.Neo: use overload with level context insteadstatic booleanBlock.shouldRenderFace(BlockGetter level, BlockPos pos, BlockState state, BlockState neighborState, Direction direction) private BlockStateWallBlock.sideUpdate(LevelReader level, BlockPos pos, BlockState state, BlockPos neighbourPos, BlockState neighbour, Direction direction) protected booleanHalfTransparentBlock.skipRendering(BlockState state, BlockState neighborState, Direction direction) protected booleanIronBarsBlock.skipRendering(BlockState state, BlockState neighborState, Direction direction) protected booleanLeavesBlock.skipRendering(BlockState state, BlockState neighborState, Direction direction) protected booleanLiquidBlock.skipRendering(BlockState state, BlockState neighborState, Direction direction) protected booleanMangroveRootsBlock.skipRendering(BlockState state, BlockState neighborState, Direction direction) protected booleanPowderSnowBlock.skipRendering(BlockState state, BlockState neighborState, Direction direction) private static voidRedStoneWireBlock.spawnParticlesAlongLine(Level level, RandomSource random, BlockPos pos, int color, Direction side, Direction along, float from, float to) private longMultifaceSpreader.spreadFromFaceTowardAllDirections(BlockState state, LevelAccessor level, BlockPos pos, Direction startingFace, boolean postProcess) MultifaceSpreader.spreadFromFaceTowardDirection(BlockState state, LevelAccessor level, BlockPos pos, Direction fromFace, Direction spreadDirection, boolean postProcess) MultifaceSpreader.spreadFromFaceTowardRandomDirection(BlockState state, LevelAccessor level, BlockPos pos, Direction startingFace, RandomSource random, boolean postProcess) protected booleanMultifaceSpreader.DefaultSpreaderConfig.stateCanBeReplaced(BlockGetter level, BlockPos sourcePos, BlockPos placementPos, Direction placementDirection, BlockState existingState) booleanSculkVeinBlock.SculkVeinSpreaderConfig.stateCanBeReplaced(BlockGetter level, BlockPos sourcePos, BlockPos placementPos, Direction placementDirection, BlockState existingState) protected BlockStateAmethystClusterBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateAttachedStemBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBambooSaplingBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBambooStalkBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBannerBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBarrierBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBaseCoralPlantTypeBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBaseCoralWallFanBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBasePressurePlateBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBaseRailBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBaseTorchBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBedBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBeehiveBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBellBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBigDripleafBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBigDripleafStemBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) BrushableBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBubbleColumnBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCactusBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCakeBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCampfireBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCandleBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCandleCakeBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCarpetBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCeilingHangingSignBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateChainBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateChestBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateChorusFlowerBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateChorusPlantBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCocoaBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) ComparatorBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateConcretePowderBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateConduitBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCopperChestBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCopperGolemStatueBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCoralBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCoralFanBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCoralPlantBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCoralWallFanBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateCreakingHeartBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateDecoratedPotBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateDirtPathBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateDoorBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateDoublePlantBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateDriedGhastBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateEnderChestBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFaceAttachedHorizontalDirectionalBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFallingBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFarmlandBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFenceBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFenceGateBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFireBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFlowerPotBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateFrogspawnBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateGrowingPlantBodyBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateGrowingPlantHeadBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateHangingMossBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateHangingRootsBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateHeavyCoreBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateHugeMushroomBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateIronBarsBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateLadderBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateLanternBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateLeavesBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateLightBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction direction, BlockPos neighbourPos, BlockState neighbour, RandomSource random) protected BlockStateLightningRodBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateLiquidBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateMangrovePropaguleBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateMangroveRootsBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateMossyCarpetBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateMultifaceBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateNetherPortalBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateNoteBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateObserverBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) PitcherCropBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStatePointedDripstoneBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateRedstoneWallTorchBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateRedStoneWireBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateRepeaterBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateScaffoldingBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSculkSensorBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSculkShriekerBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSeagrassBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSeaPickleBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateShelfBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSignBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSlabBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSmallDripleafBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSnowLayerBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSnowyBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSoulFireBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSporeBlossomBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateStairBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateStandingSignBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateSugarCaneBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateTrapDoorBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateTripWireBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateTripWireHookBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateVegetationBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateVineBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateWallBannerBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateWallBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateWallHangingSignBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateWallSignBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateWallTorchBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateWaterloggedTransparentBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) Method parameters in net.minecraft.world.level.block with type arguments of type DirectionModifier and TypeMethodDescriptiondefault booleanSculkBehaviour.attemptSpreadVein(LevelAccessor level, BlockPos pos, BlockState state, @Nullable Collection<Direction> facings, boolean postProcess) static <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour(BlockEntityType<S> entityType, Function<BlockState, DoubleBlockCombiner.BlockType> typeResolver, Function<BlockState, Direction> connectionResolver, Property<Direction> facingProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChecker) default Function<BlockState, VoxelShape> SegmentableBlock.getShapeCalculator(EnumProperty<Direction> facing, IntegerProperty amount) BonemealableBlock.getSpreadableNeighbourPos(List<Direction> directions, LevelReader level, BlockPos pos, BlockState blockToPlace) default BlockStateSegmentableBlock.getStateForPlacement(BlockPlaceContext context, Block block, IntegerProperty segment, EnumProperty<Direction> facing) private BlockStateMultifaceBlock.mapDirections(BlockState state, Function<Direction, Direction> mapping) private BlockStateMultifaceBlock.mapDirections(BlockState state, Function<Direction, Direction> mapping) static byteMultifaceBlock.pack(Collection<Direction> directions) static booleanSculkVeinBlock.regrow(LevelAccessor level, BlockPos pos, BlockState existing, Collection<Direction> faces) Constructors in net.minecraft.world.level.block with parameters of type DirectionModifierConstructorDescriptionGrowingPlantBlock(BlockBehaviour.Properties properties, Direction growthDirection, VoxelShape shape, boolean scheduleFluidTicks) GrowingPlantBodyBlock(BlockBehaviour.Properties properties, Direction growthDirection, VoxelShape shape, boolean scheduleFluidTicks) GrowingPlantHeadBlock(BlockBehaviour.Properties properties, Direction growthDirection, VoxelShape shape, boolean scheduleFluidTicks, double growPerTickProbability) Neighbors(SideChainPartBlock block, LevelAccessor level, Direction facing, BlockPos center, Map<BlockPos, SideChainPartBlock.Neighbor> cache) Creates an instance of aNeighborsrecord class.Creates an instance of aSpreadPosrecord class.Constructor parameters in net.minecraft.world.level.block with type arguments of type DirectionModifierConstructorDescriptionprivateChargeCursor(BlockPos pos, int charge, int decayDelay, int updateDelay, Optional<Set<Direction>> facings) -
Uses of Direction in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as DirectionModifier and TypeFieldDescriptionBellBlockEntity.clickDirectionprivate DirectionHopperBlockEntity.facingprivate @Nullable DirectionBrushableBlockEntity.hitDirectionMethods in net.minecraft.world.level.block.entity that return DirectionModifier and TypeMethodDescriptionDecoratedPotBlockEntity.getDirection()@Nullable DirectionBrushableBlockEntity.getHitDirection()Methods in net.minecraft.world.level.block.entity with parameters of type DirectionModifier and TypeMethodDescriptionstatic ItemStackHopperBlockEntity.addItem(@Nullable Container from, Container container, ItemStack itemStack, @Nullable Direction direction) Attempts to place the passed stack in the container, using as many slots as required.booleanBrushableBlockEntity.brush(long gameTime, ServerLevel level, LivingEntity user, Direction direction, ItemStack brush) private static booleanHopperBlockEntity.canPlaceItemInContainer(Container container, ItemStack itemStack, int slot, @Nullable Direction direction) booleanAbstractFurnaceBlockEntity.canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) booleanBrewingStandBlockEntity.canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) booleanShulkerBoxBlockEntity.canPlaceItemThroughFace(int slot, ItemStack itemStack, @Nullable Direction direction) private static booleanHopperBlockEntity.canTakeItemFromContainer(Container into, Container from, ItemStack itemStack, int slot, Direction direction) booleanAbstractFurnaceBlockEntity.canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) booleanBrewingStandBlockEntity.canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) booleanShulkerBoxBlockEntity.canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction) static ContainerOrHandlerHopperBlockEntity.getContainerOrHandlerAt(Level level, BlockPos pos, @Nullable Direction side) private static ContainerOrHandlerHopperBlockEntity.getContainerOrHandlerAt(Level level, BlockPos pos, BlockState state, double x, double y, double z, @Nullable Direction side) private static int[]int[]AbstractFurnaceBlockEntity.getSlotsForFace(Direction direction) int[]BrewingStandBlockEntity.getSlotsForFace(Direction direction) int[]ShulkerBoxBlockEntity.getSlotsForFace(Direction direction) private static booleanHopperBlockEntity.isFullContainer(Container container, Direction direction) voidbooleanTheEndGatewayBlockEntity.shouldRenderFace(Direction direction) booleanTheEndPortalBlockEntity.shouldRenderFace(Direction direction) private static ItemStackHopperBlockEntity.tryMoveInItem(@Nullable Container from, Container container, ItemStack itemStack, int slot, @Nullable Direction direction) private static booleanHopperBlockEntity.tryTakeInItemFromSlot(Hopper hopper, Container container, int slot, Direction direction) Pulls from the specified slot in the container and places in any available slot in the hopper. -
Uses of Direction in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault with parameters of type DirectionModifier and TypeMethodDescriptionprivate static Vec3VaultBlockEntity.Client.keyholePos(BlockPos blockPos, Direction blockFacing) -
Uses of Direction in net.minecraft.world.level.block.piston
Fields in net.minecraft.world.level.block.piston declared as DirectionModifier and TypeFieldDescriptionprivate DirectionPistonMovingBlockEntity.directionprivate final DirectionPistonStructureResolver.pistonDirectionprivate final DirectionPistonStructureResolver.pushDirectionFields in net.minecraft.world.level.block.piston with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final EnumProperty<Direction> MovingPistonBlock.FACINGprivate static final ThreadLocal<Direction> PistonMovingBlockEntity.NOCLIPprivate static final Map<Direction, VoxelShape> PistonBaseBlock.SHAPESprivate static final Map<Direction, VoxelShape> PistonHeadBlock.SHAPESprivate static final Map<Direction, VoxelShape> PistonHeadBlock.SHAPES_SHORTMethods in net.minecraft.world.level.block.piston that return DirectionModifier and TypeMethodDescriptionPistonMovingBlockEntity.getDirection()PistonMovingBlockEntity.getMovementDirection()PistonMovingBlockEntity.getPushDirection()PistonStructureResolver.getPushDirection()Methods in net.minecraft.world.level.block.piston with parameters of type DirectionModifier and TypeMethodDescriptionprivate booleanPistonStructureResolver.addBlockLine(BlockPos start, Direction direction) private static voidPistonMovingBlockEntity.fixEntityWithinPistonBase(BlockPos pos, Entity entity, Direction direction, double deltaProgress) private static doublePistonMovingBlockEntity.getMovement(AABB aabbToBeOutsideOf, Direction movement, AABB aabb) static AABBPistonMath.getMovementArea(AABB aabb, Direction direction, double amount) private booleanPistonBaseBlock.getNeighborSignal(SignalGetter level, BlockPos pos, Direction pushDirection) static booleanPistonBaseBlock.isPushable(BlockState state, Level level, BlockPos pos, Direction direction, boolean allowDestroyable, Direction connectionDirection) Checks if the piston can push the given BlockState.private booleanPistonBaseBlock.moveBlocks(Level level, BlockPos pistonPos, Direction direction, boolean extending) private static voidPistonMovingBlockEntity.moveEntityByPiston(Direction pistonDirection, Entity entity, double delta, Direction movement) static BlockEntityMovingPistonBlock.newMovingBlockEntity(BlockPos position, BlockState blockState, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) protected BlockStatePistonHeadBlock.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) Constructors in net.minecraft.world.level.block.piston with parameters of type DirectionModifierConstructorDescriptionPistonMovingBlockEntity(BlockPos worldPosition, BlockState blockState, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) PistonStructureResolver(Level level, BlockPos pistonPos, Direction direction, boolean extending) -
Uses of Direction in net.minecraft.world.level.block.state
Fields in net.minecraft.world.level.block.state declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]BlockBehaviour.BlockStateBase.Cache.DIRECTIONSprivate static final Direction[]BlockBehaviour.BlockStateBase.DIRECTIONSprotected static final Direction[]BlockBehaviour.UPDATE_SHAPE_ORDERMethods in net.minecraft.world.level.block.state with parameters of type DirectionModifier and TypeMethodDescriptionfinal booleanBlockBehaviour.BlockStateBase.entityCanStandOnFace(BlockGetter level, BlockPos pos, Entity entity, Direction faceDirection) intBlockBehaviour.BlockStateBase.getAnalogOutputSignal(Level level, BlockPos pos, Direction direction) protected intBlockBehaviour.getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) intBlockBehaviour.BlockStateBase.getDirectSignal(BlockGetter level, BlockPos pos, Direction direction) protected intBlockBehaviour.getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the direct signal this block emits in the given direction.BlockBehaviour.BlockStateBase.getFaceOcclusionShape(Direction direction) private static intBlockBehaviour.BlockStateBase.Cache.getFaceSupportIndex(Direction direction, SupportType supportType) intBlockBehaviour.BlockStateBase.getSignal(BlockGetter level, BlockPos pos, Direction direction) protected intBlockBehaviour.getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.booleanBlockBehaviour.BlockStateBase.Cache.isFaceSturdy(Direction direction, SupportType supportType) booleanBlockBehaviour.BlockStateBase.isFaceSturdy(BlockGetter level, BlockPos pos, Direction direction) booleanBlockBehaviour.BlockStateBase.isFaceSturdy(BlockGetter level, BlockPos pos, Direction direction, SupportType supportType) booleanBlockBehaviour.BlockStateBase.skipRendering(BlockState neighborState, Direction direction) protected booleanBlockBehaviour.skipRendering(BlockState state, BlockState neighborState, Direction direction) BlockBehaviour.BlockStateBase.updateShape(LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) protected BlockStateBlockBehaviour.updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random) -
Uses of Direction in net.minecraft.world.level.block.state.pattern
Fields in net.minecraft.world.level.block.state.pattern declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionBlockPattern.BlockPatternMatch.forwardsprivate final DirectionBlockPattern.BlockPatternMatch.upMethods in net.minecraft.world.level.block.state.pattern that return DirectionModifier and TypeMethodDescriptionBlockPattern.BlockPatternMatch.getForwards()BlockPattern.BlockPatternMatch.getUp()Methods in net.minecraft.world.level.block.state.pattern with parameters of type DirectionModifier and TypeMethodDescriptionprivate @Nullable BlockPattern.BlockPatternMatchBlockPattern.matches(BlockPos origin, Direction forwards, Direction up, LoadingCache<BlockPos, BlockInWorld> cache) Checks that the given pattern invalid input: '&' rotation is at the block coordinates.@Nullable BlockPattern.BlockPatternMatchBlockPattern.matches(LevelReader level, BlockPos origin, Direction forwards, Direction up) protected static BlockPosBlockPattern.translateAndRotate(BlockPos origin, Direction forwardsDirection, Direction upDirection, int right, int down, int forwards) Offsets the position of pos in the direction of finger and thumb facing by offset amounts, follows the right-hand rule for cross products (finger, thumb, palm)Constructors in net.minecraft.world.level.block.state.pattern with parameters of type DirectionModifierConstructorDescriptionBlockPatternMatch(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, BlockInWorld> cache, int width, int height, int depth) -
Uses of Direction in net.minecraft.world.level.block.state.properties
Fields in net.minecraft.world.level.block.state.properties declared as DirectionFields in net.minecraft.world.level.block.state.properties with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final EnumProperty<Direction> BlockStateProperties.FACINGstatic final EnumProperty<Direction> BlockStateProperties.FACING_HOPPERstatic final EnumProperty<Direction> BlockStateProperties.HORIZONTAL_FACINGstatic final EnumProperty<Direction> BlockStateProperties.VERTICAL_DIRECTIONMethods in net.minecraft.world.level.block.state.properties that return DirectionMethods in net.minecraft.world.level.block.state.properties that return types with arguments of type DirectionMethods in net.minecraft.world.level.block.state.properties with parameters of type DirectionModifier and TypeMethodDescriptionstatic intRotationSegment.convertToSegment(Direction direction) Constructors in net.minecraft.world.level.block.state.properties with parameters of type Direction -
Uses of Direction in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk declared as DirectionMethods in net.minecraft.world.level.chunk with parameters of type DirectionModifier and TypeMethodDescriptionUpgradeData.BlockFixer.updateShape(BlockState state, Direction direction, BlockState neighbour, LevelAccessor level, BlockPos pos, BlockPos neighbourPos) private static BlockStateUpgradeData.updateState(BlockState state, Direction direction, LevelAccessor level, BlockPos pos, BlockPos neighbourPos) -
Uses of Direction in net.minecraft.world.level.levelgen
Methods in net.minecraft.world.level.levelgen with parameters of type DirectionModifier and TypeMethodDescriptionprivate static OptionalIntColumn.scanDirection(LevelSimulatedReader level, int searchRange, Predicate<BlockState> insideColumn, Predicate<BlockState> validEdge, BlockPos.MutableBlockPos mutablePos, int nearestEmptyY, Direction direction) Scans for a sequence of states in a givendirection, up to a length ofmaxDistancewhich satisfycolumnPredicate, and ending with a state which satisfiestipPredicate. -
Uses of Direction in net.minecraft.world.level.levelgen.blockpredicates
Fields in net.minecraft.world.level.levelgen.blockpredicates declared as DirectionMethods in net.minecraft.world.level.levelgen.blockpredicates with parameters of type DirectionModifier and TypeMethodDescriptionstatic BlockPredicateBlockPredicate.hasSturdyFace(Direction direction) static BlockPredicateBlockPredicate.hasSturdyFace(Vec3i offset, Direction direction) Constructors in net.minecraft.world.level.levelgen.blockpredicates with parameters of type Direction -
Uses of Direction in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]DeltaFeature.DIRECTIONSprivate static final Direction[]GeodeFeature.DIRECTIONSprivate static final Direction[]WeepingVinesFeature.DIRECTIONSMethods in net.minecraft.world.level.levelgen.feature that return types with arguments of type DirectionModifier and TypeMethodDescriptionPointedDripstoneFeature.getTipDirection(LevelAccessor level, BlockPos pos, RandomSource random) Methods in net.minecraft.world.level.levelgen.feature with parameters of type DirectionModifier and TypeMethodDescriptionprotected static voidDripstoneUtils.buildBaseToTipColumn(Direction direction, int totalLength, boolean mergedTip, Consumer<BlockState> consumer) private booleanFallenTreeFeature.canPlaceEntireFallenLog(WorldGenLevel level, int logLength, BlockPos.MutableBlockPos logStartPos, Direction direction) private static BlockStateDripstoneUtils.createPointedDripstone(Direction direction, DripstoneThickness thickness) private static Function<BlockState, BlockState> FallenTreeFeature.getSidewaysStateModifier(Direction direction) protected static voidDripstoneUtils.growPointedDripstone(LevelAccessor level, BlockPos startPos, Direction tipDirection, int height, boolean mergedTip) private static booleanWaterloggedVegetationPatchFeature.isExposedDirection(WorldGenLevel level, BlockPos pos, BlockPos.MutableBlockPos testPos, Direction direction) private booleanUnderwaterMagmaFeature.isVisibleFromOutside(LevelAccessor level, BlockPos pos, Direction coveredDirection) private voidFallenTreeFeature.placeFallenLog(FallenTreeConfiguration config, WorldGenLevel level, RandomSource random, int logLength, BlockPos.MutableBlockPos logStartPos, Direction direction) private voidDripstoneClusterFeature.replaceBlocksWithDripstoneBlocks(WorldGenLevel level, BlockPos firstPos, int maxCount, Direction direction) Method parameters in net.minecraft.world.level.levelgen.feature with type arguments of type DirectionModifier and TypeMethodDescriptionstatic booleanMultifaceGrowthFeature.placeGrowthIfPossible(WorldGenLevel level, BlockPos pos, BlockState oldState, MultifaceGrowthConfiguration config, RandomSource random, List<Direction> placementDirections) -
Uses of Direction in net.minecraft.world.level.levelgen.feature.configurations
Fields in net.minecraft.world.level.levelgen.feature.configurations declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionBlockColumnConfiguration.directionThe field for thedirectionrecord component.Fields in net.minecraft.world.level.levelgen.feature.configurations with type parameters of type DirectionModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.ObjectArrayList<Direction> MultifaceGrowthConfiguration.validDirectionsMethods in net.minecraft.world.level.levelgen.feature.configurations that return DirectionModifier and TypeMethodDescriptionBlockColumnConfiguration.direction()Returns the value of thedirectionrecord component.Methods in net.minecraft.world.level.levelgen.feature.configurations that return types with arguments of type DirectionModifier and TypeMethodDescriptionMultifaceGrowthConfiguration.getShuffledDirections(RandomSource random) MultifaceGrowthConfiguration.getShuffledDirectionsExcept(RandomSource random, Direction excludeDirection) Methods in net.minecraft.world.level.levelgen.feature.configurations with parameters of type DirectionModifier and TypeMethodDescriptionMultifaceGrowthConfiguration.getShuffledDirectionsExcept(RandomSource random, Direction excludeDirection) Constructors in net.minecraft.world.level.levelgen.feature.configurations with parameters of type DirectionModifierConstructorDescriptionBlockColumnConfiguration(List<BlockColumnConfiguration.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates an instance of aBlockColumnConfigurationrecord class. -
Uses of Direction in net.minecraft.world.level.levelgen.feature.rootplacers
Methods in net.minecraft.world.level.levelgen.feature.rootplacers with parameters of type DirectionModifier and TypeMethodDescriptionMangroveRootPlacer.potentialRootPositions(BlockPos pos, Direction prevDir, RandomSource random, BlockPos rootOrigin) private booleanMangroveRootPlacer.simulateRoots(LevelSimulatedReader level, RandomSource random, BlockPos rootPos, Direction dir, BlockPos rootOrigin, List<BlockPos> rootPositions, int layer) -
Uses of Direction in net.minecraft.world.level.levelgen.feature.treedecorators
Fields in net.minecraft.world.level.levelgen.feature.treedecorators declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]BeehiveDecorator.SPAWN_DIRECTIONSprivate static final DirectionBeehiveDecorator.WORLDGEN_FACINGFields in net.minecraft.world.level.levelgen.feature.treedecorators with type parameters of type DirectionModifier and TypeFieldDescriptionAttachedToLeavesDecorator.directionsAttachedToLogsDecorator.directionsMethods in net.minecraft.world.level.levelgen.feature.treedecorators with parameters of type DirectionModifier and TypeMethodDescriptionprivate booleanAttachedToLeavesDecorator.hasRequiredEmptyBlocks(TreeDecorator.Context context, BlockPos leafPos, Direction direction) Constructor parameters in net.minecraft.world.level.levelgen.feature.treedecorators with type arguments of type DirectionModifierConstructorDescriptionAttachedToLeavesDecorator(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<Direction> directions) AttachedToLogsDecorator(float probability, BlockStateProvider blockProvider, List<Direction> directions) -
Uses of Direction in net.minecraft.world.level.levelgen.feature.trunkplacers
Methods in net.minecraft.world.level.levelgen.feature.trunkplacers with parameters of type DirectionModifier and TypeMethodDescriptionprivate FoliagePlacer.FoliageAttachmentCherryTrunkPlacer.generateBranch(WorldGenLevel level, BiConsumer<BlockPos, BlockState> trunkSetter, RandomSource random, int treeHeight, BlockPos origin, TreeConfiguration config, Function<BlockState, BlockState> sidewaysStateModifier, Direction branchDirection, int offsetFromOrigin, boolean middleContinuesUpwards, BlockPos.MutableBlockPos logPos) private voidUpwardsBranchingTrunkPlacer.placeBranch(WorldGenLevel level, BiConsumer<BlockPos, BlockState> trunkSetter, RandomSource random, int treeHeight, TreeConfiguration config, List<FoliagePlacer.FoliageAttachment> attachments, BlockPos.MutableBlockPos logPos, int currentHeight, Direction branchDir, int branchPos, int branchSteps) -
Uses of Direction in net.minecraft.world.level.levelgen.placement
Fields in net.minecraft.world.level.levelgen.placement declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionCaveSurface.directionprivate final DirectionEnvironmentScanPlacement.directionOfSearchMethods in net.minecraft.world.level.levelgen.placement that return DirectionMethods in net.minecraft.world.level.levelgen.placement with parameters of type DirectionModifier and TypeMethodDescriptionstatic EnvironmentScanPlacementEnvironmentScanPlacement.scanningFor(Direction directionOfSearch, BlockPredicate targetCondition, int maxSteps) static EnvironmentScanPlacementEnvironmentScanPlacement.scanningFor(Direction directionOfSearch, BlockPredicate targetCondition, BlockPredicate allowedSearchCondition, int maxSteps) Constructors in net.minecraft.world.level.levelgen.placement with parameters of type DirectionModifierConstructorDescriptionprivateCaveSurface(Direction direction, int y, String id) privateEnvironmentScanPlacement(Direction directionOfSearch, BlockPredicate targetCondition, BlockPredicate allowedSearchCondition, int maxSteps) -
Uses of Direction in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure declared as DirectionMethods in net.minecraft.world.level.levelgen.structure that return DirectionModifier and TypeMethodDescription@Nullable DirectionStructurePiece.getOrientation()protected static DirectionStructurePiece.getRandomHorizontalDirection(RandomSource random) Methods in net.minecraft.world.level.levelgen.structure with parameters of type DirectionModifier and TypeMethodDescriptionprotected booleanStructurePiece.createDispenser(WorldGenLevel level, BoundingBox chunkBB, RandomSource random, int x, int y, int z, Direction facing, ResourceKey<LootTable> lootTable) protected static BoundingBoxStructurePiece.makeBoundingBox(int x, int y, int z, Direction direction, int width, int height, int depth) static BoundingBoxBoundingBox.orientBox(int footX, int footY, int footZ, int offX, int offY, int offZ, int width, int height, int depth, Direction direction) Create a bounding box with the specified dimensions and rotate it.voidStructurePiece.setOrientation(@Nullable Direction orientation) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type DirectionModifierConstructorDescriptionprotectedScatteredFeaturePiece(StructurePieceType type, int west, int floor, int north, int width, int height, int depth, Direction direction) -
Uses of Direction in net.minecraft.world.level.levelgen.structure.structures
Fields in net.minecraft.world.level.levelgen.structure.structures declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionMineshaftPieces.MineShaftCrossing.directionMethods in net.minecraft.world.level.levelgen.structure.structures that return DirectionModifier and TypeMethodDescription@Nullable DirectionWoodlandMansionPieces.MansionGrid.get1x2RoomDirection(WoodlandMansionPieces.SimpleGrid grid, int x, int y, int floorNum, int roomId) Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type DirectionModifier and TypeMethodDescriptionprivate voidWoodlandMansionPieces.MansionPiecePlacer.addRoom1x1(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos roomPos, Rotation rotation, Direction doorDir, WoodlandMansionPieces.FloorRoomCollection rooms) private voidWoodlandMansionPieces.MansionPiecePlacer.addRoom1x2(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos roomPos, Rotation rotation, Direction roomDir, Direction doorDir, WoodlandMansionPieces.FloorRoomCollection rooms, boolean isStairsRoom) private voidWoodlandMansionPieces.MansionPiecePlacer.addRoom2x2(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos roomPos, Rotation rotation, Direction roomDir, Direction doorDir, WoodlandMansionPieces.FloorRoomCollection rooms) OceanMonumentPieces.FitDoubleXRoom.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentPieces.FitDoubleXYRoom.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentPieces.FitDoubleYRoom.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentPieces.FitDoubleYZRoom.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentPieces.FitDoubleZRoom.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentPieces.FitSimpleRoom.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentPieces.FitSimpleTopRoom.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentPieces.MonumentRoomFitter.create(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) static @Nullable NetherFortressPieces.BridgeCrossingNetherFortressPieces.BridgeCrossing.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.BridgeEndFillerNetherFortressPieces.BridgeEndFiller.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.BridgeStraightNetherFortressPieces.BridgeStraight.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleCorridorStairsPieceNetherFortressPieces.CastleCorridorStairsPiece.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleCorridorTBalconyPieceNetherFortressPieces.CastleCorridorTBalconyPiece.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleEntranceNetherFortressPieces.CastleEntrance.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleSmallCorridorCrossingPieceNetherFortressPieces.CastleSmallCorridorCrossingPiece.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleSmallCorridorLeftTurnPieceNetherFortressPieces.CastleSmallCorridorLeftTurnPiece.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleSmallCorridorPieceNetherFortressPieces.CastleSmallCorridorPiece.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleSmallCorridorRightTurnPieceNetherFortressPieces.CastleSmallCorridorRightTurnPiece.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.CastleStalkRoomNetherFortressPieces.CastleStalkRoom.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.MonsterThroneNetherFortressPieces.MonsterThrone.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, int genDepth, Direction direction) static @Nullable NetherFortressPieces.RoomCrossingNetherFortressPieces.RoomCrossing.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable NetherFortressPieces.StairsRoomNetherFortressPieces.StairsRoom.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, int genDepth, Direction direction) static @Nullable StrongholdPieces.ChestCorridorStrongholdPieces.ChestCorridor.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.FiveCrossingStrongholdPieces.FiveCrossing.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.LeftTurnStrongholdPieces.LeftTurn.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.LibraryStrongholdPieces.Library.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.PortalRoomStrongholdPieces.PortalRoom.createPiece(StructurePieceAccessor structurePieceAccessor, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.PrisonHallStrongholdPieces.PrisonHall.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.RightTurnStrongholdPieces.RightTurn.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.RoomCrossingStrongholdPieces.RoomCrossing.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.StairsDownStrongholdPieces.StairsDown.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.StraightStrongholdPieces.Straight.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) static @Nullable StrongholdPieces.StraightStairsDownStrongholdPieces.StraightStairsDown.createPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth) private static @Nullable MineshaftPieces.MineShaftPieceMineshaftPieces.createRandomShaftPiece(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int genDepth, MineshaftStructure.Type type) private static @Nullable NetherFortressPieces.NetherBridgePieceNetherFortressPieces.findAndCreateBridgePieceFactory(NetherFortressPieces.PieceWeight piece, StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) private static @Nullable StrongholdPieces.StrongholdPieceStrongholdPieces.findAndCreatePieceFactory(Class<? extends StrongholdPieces.StrongholdPiece> pieceClass, StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) static @Nullable BoundingBoxMineshaftPieces.MineShaftCorridor.findCorridorSize(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction) static @Nullable BoundingBoxMineshaftPieces.MineShaftCrossing.findCrossing(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction) static @Nullable BoundingBoxStrongholdPieces.FillerCorridor.findPieceBox(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction) static @Nullable BoundingBoxMineshaftPieces.MineShaftStairs.findStairs(StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction) private static @Nullable MineshaftPieces.MineShaftPieceMineshaftPieces.generateAndAddPiece(StructurePiece startPiece, StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) private @Nullable StructurePieceNetherFortressPieces.NetherBridgePiece.generateAndAddPiece(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth, boolean isCastle) private static @Nullable StructurePieceStrongholdPieces.generateAndAddPiece(StrongholdPieces.StartPiece startPiece, StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) private @Nullable NetherFortressPieces.NetherBridgePieceNetherFortressPieces.NetherBridgePiece.generatePiece(NetherFortressPieces.StartPiece startPiece, List<NetherFortressPieces.PieceWeight> currentPieces, StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) private static @Nullable StrongholdPieces.StrongholdPieceStrongholdPieces.generatePieceFromSmallDoor(StrongholdPieces.StartPiece startPiece, StructurePieceAccessor structurePieceAccessor, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) private static BoundingBoxOceanMonumentPieces.OceanMonumentPiece.makeBoundingBox(Direction orientation, OceanMonumentPieces.RoomDefinition roomDefinition, int roomWidth, int roomHeight, int roomDepth) private voidWoodlandMansionPieces.MansionGrid.recursiveCorridor(WoodlandMansionPieces.SimpleGrid grid, int x, int y, Direction heading, int depth) voidOceanMonumentPieces.RoomDefinition.setConnection(Direction direction, OceanMonumentPieces.RoomDefinition definition) private voidWoodlandMansionPieces.MansionPiecePlacer.traverseOuterWalls(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, WoodlandMansionPieces.PlacementData data, WoodlandMansionPieces.SimpleGrid grid, Direction gridDirection, int startX, int startY, int endX, int endY) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type DirectionModifierConstructorDescriptionprotectedBridgeCrossing(int west, int north, Direction direction) BridgeCrossing(int genDepth, BoundingBox boundingBox, Direction direction) BridgeEndFiller(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) BridgeStraight(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) CastleCorridorStairsPiece(int genDepth, BoundingBox boundingBox, Direction direction) CastleCorridorTBalconyPiece(int genDepth, BoundingBox boundingBox, Direction direction) CastleEntrance(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) CastleSmallCorridorCrossingPiece(int genDepth, BoundingBox boundingBox, Direction direction) CastleSmallCorridorLeftTurnPiece(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) CastleSmallCorridorPiece(int genDepth, BoundingBox boundingBox, Direction direction) CastleSmallCorridorRightTurnPiece(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) CastleStalkRoom(int genDepth, BoundingBox boundingBox, Direction direction) ChestCorridor(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) FillerCorridor(int genDepth, BoundingBox boundingBox, Direction direction) FiveCrossing(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) LeftTurn(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) Library(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) MineShaftCorridor(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction, MineshaftStructure.Type type) MineShaftCrossing(int genDepth, BoundingBox boundingBox, @Nullable Direction direction, MineshaftStructure.Type type) MineShaftStairs(int genDepth, BoundingBox boundingBox, Direction direction, MineshaftStructure.Type type) MonsterThrone(int genDepth, BoundingBox boundingBox, Direction direction) MonumentBuilding(RandomSource random, int west, int north, Direction direction) OceanMonumentCoreRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentDoubleXRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentDoubleXYRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentDoubleYRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentDoubleYZRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentDoubleZRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentEntryRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentPenthouse(Direction orientation, BoundingBox boundingBox) protectedOceanMonumentPiece(StructurePieceType type, int genDepth, Direction orientation, OceanMonumentPieces.RoomDefinition roomDefinition, int roomWidth, int roomHeight, int roomDepth) OceanMonumentPiece(StructurePieceType type, Direction orientation, int genDepth, BoundingBox boundingBox) OceanMonumentSimpleRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition, RandomSource random) OceanMonumentSimpleTopRoom(Direction orientation, OceanMonumentPieces.RoomDefinition definition) OceanMonumentWingRoom(Direction orientation, BoundingBox boundingBox, int randomValue) PortalRoom(int genDepth, BoundingBox boundingBox, Direction direction) PrisonHall(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) RightTurn(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) RoomCrossing(int genDepth, BoundingBox boundingBox, Direction direction) RoomCrossing(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) StairsDown(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) StairsDown(StructurePieceType type, int genDepth, int west, int north, Direction direction) StairsRoom(int genDepth, BoundingBox boundingBox, Direction direction) Straight(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) StraightStairsDown(int genDepth, RandomSource random, BoundingBox boundingBox, Direction direction) -
Uses of Direction in net.minecraft.world.level.lighting
Fields in net.minecraft.world.level.lighting declared as DirectionModifier and TypeFieldDescriptionprotected static final Direction[]LightEngine.PROPAGATION_DIRECTIONSMethods in net.minecraft.world.level.lighting with parameters of type DirectionModifier and TypeMethodDescriptionprivate static booleanSkyLightEngine.crossedSectionEdge(Direction propagationDirection, int x, int z) static longLightEngine.QueueEntry.decreaseSkipOneDirection(int oldFromLevel, Direction skipDirection) static intLightEngine.getLightBlockInto(BlockState fromState, BlockState toState, Direction direction, int simpleOpacity) static VoxelShapeLightEngine.getOcclusionShape(BlockState state, Direction direction) static longLightEngine.QueueEntry.increaseOnlyOneDirection(int newFromLevel, boolean fromEmptyShape, Direction direction) static longLightEngine.QueueEntry.increaseSkipOneDirection(int newFromLevel, boolean fromEmptyShape, Direction skipDirection) private voidSkyLightEngine.propagateFromEmptySections(long toNode, Direction propagationDirection, int toLevel, boolean increase, int emptySectionsBelow) protected booleanLightEngine.shapeOccludes(BlockState fromState, BlockState toState, Direction direction) static booleanLightEngine.QueueEntry.shouldPropagateInDirection(long entry, Direction direction) private static longLightEngine.QueueEntry.withDirection(long entry, Direction direction) private static longLightEngine.QueueEntry.withoutDirection(long entry, Direction direction) -
Uses of Direction in net.minecraft.world.level.material
Fields in net.minecraft.world.level.material declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionFlowingFluid.BlockStatePairKey.directionThe field for thedirectionrecord component.Methods in net.minecraft.world.level.material that return DirectionModifier and TypeMethodDescriptionFlowingFluid.BlockStatePairKey.direction()Returns the value of thedirectionrecord component.Methods in net.minecraft.world.level.material that return types with arguments of type DirectionModifier and TypeMethodDescriptionprotected Map<Direction, FluidState> FlowingFluid.getSpread(ServerLevel level, BlockPos pos, BlockState state) Methods in net.minecraft.world.level.material with parameters of type DirectionModifier and TypeMethodDescriptionbooleanEmptyFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) protected abstract booleanFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) booleanFluidState.canBeReplacedWith(BlockGetter level, BlockPos pos, Fluid other, Direction direction) booleanLavaFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) booleanWaterFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) private booleanFlowingFluid.canMaybePassThrough(BlockGetter level, BlockPos sourcePos, BlockState sourceState, Direction direction, BlockPos testPos, BlockState testState, FluidState testFluidState) private booleanFlowingFluid.canPassThrough(BlockGetter level, Fluid fluid, BlockPos sourcePos, BlockState sourceState, Direction direction, BlockPos testPos, BlockState testState, FluidState testFluidState) private static booleanFlowingFluid.canPassThroughWall(Direction direction, BlockGetter level, BlockPos sourcePos, BlockState sourceState, BlockPos targetPos, BlockState targetState) protected intFlowingFluid.getSlopeDistance(LevelReader level, BlockPos pos, int pass, Direction from, BlockState state, FlowingFluid.SpreadContext context) private booleanLavaFluid.isFlammable(LevelReader level, BlockPos pos, Direction face) protected booleanFlowingFluid.isSolidFace(BlockGetter level, BlockPos pos, Direction direction) protected voidFlowingFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState state, Direction direction, FluidState target) protected voidLavaFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState state, Direction direction, FluidState target) Constructors in net.minecraft.world.level.material with parameters of type DirectionModifierConstructorDescriptionprivateBlockStatePairKey(BlockState first, BlockState second, Direction direction) Creates an instance of aBlockStatePairKeyrecord class. -
Uses of Direction in net.minecraft.world.level.pathfinder
Methods in net.minecraft.world.level.pathfinder with parameters of type DirectionModifier and TypeMethodDescriptionprotected @Nullable NodeWalkNodeEvaluator.findAcceptedNode(int x, int y, int z, int jumpSize, double nodeHeight, Direction travelDirection, PathType blockPathTypeCurrent) private @Nullable NodeWalkNodeEvaluator.tryJumpOn(int x, int y, int z, int jumpSize, double nodeHeight, Direction travelDirection, PathType blockPathTypeCurrent, BlockPos.MutableBlockPos reusablePos) -
Uses of Direction in net.minecraft.world.level.portal
Fields in net.minecraft.world.level.portal declared as DirectionMethods in net.minecraft.world.level.portal with parameters of type DirectionModifier and TypeMethodDescriptionprivate static @Nullable BlockPosPortalShape.calculateBottomLeft(BlockGetter level, Direction rightDir, BlockPos pos) private static intPortalShape.calculateHeight(BlockGetter level, BlockPos bottomLeft, Direction rightDir, int width, org.apache.commons.lang3.mutable.MutableInt portalBlockCount) private static intPortalShape.calculateWidth(BlockGetter level, BlockPos bottomLeft, Direction rightDir) private booleanPortalForcer.canHostFrame(BlockPos origin, BlockPos.MutableBlockPos mutable, Direction direction, int offset) private static intPortalShape.getDistanceUntilEdgeAboveFrame(BlockGetter level, BlockPos pos, Direction direction) private static intPortalShape.getDistanceUntilTop(BlockGetter level, BlockPos bottomLeft, Direction rightDir, BlockPos.MutableBlockPos pos, int width, org.apache.commons.lang3.mutable.MutableInt portalBlockCount) private static booleanPortalShape.hasTopFrame(BlockGetter level, BlockPos bottomLeft, Direction rightDir, BlockPos.MutableBlockPos pos, int width, int height) Constructors in net.minecraft.world.level.portal with parameters of type DirectionModifierConstructorDescriptionprivatePortalShape(Direction.Axis axis, int portalBlockCount, Direction rightDir, BlockPos bottomLeft, int width, int height) -
Uses of Direction in net.minecraft.world.level.redstone
Fields in net.minecraft.world.level.redstone declared as DirectionModifier and TypeFieldDescriptionprivate final DirectionCollectingNeighborUpdater.ShapeUpdate.directionThe field for thedirectionrecord component.private final DirectionOrientation.frontprivate final DirectionOrientation.sideprivate final @Nullable DirectionCollectingNeighborUpdater.MultiNeighborUpdate.skipDirectionprivate final DirectionOrientation.upstatic final Direction[]NeighborUpdater.UPDATE_ORDERFields in net.minecraft.world.level.redstone with type parameters of type DirectionModifier and TypeFieldDescriptionOrientation.horizontalNeighborsOrientation.neighborsOrientation.verticalNeighborsprivate final Map<Direction, Orientation> Orientation.withFrontprivate final Map<Direction, Orientation> Orientation.withUpMethods in net.minecraft.world.level.redstone that return DirectionModifier and TypeMethodDescriptionCollectingNeighborUpdater.ShapeUpdate.direction()Returns the value of thedirectionrecord component.Orientation.getFront()Orientation.getSide()Orientation.getUp()Methods in net.minecraft.world.level.redstone that return types with arguments of type DirectionModifier and TypeMethodDescriptionOrientation.getDirections()Orientation.getHorizontalDirections()Orientation.getVerticalDirections()Methods in net.minecraft.world.level.redstone with parameters of type DirectionModifier and TypeMethodDescriptionstatic voidNeighborUpdater.executeShapeUpdate(LevelAccessor level, Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int updateFlags, int updateLimit) protected static intOrientation.generateIndex(Direction up, Direction front, Orientation.SideBias sideBias) static @Nullable OrientationExperimentalRedstoneUtils.initialOrientation(Level level, @Nullable Direction front, @Nullable Direction up) private static booleanExperimentalRedstoneWireEvaluator.isConnected(BlockState state, Direction direction) static OrientationOrientation.of(Direction up, Direction front, Orientation.SideBias sideBias) voidCollectingNeighborUpdater.shapeUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) voidInstantNeighborUpdater.shapeUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) voidNeighborUpdater.shapeUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) voidCollectingNeighborUpdater.updateNeighborsAtExceptFromFacing(BlockPos pos, Block block, @Nullable Direction skipDirection, @Nullable Orientation orientation) default voidNeighborUpdater.updateNeighborsAtExceptFromFacing(BlockPos pos, Block block, @Nullable Direction skipDirection, @Nullable Orientation orientation) static @Nullable OrientationExperimentalRedstoneUtils.withFront(@Nullable Orientation orientation, Direction front) Orientation.withFrontAdjustSideBias(Direction front) Orientation.withFrontPreserveUp(Direction front) Constructors in net.minecraft.world.level.redstone with parameters of type DirectionModifierConstructorDescription(package private)MultiNeighborUpdate(BlockPos sourcePos, Block sourceBlock, @Nullable Orientation orientation, @Nullable Direction skipDirection) privateOrientation(Direction up, Direction front, Orientation.SideBias sideBias) privateShapeUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) Creates an instance of aShapeUpdaterecord class. -
Uses of Direction in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as DirectionMethods in net.minecraft.world.phys that return DirectionModifier and TypeMethodDescriptionprivate static @Nullable DirectionAABB.clipPoint(double[] scaleReference, @Nullable Direction direction, double da, double db, double dc, double point, double minB, double maxB, double minC, double maxC, Direction newDirection, double fromA, double fromB, double fromC) private static @Nullable DirectionAABB.getDirection(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3 from, double[] scaleReference, @Nullable Direction direction, double dx, double dy, double dz) private static @Nullable DirectionAABB.getDirection(AABB aabb, Vec3 from, double[] scaleReference, @Nullable Direction direction, double dx, double dy, double dz) BlockHitResult.getDirection()Methods in net.minecraft.world.phys with parameters of type DirectionModifier and TypeMethodDescriptionprivate static @Nullable DirectionAABB.clipPoint(double[] scaleReference, @Nullable Direction direction, double da, double db, double dc, double point, double minB, double maxB, double minC, double maxC, Direction newDirection, double fromA, double fromB, double fromC) private static @Nullable DirectionAABB.getDirection(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3 from, double[] scaleReference, @Nullable Direction direction, double dx, double dy, double dz) private static @Nullable DirectionAABB.getDirection(AABB aabb, Vec3 from, double[] scaleReference, @Nullable Direction direction, double dx, double dy, double dz) static BlockHitResultCreates a new BlockRayTraceResult marked as a miss.BlockHitResult.withDirection(Direction direction) Creates a new BlockRayTraceResult, with the clicked face replaced with the given oneConstructors in net.minecraft.world.phys with parameters of type DirectionModifierConstructorDescriptionprivateBlockHitResult(boolean miss, Vec3 location, Direction direction, BlockPos blockPos, boolean inside, boolean worldBorderHit) BlockHitResult(Vec3 location, Direction direction, BlockPos pos, boolean inside) BlockHitResult(Vec3 location, Direction direction, BlockPos pos, boolean inside, boolean worldBorderHit) -
Uses of Direction in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes that return types with arguments of type DirectionModifier and TypeMethodDescriptionstatic Map<Direction, VoxelShape> Shapes.rotateAll(VoxelShape north) static Map<Direction, VoxelShape> Shapes.rotateAll(VoxelShape north, OctahedralGroup initial, Vec3 rotationCenter) static Map<Direction, VoxelShape> Shapes.rotateAll(VoxelShape north, Vec3 rotationCenter) static Map<AttachFace, Map<Direction, VoxelShape>> Shapes.rotateAttachFace(VoxelShape north) static Map<AttachFace, Map<Direction, VoxelShape>> Shapes.rotateAttachFace(VoxelShape north, OctahedralGroup initial) static Map<Direction, VoxelShape> Shapes.rotateHorizontal(VoxelShape north) static Map<Direction, VoxelShape> Shapes.rotateHorizontal(VoxelShape north, OctahedralGroup initial) static Map<Direction, VoxelShape> Shapes.rotateHorizontal(VoxelShape north, OctahedralGroup initial, Vec3 rotationCenter) Methods in net.minecraft.world.phys.shapes with parameters of type DirectionModifier and TypeMethodDescriptionstatic booleanShapes.blockOccludes(VoxelShape shape, VoxelShape occluder, Direction direction) private VoxelShapeVoxelShape.calculateFace(Direction direction) voidVoxelShape.getFaceShape(Direction direction) Projects this shape onto the given side.static booleanShapes.mergedFaceOccludes(VoxelShape shape, VoxelShape occluder, Direction direction) -
Uses of Direction in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final BlockCapability<EnergyHandler, @Nullable Direction> Capabilities.Energy.BLOCKstatic final BlockCapability<ResourceHandler<FluidResource>, @Nullable Direction> Capabilities.Fluid.BLOCKstatic final BlockCapability<ResourceHandler<ItemResource>, @Nullable Direction> Capabilities.Item.BLOCKstatic final EntityCapability<EnergyHandler, @Nullable Direction> Capabilities.Energy.ENTITYstatic final EntityCapability<ResourceHandler<FluidResource>, @Nullable Direction> Capabilities.Fluid.ENTITYstatic final EntityCapability<ResourceHandler<ItemResource>, @Nullable Direction> Capabilities.Item.ENTITY_AUTOMATIONCapability for an inventory of entity that should be accessible to automation, in the sense that droppers, hoppers, and similar modded devices will try to use it.Methods in net.neoforged.neoforge.capabilities that return types with arguments of type DirectionModifier and TypeMethodDescriptionstatic <T> BlockCapability<T, @Nullable Direction> BlockCapability.createSided(Identifier name, Class<T> typeClass) Creates a new block capability with nullableDirectioncontext, or gets it if it already exists.static <T> EntityCapability<T, @Nullable Direction> EntityCapability.createSided(Identifier name, Class<T> typeClass) Creates a new entity capability with nullableDirectioncontext, or gets it if it already exists. -
Uses of Direction in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type DirectionModifier and TypeMethodDescriptiondefault booleanIClientBlockExtensions.playHitSound(BlockState state, Level level, BlockPos pos, Direction face, SoundManager soundManager) Play hit sound(s) when the block is punched. -
Uses of Direction in net.neoforged.neoforge.client.model
Methods in net.neoforged.neoforge.client.model with parameters of type DirectionModifier and TypeMethodDescriptionComposedModelState.faceTransformation(Direction side) ComposedModelState.inverseFaceTransformation(Direction side) -
Uses of Direction in net.neoforged.neoforge.client.model.ao
Methods in net.neoforged.neoforge.client.model.ao with parameters of type DirectionModifier and TypeMethodDescriptionvoidEnhancedAoRenderStorage.calculate(BlockAndTintGetter level, BlockState state, BlockPos pos, Direction direction, boolean shade) private voidEnhancedAoRenderStorage.calculateAxisAligned(BlockAndTintGetter level, BlockState state, BlockPos pos, Direction direction, boolean shade) Computes AO for an axis-aligned quad.(package private) AoCalculatedFaceFullFaceCalculator.calculateFace(BlockAndTintGetter level, BlockState renderedState, BlockPos renderedPos, Direction direction, boolean shade, boolean sampleOutside) private voidFullFaceCalculator.calculateFaceUncached(AoCalculatedFace out, BlockAndTintGetter level, BlockState renderedState, BlockPos renderedPos, Direction direction, boolean shade, boolean sampleOutside) Computes the AO for a full face.static AoFaceAoFace.fromDirection(Direction direction) -
Uses of Direction in net.neoforged.neoforge.client.model.generators.template
Fields in net.neoforged.neoforge.client.model.generators.template declared as DirectionFields in net.neoforged.neoforge.client.model.generators.template with type parameters of type DirectionMethods in net.neoforged.neoforge.client.model.generators.template that return types with arguments of type DirectionModifier and TypeMethodDescriptionprivate static BiConsumer<Direction, FaceBuilder> ElementBuilder.addTexture(TextureSlot texture) Methods in net.neoforged.neoforge.client.model.generators.template with parameters of type DirectionModifier and TypeMethodDescriptionSets which direction should cull this face when fully occluded, or null to never cull.ElementBuilder.face(Direction dir, Consumer<FaceBuilder> action) Return or create the face builder for the given direction.Method parameters in net.neoforged.neoforge.client.model.generators.template with type arguments of type DirectionModifier and TypeMethodDescriptionElementBuilder.allFaces(BiConsumer<Direction, FaceBuilder> action) Modify all possible faces dynamically using a function, creating new faces as necessary.ElementBuilder.allFacesExcept(BiConsumer<Direction, FaceBuilder> action, Set<Direction> exc) Creates possible faces for the model as needed, excluding those specified in the second argument, and then applies a function to modify added faces.ElementBuilder.allFacesExcept(BiConsumer<Direction, FaceBuilder> action, Set<Direction> exc) Creates possible faces for the model as needed, excluding those specified in the second argument, and then applies a function to modify added faces.ElementBuilder.faces(BiConsumer<Direction, FaceBuilder> action) Modify all existing faces dynamically using a function. -
Uses of Direction in net.neoforged.neoforge.client.model.obj
Methods in net.neoforged.neoforge.client.model.obj that return types with arguments of type DirectionModifier and TypeMethodDescriptionObjGeometry.makeQuad(int[][] indices, int tintIndex, Vector4f colorTint, Vector4f ambientColor, BakedQuad.SpriteInfo texture, Transformation transform) -
Uses of Direction in net.neoforged.neoforge.client.model.pipeline
Fields in net.neoforged.neoforge.client.model.pipeline declared as DirectionMethods in net.neoforged.neoforge.client.model.pipeline with parameters of type DirectionModifier and TypeMethodDescriptionvoidQuadBakingVertexConsumer.setDirection(Direction direction) -
Uses of Direction in net.neoforged.neoforge.client.model.quad
Fields in net.neoforged.neoforge.client.model.quad declared as DirectionMethods in net.neoforged.neoforge.client.model.quad that return DirectionMethods in net.neoforged.neoforge.client.model.quad with parameters of type DirectionModifier and TypeMethodDescriptionMutableQuad.setCubeFace(Direction side, float fromX, float fromY, float fromZ, float toX, float toY, float toZ) Sets the positions of this quad to the face of a cube as it would be defined in a Vanilla block model.MutableQuad.setCubeFace(Direction side, Vector3fc from, Vector3fc to) Same asMutableQuad.setCubeFace(Direction, float, float, float, float, float, float), but takes the from and to positions from vectors.MutableQuad.setCubeFaceFromSpriteCoords(Direction side, float left, float bottom, float right, float top, float depth) Sets the positions of this quad to form a rectangle on the given block side using a coordinate-system matching the default orientation of sprites in Vanilla block-models.MutableQuad.setDirection(Direction direction) MutableQuad.setFullCubeFace(Direction side) Same asMutableQuad.setCubeFace(Direction, float, float, float, float, float, float), but uses the full cube. -
Uses of Direction in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type DirectionModifier and TypeMethodDescriptionbooleanSpecialPlantable.canPlacePlantAtPosition(ItemStack itemStack, LevelReader level, BlockPos pos, @Nullable Direction direction) Checks location if this item can spawn a plant with the given direction attachment point.CommonHooks.onClientMineHold(Player player, BlockPos pos, Direction face) CommonHooks.onLeftClickBlock(Player player, BlockPos pos, Direction face, ServerboundPlayerActionPacket.Action action) voidSpecialPlantable.spawnPlantAtPosition(ItemStack itemStack, LevelAccessor level, BlockPos pos, @Nullable Direction direction) Spawns the plant with the given direction attachment point at location. -
Uses of Direction in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return DirectionModifier and TypeMethodDescriptiondefault DirectionIBlockExtension.getBedDirection(BlockState state, LevelReader level, BlockPos pos) Returns the direction of the block.default DirectionIBlockStateExtension.getBedDirection(LevelReader level, BlockPos pos) Returns the direction of the block.default DirectionITransformationExtension.rotateTransform(Direction facing) Rotates the direction according to this transformation and returns the nearestDirectionto the resulting direction.Methods in net.neoforged.neoforge.common.extensions with parameters of type DirectionModifier and TypeMethodDescriptiondefault booleanIBlockExtension.canConnectRedstone(BlockState state, BlockGetter level, BlockPos pos, @Nullable Direction direction) Whether redstone dust should visually connect to this block on a given sidedefault booleanIBlockStateExtension.canRedstoneConnectTo(BlockGetter level, BlockPos pos, @Nullable Direction direction) Whether redstone dust should visually connect to this block on a side.default TriStateIBlockExtension.canSustainPlant(BlockState state, BlockGetter level, BlockPos soilPosition, Direction facing, BlockState plant) Determines if this block either force allow or force disallow a plant from being placed on it.default TriStateIBlockStateExtension.canSustainPlant(BlockGetter level, BlockPos soilPosition, Direction facing, BlockState plant) Determines if this block either force allow or force disallow a plant from being placed on it.default BlockStateIBlockExtension.getAppearance(BlockState state, BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockStatethat this block reports to look like on the given side, for querying by other mods.default BlockStateIBlockStateExtension.getAppearance(BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockStatethat this state reports to look like on the given side for querying by other mods.default intIBlockExtension.getFireSpreadSpeed(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Called when fire is updating on a neighbor block.default intIBlockStateExtension.getFireSpreadSpeed(BlockGetter level, BlockPos pos, Direction face) Called when fire is updating on a neighbor block.default intIBlockExtension.getFlammability(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Chance that fire will spread and consume this block. 300 being a 100% chance, 0, being a 0% chance.default intIBlockStateExtension.getFlammability(BlockGetter level, BlockPos pos, Direction face) Chance that fire will spread and consume this block. 300 being a 100% chance, 0, being a 0% chance.default booleanIBlockExtension.hidesNeighborFace(BlockGetter level, BlockPos pos, BlockState state, BlockState neighborState, Direction dir) Whether this block hides the neighbors face pointed towards by the given direction.default booleanIBlockStateExtension.hidesNeighborFace(BlockGetter level, BlockPos pos, BlockState neighborState, Direction dir) Whether this block hides the neighbors face pointed towards by the given direction.default booleanIBlockExtension.ignitedByLava(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Called when lava is updating, checks if a block face can catch fire from lava.default booleanIBlockStateExtension.ignitedByLava(BlockGetter level, BlockPos pos, Direction face) Called when lava is updating, checks if a block face can catch fire from lava.default booleanIBlockExtension.isFireSource(BlockState state, LevelReader level, BlockPos pos, Direction direction) Currently only called by fire when it is on top of this block.default booleanIBlockStateExtension.isFireSource(LevelReader level, BlockPos pos, Direction side) Currently only called by fire when it is on top of this block.default booleanIBlockExtension.isFlammable(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Called when fire is updating, checks if a block face can catch fire.default booleanIBlockStateExtension.isFlammable(BlockGetter level, BlockPos pos, Direction face) Called when fire is updating, checks if a block face can catch fire.default booleanIBlockExtension.onCaughtFire(BlockState state, Level level, BlockPos pos, @Nullable Direction direction, @Nullable LivingEntity igniter) If the block is flammable, this is called when it gets lit on fire.default booleanIBlockStateExtension.onCaughtFire(Level level, BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter) If the block is flammable, this is called when it gets lit on fire.default voidIBlockExtension.onDestroyedByPushReaction(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY.default voidIBlockStateExtension.onDestroyedByPushReaction(Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY.default DirectionITransformationExtension.rotateTransform(Direction facing) Rotates the direction according to this transformation and returns the nearestDirectionto the resulting direction.default booleanIBlockExtension.shouldCheckWeakPower(BlockState state, SignalGetter level, BlockPos pos, Direction side) Called to determine whether to allow the block to handle its own indirect power rather than using the default rules.default booleanIBlockStateExtension.shouldCheckWeakPower(SignalGetter level, BlockPos pos, Direction side) Called to determine whether to allow the block to handle its own indirect power rather than using the default rules.default booleanIBlockExtension.shouldHideAdjacentFluidFace(BlockState state, Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered.default booleanIBlockStateExtension.shouldHideAdjacentFluidFace(Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered. -
Uses of Direction in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type DirectionModifier and TypeMethodDescriptionstatic booleanEventHooks.onBlockPlace(@Nullable Entity entity, BlockSnapshot blockSnapshot, Direction direction) static booleanEventHooks.onMultiBlockPlace(@Nullable Entity entity, List<BlockSnapshot> blockSnapshots, Direction direction) static voidEventHooks.onPistonMovePost(Level level, BlockPos pos, Direction direction, boolean extending) static booleanEventHooks.onPistonMovePre(Level level, BlockPos pos, Direction direction, boolean extending) Method parameters in net.neoforged.neoforge.event with type arguments of type DirectionModifier and TypeMethodDescriptionEventHooks.onNeighborNotify(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) -
Uses of Direction in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as DirectionModifier and TypeFieldDescriptionprivate final @Nullable DirectionPlayerInteractEvent.faceprivate final @Nullable DirectionUseItemOnBlockEvent.faceMethods in net.neoforged.neoforge.event.entity.player that return DirectionModifier and TypeMethodDescription@Nullable DirectionPlayerInteractEvent.getFace()@Nullable DirectionUseItemOnBlockEvent.getFace()Constructors in net.neoforged.neoforge.event.entity.player with parameters of type DirectionModifierConstructorDescriptionLeftClickBlock(Player player, BlockPos pos, Direction face, PlayerInteractEvent.LeftClickBlock.Action action) protectedPlayerInteractEvent(Player player, InteractionHand hand, BlockPos pos, @Nullable Direction face) -
Uses of Direction in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as DirectionFields in net.neoforged.neoforge.event.level with type parameters of type DirectionMethods in net.neoforged.neoforge.event.level that return DirectionMethods in net.neoforged.neoforge.event.level that return types with arguments of type DirectionModifier and TypeMethodDescriptionBlockEvent.NeighborNotifyEvent.getNotifiedSides()Gets a list of directions from the base block that updates will occur upon.Constructors in net.neoforged.neoforge.event.level with parameters of type DirectionModifierConstructorDescriptionPistonEvent(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Post(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Pre(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Constructor parameters in net.neoforged.neoforge.event.level with type arguments of type DirectionModifierConstructorDescriptionNeighborNotifyEvent(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) -
Uses of Direction in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type DirectionModifier and TypeMethodDescriptionprotected booleanBaseFlowingFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) static Optional<IFluidHandler> FluidUtil.getFluidHandler(Level level, BlockPos blockPos, @Nullable Direction side) Deprecated, for removal: This API element is subject to removal in a future version.Use theCapabilities.Fluid.BLOCKcapability directly.static booleanFluidUtil.interactWithFluidHandler(Player player, InteractionHand hand, Level level, BlockPos pos, @Nullable Direction side) Deprecated, for removal: This API element is subject to removal in a future version.static FluidActionResultFluidUtil.tryPickUpFluid(ItemStack emptyContainer, @Nullable Player playerIn, Level level, BlockPos pos, Direction side) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Direction in net.neoforged.neoforge.items.wrapper
Fields in net.neoforged.neoforge.items.wrapper declared as DirectionModifier and TypeFieldDescriptionprotected final @Nullable DirectionSidedInvWrapper.sideDeprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.items.wrapper with parameters of type DirectionModifier and TypeMethodDescriptionstatic intSidedInvWrapper.getSlot(WorldlyContainer inv, int slot, @Nullable Direction side) Deprecated, for removal: This API element is subject to removal in a future version.Constructors in net.neoforged.neoforge.items.wrapper with parameters of type DirectionModifierConstructorDescriptionSidedInvWrapper(WorldlyContainer inv, @Nullable Direction side) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Direction in net.neoforged.neoforge.transfer.fluid
Methods in net.neoforged.neoforge.transfer.fluid with parameters of type DirectionModifier and TypeMethodDescriptionstatic booleanFluidUtil.interactWithFluidHandler(Player player, InteractionHand hand, Level level, BlockPos pos, @Nullable Direction side) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler block.static FluidStackFluidUtil.tryPickupFluid(@Nullable ResourceHandler<FluidResource> destination, @Nullable Player player, Level level, BlockPos pos, @Nullable Direction side) Attempts to pick up a fluid in the level and put it into a fluid handler, first from aBucketPickupblock (such as fluid sources and waterlogged blocks), or second from aCapabilities.Fluid.BLOCKcapability instance. -
Uses of Direction in net.neoforged.neoforge.transfer.item
Fields in net.neoforged.neoforge.transfer.item declared as DirectionMethods in net.neoforged.neoforge.transfer.item with parameters of type DirectionModifier and TypeMethodDescriptionstatic @Nullable ResourceHandler<ItemResource> static ContainerOrHandlerVanillaInventoryCodeHooks.getEntityContainerOrHandler(Level level, double x, double y, double z, @Nullable Direction side) Constructors in net.neoforged.neoforge.transfer.item with parameters of type DirectionModifierConstructorDescriptionWorldlyContainerWrapper(WorldlyContainer container, @Nullable Direction side)
ClientLevel.addBreakingBlockEffect(BlockPos, Direction, net.minecraft.world.phys.HitResult)instead