Uses of Class
net.minecraft.core.BlockPos
Packages that use BlockPos
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of BlockPos in net.minecraft
Fields in net.minecraft declared as BlockPosModifier and TypeFieldDescriptionfinal BlockPos
BlockUtil.FoundRectangle.minCorner
Starting position of the rectangle represented by this resultMethods in net.minecraft that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBlockUtil.getTopConnectedBlock
(BlockGetter getter, BlockPos pos, Block baseBlock, Direction direction, Block endBlock) Methods in net.minecraft with parameters of type BlockPosModifier and TypeMethodDescriptionstatic String
CrashReportCategory.formatLocation
(LevelHeightAccessor levelHeightAccess, BlockPos pos) static BlockUtil.FoundRectangle
BlockUtil.getLargestRectangleAround
(BlockPos centerPos, Direction.Axis axis1, int max1, Direction.Axis axis2, int max2, Predicate<BlockPos> posPredicate) Finds the rectangle with the largest area containing centerPos within the blocks specified by the predicateBlockUtil.getTopConnectedBlock
(BlockGetter getter, BlockPos pos, Block baseBlock, Direction direction, Block endBlock) static void
CrashReportCategory.populateBlockDetails
(CrashReportCategory category, LevelHeightAccessor levelHeightAccessor, BlockPos pos, BlockState state) Method parameters in net.minecraft with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic BlockUtil.FoundRectangle
BlockUtil.getLargestRectangleAround
(BlockPos centerPos, Direction.Axis axis1, int max1, Direction.Axis axis2, int max2, Predicate<BlockPos> posPredicate) Finds the rectangle with the largest area containing centerPos within the blocks specified by the predicateprivate static int
BlockUtil.getLimit
(Predicate<BlockPos> posPredicate, BlockPos.MutableBlockPos centerPos, Direction direction, int max) Finds the distance we can travel in the given direction while the predicate returns trueConstructors in net.minecraft with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
BlockPredicate.matches
(ServerLevel level, BlockPos pos) boolean
FluidPredicate.matches
(ServerLevel level, BlockPos pos) boolean
LightPredicate.matches
(ServerLevel level, BlockPos pos) void
AnyBlockInteractionTrigger.trigger
(ServerPlayer player, BlockPos pos, ItemStack stack) void
DefaultBlockInteractionTrigger.trigger
(ServerPlayer player, BlockPos pos) void
ItemUsedOnLocationTrigger.trigger
(ServerPlayer player, BlockPos pos, ItemStack stack) void
UsedEnderEyeTrigger.trigger
(ServerPlayer player, BlockPos pos) -
Uses of BlockPos in net.minecraft.client
Methods in net.minecraft.client that return BlockPosMethods in net.minecraft.client with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
KeyboardHandler.copyCreateBlockCommand
(BlockState state, BlockPos pos, CompoundTag compound) void
DebugQueryHandler.queryBlockEntityTag
(BlockPos pos, Consumer<CompoundTag> tag) -
Uses of BlockPos in net.minecraft.client.color.block
Fields in net.minecraft.client.color.block with type parameters of type BlockPosMethods in net.minecraft.client.color.block with parameters of type BlockPosModifier and TypeMethodDescriptionint
BlockColor.getColor
(BlockState state, BlockAndTintGetter level, BlockPos pos, int tintIndex) int
BlockColors.getColor
(BlockState state, BlockAndTintGetter level, BlockPos pos, int tintIndex) int
BlockColors.getColor
(BlockState state, Level level, BlockPos pos) int
Constructor parameters in net.minecraft.client.color.block with type arguments of type BlockPos -
Uses of BlockPos in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
MultiPlayerGameMode.destroyBlockPos
private BlockPos
ClientLevel.ClientLevelData.spawnPos
Methods in net.minecraft.client.multiplayer that return BlockPosMethods in net.minecraft.client.multiplayer with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ClientLevel.addDestroyBlockEffect
(BlockPos pos, BlockState state) int
ClientLevel.calculateBlockTint
(BlockPos blockPos, ColorResolver colorResolver) boolean
MultiPlayerGameMode.continueDestroyBlock
(BlockPos posBlock, Direction directionFacing) boolean
MultiPlayerGameMode.destroyBlock
(BlockPos pos) void
ClientLevel.destroyBlockProgress
(int breakerId, BlockPos pos, int progress) int
ClientLevel.getBlockTint
(BlockPos blockPos, ColorResolver colorResolver) ClientLevel.getModelData
(BlockPos pos) void
ClientLevel.globalLevelEvent
(int id, BlockPos pos, int data) void
ClientLevel.levelEvent
(Player player, int type, BlockPos pos, int data) private boolean
MultiPlayerGameMode.sameDestroyTarget
(BlockPos pos) void
ClientLevel.sendBlockUpdated
(BlockPos pos, BlockState oldState, BlockState newState, int flags) Flags are as in setBlockStateboolean
ClientLevel.setBlock
(BlockPos pos, BlockState state, int flags, int recursionLeft) void
ClientLevel.setBlocksDirty
(BlockPos blockPos, BlockState oldState, BlockState newState) void
ClientLevel.setDefaultSpawnPos
(BlockPos spawnPos, float spawnAngle) void
ClientLevel.setServerVerifiedBlockState
(BlockPos pos, BlockState state, int flags) void
private void
ClientLevel.spawnParticle
(BlockPos pos, ParticleOptions particleData, VoxelShape voxelShape, double y) boolean
MultiPlayerGameMode.startDestroyBlock
(BlockPos loc, Direction face) Called when the player is hitting a block with an item.void
ClientLevel.syncBlockState
(BlockPos pos, BlockState state, Vec3 playerPos) private void
ClientLevel.trySpawnDripParticles
(BlockPos blockPos, BlockState blockState, ParticleOptions particleData, boolean shapeDownSolid) -
Uses of BlockPos in net.minecraft.client.multiplayer.prediction
Methods in net.minecraft.client.multiplayer.prediction with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
BlockStatePredictionHandler.retainKnownServerState
(BlockPos pos, BlockState state, LocalPlayer player) void
BlockStatePredictionHandler.retainSnapshot
(BlockPos pos, BlockSnapshot snapshot) Sets the stored BlockSnapshot on the ServerVerifiedState for the given position.boolean
BlockStatePredictionHandler.updateKnownServerState
(BlockPos pos, BlockState state) -
Uses of BlockPos in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as BlockPosMethods in net.minecraft.client.particle with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ParticleEngine.addBlockHitEffects
(BlockPos pos, BlockHitResult target) void
Adds block hit particles for the specified blockvoid
ParticleEngine.destroy
(BlockPos pos, BlockState state) TerrainParticle.updateSprite
(BlockState state, BlockPos pos) Constructors in net.minecraft.client.particle with parameters of type BlockPosModifierConstructorDescriptionTerrainParticle
(ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, BlockState state, BlockPos pos) -
Uses of BlockPos in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Map
<BlockPos, SoundInstance> LevelRenderer.playingJukeboxSongs
Methods in net.minecraft.client.renderer that return types with arguments of type BlockPosModifier and TypeMethodDescriptionprivate static org.apache.commons.lang3.tuple.Pair
<BlockState, BlockPos> ScreenEffectRenderer.getOverlayBlock
(Player p_110717_) Methods in net.minecraft.client.renderer with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
LevelRenderer.blockChanged
(BlockGetter level, BlockPos pos, BlockState oldState, BlockState newState, int flags) void
LevelRenderer.destroyBlockProgress
(int breakerId, BlockPos pos, int progress) private static int
BiomeColors.getAverageColor
(BlockAndTintGetter level, BlockPos blockPos, ColorResolver colorResolver) static int
BiomeColors.getAverageFoliageColor
(BlockAndTintGetter level, BlockPos blockPos) static int
BiomeColors.getAverageGrassColor
(BlockAndTintGetter level, BlockPos blockPos) static int
BiomeColors.getAverageWaterColor
(BlockAndTintGetter level, BlockPos blockPos) static int
LevelRenderer.getLightColor
(BlockAndTintGetter level, BlockPos pos) static int
LevelRenderer.getLightColor
(BlockAndTintGetter level, BlockState state, BlockPos pos) SectionOcclusionGraph.getRelativeFrom
(BlockPos pos, SectionRenderDispatcher.RenderSection section, Direction direction) protected SectionRenderDispatcher.RenderSection
ViewArea.getRenderSectionAt
(BlockPos pos) void
LevelRenderer.globalLevelEvent
(int type, BlockPos pos, int data) Handles a global level event.private boolean
SectionOcclusionGraph.isInViewDistance
(BlockPos pos, BlockPos origin) boolean
LevelRenderer.isSectionCompiled
(BlockPos pos) void
LevelRenderer.levelEvent
(int type, BlockPos pos, int data) private void
LevelRenderer.notifyNearbyEntities
(Level level, BlockPos pos, boolean playing) Notifies living entities in a 3 block range of the specifiedpos
that a record is or isn't playing nearby, dependent on the specifiedplaying
parameter.void
LevelRenderer.playJukeboxSong
(Holder<JukeboxSong> song, BlockPos pos) private void
LevelRenderer.renderHitOutline
(PoseStack poseStack, VertexConsumer consumer, Entity entity, double camX, double camY, double camZ, BlockPos pos, BlockState state) private void
LevelRenderer.setBlockDirty
(BlockPos pos, boolean reRenderOnMainThread) void
LevelRenderer.setBlockDirty
(BlockPos pos, BlockState oldState, BlockState newState) private void
LevelRenderer.shootParticles
(int p_direction, BlockPos pos, RandomSource random, SimpleParticleType particleType) private void
LevelRenderer.stopJukeboxSong
(BlockPos pos) void
LevelRenderer.stopJukeboxSongAndNotifyNearby
(BlockPos pos) -
Uses of BlockPos in net.minecraft.client.renderer.block
Methods in net.minecraft.client.renderer.block with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ModelBlockRenderer.AmbientOcclusionFace.calculate
(BlockAndTintGetter level, BlockState state, BlockPos pos, Direction direction, float[] shape, BitSet shapeFlags, boolean shade) private float
LiquidBlockRenderer.calculateAverageHeight
(BlockAndTintGetter level, Fluid fluid, float currentHeight, float height1, float height2, BlockPos pos) private void
ModelBlockRenderer.calculateShape
(BlockAndTintGetter level, BlockState state, BlockPos pos, int[] vertices, Direction direction, float[] shape, BitSet shapeFlags) Calculates the shape and corresponding flags for the specifieddirection
andvertices
, storing the resulting shape in the specifiedshape
array and the shape flags inshapeFlags
.private float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter level, Fluid fluid, BlockPos pos) private float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter level, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) private int
LiquidBlockRenderer.getLightColor
(BlockAndTintGetter level, BlockPos pos) int
ModelBlockRenderer.Cache.getLightColor
(BlockState state, BlockAndTintGetter level, BlockPos pos) float
ModelBlockRenderer.Cache.getShadeBrightness
(BlockState state, BlockAndTintGetter level, BlockPos pos) BlockModelShaper.getTexture
(BlockState p_110883_, Level level, BlockPos pos) private static boolean
LiquidBlockRenderer.isFaceOccludedByNeighbor
(BlockGetter level, BlockPos pos, Direction side, float height, BlockState blockState) private static boolean
LiquidBlockRenderer.isFaceOccludedBySelf
(BlockGetter level, BlockPos pos, BlockState state, Direction face) private static boolean
LiquidBlockRenderer.isFaceOccludedByState
(BlockGetter level, Direction face, float height, BlockPos pos, BlockState state) private void
ModelBlockRenderer.putQuadData
(BlockAndTintGetter level, BlockState state, BlockPos pos, VertexConsumer consumer, PoseStack.Pose pose, BakedQuad quad, float brightness0, float brightness1, float brightness2, float brightness3, int lightmap0, int lightmap1, int lightmap2, int lightmap3, int packedOverlay) void
BlockRenderDispatcher.renderBatched
(BlockState state, BlockPos pos, BlockAndTintGetter level, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random) void
BlockRenderDispatcher.renderBatched
(BlockState state, BlockPos pos, BlockAndTintGetter level, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, ModelData modelData, RenderType renderType) void
BlockRenderDispatcher.renderBreakingTexture
(BlockState state, BlockPos pos, BlockAndTintGetter level, PoseStack poseStack, VertexConsumer consumer) Deprecated.void
BlockRenderDispatcher.renderBreakingTexture
(BlockState state, BlockPos pos, BlockAndTintGetter level, PoseStack poseStack, VertexConsumer consumer, ModelData modelData) void
BlockRenderDispatcher.renderLiquid
(BlockPos pos, BlockAndTintGetter level, VertexConsumer consumer, BlockState blockState, FluidState fluidState) private void
ModelBlockRenderer.renderModelFaceAO
(BlockAndTintGetter level, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, List<BakedQuad> quads, float[] shape, BitSet shapeFlags, ModelBlockRenderer.AmbientOcclusionFace aoFace, int packedOverlay) private void
ModelBlockRenderer.renderModelFaceFlat
(BlockAndTintGetter level, BlockState state, BlockPos pos, int packedLight, int packedOverlay, boolean repackLight, PoseStack poseStack, VertexConsumer consumer, List<BakedQuad> quads, BitSet shapeFlags) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState blockState, Direction side, FluidState neighborFluid) Deprecated.Neo: use overload that accepts BlockStatevoid
LiquidBlockRenderer.tesselate
(BlockAndTintGetter level, BlockPos pos, VertexConsumer buffer, BlockState blockState, FluidState fluidState) void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay) Deprecated.void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay) Deprecated.void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay) Deprecated.void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay, ModelData modelData, RenderType renderType) -
Uses of BlockPos in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type BlockPosModifier and TypeMethodDescription(package private) static boolean
SignRenderer.isOutlineVisible
(BlockPos pos, int textColor) private void
PistonHeadRenderer.renderBlock
(BlockPos pos, BlockState state, PoseStack poseStack, MultiBufferSource bufferSource, Level level, boolean extended, int packedOverlay) (package private) void
SignRenderer.renderSignText
(BlockPos pos, SignText text, PoseStack poseStack, MultiBufferSource buffer, int packedLight, int lineHeight, int maxWidth, boolean isFrontText) -
Uses of BlockPos in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Map
<BlockPos, BlockEntity> RenderChunk.blockEntities
Methods in net.minecraft.client.renderer.chunk that return BlockPosModifier and TypeMethodDescriptionSectionRenderDispatcher.RenderSection.getOrigin()
SectionRenderDispatcher.RenderSection.getRelativeOrigin
(Direction direction) Methods in net.minecraft.client.renderer.chunk with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
SectionRenderDispatcher.RenderSection.doesChunkExistAt
(BlockPos pos) RenderChunk.getBlockEntity
(BlockPos pos) RenderChunkRegion.getBlockEntity
(BlockPos pos) RenderChunk.getBlockState
(BlockPos pos) RenderChunkRegion.getBlockState
(BlockPos pos) int
RenderChunkRegion.getBlockTint
(BlockPos pos, ColorResolver colorResolver) RenderChunkRegion.getFluidState
(BlockPos pos) private static int
RenderChunkRegion.getModelData
(BlockPos pos) void
-
Uses of BlockPos in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
GoalSelectorDebugRenderer.EntityGoalInfo.entityPos
The field for theentityPos
record component.final BlockPos
BrainDebugRenderer.PoiInfo.pos
Fields in net.minecraft.client.renderer.debug with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Map
<BlockPos, BeeDebugRenderer.HiveDebugInfo> BeeDebugRenderer.hives
NeighborsUpdateRenderer.lastUpdate
private final Map
<BlockPos, GameTestDebugRenderer.Marker> GameTestDebugRenderer.markers
private final Map
<BlockPos, BrainDebugRenderer.PoiInfo> BrainDebugRenderer.pois
private Collection
<BlockPos> RaidDebugRenderer.raidCenters
WorldGenAttemptRenderer.toRender
Methods in net.minecraft.client.renderer.debug that return BlockPosModifier and TypeMethodDescriptionGoalSelectorDebugRenderer.EntityGoalInfo.entityPos()
Returns the value of theentityPos
record component.Methods in net.minecraft.client.renderer.debug that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBeeDebugRenderer.createHiveBlacklistMap()
BeeDebugRenderer.getGhostHives()
BrainDebugRenderer.getGhostPois()
Methods in net.minecraft.client.renderer.debug with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
GoalSelectorDebugRenderer.addGoalSelector
(int mobId, BlockPos entityPos, List<GoalDebugPayload.DebugGoal> goals) void
void
WorldGenAttemptRenderer.addPos
(BlockPos pos, float scale, float red, float green, float blue, float alpha) void
private static float
PathfindingRenderer.distanceToCamera
(BlockPos pos, double x, double y, double z) private Collection
<UUID> BeeDebugRenderer.getHiveMembers
(BlockPos pos) private String
BeeDebugRenderer.getPosDescription
(BeeDebugPayload.BeeInfo beeInfo, BlockPos pos) private Collection
<UUID> BrainDebugRenderer.getPotentialTicketHolders
(BlockPos pos) private Collection
<UUID> BrainDebugRenderer.getTicketHolders
(BlockPos pos) private static void
BeeDebugRenderer.highlightHive
(PoseStack poseStack, MultiBufferSource buffer, BlockPos hivePos) private static void
BrainDebugRenderer.highlightPoi
(PoseStack poseStack, MultiBufferSource buffer, BlockPos pos) private void
SupportBlockRenderer.highlightPosition
(BlockPos pos, PoseStack poseStack, double camX, double camY, double camZ, MultiBufferSource buffer, double bias, float red, float green, float blue) private static void
RaidDebugRenderer.highlightRaidCenter
(PoseStack poseStack, MultiBufferSource buffer, BlockPos pos) void
static void
DebugRenderer.renderFilledBox
(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos pos, float scale, float red, float green, float blue, float alpha) static void
DebugRenderer.renderFilledBox
(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos startPos, BlockPos endPos, float red, float green, float blue, float alpha) static void
DebugRenderer.renderFilledUnitCube
(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos pos, float red, float green, float blue, float alpha) private void
BeeDebugRenderer.renderGhostHive
(PoseStack poseStack, MultiBufferSource buffer, BlockPos hivePos, List<String> ghostHives) private void
BrainDebugRenderer.renderGhostPoi
(PoseStack poseStack, MultiBufferSource buffer, BlockPos pos, List<String> poiName) private void
GameTestDebugRenderer.renderMarker
(PoseStack poseStack, MultiBufferSource buffer, BlockPos pos, GameTestDebugRenderer.Marker marker) private static void
RaidDebugRenderer.renderTextOverBlock
(PoseStack poseStack, MultiBufferSource buffer, String text, BlockPos pos, int color) private static void
BeeDebugRenderer.renderTextOverPos
(PoseStack poseStack, MultiBufferSource buffer, String text, BlockPos pos, int layer, int color) private static void
BrainDebugRenderer.renderTextOverPos
(PoseStack poseStack, MultiBufferSource buffer, String text, BlockPos pos, int layer, int color) void
BrainDebugRenderer.setFreeTicketCount
(BlockPos pos, int freeTicketCount) Method parameters in net.minecraft.client.renderer.debug with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
RaidDebugRenderer.setRaidCenters
(Collection<BlockPos> raidCenters) Constructors in net.minecraft.client.renderer.debug with parameters of type BlockPosModifierConstructorDescription(package private)
EntityGoalInfo
(BlockPos entityPos, List<GoalDebugPayload.DebugGoal> goals) Creates an instance of aEntityGoalInfo
record class. -
Uses of BlockPos in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type BlockPosModifier and TypeMethodDescriptionprotected int
AllayRenderer.getBlockLightLevel
(Allay p_234560_, BlockPos p_234561_) protected int
BlazeRenderer.getBlockLightLevel
(Blaze entity, BlockPos pos) protected int
DragonFireballRenderer.getBlockLightLevel
(DragonFireball entity, BlockPos pos) protected int
EntityRenderer.getBlockLightLevel
(T entity, BlockPos pos) protected int
ExperienceOrbRenderer.getBlockLightLevel
(ExperienceOrb entity, BlockPos pos) protected int
GlowSquidRenderer.getBlockLightLevel
(GlowSquid p_174146_, BlockPos p_174147_) protected int
ItemFrameRenderer.getBlockLightLevel
(T entity, BlockPos pos) protected int
MagmaCubeRenderer.getBlockLightLevel
(MagmaCube entity, BlockPos pos) protected int
ShulkerBulletRenderer.getBlockLightLevel
(ShulkerBullet entity, BlockPos pos) protected int
ThrownItemRenderer.getBlockLightLevel
(T entity, BlockPos pos) protected int
VexRenderer.getBlockLightLevel
(Vex entity, BlockPos pos) protected int
WitherBossRenderer.getBlockLightLevel
(WitherBoss entity, BlockPos pos) protected int
WitherSkullRenderer.getBlockLightLevel
(WitherSkull entity, BlockPos pos) protected int
EntityRenderer.getSkyLightLevel
(T entity, BlockPos pos) private static void
EntityRenderDispatcher.renderBlockShadow
(PoseStack.Pose pose, VertexConsumer vertexConsumer, ChunkAccess chunk, LevelReader level, BlockPos pos, double x, double y, double z, float size, float weight) -
Uses of BlockPos in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type BlockPosModifier and TypeMethodDescriptionprivate double
CompassItemPropertyFunction.getAngleFromEntityToPos
(Entity entity, BlockPos pos) private float
CompassItemPropertyFunction.getRotationTowardsCompassTarget
(Entity entity, long ticks, BlockPos pos) -
Uses of BlockPos in net.minecraft.client.resources.model
Methods in net.minecraft.client.resources.model with parameters of type BlockPosModifier and TypeMethodDescriptionMultiPartBakedModel.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) WeightedBakedModel.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) -
Uses of BlockPos in net.minecraft.client.resources.sounds
Constructors in net.minecraft.client.resources.sounds with parameters of type BlockPosModifierConstructorDescriptionSimpleSoundInstance
(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, BlockPos entity) -
Uses of BlockPos in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
PunchTreeTutorialStepInstance.onDestroyBlock
(ClientLevel level, BlockPos pos, BlockState state, float diggingStage) Called when a player hits block to destroy it.void
Tutorial.onDestroyBlock
(ClientLevel level, BlockPos pos, BlockState state, float diggingStage) default void
TutorialStepInstance.onDestroyBlock
(ClientLevel level, BlockPos pos, BlockState state, float diggingStage) Called when a player hits block to destroy it. -
Uses of BlockPos in net.minecraft.commands.arguments.blocks
Methods in net.minecraft.commands.arguments.blocks with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
BlockInput.place
(ServerLevel level, BlockPos pos, int flags) boolean
BlockInput.test
(ServerLevel level, BlockPos pos) -
Uses of BlockPos in net.minecraft.commands.arguments.coordinates
Methods in net.minecraft.commands.arguments.coordinates that return BlockPosModifier and TypeMethodDescriptionstatic BlockPos
BlockPosArgument.getBlockPos
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) default BlockPos
Coordinates.getBlockPos
(CommandSourceStack source) static BlockPos
BlockPosArgument.getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static BlockPos
BlockPosArgument.getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, ServerLevel level, String name) static BlockPos
BlockPosArgument.getSpawnablePos
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
Uses of BlockPos in net.minecraft.core
Subclasses of BlockPos in net.minecraft.coreFields in net.minecraft.core declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BlockBox.max
The field for themax
record component.private final BlockPos
BlockBox.min
The field for themin
record component.private final BlockPos
GlobalPos.pos
The field for thepos
record component.static final BlockPos
BlockPos.ZERO
An immutable BlockPos with zero as all coordinates.Fields in net.minecraft.core with type parameters of type BlockPosModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<BlockPos> BlockPos.CODEC
static final StreamCodec
<io.netty.buffer.ByteBuf, BlockPos> BlockPos.STREAM_CODEC
Methods in net.minecraft.core that return BlockPosModifier and TypeMethodDescriptionBlockPos.above()
BlockPos.above
(int distance) Offset this vector upwards by the given distance.BlockPos.atY
(int y) BlockPos.below()
BlockPos.below
(int distance) Offset this vector downwards by the given distance.SectionPos.center()
static BlockPos
BlockPos.containing
(double x, double y, double z) static BlockPos
BlockPos.containing
(Position position) Calculate the cross product of this and the given VectorBlockPos.east()
BlockPos.east
(int distance) BlockPos.immutable()
BlockPos.MutableBlockPos.immutable()
BlockBox.max()
Returns the value of themax
record component.static BlockPos
BlockBox.min()
Returns the value of themin
record component.static BlockPos
BlockPos.multiply
(int scalar) BlockPos.MutableBlockPos.multiply
(int scalar) BlockPos.north()
BlockPos.north
(int distance) static BlockPos
BlockPos.of
(long packedPos) BlockPos.MutableBlockPos.offset
(int dx, int dy, int dz) BlockPos.offset
(int dx, int dy, int dz) SectionPos.origin()
GlobalPos.pos()
Returns the value of thepos
record component.BlockPos.MutableBlockPos.relative
(Direction.Axis axis, int amount) Offsets this Vector by the given distance in the specified direction.BlockPos.relative
(Direction.Axis axis, int amount) Offsets this Vector by the given distance in the specified direction.SectionPos.relativeToBlockPos
(short pos) BlockPos.south()
BlockPos.south
(int distance) BlockPos.west()
BlockPos.west
(int distance) Methods in net.minecraft.core that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBlockPos.betweenClosed
(int x1, int y1, int z1, int x2, int y2, int z2) Creates an Iterable that returns all positions in the box specified by the given corners.BlockPos.betweenClosed
(BlockPos firstPos, BlockPos secondPos) BlockPos.betweenClosedStream
(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) BlockPos.betweenClosedStream
(BlockPos firstPos, BlockPos secondPos) BlockPos.betweenClosedStream
(BoundingBox box) BlockPos.betweenClosedStream
(AABB aabb) SectionPos.blocksInside()
BlockPos.findClosestMatch
(BlockPos pos, int width, int height, Predicate<BlockPos> posFilter) BlockBox.iterator()
BlockPos.randomBetweenClosed
(RandomSource random, int amount, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) BlockPos.randomInCube
(RandomSource random, int amount, BlockPos center, int radius) BlockPos.squareOutSouthEast
(BlockPos pos) Deprecated.BlockPos.withinManhattan
(BlockPos pos, int xSize, int ySize, int zSize) BlockPos.withinManhattanStream
(BlockPos pos, int xSize, int ySize, int zSize) Returns a stream of positions in a box shape, ordered by closest to furthest.Methods in net.minecraft.core with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
SectionPos.aroundAndAtBlockPos
(BlockPos pos, it.unimi.dsi.fastutil.longs.LongConsumer consumer) static long
BlockPos.betweenClosed
(BlockPos firstPos, BlockPos secondPos) BlockPos.betweenClosedStream
(BlockPos firstPos, BlockPos secondPos) static int
BlockPos.breadthFirstTraversal
(BlockPos startPos, int depth, int visitLimit, BiConsumer<BlockPos, Consumer<BlockPos>> action, Predicate<BlockPos> predicate) boolean
BlockPos.findClosestMatch
(BlockPos pos, int width, int height, Predicate<BlockPos> posFilter) static BlockPos
static BlockPos
static BlockBox
static BlockBox
static GlobalPos
GlobalPos.of
(ResourceKey<Level> dimension, BlockPos pos) static SectionPos
BlockPos.randomInCube
(RandomSource random, int amount, BlockPos center, int radius) static short
SectionPos.sectionRelativePos
(BlockPos pos) static Iterable
<BlockPos.MutableBlockPos> BlockPos.spiralAround
(BlockPos center, int size, Direction rotationDirection, Direction expansionDirection) BlockPos.squareOutSouthEast
(BlockPos pos) Deprecated.BlockPos.withinManhattan
(BlockPos pos, int xSize, int ySize, int zSize) BlockPos.withinManhattanStream
(BlockPos pos, int xSize, int ySize, int zSize) Returns a stream of positions in a box shape, ordered by closest to furthest.Method parameters in net.minecraft.core with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic int
BlockPos.breadthFirstTraversal
(BlockPos startPos, int depth, int visitLimit, BiConsumer<BlockPos, Consumer<BlockPos>> action, Predicate<BlockPos> predicate) static int
BlockPos.breadthFirstTraversal
(BlockPos startPos, int depth, int visitLimit, BiConsumer<BlockPos, Consumer<BlockPos>> action, Predicate<BlockPos> predicate) static int
BlockPos.breadthFirstTraversal
(BlockPos startPos, int depth, int visitLimit, BiConsumer<BlockPos, Consumer<BlockPos>> action, Predicate<BlockPos> predicate) BlockPos.findClosestMatch
(BlockPos pos, int width, int height, Predicate<BlockPos> posFilter) Constructors in net.minecraft.core with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron with parameters of type BlockPosModifier and TypeMethodDescriptionstatic ItemInteractionResult
CauldronInteraction.emptyBucket
(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static ItemInteractionResult
CauldronInteraction.fillBucket
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) CauldronInteraction.interact
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
Uses of BlockPos in net.minecraft.core.dispenser
Fields in net.minecraft.core.dispenser declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BlockSource.pos
The field for thepos
record component.Methods in net.minecraft.core.dispenser that return BlockPosModifier and TypeMethodDescriptionBlockSource.pos()
Returns the value of thepos
record component.Methods in net.minecraft.core.dispenser with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static boolean
ShearsDispenseItemBehavior.tryShearBeehive
(ServerLevel level, BlockPos pos) private static boolean
ShearsDispenseItemBehavior.tryShearLivingEntity
(ServerLevel level, BlockPos pos, ItemStack stack) Constructors in net.minecraft.core.dispenser with parameters of type BlockPosModifierConstructorDescriptionBlockSource
(ServerLevel level, BlockPos pos, BlockState state, DispenserBlockEntity blockEntity) Creates an instance of aBlockSource
record class. -
Uses of BlockPos in net.minecraft.core.particles
Fields in net.minecraft.core.particles declared as BlockPosMethods in net.minecraft.core.particles that return BlockPosMethods in net.minecraft.core.particles with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.gametest.framework
Fields in net.minecraft.gametest.framework declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
GameTestAssertPosException.absolutePos
private final BlockPos
StructureGridSpawner.firstTestNorthWestCorner
private BlockPos
GameTestInfo.northWestCorner
private final BlockPos
GameTestAssertPosException.relativePos
private final BlockPos
GameTestServer.spawnPos
private BlockPos
GameTestInfo.structureBlockPos
Fields in net.minecraft.gametest.framework with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final UnaryOperator
<Supplier<Stream<BlockPos>>> TestFinder.Builder.structureBlockPosFinderWrapper
Methods in net.minecraft.gametest.framework that return BlockPosModifier and TypeMethodDescriptionGameTestHelper.absolutePos
(BlockPos pos) (package private) static BlockPos
TestCommand.createTestPositionAround
(CommandSourceStack source) GameTestAssertPosException.getAbsolutePos()
private static BlockPos
ReportGameListener.getBeaconPos
(GameTestInfo testInfo) private BlockPos
GameTestInfo.getOrCalculateNorthwestCorner()
GameTestAssertPosException.getRelativePos()
GameTestInfo.getStructureBlockPos()
static BlockPos
StructureUtils.getStructureOrigin
(StructureBlockEntity structureBlockEntity) static BlockPos
StructureUtils.getTransformedFarCorner
(BlockPos pos, Vec3i offset, Rotation rotation) GameTestHelper.relativePos
(BlockPos pos) Methods in net.minecraft.gametest.framework that return types with arguments of type BlockPosModifier and TypeMethodDescriptionStructureUtils.findNearestStructureBlock
(BlockPos pos, int radius, ServerLevel level) StructureUtils.findStructureBlockContainingPos
(BlockPos pos, int radius, ServerLevel serverLevel) StructureBlockPosFinder.findStructureBlockPos()
TestFinder.findStructureBlockPos()
StructureUtils.findStructureBlocks
(BlockPos pos, int radius, ServerLevel level) StructureUtils.findStructureByTestFunction
(BlockPos pos, int radius, ServerLevel level, String testName) StructureUtils.lookedAtStructureBlockPos
(BlockPos pos, Entity entity, ServerLevel level) Methods in net.minecraft.gametest.framework with parameters of type BlockPosModifier and TypeMethodDescriptionGameTestHelper.absolutePos
(BlockPos pos) static void
StructureUtils.addCommandBlockAndButtonToStartTest
(BlockPos structureBlockPos, BlockPos offset, Rotation rotation, ServerLevel serverLevel) void
GameTestHelper.assertAtTickTimeContainerContains
(long tickTime, BlockPos pos, Item item) void
GameTestHelper.assertAtTickTimeContainerEmpty
(long tickTime, BlockPos pos) void
GameTestHelper.assertBlock
(BlockPos pos, Predicate<Block> predicate, String exceptionMessage) void
GameTestHelper.assertBlock
(BlockPos pos, Predicate<Block> predicate, Supplier<String> exceptionMessage) <T extends BlockEntity>
voidGameTestHelper.assertBlockEntityData
(BlockPos pos, Predicate<T> predicate, Supplier<String> exceptionMessage) void
GameTestHelper.assertBlockNotPresent
(Block block, BlockPos pos) void
GameTestHelper.assertBlockPresent
(Block block, BlockPos pos) <T extends Comparable<T>>
voidGameTestHelper.assertBlockProperty
(BlockPos pos, Property<T> property, Predicate<T> predicate, String exceptionMessage) <T extends Comparable<T>>
voidGameTestHelper.assertBlockProperty
(BlockPos pos, Property<T> property, T value) void
GameTestHelper.assertBlockState
(BlockPos pos, Predicate<BlockState> predicate, Supplier<String> exceptionMessage) void
GameTestHelper.assertContainerContains
(BlockPos pos, Item item) void
GameTestHelper.assertContainerEmpty
(BlockPos pos) void
GameTestHelper.assertEntitiesPresent
(EntityType<?> entityType, BlockPos pos, int count, double radius) <E extends Entity,
T>
voidGameTestHelper.assertEntityData
(BlockPos pos, EntityType<E> type, Function<? super E, T> entityDataGetter, T testEntityData) void
GameTestHelper.assertEntityInstancePresent
(Entity entity, BlockPos pos) <E extends Entity & InventoryCarrier>
voidGameTestHelper.assertEntityInventoryContains
(BlockPos pos, EntityType<E> entityType, Item item) <E extends LivingEntity>
voidGameTestHelper.assertEntityIsHolding
(BlockPos pos, EntityType<E> entityType, Item item) void
GameTestHelper.assertEntityNotPresent
(EntityType<?> type, BlockPos pos) void
GameTestHelper.assertEntityPresent
(EntityType<?> type, BlockPos pos) void
GameTestHelper.assertEntityPresent
(EntityType<?> type, BlockPos pos, double expansionAmount) void
GameTestHelper.assertItemEntityCountIs
(Item item, BlockPos pos, double expansionAmount, int count) void
GameTestHelper.assertItemEntityNotPresent
(Item item, BlockPos pos, double radius) void
GameTestHelper.assertItemEntityPresent
(Item item, BlockPos pos, double expansionAmount) void
GameTestHelper.assertRedstoneSignal
(BlockPos pos, Direction direction, IntPredicate signalStrengthPredicate, Supplier<String> exceptionMessage) void
GameTestHelper.assertSameBlockState
(BlockPos testPos, BlockPos comparisonPos) void
GameTestHelper.assertSameBlockStates
(BoundingBox boundingBox, BlockPos pos) private static void
StructureUtils.clearBlock
(int structureBlockY, BlockPos pos, ServerLevel serverLevel) static GameTestServer
GameTestServer.create
(Thread serverThread, LevelStorageSource.LevelStorageAccess storageSource, PackRepository packRepository, Collection<TestFunction> testBatches, BlockPos spawnPos) private static Optional
<GameTestInfo> TestCommand.createGameTestInfo
(BlockPos pos, ServerLevel level, RetryOptions retryOptions) static void
StructureUtils.createNewEmptyStructureBlock
(String structureName, BlockPos pos, Vec3i size, Rotation rotation, ServerLevel serverLevel) private static StructureBlockEntity
StructureUtils.createStructureBlock
(GameTestInfo gameTestInfo, BlockPos pos, Rotation rotation, ServerLevel level) void
GameTestHelper.destroyBlock
(BlockPos pos) private static boolean
StructureUtils.doesStructureContain
(BlockPos structureBlockPos, BlockPos posToTest, ServerLevel serverLevel) void
StructureUtils.findNearestStructureBlock
(BlockPos pos, int radius, ServerLevel level) StructureUtils.findStructureBlockContainingPos
(BlockPos pos, int radius, ServerLevel serverLevel) StructureUtils.findStructureBlocks
(BlockPos pos, int radius, ServerLevel level) StructureUtils.findStructureByTestFunction
(BlockPos pos, int radius, ServerLevel level, String testName) <T extends BlockEntity>
TGameTestHelper.getBlockEntity
(BlockPos pos) GameTestHelper.getBlockState
(BlockPos pos) private static BoundingBox
StructureUtils.getBoundingBoxAtGround
(BlockPos pos, int radius, ServerLevel level) GameTestHelper.getEntities
(EntityType<T> entityType, BlockPos pos, double radius) static BoundingBox
StructureUtils.getStructureBoundingBox
(BlockPos pos, Vec3i offset, Rotation rotation) static BlockPos
StructureUtils.getTransformedFarCorner
(BlockPos pos, Vec3i offset, Rotation rotation) StructureUtils.lookedAtStructureBlockPos
(BlockPos pos, Entity entity, ServerLevel level) void
static StructureBlockEntity
StructureUtils.prepareTestStructure
(GameTestInfo gameTestInfo, BlockPos pos, Rotation rotation, ServerLevel level) void
GameTestHelper.pressButton
(BlockPos pos) void
void
GameTestHelper.pulseRedstone
(BlockPos pos, long delay) void
GameTestHelper.randomTick
(BlockPos pos) GameTestHelper.relativePos
(BlockPos pos) void
void
GameTestHelper.setBlock
(BlockPos pos, BlockState state) void
GameTestInfo.setNorthWestCorner
(BlockPos northWestCorner) (package private) void
GameTestInfo.setStructureBlockPos
(BlockPos pos) private static void
ReportGameListener.showRedBox
(ServerLevel serverLevel, BlockPos pos, String displayMessage) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> type, BlockPos pos) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> type, BlockPos pos) void
GameTestHelper.succeedWhenBlockPresent
(Block block, BlockPos pos) <E extends Entity,
T>
voidGameTestHelper.succeedWhenEntityData
(BlockPos pos, EntityType<E> type, Function<E, T> entityDataGetter, T testEntityData) void
GameTestHelper.succeedWhenEntityNotPresent
(EntityType<?> type, BlockPos pos) void
GameTestHelper.succeedWhenEntityPresent
(EntityType<?> type, BlockPos pos) void
GameTestHelper.tickPrecipitation
(BlockPos pos) void
void
void
GameTestHelper.useBlock
(BlockPos pos, Player player, BlockHitResult result) Method parameters in net.minecraft.gametest.framework with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
GameTestHelper.forEveryBlockInStructure
(Consumer<BlockPos> consumer) Constructors in net.minecraft.gametest.framework with parameters of type BlockPosModifierConstructorDescriptionGameTestAssertPosException
(String exceptionMessage, BlockPos absolutePos, BlockPos relativePos, long tick) private
GameTestServer
(Thread serverThread, LevelStorageSource.LevelStorageAccess storageSource, PackRepository packRepository, WorldStem worldStem, Collection<TestFunction> testBatches, BlockPos spawnPos) StructureGridSpawner
(BlockPos northTestNorthWestCorner, int testsPerRow, boolean clearOnBatch) -
Uses of BlockPos in net.minecraft.nbt
Methods in net.minecraft.nbt that return types with arguments of type BlockPosMethods in net.minecraft.nbt with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.network
Methods in net.minecraft.network that return BlockPosModifier and TypeMethodDescriptionFriendlyByteBuf.readBlockPos()
static BlockPos
FriendlyByteBuf.readBlockPos
(io.netty.buffer.ByteBuf buffer) Methods in net.minecraft.network with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
FriendlyByteBuf.writeBlockPos
(io.netty.buffer.ByteBuf buffer, BlockPos pos) FriendlyByteBuf.writeBlockPos
(BlockPos pos) Writes a BlockPos encoded as a long to the buffer. -
Uses of BlockPos in net.minecraft.network.protocol.common.custom
Fields in net.minecraft.network.protocol.common.custom declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BeeDebugPayload.BeeInfo.flowerPos
The field for theflowerPos
record component.private final BlockPos
BeeDebugPayload.BeeInfo.hivePos
The field for thehivePos
record component.private final BlockPos
BreezeDebugPayload.BreezeInfo.jumpTarget
The field for thejumpTarget
record component.private final BlockPos
GameTestAddMarkerDebugPayload.pos
The field for thepos
record component.private final BlockPos
GoalDebugPayload.pos
The field for thepos
record component.private final BlockPos
HiveDebugPayload.HiveInfo.pos
The field for thepos
record component.private final BlockPos
NeighborUpdatesDebugPayload.pos
The field for thepos
record component.private final BlockPos
PoiAddedDebugPayload.pos
The field for thepos
record component.private final BlockPos
PoiRemovedDebugPayload.pos
The field for thepos
record component.private final BlockPos
PoiTicketCountDebugPayload.pos
The field for thepos
record component.private final BlockPos
WorldGenAttemptDebugPayload.pos
The field for thepos
record component.Fields in net.minecraft.network.protocol.common.custom with type parameters of type BlockPosModifier and TypeFieldDescriptionBeeDebugPayload.BeeInfo.blacklistedHives
The field for theblacklistedHives
record component.BrainDebugPayload.BrainDump.pois
The field for thepois
record component.BrainDebugPayload.BrainDump.potentialPois
The field for thepotentialPois
record component.RaidsDebugPayload.raidCenters
The field for theraidCenters
record component.Methods in net.minecraft.network.protocol.common.custom that return BlockPosModifier and TypeMethodDescriptionBeeDebugPayload.BeeInfo.flowerPos()
Returns the value of theflowerPos
record component.BeeDebugPayload.BeeInfo.hivePos()
Returns the value of thehivePos
record component.BreezeDebugPayload.BreezeInfo.jumpTarget()
Returns the value of thejumpTarget
record component.GameTestAddMarkerDebugPayload.pos()
Returns the value of thepos
record component.GoalDebugPayload.pos()
Returns the value of thepos
record component.HiveDebugPayload.HiveInfo.pos()
Returns the value of thepos
record component.NeighborUpdatesDebugPayload.pos()
Returns the value of thepos
record component.PoiAddedDebugPayload.pos()
Returns the value of thepos
record component.PoiRemovedDebugPayload.pos()
Returns the value of thepos
record component.PoiTicketCountDebugPayload.pos()
Returns the value of thepos
record component.WorldGenAttemptDebugPayload.pos()
Returns the value of thepos
record component.Methods in net.minecraft.network.protocol.common.custom that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBeeDebugPayload.BeeInfo.blacklistedHives()
Returns the value of theblacklistedHives
record component.BrainDebugPayload.BrainDump.pois()
Returns the value of thepois
record component.BrainDebugPayload.BrainDump.potentialPois()
Returns the value of thepotentialPois
record component.RaidsDebugPayload.raidCenters()
Returns the value of theraidCenters
record component.Methods in net.minecraft.network.protocol.common.custom with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
boolean
boolean
BrainDebugPayload.BrainDump.hasPotentialPoi
(BlockPos pos) Constructors in net.minecraft.network.protocol.common.custom with parameters of type BlockPosModifierConstructorDescriptionBeeInfo
(UUID uuid, int id, Vec3 pos, Path path, BlockPos hivePos, BlockPos flowerPos, int travelTicks, Set<String> goals, List<BlockPos> blacklistedHives) Creates an instance of aBeeInfo
record class.BreezeInfo
(UUID uuid, int id, Integer attackTarget, BlockPos jumpTarget) Creates an instance of aBreezeInfo
record class.GameTestAddMarkerDebugPayload
(BlockPos pos, int color, String text, int durationMs) Creates an instance of aGameTestAddMarkerDebugPayload
record class.GoalDebugPayload
(int entityId, BlockPos pos, List<GoalDebugPayload.DebugGoal> goals) Creates an instance of aGoalDebugPayload
record class.Creates an instance of aHiveInfo
record class.NeighborUpdatesDebugPayload
(long time, BlockPos pos) Creates an instance of aNeighborUpdatesDebugPayload
record class.PoiAddedDebugPayload
(BlockPos pos, String poiType, int freeTicketCount) Creates an instance of aPoiAddedDebugPayload
record class.Creates an instance of aPoiRemovedDebugPayload
record class.PoiTicketCountDebugPayload
(BlockPos pos, int freeTicketCount) Creates an instance of aPoiTicketCountDebugPayload
record class.WorldGenAttemptDebugPayload
(BlockPos pos, float scale, float red, float green, float blue, float alpha) Creates an instance of aWorldGenAttemptDebugPayload
record class.Constructor parameters in net.minecraft.network.protocol.common.custom with type arguments of type BlockPosModifierConstructorDescriptionBeeInfo
(UUID uuid, int id, Vec3 pos, Path path, BlockPos hivePos, BlockPos flowerPos, int travelTicks, Set<String> goals, List<BlockPos> blacklistedHives) Creates an instance of aBeeInfo
record class.BrainDump
(UUID uuid, int id, String name, String profession, int xp, float health, float maxHealth, Vec3 pos, String inventory, Path path, boolean wantsGolem, int angerLevel, List<String> activities, List<String> behaviors, List<String> memories, List<String> gossips, Set<BlockPos> pois, Set<BlockPos> potentialPois) Creates an instance of aBrainDump
record class.RaidsDebugPayload
(List<BlockPos> raidCenters) Creates an instance of aRaidsDebugPayload
record class. -
Uses of BlockPos in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
ServerboundSetStructureBlockPacket.offset
private final BlockPos
ClientboundBlockDestructionPacket.pos
private final BlockPos
ClientboundBlockEntityDataPacket.pos
private final BlockPos
ClientboundBlockEventPacket.pos
private final BlockPos
ClientboundBlockUpdatePacket.pos
private final BlockPos
ClientboundLevelEventPacket.pos
private final BlockPos
ClientboundOpenSignEditorPacket.pos
private final BlockPos
ClientboundSetDefaultSpawnPositionPacket.pos
private final BlockPos
ServerboundBlockEntityTagQueryPacket.pos
private final BlockPos
ServerboundJigsawGeneratePacket.pos
private final BlockPos
ServerboundPlayerActionPacket.pos
private final BlockPos
ServerboundSetCommandBlockPacket.pos
private final BlockPos
ServerboundSetJigsawBlockPacket.pos
private final BlockPos
ServerboundSetStructureBlockPacket.pos
private final BlockPos
ServerboundSignUpdatePacket.pos
Fields in net.minecraft.network.protocol.game with type parameters of type BlockPosMethods in net.minecraft.network.protocol.game that return BlockPosModifier and TypeMethodDescriptionServerboundSetStructureBlockPacket.getOffset()
ClientboundBlockDestructionPacket.getPos()
ClientboundBlockEntityDataPacket.getPos()
ClientboundBlockEventPacket.getPos()
ClientboundBlockUpdatePacket.getPos()
ClientboundLevelEventPacket.getPos()
ClientboundOpenSignEditorPacket.getPos()
ClientboundSetDefaultSpawnPositionPacket.getPos()
ServerboundBlockEntityTagQueryPacket.getPos()
ServerboundJigsawGeneratePacket.getPos()
ServerboundPlayerActionPacket.getPos()
ServerboundSetCommandBlockPacket.getPos()
ServerboundSetJigsawBlockPacket.getPos()
ServerboundSetStructureBlockPacket.getPos()
ServerboundSignUpdatePacket.getPos()
Methods in net.minecraft.network.protocol.game that return types with arguments of type BlockPosMethods in net.minecraft.network.protocol.game with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ClientboundLevelChunkPacketData.BlockEntityTagOutput.accept
(BlockPos pos, BlockEntityType<?> type, CompoundTag nbt) static void
DebugPackets.sendGameTestAddMarker
(ServerLevel level, BlockPos pos, String text, int color, int lifetimeMillis) static void
DebugPackets.sendHiveInfo
(Level level, BlockPos pos, BlockState blockState, BeehiveBlockEntity hiveBlockEntity) static void
DebugPackets.sendNeighborsUpdatePacket
(Level level, BlockPos pos) static void
DebugPackets.sendPoiAddedPacket
(ServerLevel level, BlockPos pos) static void
DebugPackets.sendPoiRemovedPacket
(ServerLevel level, BlockPos pos) static void
DebugPackets.sendPoiTicketCountPacket
(ServerLevel level, BlockPos pos) private static void
DebugPackets.sendVillageSectionsPacket
(ServerLevel level, BlockPos pos) Method parameters in net.minecraft.network.protocol.game with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
ClientboundSectionBlocksUpdatePacket.runUpdates
(BiConsumer<BlockPos, BlockState> consumer) Constructors in net.minecraft.network.protocol.game with parameters of type BlockPosModifierConstructorDescriptionClientboundAddEntityPacket
(Entity entity, int data, BlockPos pos) ClientboundBlockDestructionPacket
(int id, BlockPos pos, int progress) private
ClientboundBlockEntityDataPacket
(BlockPos pos, BlockEntityType<?> type, CompoundTag tag) ClientboundBlockEventPacket
(BlockPos pos, Block block, int b0, int b1) ClientboundBlockUpdatePacket
(BlockPos pos, BlockState blockState) ClientboundBlockUpdatePacket
(BlockGetter blockGetter, BlockPos pos) ClientboundLevelEventPacket
(int type, BlockPos pos, int data, boolean globalEvent) ClientboundOpenSignEditorPacket
(BlockPos pos, boolean isFrontText) ClientboundSetDefaultSpawnPositionPacket
(BlockPos pos, float angle) ServerboundBlockEntityTagQueryPacket
(int transactionId, BlockPos pos) ServerboundJigsawGeneratePacket
(BlockPos pos, int levels, boolean keepJigsaws) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction, int sequence) ServerboundSetCommandBlockPacket
(BlockPos pos, String command, CommandBlockEntity.Mode mode, boolean trackOutput, boolean conditional, boolean automatic) ServerboundSetJigsawBlockPacket
(BlockPos pos, ResourceLocation name, ResourceLocation target, ResourceLocation pool, String finalState, JigsawBlockEntity.JointType joint, int selectionPriority, int placementPriority) ServerboundSetStructureBlockPacket
(BlockPos pos, StructureBlockEntity.UpdateType updateType, StructureMode mode, String name, BlockPos offset, Vec3i size, Mirror mirror, Rotation rotation, String data, boolean ignoreEntities, boolean showAir, boolean showBoundingBox, float integrity, long seed) ServerboundSignUpdatePacket
(BlockPos pos, boolean isFrontText, String line1, String line2, String line3, String line4) Constructor parameters in net.minecraft.network.protocol.game with type arguments of type BlockPosModifierConstructorDescriptionClientboundExplodePacket
(double x, double y, double z, float power, List<BlockPos> toBlow, Vec3 knockback, Explosion.BlockInteraction blockInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) -
Uses of BlockPos in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type BlockPosModifier and TypeFieldDescriptionstatic final EntityDataSerializer
<BlockPos> EntityDataSerializers.BLOCK_POS
static final EntityDataSerializer
<Optional<BlockPos>> EntityDataSerializers.OPTIONAL_BLOCK_POS
-
Uses of BlockPos in net.minecraft.server
Methods in net.minecraft.server with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
MinecraftServer.isUnderSpawnProtection
(ServerLevel level, BlockPos pos, Player player) -
Uses of BlockPos in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
CloneCommands.CloneBlockInfo.pos
The field for thepos
record component.private final BlockPos
CloneCommands.DimensionAndPosition.position
The field for theposition
record component.Methods in net.minecraft.server.commands that return BlockPosModifier and TypeMethodDescriptionCloneCommands.CloneBlockInfo.pos()
Returns the value of thepos
record component.CloneCommands.DimensionAndPosition.position()
Returns the value of theposition
record component.private static BlockPos
Methods in net.minecraft.server.commands with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static int
LootCommand.blockDistribute
(CommandSourceStack source, BlockPos pos, List<ItemStack> items, LootCommand.Callback callback) private static int
LootCommand.blockReplace
(CommandSourceStack source, BlockPos pos, int slot, int numSlots, List<ItemStack> items, LootCommand.Callback callback) private static int
ItemCommands.blockToBlock
(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommands.blockToBlock
(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, Holder<LootItemFunction> modifier) private static int
ItemCommands.blockToEntities
(CommandSourceStack source, BlockPos pos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommands.blockToEntities
(CommandSourceStack source, BlockPos pos, int sourceSlot, Collection<? extends Entity> targets, int slot, Holder<LootItemFunction> modifier) private static OptionalInt
ExecuteCommand.checkRegions
(ServerLevel level, BlockPos begin, BlockPos end, BlockPos destination, boolean isMasked) private static int
ExecuteCommand.countItems
(CommandSourceStack source, BlockPos pos, SlotRange slotRange, Predicate<ItemStack> filter) private static int
LootCommand.dropBlockLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, BlockPos pos, ItemStack tool, LootCommand.DropConsumer dropConsumer) private static int
LootCommand.dropFishingLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, BlockPos pos, ItemStack tool, LootCommand.DropConsumer dropConsumet) private static int
ItemCommands.entityToBlock
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommands.entityToBlock
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, Holder<LootItemFunction> modifier) private static int
FillBiomeCommand.fill
(CommandSourceStack source, BlockPos from, BlockPos to, Holder.Reference<Biome> biome, Predicate<Holder<Biome>> filter) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fill
(ServerLevel level, BlockPos from, BlockPos to, Holder<Biome> biome, Predicate<Holder<Biome>> filter, Consumer<Supplier<Component>> messageOutput) private static int
DebugPathCommand.fillBlocks
(CommandSourceStack stack, BlockPos pos) SetBlockCommand.Filter.filter
(BoundingBox boundingBox, BlockPos pos, BlockInput blockInput, ServerLevel level) private static ItemStack
ItemCommands.getBlockItem
(CommandSourceStack source, BlockPos pos, int slot) (package private) static Container
ItemCommands.getContainer
(CommandSourceStack source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception) private static Container
LootCommand.getContainer
(CommandSourceStack source, BlockPos pos) private static boolean
ExecuteCommand.isChunkLoaded
(ServerLevel level, BlockPos pos) private static int
ItemCommands.modifyBlockItem
(CommandSourceStack source, BlockPos pos, int slot, Holder<LootItemFunction> modifier) static int
PlaceCommand.placeFeature
(CommandSourceStack source, Holder.Reference<ConfiguredFeature<?, ?>> feature, BlockPos pos) static int
PlaceCommand.placeJigsaw
(CommandSourceStack source, Holder<StructureTemplatePool> templatePool, ResourceLocation target, int maxDepth, BlockPos pos) static int
PlaceCommand.placeStructure
(CommandSourceStack source, Holder.Reference<Structure> p_structure, BlockPos pos) static int
PlaceCommand.placeTemplate
(CommandSourceStack source, ResourceLocation template, BlockPos pos, Rotation rotation, Mirror mirror, float integrity, int seed) private static BlockPos
private static int
SetBlockCommand.setBlock
(CommandSourceStack source, BlockPos pos, BlockInput state, SetBlockCommand.Mode mode, Predicate<BlockInWorld> predicate) private static int
ItemCommands.setBlockItem
(CommandSourceStack source, BlockPos pos, int slot, ItemStack item) private static int
SetSpawnCommand.setSpawn
(CommandSourceStack source, Collection<ServerPlayer> targets, BlockPos pos, float angle) private static int
SetWorldSpawnCommand.setSpawn
(CommandSourceStack source, BlockPos pos, float angle) static int
LocateCommand.showLocateResult
(CommandSourceStack source, ResourceOrTagArgument.Result<?> result, BlockPos sourcePosition, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> resultWithPosition, String translationKey, boolean absoluteY, Duration duration) static int
LocateCommand.showLocateResult
(CommandSourceStack source, ResourceOrTagKeyArgument.Result<?> result, BlockPos sourcePosition, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> resultWithPosition, String translationKey, boolean absoluteY, Duration duration) private static int
LocateCommand.showLocateResult
(CommandSourceStack source, BlockPos sourcePosition, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> resultWithoutPosition, String translationKey, boolean absoluteY, String elementName, Duration duration) private static int
DebugMobSpawningCommand.spawnMobs
(CommandSourceStack source, MobCategory mobCategory, BlockPos pos) Method parameters in net.minecraft.server.commands with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic int
LocateCommand.showLocateResult
(CommandSourceStack source, ResourceOrTagArgument.Result<?> result, BlockPos sourcePosition, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> resultWithPosition, String translationKey, boolean absoluteY, Duration duration) static int
LocateCommand.showLocateResult
(CommandSourceStack source, ResourceOrTagKeyArgument.Result<?> result, BlockPos sourcePosition, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> resultWithPosition, String translationKey, boolean absoluteY, Duration duration) private static int
LocateCommand.showLocateResult
(CommandSourceStack source, BlockPos sourcePosition, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> resultWithoutPosition, String translationKey, boolean absoluteY, String elementName, Duration duration) Constructors in net.minecraft.server.commands with parameters of type BlockPosModifierConstructorDescription(package private)
CloneBlockInfo
(BlockPos pos, BlockState state, CloneCommands.CloneBlockEntityInfo blockEntityInfo) Creates an instance of aCloneBlockInfo
record class.(package private)
DimensionAndPosition
(ServerLevel dimension, BlockPos position) Creates an instance of aDimensionAndPosition
record class. -
Uses of BlockPos in net.minecraft.server.commands.data
Fields in net.minecraft.server.commands.data declared as BlockPosConstructors in net.minecraft.server.commands.data with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
DedicatedServer.isUnderSpawnProtection
(ServerLevel level, BlockPos pos, Player player) -
Uses of BlockPos in net.minecraft.server.level
Fields in net.minecraft.server.level declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
ServerPlayerGameMode.delayedDestroyPos
private BlockPos
ServerPlayerGameMode.destroyPos
static final BlockPos
ServerLevel.END_SPAWN_POINT
private final BlockPos
BlockDestructionProgress.pos
private BlockPos
ServerPlayer.raidOmenPosition
private BlockPos
ServerPlayer.respawnPosition
Fields in net.minecraft.server.level with type parameters of type BlockPosMethods in net.minecraft.server.level that return BlockPosModifier and TypeMethodDescriptionServerPlayer.adjustSpawnLocation
(ServerLevel level, BlockPos pos) protected BlockPos
ServerLevel.findLightningTargetAround
(BlockPos pos) ServerLevel.findNearestMapStructure
(TagKey<Structure> structureTag, BlockPos pos, int radius, boolean skipExistingChunks) protected static BlockPos
PlayerRespawnLogic.getOverworldRespawnPos
(ServerLevel level, int x, int z) BlockDestructionProgress.getPos()
ServerPlayer.getRaidOmenPosition()
ServerPlayer.getRespawnPosition()
static BlockPos
PlayerRespawnLogic.getSpawnPosInChunk
(ServerLevel level, ChunkPos chunkPos) Methods in net.minecraft.server.level that return types with arguments of type BlockPosModifier and TypeMethodDescriptionServerLevel.findClosestBiome3d
(Predicate<Holder<Biome>> biomePredicate, BlockPos pos, int radius, int horizontalStep, int verticalStep) ServerLevel.findLightningRod
(BlockPos pos) Methods in net.minecraft.server.level with parameters of type BlockPosModifier and TypeMethodDescriptionServerPlayer.adjustSpawnLocation
(ServerLevel level, BlockPos pos) private boolean
ServerPlayer.bedBlocked
(BlockPos pos, Direction direction) private boolean
ServerPlayer.bedInRange
(BlockPos pos, Direction direction) void
ChunkHolder.blockChanged
(BlockPos pos) void
ServerChunkCache.blockChanged
(BlockPos pos) void
ServerLevel.blockEvent
(BlockPos pos, Block block, int eventID, int eventParam) void
ServerLevel.blockUpdated
(BlockPos pos, Block block) private void
ChunkHolder.broadcastBlockEntity
(List<ServerPlayer> players, Level level, BlockPos pos) private void
ChunkHolder.broadcastBlockEntityIfNeeded
(List<ServerPlayer> players, Level level, BlockPos pos, BlockState state) private static float
ServerPlayer.RespawnPosAngle.calculateLookAtYaw
(Vec3 position, BlockPos towardsPos) void
ThreadedLevelLightEngine.checkBlock
(BlockPos pos) protected void
ServerPlayer.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) private void
ServerPlayerGameMode.debugLogging
(BlockPos pos, boolean terminate, int sequence, String message) void
ServerPlayerGameMode.destroyAndAck
(BlockPos pos, int sequence, String message) boolean
ServerPlayerGameMode.destroyBlock
(BlockPos pos) Attempts to harvest a blockboolean
WorldGenRegion.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) void
ServerLevel.destroyBlockProgress
(int breakerId, BlockPos pos, int progress) boolean
WorldGenRegion.ensureCanWrite
(BlockPos pos) ServerLevel.findClosestBiome3d
(Predicate<Holder<Biome>> biomePredicate, BlockPos pos, int radius, int horizontalStep, int verticalStep) ServerLevel.findLightningRod
(BlockPos pos) protected BlockPos
ServerLevel.findLightningTargetAround
(BlockPos pos) ServerLevel.findNearestMapStructure
(TagKey<Structure> structureTag, BlockPos pos, int radius, boolean skipExistingChunks) private static Optional
<ServerPlayer.RespawnPosAngle> ServerPlayer.findRespawnAndUseSpawnBlock
(ServerLevel level, BlockPos pos, float angle, boolean forced, boolean keepInventory) WorldGenRegion.getBlockEntity
(BlockPos pos) WorldGenRegion.getBlockState
(BlockPos pos) WorldGenRegion.getCurrentDifficultyAt
(BlockPos pos) WorldGenRegion.getFluidState
(BlockPos pos) void
ServerLevel.globalLevelEvent
(int id, BlockPos pos, int data) void
DemoMode.handleBlockBreakAction
(BlockPos pos, ServerboundPlayerActionPacket.Action action, Direction face, int maxBuildHeight, int sequence) void
ServerPlayerGameMode.handleBlockBreakAction
(BlockPos pos, ServerboundPlayerActionPacket.Action action, Direction face, int maxBuildHeight, int sequence) private float
ServerPlayerGameMode.incrementDestroyProgress
(BlockState state, BlockPos pos, int startTick) void
ServerLevel.invalidateCapabilities
(BlockPos pos) boolean
ServerLevel.isCloseToVillage
(BlockPos pos, int sections) boolean
WorldGenRegion.isFluidAtPosition
(BlockPos pos, Predicate<FluidState> predicate) boolean
ServerLevel.isNaturalSpawningAllowed
(BlockPos pos) boolean
ServerLevel.isPositionEntityTicking
(BlockPos pos) boolean
private boolean
ServerPlayer.isReachableBedBlock
(BlockPos pos) boolean
WorldGenRegion.isStateAtPosition
(BlockPos pos, Predicate<BlockState> state) boolean
void
ServerLevel.levelEvent
(Player player, int type, BlockPos pos, int data) void
WorldGenRegion.levelEvent
(Player player, int type, BlockPos pos, int data) private void
WorldGenRegion.markPosForPostprocessing
(BlockPos pos) boolean
ServerLevel.mayInteract
(Player player, BlockPos pos) boolean
ServerPlayer.mayInteract
(Level level, BlockPos pos) void
ServerLevel.neighborChanged
(BlockPos pos, Block block, BlockPos fromPos) void
ServerLevel.neighborChanged
(BlockState state, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) static ServerPlayer.RespawnPosAngle
void
ServerLevel.onBlockStateChange
(BlockPos pos, BlockState blockState, BlockState newState) protected void
ServerPlayer.onChangedBlock
(ServerLevel level, BlockPos pos) void
WorldGenRegion.playSound
(Player player, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) Plays a sound.void
ServerLevel.registerCapabilityListener
(BlockPos pos, ICapabilityInvalidationListener listener) Register a listener for capability invalidation.private boolean
ServerPlayerGameMode.removeBlock
(BlockPos pos, BlockState state, boolean canHarvest) Patched-in method that handles actual removal of blocks forServerPlayerGameMode.destroyBlock(BlockPos)
.boolean
WorldGenRegion.removeBlock
(BlockPos pos, boolean isMoving) void
ServerLevel.sendBlockUpdated
(BlockPos pos, BlockState oldState, BlockState newState, int flags) Flags are as in setBlockStateboolean
WorldGenRegion.setBlock
(BlockPos pos, BlockState state, int flags, int recursionLeft) void
ServerLevel.setDefaultSpawnPos
(BlockPos pos, float angle) void
ServerPlayer.setRaidOmenPosition
(BlockPos raidOmenPosition) void
ServerPlayer.setRespawnPosition
(ResourceKey<Level> dimension, BlockPos position, float angle, boolean forced, boolean sendMessage) com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> ServerPlayer.startSleepInBed
(BlockPos at) void
ServerPlayer.startSleeping
(BlockPos pos) private void
private void
void
ServerLevel.tickPrecipitation
(BlockPos blockPos) void
ServerLevel.updateNeighborsAt
(BlockPos pos, Block block) void
ServerLevel.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block blockType, Direction skipSide) Constructors in net.minecraft.server.level with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.util
Methods in net.minecraft.util with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
SpawnUtil.Strategy.canSpawnOn
(ServerLevel level, BlockPos targetPos, BlockState targetState, BlockPos attemptedPos, BlockState attemptedState) static void
ParticleUtils.spawnParticleBelow
(Level level, BlockPos pos, RandomSource random, ParticleOptions particle) static void
ParticleUtils.spawnParticleInBlock
(LevelAccessor level, BlockPos pos, int count, ParticleOptions particle) static void
ParticleUtils.spawnParticleOnFace
(Level level, BlockPos pos, Direction direction, ParticleOptions particle, Vec3 speed, double spread) static void
ParticleUtils.spawnParticles
(LevelAccessor level, BlockPos pos, int count, double xzSpread, double ySpread, boolean allowInAir, ParticleOptions particle) static void
ParticleUtils.spawnParticlesAlongAxis
(Direction.Axis axis, Level level, BlockPos pos, double spread, ParticleOptions particle, UniformInt count) static void
ParticleUtils.spawnParticlesOnBlockFace
(Level level, BlockPos pos, ParticleOptions particle, IntProvider count, Direction direction, Supplier<Vec3> speedSupplier, double spread) static void
ParticleUtils.spawnParticlesOnBlockFaces
(Level level, BlockPos pos, ParticleOptions particle, IntProvider count) static void
ParticleUtils.spawnSmashAttackParticles
(LevelAccessor level, BlockPos pos, int power) SpawnUtil.trySpawnMob
(EntityType<T> entityType, MobSpawnType spawnType, ServerLevel level, BlockPos pos, int attempts, int spread, int yOffset, SpawnUtil.Strategy strategy) -
Uses of BlockPos in net.minecraft.world
Methods in net.minecraft.world that return BlockPosMethods in net.minecraft.world with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
Containers.dropContents
(Level level, BlockPos pos, NonNullList<ItemStack> stackList) static void
Containers.dropContents
(Level level, BlockPos pos, Container inventory) static void
Containers.dropContentsOnDestroy
(BlockState state, BlockState newState, Level level, BlockPos pos) WorldlyContainerHolder.getContainer
(BlockState state, LevelAccessor level, BlockPos pos) static void
RandomizableContainer.setBlockEntityLootTable
(BlockGetter level, RandomSource random, BlockPos ps, ResourceKey<LootTable> lootTable) -
Uses of BlockPos in net.minecraft.world.effect
Methods in net.minecraft.world.effect with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
WeavingMobEffect.spawnCobwebsRandomlyAround
(Level level, RandomSource random, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
Entity.blockPosition
private BlockPos
PortalProcessor.entryPosition
private BlockPos
LivingEntity.lastPos
private BlockPos
Mob.restrictCenter
Fields in net.minecraft.world.entity with type parameters of type BlockPosModifier and TypeFieldDescriptionLeashable.LeashData.delayedLeashInfo
LivingEntity.lastClimbablePos
Entity.mainSupportingBlockPos
private static final EntityDataAccessor
<Optional<BlockPos>> LivingEntity.SLEEPING_POS_ID
Methods in net.minecraft.world.entity that return BlockPosModifier and TypeMethodDescriptionEntity.adjustSpawnLocation
(ServerLevel level, BlockPos pos) default BlockPos
SpawnPlacementType.adjustSpawnPosition
(LevelReader level, BlockPos pos) Entity.blockPosition()
ExperienceOrb.getBlockPosBelowThatAffectsMyMovement()
PortalProcessor.getEntryPosition()
Entity.getOnPos()
protected BlockPos
Entity.getOnPos
(float yOffset) Entity.getOnPosLegacy()
Deprecated.protected BlockPos
Entity.getPrimaryStepSoundBlockPos
(BlockPos pos) Mob.getRestrictCenter()
private BlockPos
LightningBolt.getStrikePosition()
Methods in net.minecraft.world.entity that return types with arguments of type BlockPosModifier and TypeMethodDescriptionLivingEntity.getLastClimbablePos()
LivingEntity.getSleepingPos()
LightningBolt.randomStepCleaningCopper
(Level level, BlockPos pos) Methods in net.minecraft.world.entity with parameters of type BlockPosModifier and TypeMethodDescriptionEntity.adjustSpawnLocation
(ServerLevel level, BlockPos pos) default BlockPos
SpawnPlacementType.adjustSpawnPosition
(LevelReader level, BlockPos pos) private boolean
TamableAnimal.canTeleportTo
(BlockPos pos) boolean
Entity.canTrample
(BlockState state, BlockPos pos, float fallDistance) protected void
Entity.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) protected void
FlyingMob.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) protected void
LivingEntity.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) static boolean
GlowSquid.checkGlowSquidSpawnRules
(EntityType<? extends LivingEntity> glowSquid, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Mob.checkMobSpawnRules
(EntityType<? extends Mob> type, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules
(EntityType<T> entityType, ServerLevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) private static void
LightningBolt.clearCopperOnLightningStrike
(Level level, BlockPos pos) EntityType.create
(ServerLevel level, Consumer<T> consumer, BlockPos pos, MobSpawnType spawnType, boolean shouldOffsetY, boolean shouldOffsetYMore) float
Entity.getBlockExplosionResistance
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, float explosionPower) Explosion resistance of a block relative to this entityprotected BlockPos
Entity.getPrimaryStepSoundBlockPos
(BlockPos pos) float
PathfinderMob.getWalkTargetValue
(BlockPos pos) float
PathfinderMob.getWalkTargetValue
(BlockPos pos, LevelReader level) protected static double
EntityType.getYOffset
(LevelReader level, BlockPos pos, boolean shouldOffsetYMore, AABB box) boolean
Entity.isColliding
(BlockPos pos, BlockState state) static boolean
SpawnPlacements.isSpawnPositionOk
(EntityType<?> entityType, LevelReader level, BlockPos pos) boolean
SpawnPlacementType.isSpawnPositionOk
(LevelReader level, BlockPos pos, EntityType<?> entityType) boolean
Entity.isSupportedBy
(BlockPos pos) boolean
Mob.isWithinRestriction
(BlockPos pos) boolean
Entity.mayInteract
(Level level, BlockPos pos) void
protected void
LivingEntity.onChangedBlock
(ServerLevel level, BlockPos pos) void
Entity.placePortalTicket
(BlockPos pos) protected void
Entity.playCombinationStepSounds
(BlockState primaryState, BlockState secondaryState, BlockPos primaryPos, BlockPos secondaryPos) protected void
Entity.playMuffledStepSound
(BlockState state, BlockPos pos) protected void
Entity.playStepSound
(BlockPos pos, BlockState state) LightningBolt.randomStepCleaningCopper
(Level level, BlockPos pos) private static void
LightningBolt.randomWalkCleaningCopper
(Level level, BlockPos pos, BlockPos.MutableBlockPos mutable, int steps) void
Mob.restrictTo
(BlockPos pos, int distance) void
Entity.setAsInsidePortal
(Portal portal, BlockPos pos) private void
LivingEntity.setPosToBed
(BlockPos pos) Sets entity position to a supplied BlockPos plus a little offsetvoid
LivingEntity.setRecordPlayingNearby
(BlockPos jukebox, boolean partyParrot) Called when a record starts or stops playing.void
LivingEntity.setSleepingPos
(BlockPos pos) boolean
Entity.shouldBlockExplode
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, float explosionPower) EntityType.spawn
(ServerLevel level, Consumer<T> consumer, BlockPos pos, MobSpawnType spawnType, boolean shouldOffsetY, boolean shouldOffsetYMore) EntityType.spawn
(ServerLevel level, BlockPos pos, MobSpawnType spawnType) EntityType.spawn
(ServerLevel serverLevel, ItemStack stack, Player player, BlockPos pos, MobSpawnType spawnType, boolean shouldOffsetY, boolean shouldOffsetYMore) void
LivingEntity.startSleeping
(BlockPos pos) private void
TamableAnimal.teleportToAroundBlockPos
(BlockPos pos) boolean
SpawnPlacements.SpawnPredicate.test
(EntityType<T> entityType, ServerLevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) private boolean
LivingEntity.trapdoorUsableAsLadder
(BlockPos pos, BlockState state) void
PortalProcessor.updateEntryPosition
(BlockPos entryPosition) private boolean
Entity.vibrationAndSoundEffectsFromBlock
(BlockPos pos, BlockState state, boolean playStepSound, boolean broadcastGameEvent, Vec3 entityPos) private void
Entity.walkingStepSound
(BlockPos pos, BlockState state) Constructors in net.minecraft.world.entity with parameters of type BlockPosConstructor parameters in net.minecraft.world.entity with type arguments of type BlockPos -
Uses of BlockPos in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
HarvestFarmland.aboveFarmlandPos
private final BlockPos
BlockPosTracker.blockPos
private final BlockPos
LongJumpToRandomPos.PossibleJump.jumpTarget
private BlockPos
MoveToTargetSink.lastTargetPos
private final BlockPos
PrepareRamNearestTarget.RamCandidate.startPosition
private BlockPos
JumpOnBed.targetBed
private final BlockPos
PrepareRamNearestTarget.RamCandidate.targetPosition
Fields in net.minecraft.world.entity.ai.behavior with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final BiPredicate
<E, BlockPos> LongJumpToRandomPos.acceptableLandingSpot
UseBonemeal.cropPos
HarvestFarmland.validFarmlandAroundVillager
Methods in net.minecraft.world.entity.ai.behavior that return BlockPosModifier and TypeMethodDescriptionBlockPosTracker.currentBlockPosition()
EntityTracker.currentBlockPosition()
PositionTracker.currentBlockPosition()
LongJumpToRandomPos.PossibleJump.getJumpTarget()
private static BlockPos
GoToTargetLocation.getNearbyPos
(Mob mob, BlockPos pos) PrepareRamNearestTarget.RamCandidate.getStartPosition()
PrepareRamNearestTarget.RamCandidate.getTargetPosition()
private BlockPos
HarvestFarmland.getValidFarmland
(ServerLevel serverLevel) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type BlockPosModifier and TypeMethodDescriptionPrepareRamNearestTarget.calculateRammingStartPosition
(PathfinderMob pathfinder, LivingEntity entity) JumpOnBed.getNearestBed
(Mob mob) AnimalPanic.lookForWater
(BlockGetter level, Entity entity) UseBonemeal.pickNextTarget
(ServerLevel level, Villager villager) VillagerMakeLove.takeVacantBed
(ServerLevel level, Villager villager) Methods in net.minecraft.world.entity.ai.behavior with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static boolean
InteractWithDoor.areOtherMobsComingThroughDoor
(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> nearestLivingEntities) private static boolean
ValidateNearbyPoi.bedIsOccupied
(ServerLevel level, BlockPos pos, LivingEntity entity) private boolean
private static boolean
YieldJobSite.canReachPos
(PathfinderMob mob, BlockPos pos, PoiType poi) static <E extends Mob>
booleanLongJumpToRandomPos.defaultAcceptableLandingSpot
(E mob, BlockPos pos) private Vec3
PrepareRamNearestTarget.getEdgeOfBlock
(BlockPos pos, BlockPos other) private static BlockPos
GoToTargetLocation.getNearbyPos
(Mob mob, BlockPos pos) private void
VillagerMakeLove.giveBedToChild
(ServerLevel level, Villager villager, BlockPos pos) static boolean
MoveToSkySeeingSpot.hasNoBlocksAbove
(ServerLevel level, LivingEntity entity, BlockPos pos) private boolean
LongJumpToRandomPos.isAcceptableLandingPosition
(ServerLevel level, E entity, BlockPos pos) private boolean
JumpOnBed.isBed
(ServerLevel level, BlockPos pos) private static boolean
InteractWithDoor.isMobComingThroughDoor
(Brain<?> brain, BlockPos pos) private boolean
PrepareRamNearestTarget.isWalkableBlock
(PathfinderMob pathfinder, BlockPos pos) private static boolean
YieldJobSite.nearbyWantsJobsite
(Holder<PoiType> poi, Villager villager, BlockPos pos) InteractWithDoor.rememberDoorToClose
(MemoryAccessor<com.mojang.datafixers.kinds.OptionalBox.Mu, Set<GlobalPos>> doorsToClose, Optional<Set<GlobalPos>> doorPositions, ServerLevel level, BlockPos pos) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity livingEntity, BlockPos pos, float speed, int distance) private void
WorkAtComposter.spawnComposterFillEffects
(ServerLevel level, BlockState preState, BlockPos pos, BlockState postState) private void
JumpOnBed.startWalkingTowardsBed
(Mob mob, BlockPos pos) private boolean
HarvestFarmland.validPos
(BlockPos pos, ServerLevel serverLevel) private boolean
UseBonemeal.validPos
(BlockPos pos, ServerLevel level) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type BlockPosModifier and TypeMethodDescriptionGoToTargetLocation.create
(MemoryModuleType<BlockPos> locationMemory, int closeEnoughDist, float speedModifier) static Path
AcquirePoi.findPathToPois
(Mob mob, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> poiPositions) static BehaviorControl
<PathfinderMob> SetWalkTargetAwayFrom.pos
(MemoryModuleType<BlockPos> walkTargetAwayFromMemory, float speedModifier, int desiredDistance, boolean hasTarget) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type BlockPosModifierConstructorDescriptionBlockPosTracker
(BlockPos blockPos) PossibleJump
(BlockPos jumpTarget, int weight) RamCandidate
(BlockPos startPosition, BlockPos targetPosition, LivingEntity target) Constructor parameters in net.minecraft.world.entity.ai.behavior with type arguments of type BlockPosModifierConstructorDescriptionLongJumpToPreferredBlock
(UniformInt timeBetweenLongJumps, int maxLongJumpHeight, int maxLongJumpWidth, float maxJumpVelocity, Function<E, SoundEvent> getJumpSound, TagKey<Block> preferredBlockTag, float preferredBlocksChance, BiPredicate<E, BlockPos> acceptableLandingSpot) LongJumpToRandomPos
(UniformInt timeBetweenLongJumps, int maxLongJumpHeight, int maxLongJumpWidth, float maxJumpVelocity, Function<E, SoundEvent> getJumpSound, BiPredicate<E, BlockPos> acceptableLandingSpot) -
Uses of BlockPos in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as BlockPosModifier and TypeFieldDescriptionprotected BlockPos
MoveToBlockGoal.blockPos
Block to move toprotected BlockPos
DoorInteractGoal.doorPos
private BlockPos
MoveThroughVillageGoal.poiPos
private BlockPos
StrollThroughVillageGoal.wantedPos
Fields in net.minecraft.world.entity.ai.goal with type parameters of type BlockPosMethods in net.minecraft.world.entity.ai.goal that return BlockPosModifier and TypeMethodDescriptionprotected BlockPos
MoveToBlockGoal.getMoveToTarget()
private BlockPos
RemoveBlockGoal.getPosWithBlock
(BlockPos pos, BlockGetter level) private BlockPos
GolemRandomStrollInVillageGoal.getRandomPoiWithinSection
(SectionPos sectionPos) protected BlockPos
PanicGoal.lookForWater
(BlockGetter level, Entity entity, int range) Methods in net.minecraft.world.entity.ai.goal with parameters of type BlockPosModifier and TypeMethodDescriptionprivate BlockPos
RemoveBlockGoal.getPosWithBlock
(BlockPos pos, BlockGetter level) private boolean
BreathAirGoal.givesAir
(LevelReader level, BlockPos pos) private boolean
MoveThroughVillageGoal.hasNotVisited
(BlockPos pos) protected boolean
CatLieOnBedGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprotected boolean
CatSitOnBlockGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprotected abstract boolean
MoveToBlockGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprotected boolean
RemoveBlockGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationvoid
RemoveBlockGoal.playBreakSound
(Level level, BlockPos pos) void
RemoveBlockGoal.playDestroyProgressSound
(LevelAccessor level, BlockPos pos) private boolean
DolphinJumpGoal.surfaceIsClear
(BlockPos pos, int dx, int dz, int scale) private boolean
DolphinJumpGoal.waterIsClear
(BlockPos pos, int dx, int dz, int scale) -
Uses of BlockPos in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type BlockPosModifier and TypeFieldDescriptionstatic final MemoryModuleType
<BlockPos> MemoryModuleType.BREEZE_JUMP_TARGET
static final MemoryModuleType
<BlockPos> MemoryModuleType.CELEBRATE_LOCATION
static final MemoryModuleType
<BlockPos> MemoryModuleType.DISTURBANCE_LOCATION
static final MemoryModuleType
<BlockPos> MemoryModuleType.NEAREST_BED
static final MemoryModuleType
<BlockPos> MemoryModuleType.NEAREST_REPELLENT
static final MemoryModuleType
<BlockPos> MemoryModuleType.SNIFFER_SNIFFING_TARGET
Constructors in net.minecraft.world.entity.ai.memory with parameters of type BlockPosModifierConstructorDescriptionWalkTarget
(BlockPos pos, float speedModifier, int closeEnoughDist) Constructs a walk target that tracks a position -
Uses of BlockPos in net.minecraft.world.entity.ai.sensing
Methods in net.minecraft.world.entity.ai.sensing that return types with arguments of type BlockPosModifier and TypeMethodDescriptionHoglinSpecificSensor.findNearestRepellent
(ServerLevel level, Hoglin hoglin) PiglinSpecificSensor.findNearestRepellent
(ServerLevel level, LivingEntity livingEntity) Methods in net.minecraft.world.entity.ai.sensing with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static boolean
PiglinSpecificSensor.isValidRepellent
(ServerLevel level, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.entity.ai.util
Methods in net.minecraft.world.entity.ai.util that return BlockPosModifier and TypeMethodDescriptionstatic BlockPos
RandomPos.generateRandomDirection
(RandomSource random, int horizontalDistance, int verticalDistance) Gets a random position within a certain distance.static BlockPos
RandomPos.generateRandomDirectionWithinRadians
(RandomSource random, int maxHorizontalDifference, int yRange, int y, double x, double z, double maxAngleDelta) static BlockPos
AirAndWaterRandomPos.generateRandomPos
(PathfinderMob mob, int maxDistance, int yRange, int y, double x, double z, double amplifier, boolean shortCircuit) private static BlockPos
DefaultRandomPos.generateRandomPosTowardDirection
(PathfinderMob mob, int radius, boolean shortCircuit, BlockPos pos) static BlockPos
LandRandomPos.generateRandomPosTowardDirection
(PathfinderMob mob, int radius, boolean shortCircuit, BlockPos pos) static BlockPos
RandomPos.generateRandomPosTowardDirection
(PathfinderMob mob, int range, RandomSource random, BlockPos pos) static BlockPos
LandRandomPos.movePosUpOutOfSolid
(PathfinderMob mob, BlockPos pos) static BlockPos
RandomPos.moveUpOutOfSolid
(BlockPos pos, int maxY, Predicate<BlockPos> posPredicate) static BlockPos
RandomPos.moveUpToAboveSolid
(BlockPos pos, int aboveSolidAmount, int maxY, Predicate<BlockPos> posPredicate) Finds a position above based on the conditions.Methods in net.minecraft.world.entity.ai.util with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
DefaultRandomPos.generateRandomPosTowardDirection
(PathfinderMob mob, int radius, boolean shortCircuit, BlockPos pos) static BlockPos
LandRandomPos.generateRandomPosTowardDirection
(PathfinderMob mob, int radius, boolean shortCircuit, BlockPos pos) static BlockPos
RandomPos.generateRandomPosTowardDirection
(PathfinderMob mob, int range, RandomSource random, BlockPos pos) static boolean
GoalUtils.hasMalus
(PathfinderMob mob, BlockPos pos) static boolean
GoalUtils.isNotStable
(PathNavigation navigation, BlockPos pos) static boolean
GoalUtils.isOutsideLimits
(BlockPos pos, PathfinderMob mob) static boolean
GoalUtils.isRestricted
(boolean shortCircuit, PathfinderMob mob, BlockPos pos) static boolean
GoalUtils.isSolid
(PathfinderMob mob, BlockPos pos) static boolean
GoalUtils.isWater
(PathfinderMob mob, BlockPos pos) static BlockPos
LandRandomPos.movePosUpOutOfSolid
(PathfinderMob mob, BlockPos pos) static BlockPos
RandomPos.moveUpOutOfSolid
(BlockPos pos, int maxY, Predicate<BlockPos> posPredicate) static BlockPos
RandomPos.moveUpToAboveSolid
(BlockPos pos, int aboveSolidAmount, int maxY, Predicate<BlockPos> posPredicate) Finds a position above based on the conditions.Method parameters in net.minecraft.world.entity.ai.util with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic Vec3
RandomPos.generateRandomPos
(Supplier<BlockPos> posSupplier, ToDoubleFunction<BlockPos> toDoubleFunction) Tries 10 times to maximize the return value of the position to double function based on the supplied positionstatic Vec3
RandomPos.generateRandomPos
(Supplier<BlockPos> posSupplier, ToDoubleFunction<BlockPos> toDoubleFunction) Tries 10 times to maximize the return value of the position to double function based on the supplied positionstatic Vec3
RandomPos.generateRandomPos
(PathfinderMob mob, Supplier<BlockPos> posSupplier) static Vec3
LandRandomPos.getPos
(PathfinderMob mob, int radius, int yRange, ToDoubleFunction<BlockPos> toDoubleFunction) static BlockPos
RandomPos.moveUpOutOfSolid
(BlockPos pos, int maxY, Predicate<BlockPos> posPredicate) static BlockPos
RandomPos.moveUpToAboveSolid
(BlockPos pos, int aboveSolidAmount, int maxY, Predicate<BlockPos> posPredicate) Finds a position above based on the conditions. -
Uses of BlockPos in net.minecraft.world.entity.ai.village
Methods in net.minecraft.world.entity.ai.village with parameters of type BlockPosModifier and TypeMethodDescriptionprivate Vec3
VillageSiege.findRandomSpawnPos
(ServerLevel level, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.entity.ai.village.poi
Fields in net.minecraft.world.entity.ai.village.poi declared as BlockPosMethods in net.minecraft.world.entity.ai.village.poi that return BlockPosMethods in net.minecraft.world.entity.ai.village.poi that return types with arguments of type BlockPosModifier and TypeMethodDescriptionPoiManager.find
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findAll
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findAllClosestFirstWithType
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findAllWithType
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findClosest
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findClosest
(Predicate<Holder<PoiType>> typePredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findClosestWithType
(Predicate<Holder<PoiType>> typePredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.getRandom
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, PoiManager.Occupancy status, BlockPos pos, int distance, RandomSource random) PoiManager.take
(Predicate<Holder<PoiType>> typePredicate, BiPredicate<Holder<PoiType>, BlockPos> combinedTypePosPredicate, BlockPos pos, int distance) Methods in net.minecraft.world.entity.ai.village.poi with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
void
void
PoiManager.ensureLoadedAndValid
(LevelReader levelReader, BlockPos pos, int coordinateOffset) boolean
boolean
boolean
PoiManager.existsAtPosition
(ResourceKey<PoiType> type, BlockPos pos) PoiManager.find
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findAll
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findAllClosestFirstWithType
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findAllWithType
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findClosest
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findClosest
(Predicate<Holder<PoiType>> typePredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.findClosestWithType
(Predicate<Holder<PoiType>> typePredicate, BlockPos pos, int distance, PoiManager.Occupancy status) long
PoiManager.getCountInRange
(Predicate<Holder<PoiType>> typePredicate, BlockPos pos, int distance, PoiManager.Occupancy status) int
PoiManager.getFreeTickets
(BlockPos pos) Deprecated.int
PoiSection.getFreeTickets
(BlockPos pos) Deprecated.PoiManager.getInRange
(Predicate<Holder<PoiType>> typePredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiManager.getInSquare
(Predicate<Holder<PoiType>> typePredicate, BlockPos pos, int distance, PoiManager.Occupancy status) PoiSection.getPoiRecord
(BlockPos pos) PoiManager.getRandom
(Predicate<Holder<PoiType>> typePredicate, Predicate<BlockPos> posPredicate, PoiManager.Occupancy status, BlockPos pos, int distance, RandomSource random) boolean
boolean
void
void
PoiManager.take
(Predicate<Holder<PoiType>> typePredicate, BiPredicate<Holder<PoiType>, BlockPos> combinedTypePosPredicate, BlockPos pos, int distance) Method parameters in net.minecraft.world.entity.ai.village.poi with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
PoiManager.take
(Predicate<Holder<PoiType>> typePredicate, BiPredicate<Holder<PoiType>, BlockPos> combinedTypePosPredicate, BlockPos pos, int distance) private void
PoiManager.updateFromSection
(LevelChunkSection section, SectionPos sectionPos, BiConsumer<BlockPos, Holder<PoiType>> posToTypeConsumer) Constructors in net.minecraft.world.entity.ai.village.poi with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.entity.ambient
Fields in net.minecraft.world.entity.ambient declared as BlockPosMethods in net.minecraft.world.entity.ambient with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
Bat.checkBatSpawnRules
(EntityType<Bat> bat, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Bat.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
Cat.CatRelaxOnOwnerGoal.goalPos
(package private) BlockPos
Bee.hivePos
private BlockPos
Parrot.jukebox
(package private) BlockPos
Bee.savedFlowerPos
Fields in net.minecraft.world.entity.animal with type parameters of type BlockPosModifier and TypeFieldDescriptionBee.BeeGoToHiveGoal.blacklistedTargets
private static final EntityDataAccessor
<BlockPos> Turtle.HOME_POS
private static final EntityDataAccessor
<BlockPos> Turtle.TRAVEL_POS
private static final EntityDataAccessor
<BlockPos> Dolphin.TREASURE_POS
Methods in net.minecraft.world.entity.animal that return BlockPosModifier and TypeMethodDescriptionBee.getHivePos()
(package private) BlockPos
Turtle.getHomePos()
Bee.getSavedFlowerPos()
(package private) BlockPos
Turtle.getTravelPos()
Dolphin.getTreasurePos()
Methods in net.minecraft.world.entity.animal that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBee.BeePollinateGoal.findNearbyFlower()
Bee.BeeLocateHiveGoal.findNearbyHivesWithSpace()
Bee.BeePollinateGoal.findNearestBlock
(Predicate<BlockState> predicate, double distance) Bee.getBlacklistedHives()
Methods in net.minecraft.world.entity.animal with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
Bee.BeeGoToHiveGoal.blacklistTarget
(BlockPos pos) static boolean
Animal.checkAnimalSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Bee.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) protected void
Parrot.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) static boolean
Fox.checkFoxSpawnRules
(EntityType<Fox> fox, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
MushroomCow.checkMushroomSpawnRules
(EntityType<MushroomCow> mushroomCow, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource randomSource) static boolean
Ocelot.checkOcelotSpawnRules
(EntityType<Ocelot> ocelot, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Parrot.checkParrotSpawnRules
(EntityType<Parrot> parrot, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
PolarBear.checkPolarBearSpawnRules
(EntityType<PolarBear> polarBear, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Rabbit.checkRabbitSpawnRules
(EntityType<Rabbit> rabbit, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
WaterAnimal.checkSurfaceWaterAnimalSpawnRules
(EntityType<? extends WaterAnimal> waterAnimal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
TropicalFish.checkTropicalFishSpawnRules
(EntityType<TropicalFish> tropicalFish, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Turtle.checkTurtleSpawnRules
(EntityType<Turtle> turtle, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Wolf.checkWolfSpawnRules
(EntityType<Wolf> wolf, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) (package private) boolean
Bee.closerThan
(BlockPos pos, int distance) private boolean
Bee.doesHiveHaveSpace
(BlockPos hivePos) private static Rabbit.Variant
Rabbit.getRandomRabbitVariant
(LevelAccessor level, BlockPos pos) float
Animal.getWalkTargetValue
(BlockPos pos, LevelReader level) float
Bee.getWalkTargetValue
(BlockPos pos, LevelReader level) float
MushroomCow.getWalkTargetValue
(BlockPos pos, LevelReader level) float
Turtle.getWalkTargetValue
(BlockPos pos, LevelReader level) private boolean
Bee.BeeGoToHiveGoal.hasReachedTarget
(BlockPos pos) protected static boolean
Animal.isBrightEnoughToSpawn
(BlockAndTintGetter level, BlockPos pos) (package private) boolean
Bee.isFlowerValid
(BlockPos pos) boolean
Turtle.TurtlePathNavigation.isStableDestination
(BlockPos pos) (package private) boolean
Bee.BeeGoToHiveGoal.isTargetBlacklisted
(BlockPos pos) (package private) boolean
Bee.isTooFarAway
(BlockPos pos) protected boolean
Fox.FoxEatBerriesGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprotected boolean
Rabbit.RaidGardenGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprotected boolean
Turtle.TurtleGoToWaterGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprotected boolean
Turtle.TurtleLayEggGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprivate boolean
Bee.BeeGoToHiveGoal.pathfindDirectlyTowards
(BlockPos pos) (package private) void
Bee.pathfindRandomlyTowards
(BlockPos pos) protected void
AbstractFish.playStepSound
(BlockPos pos, BlockState block) protected void
Bee.playStepSound
(BlockPos pos, BlockState block) protected void
Chicken.playStepSound
(BlockPos pos, BlockState block) protected void
Cow.playStepSound
(BlockPos pos, BlockState block) protected void
IronGolem.playStepSound
(BlockPos pos, BlockState block) protected void
Panda.playStepSound
(BlockPos pos, BlockState block) protected void
Parrot.playStepSound
(BlockPos pos, BlockState block) protected void
Pig.playStepSound
(BlockPos pos, BlockState block) protected void
PolarBear.playStepSound
(BlockPos pos, BlockState block) protected void
Sheep.playStepSound
(BlockPos pos, BlockState block) protected void
Turtle.playStepSound
(BlockPos pos, BlockState block) protected void
Wolf.playStepSound
(BlockPos pos, BlockState block) void
Bee.setHivePos
(BlockPos hivePos) void
Turtle.setHomePos
(BlockPos homePos) void
Parrot.setRecordPlayingNearby
(BlockPos pos, boolean isPartying) Called when a record starts or stops playing.void
Bee.setSavedFlowerPos
(BlockPos savedFlowerPos) (package private) void
Turtle.setTravelPos
(BlockPos travelPos) void
Dolphin.setTreasurePos
(BlockPos pos) -
Uses of BlockPos in net.minecraft.world.entity.animal.allay
Fields in net.minecraft.world.entity.animal.allay declared as BlockPosMethods in net.minecraft.world.entity.animal.allay with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
Allay.VibrationUser.canReceiveVibration
(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) protected void
Allay.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) static void
AllayAi.hearNoteblock
(LivingEntity entity, BlockPos pos) void
Allay.VibrationUser.onReceiveVibration
(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, Entity p_281794_, Entity p_281864_, float p_281642_) protected void
Allay.playStepSound
(BlockPos pos, BlockState state) void
Allay.setJukeboxPlaying
(BlockPos jukeboxPos, boolean jukeboxPlaying) -
Uses of BlockPos in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
Armadillo.checkArmadilloSpawnRules
(EntityType<Armadillo> entityType, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Armadillo.playStepSound
(BlockPos pos, BlockState state) -
Uses of BlockPos in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
Axolotl.checkAxolotlSpawnRules
(EntityType<? extends LivingEntity> axolotl, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) float
Axolotl.getWalkTargetValue
(BlockPos pos, LevelReader level) -
Uses of BlockPos in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
Camel.playStepSound
(BlockPos pos, BlockState block) -
Uses of BlockPos in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
Frog.checkFrogSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) private static <E extends Mob>
booleanFrogAi.isAcceptableLandingSpot
(E mob, BlockPos pos) protected void
Frog.playStepSound
(BlockPos pos, BlockState state) -
Uses of BlockPos in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
Goat.checkGoatSpawnRules
(EntityType<? extends Animal> goat, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Goat.playStepSound
(BlockPos pos, BlockState state) -
Uses of BlockPos in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
SkeletonHorse.checkSkeletonHorseSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
ZombieHorse.checkZombieHorseSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
AbstractHorse.playStepSound
(BlockPos pos, BlockState block) protected void
Llama.playStepSound
(BlockPos pos, BlockState block) -
Uses of BlockPos in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer that return BlockPosMethods in net.minecraft.world.entity.animal.sniffer that return types with arguments of type BlockPosMethods in net.minecraft.world.entity.animal.sniffer with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
protected void
Sniffer.playStepSound
(BlockPos pos, BlockState state) private Sniffer
Sniffer.storeExploredPosition
(BlockPos pos) -
Uses of BlockPos in net.minecraft.world.entity.boss.enderdragon
Fields in net.minecraft.world.entity.boss.enderdragon declared as BlockPosFields in net.minecraft.world.entity.boss.enderdragon with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate static final EntityDataAccessor
<Optional<BlockPos>> EndCrystal.DATA_BEAM_TARGET
Methods in net.minecraft.world.entity.boss.enderdragon that return BlockPosMethods in net.minecraft.world.entity.boss.enderdragon with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
EnderDragon.onCrystalDestroyed
(EndCrystal crystal, BlockPos pos, DamageSource damageSource) void
EndCrystal.setBeamTarget
(BlockPos beamTarget) void
EnderDragon.setFightOrigin
(BlockPos fightOrigin) -
Uses of BlockPos in net.minecraft.world.entity.boss.enderdragon.phases
Methods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
AbstractDragonPhaseInstance.onCrystalDestroyed
(EndCrystal crystal, BlockPos pos, DamageSource dmgSrc, Player plyr) void
DragonHoldingPatternPhase.onCrystalDestroyed
(EndCrystal crystal, BlockPos pos, DamageSource dmgSrc, Player plyr) void
DragonPhaseInstance.onCrystalDestroyed
(EndCrystal crystal, BlockPos pos, DamageSource damageSource, Player player) -
Uses of BlockPos in net.minecraft.world.entity.decoration
Fields in net.minecraft.world.entity.decoration declared as BlockPosMethods in net.minecraft.world.entity.decoration that return BlockPosMethods in net.minecraft.world.entity.decoration with parameters of type BlockPosModifier and TypeMethodDescriptionprotected abstract AABB
HangingEntity.calculateBoundingBox
(BlockPos pos, Direction direction) protected AABB
ItemFrame.calculateBoundingBox
(BlockPos pos, Direction direction) protected AABB
Painting.calculateBoundingBox
(BlockPos pos, Direction p_direction) static LeashFenceKnotEntity
LeashFenceKnotEntity.getOrCreateKnot
(Level level, BlockPos pos) Constructors in net.minecraft.world.entity.decoration with parameters of type BlockPosModifierConstructorDescriptionprotected
BlockAttachedEntity
(EntityType<? extends BlockAttachedEntity> entityType, Level level, BlockPos pos) GlowItemFrame
(Level p_149610_, BlockPos p_149611_, Direction p_149612_) protected
HangingEntity
(EntityType<? extends HangingEntity> entityType, Level level, BlockPos pos) ItemFrame
(EntityType<? extends ItemFrame> entityType, Level level, BlockPos pos, Direction direction) LeashFenceKnotEntity
(Level level, BlockPos pos) private
-
Uses of BlockPos in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item with type parameters of type BlockPosModifier and TypeFieldDescriptionprotected static final EntityDataAccessor
<BlockPos> FallingBlockEntity.DATA_START_POS
Methods in net.minecraft.world.entity.item that return BlockPosModifier and TypeMethodDescriptionItemEntity.getBlockPosBelowThatAffectsMyMovement()
FallingBlockEntity.getStartPos()
Methods in net.minecraft.world.entity.item with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
FallingBlockEntity.callOnBrokenAfterFall
(Block block, BlockPos pos) static FallingBlockEntity
FallingBlockEntity.fall
(Level level, BlockPos pos, BlockState blockState) void
FallingBlockEntity.setStartPos
(BlockPos startPos) -
Uses of BlockPos in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as BlockPosModifier and TypeFieldDescription(package private) BlockPos
Phantom.anchorPoint
private BlockPos
Vex.boundOrigin
private BlockPos
Shulker.clientOldAttachPosition
private BlockPos
PatrollingMonster.patrolTarget
Methods in net.minecraft.world.entity.monster that return BlockPosModifier and TypeMethodDescriptionVex.getBoundOrigin()
Strider.StriderGoToLavaGoal.getMoveToTarget()
PatrollingMonster.getPatrolTarget()
Methods in net.minecraft.world.entity.monster with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
EnderMan.EndermanLeaveBlockGoal.canPlaceBlock
(Level level, BlockPos destinationPos, BlockState carriedState, BlockState destinationState, BlockState belowDestinationState, BlockPos belowDestinationPos) (package private) boolean
static boolean
Monster.checkAnyLightMonsterSpawnRules
(EntityType<? extends Monster> type, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) Static predicate for determining whether a monster can spawn at the provided location.static boolean
Drowned.checkDrownedSpawnRules
(EntityType<Drowned> drowned, ServerLevelAccessor serverLevel, MobSpawnType mobSpawnType, BlockPos pos, RandomSource random) static boolean
Endermite.checkEndermiteSpawnRules
(EntityType<Endermite> endermite, LevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Strider.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) static boolean
Ghast.checkGhastSpawnRules
(EntityType<Ghast> ghast, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Guardian.checkGuardianSpawnRules
(EntityType<? extends Guardian> guardian, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Husk.checkHuskSpawnRules
(EntityType<Husk> husk, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> magmaCube, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Monster.checkMonsterSpawnRules
(EntityType<? extends Monster> type, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) Static predicate for determining whether a monster can spawn at the provided location, incorporating a check of the current light level at the location.static boolean
PatrollingMonster.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollingMonster> patrollingMonster, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Silverfish.checkSilverfishSpawnRules
(EntityType<Silverfish> silverfish, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Slime.checkSlimeSpawnRules
(EntityType<Slime> slime, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Stray.checkStraySpawnRules
(EntityType<Stray> stray, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Strider.checkStriderSpawnRules
(EntityType<Strider> strider, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
ZombifiedPiglin.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglin> zombifiedPiglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected Direction
Shulker.findAttachableSurface
(BlockPos pos) float
Giant.getWalkTargetValue
(BlockPos pos, LevelReader level) float
Guardian.getWalkTargetValue
(BlockPos pos, LevelReader level) float
Monster.getWalkTargetValue
(BlockPos pos, LevelReader level) float
Pillager.getWalkTargetValue
(BlockPos pos, LevelReader level) float
Silverfish.getWalkTargetValue
(BlockPos pos, LevelReader level) float
Strider.getWalkTargetValue
(BlockPos pos, LevelReader level) static boolean
Monster.isDarkEnoughToSpawn
(ServerLevelAccessor level, BlockPos pos, RandomSource random) Static predicate for determining if the current light level and environmental conditions allow for a monster to spawn.private static boolean
Drowned.isDeepEnoughToSpawn
(LevelAccessor level, BlockPos pos) private boolean
Shulker.isPositionBlocked
(BlockPos pos) boolean
Strider.StriderPathNavigation.isStableDestination
(BlockPos pos) protected boolean
Drowned.DrownedGoToBeachGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationprotected boolean
Strider.StriderGoToLavaGoal.isValidTarget
(LevelReader level, BlockPos pos) Returntrue
to set given position as destinationvoid
Zombie.ZombieAttackTurtleEggGoal.playBreakSound
(Level level, BlockPos pos) void
Zombie.ZombieAttackTurtleEggGoal.playDestroyProgressSound
(LevelAccessor level, BlockPos pos) protected void
AbstractSkeleton.playStepSound
(BlockPos pos, BlockState block) protected void
Endermite.playStepSound
(BlockPos pos, BlockState block) protected void
Ravager.playStepSound
(BlockPos pos, BlockState block) protected void
Silverfish.playStepSound
(BlockPos pos, BlockState block) protected void
Spider.playStepSound
(BlockPos pos, BlockState block) protected void
Strider.playStepSound
(BlockPos pos, BlockState block) protected void
Zoglin.playStepSound
(BlockPos pos, BlockState block) protected void
Zombie.playStepSound
(BlockPos pos, BlockState block) void
Vex.setBoundOrigin
(BlockPos boundOrigin) void
PatrollingMonster.setPatrolTarget
(BlockPos patrolTarget) -
Uses of BlockPos in net.minecraft.world.entity.monster.breeze
Methods in net.minecraft.world.entity.monster.breeze that return BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
LongJump.snapToSurface
(LivingEntity owner, Vec3 targetPos) -
Uses of BlockPos in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
Hoglin.checkHoglinSpawnRules
(EntityType<Hoglin> hoglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) float
Hoglin.getWalkTargetValue
(BlockPos pos, LevelReader level) (package private) static boolean
HoglinAi.isPosNearNearestRepellent
(Hoglin hoglin, BlockPos pos) protected void
Hoglin.playStepSound
(BlockPos pos, BlockState block) -
Uses of BlockPos in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
Piglin.checkPiglinSpawnRules
(EntityType<Piglin> piglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Piglin.playStepSound
(BlockPos pos, BlockState block) protected void
PiglinBrute.playStepSound
(BlockPos pos, BlockState block) -
Uses of BlockPos in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
Warden.VibrationUser.canReceiveVibration
(ServerLevel p_282574_, BlockPos p_282323_, Holder<GameEvent> p_316784_, GameEvent.Context p_282515_) private static List
<ServerPlayer> WardenSpawnTracker.getNearbyPlayers
(ServerLevel level, BlockPos pos) float
Warden.getWalkTargetValue
(BlockPos pos, LevelReader level) private static boolean
WardenSpawnTracker.hasNearbyWarden
(ServerLevel level, BlockPos pos) void
Warden.VibrationUser.onReceiveVibration
(ServerLevel p_281325_, BlockPos p_282386_, Holder<GameEvent> p_316139_, Entity p_281438_, Entity p_282582_, float p_283699_) protected void
Warden.playStepSound
(BlockPos pos, BlockState state) static void
WardenAi.setDisturbanceLocation
(Warden warden, BlockPos disturbanceLocation) static OptionalInt
WardenSpawnTracker.tryWarn
(ServerLevel level, BlockPos pos, ServerPlayer player) -
Uses of BlockPos in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc declared as BlockPosMethods in net.minecraft.world.entity.npc that return BlockPosModifier and TypeMethodDescriptionprivate BlockPos
WanderingTraderSpawner.findSpawnPositionNear
(LevelReader level, BlockPos pos, int maxDistance) (package private) BlockPos
WanderingTrader.getWanderTarget()
Methods in net.minecraft.world.entity.npc with parameters of type BlockPosModifier and TypeMethodDescriptionprivate BlockPos
WanderingTraderSpawner.findSpawnPositionNear
(LevelReader level, BlockPos pos, int maxDistance) private boolean
WanderingTraderSpawner.hasEnoughSpace
(BlockGetter level, BlockPos pos) private boolean
WanderingTrader.WanderToPositionGoal.isTooFarAway
(BlockPos pos, double distance) void
WanderingTrader.setWanderTarget
(BlockPos wanderTarget) private int
CatSpawner.spawnCat
(BlockPos pos, ServerLevel serverLevel) private int
CatSpawner.spawnInHut
(ServerLevel serverLevel, BlockPos pos) private int
CatSpawner.spawnInVillage
(ServerLevel serverLevel, BlockPos pos) void
Villager.startSleeping
(BlockPos pos) -
Uses of BlockPos in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
Player.blockActionRestricted
(Level level, BlockPos pos, GameType gameMode) boolean
Player.canInteractWithBlock
(BlockPos pos, double distance) protected boolean
float
Player.getDigSpeed
(BlockState p_36282_, BlockPos pos) boolean
Player.hasCorrectToolForDrops
(BlockState p_state, Level level, BlockPos pos) boolean
Player.mayUseItemAt
(BlockPos pos, Direction facing, ItemStack stack) Returns whether this player can modify the block at a certain location with the given stack.protected void
Player.playStepSound
(BlockPos pos, BlockState state) com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> Player.startSleepInBed
(BlockPos bedPos) Constructors in net.minecraft.world.entity.player with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
FishingHook.calculateOpenWater
(BlockPos pos) private void
FishingHook.catchingFish
(BlockPos pos) private void
float
WitherSkull.getBlockExplosionResistance
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, float explosionPower) Explosion resistance of a block relative to this entityprivate FishingHook.OpenWaterType
FishingHook.getOpenWaterTypeForArea
(BlockPos firstPos, BlockPos secondPos) private FishingHook.OpenWaterType
FishingHook.getOpenWaterTypeForBlock
(BlockPos pos) boolean
Projectile.mayInteract
(Level level, BlockPos pos) void
-
Uses of BlockPos in net.minecraft.world.entity.raid
Fields in net.minecraft.world.entity.raid declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
Raid.center
private BlockPos
Raider.RaiderMoveThroughVillageGoal.poiPos
Fields in net.minecraft.world.entity.raid with type parameters of type BlockPosMethods in net.minecraft.world.entity.raid that return BlockPosModifier and TypeMethodDescriptionprivate BlockPos
Raid.findRandomSpawnPos
(int offsetMultiplier, int maxTry) Raid.getCenter()
Methods in net.minecraft.world.entity.raid that return types with arguments of type BlockPosMethods in net.minecraft.world.entity.raid with parameters of type BlockPosModifier and TypeMethodDescriptionRaids.createOrExtendRaid
(ServerPlayer player, BlockPos pos) Raids.getNearbyRaid
(BlockPos pos, int distance) private Raid
Raids.getOrCreateRaid
(ServerLevel serverLevel, BlockPos pos) private boolean
Raider.RaiderMoveThroughVillageGoal.hasNotVisited
(BlockPos pos) void
private void
private void
private void
Raid.spawnGroup
(BlockPos pos) Constructors in net.minecraft.world.entity.raid with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
Boat.checkFallDamage
(double y, boolean onGround, BlockState state, BlockPos pos) static double
DismountHelper.findCeilingFrom
(BlockPos pos, int ceiling, Function<BlockPos, VoxelShape> shapeForPos) static Vec3
DismountHelper.findSafeDismountLocation
(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean onlySafePositions) float
MinecartTNT.getBlockExplosionResistance
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, float explosionPower) Explosion resistance of a block relative to this entityprivate boolean
AbstractMinecart.isRedstoneConductor
(BlockPos pos) protected void
AbstractMinecart.moveAlongTrack
(BlockPos pos, BlockState state) protected void
MinecartFurnace.moveAlongTrack
(BlockPos pos, BlockState state) void
AbstractMinecart.moveMinecartOnRail
(BlockPos pos) static VoxelShape
DismountHelper.nonClimbableShape
(BlockGetter level, BlockPos pos) boolean
MinecartTNT.shouldBlockExplode
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, float explosionPower) Method parameters in net.minecraft.world.entity.vehicle with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic double
DismountHelper.findCeilingFrom
(BlockPos pos, int ceiling, Function<BlockPos, VoxelShape> shapeForPos) -
Uses of BlockPos in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory with parameters of type BlockPosMethod parameters in net.minecraft.world.inventory with type arguments of type BlockPosModifier and TypeMethodDescription<T> Optional
<T> ContainerLevelAccess.evaluate
(BiFunction<Level, BlockPos, T> levelPosConsumer) default <T> T
ContainerLevelAccess.evaluate
(BiFunction<Level, BlockPos, T> levelPosConsumer, T defaultValue) default void
ContainerLevelAccess.execute
(BiConsumer<Level, BlockPos> levelPosConsumer) -
Uses of BlockPos in net.minecraft.world.item
Fields in net.minecraft.world.item declared as BlockPosMethods in net.minecraft.world.item with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
BoneMealItem.addGrowthParticles
(LevelAccessor level, BlockPos pos, int data) static boolean
BoneMealItem.applyBonemeal
(ItemStack p_40628_, Level p_40629_, BlockPos p_40630_, Player player) static InteractionResult
LeadItem.bindPlayerMobs
(Player player, Level level, BlockPos pos) boolean
DebugStickItem.canAttackBlock
(BlockState state, Level level, BlockPos pos, Player player) boolean
Item.canAttackBlock
(BlockState state, Level level, BlockPos pos, Player player) boolean
MaceItem.canAttackBlock
(BlockState state, Level level, BlockPos pos, Player player) boolean
SwordItem.canAttackBlock
(BlockState state, Level level, BlockPos pos, Player player) boolean
TridentItem.canAttackBlock
(BlockState state, Level level, BlockPos pos, Player player) protected boolean
BucketItem.canBlockContainFluid
(Player player, Level worldIn, BlockPos posIn, BlockState blockstate) protected boolean
HangingSignItem.canPlace
(LevelReader level, BlockState state, BlockPos pos) protected boolean
StandingAndWallBlockItem.canPlace
(LevelReader level, BlockState state, BlockPos pos) void
BucketItem.checkExtraContent
(Player player, Level level, ItemStack containerStack, BlockPos pos) default void
DispensibleContainerItem.checkExtraContent
(Player player, Level level, ItemStack containerStack, BlockPos pos) void
MobBucketItem.checkExtraContent
(Player player, Level level, ItemStack containerStack, BlockPos pos) boolean
BucketItem.emptyContents
(Player player, Level level, BlockPos pos, BlockHitResult result) Deprecated.boolean
BucketItem.emptyContents
(Player player, Level level, BlockPos pos, BlockHitResult result, ItemStack container) boolean
DispensibleContainerItem.emptyContents
(Player player, Level level, BlockPos pos, BlockHitResult result) Deprecated.boolean
SolidBucketItem.emptyContents
(Player player, Level level, BlockPos pos, BlockHitResult result) private Optional
<BlockState> AxeItem.evaluateNewBlockState
(Level level, BlockPos pos, Player player, BlockState state, UseOnContext p_40529_) private BlockState
MapItem.getCorrectStateForFluidBlock
(Level level, BlockState state, BlockPos pos) protected SoundEvent
BlockItem.getPlaceSound
(BlockState p_state, Level world, BlockPos pos, Player entity) static boolean
Deprecated.static boolean
BoneMealItem.growWaterPlant
(ItemStack stack, Level level, BlockPos pos, Direction clickedSide) private boolean
DebugStickItem.handleInteraction
(Player player, BlockState stateClicked, LevelAccessor accessor, BlockPos pos, boolean shouldCycleState, ItemStack debugStack) LeadItem.leashableInArea
(Level level, BlockPos pos, Predicate<Leashable> predicate) protected boolean
HangingEntityItem.mayPlace
(Player player, Direction direction, ItemStack hangingEntityStack, BlockPos pos) protected boolean
boolean
Item.mineBlock
(ItemStack stack, Level level, BlockState state, BlockPos pos, LivingEntity miningEntity) Called when aBlock
is destroyed using this Item.void
ItemStack.mineBlock
(Level level, BlockState state, BlockPos pos, Player player) Called when a Block is destroyed using this ItemStackboolean
ShearsItem.mineBlock
(ItemStack stack, Level level, BlockState state, BlockPos pos, LivingEntity entityLiving) Called when aBlock
is destroyed using this Item.protected void
BucketItem.playEmptySound
(Player player, LevelAccessor level, BlockPos pos) protected void
MobBucketItem.playEmptySound
(Player player, LevelAccessor level, BlockPos pos) private void
private void
MobBucketItem.spawn
(ServerLevel serverLevel, ItemStack bucketedMobStack, BlockPos pos) private static void
JukeboxSongPlayer.spawnMusicParticles
(LevelAccessor level, BlockPos pos) static ItemInteractionResult
JukeboxPlayable.tryInsertIntoJukebox
(Level level, BlockPos pos, ItemStack stack, Player player) private static void
BlockItem.updateBlockEntityComponents
(Level level, BlockPos poa, ItemStack stack) private BlockState
BlockItem.updateBlockStateFromTag
(BlockPos pos, Level level, ItemStack stack, BlockState state) protected boolean
BlockItem.updateCustomBlockEntityTag
(BlockPos pos, Level level, Player player, ItemStack stack, BlockState state) static boolean
BlockItem.updateCustomBlockEntityTag
(Level level, Player player, BlockPos pos, ItemStack stack) protected boolean
SignItem.updateCustomBlockEntityTag
(BlockPos pos, Level level, Player player, ItemStack stack, BlockState state) Constructors in net.minecraft.world.item with parameters of type BlockPosModifierConstructorDescriptionJukeboxSongPlayer
(JukeboxSongPlayer.OnSongChanged onSongChanged, BlockPos blockPos) -
Uses of BlockPos in net.minecraft.world.item.context
Fields in net.minecraft.world.item.context declared as BlockPosMethods in net.minecraft.world.item.context that return BlockPosModifier and TypeMethodDescriptionBlockPlaceContext.getClickedPos()
DirectionalPlaceContext.getClickedPos()
UseOnContext.getClickedPos()
Methods in net.minecraft.world.item.context with parameters of type BlockPosModifier and TypeMethodDescriptionstatic BlockPlaceContext
BlockPlaceContext.at
(BlockPlaceContext context, BlockPos pos, Direction direction) Constructors in net.minecraft.world.item.context with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level
Fields in net.minecraft.world.level declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
NaturalSpawner.SpawnState.lastCheckedPos
private final BlockPos
BlockEventData.pos
The field for thepos
record component.private final BlockPos
PotentialCalculator.PointCharge.pos
Fields in net.minecraft.world.level with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final ForcedChunkManager.TicketTracker
<BlockPos> ForcedChunksSavedData.blockForcedChunks
private final it.unimi.dsi.fastutil.objects.ObjectArrayList
<BlockPos> Explosion.toBlow
Methods in net.minecraft.world.level that return BlockPosModifier and TypeMethodDescriptionChunkPos.getBlockAt
(int xSection, int y, int zSection) Level.getBlockRandomPos
(int x, int y, int z, int yMask) default BlockPos
CommonLevelAccessor.getHeightmapPos
(Heightmap.Types heightmapType, BlockPos pos) default BlockPos
LevelReader.getHeightmapPos
(Heightmap.Types heightmapType, BlockPos pos) LevelSimulatedReader.getHeightmapPos
(Heightmap.Types heightmapType, BlockPos pos) ChunkPos.getMiddleBlockPosition
(int y) private static BlockPos
NaturalSpawner.getRandomPosWithin
(Level level, LevelChunk chunk) Level.getSharedSpawnPos()
private static BlockPos
NaturalSpawner.getTopNonCollidingPos
(LevelReader level, EntityType<?> entityType, int x, int z) ChunkPos.getWorldPosition()
BlockEventData.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.level that return types with arguments of type BlockPosModifier and TypeMethodDescriptionCollisionGetter.findSupportingBlock
(Entity entity, AABB box) ForcedChunksSavedData.getBlockForcedChunks()
Explosion.getToBlow()
Methods in net.minecraft.world.level with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
void
Level.addDestroyBlockEffect
(BlockPos pos, BlockState state) private static void
Explosion.addOrAppendStack
(List<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> drops, ItemStack stack, BlockPos pos) static long
void
Level.blockEntityChanged
(BlockPos pos) void
Level.blockEvent
(BlockPos pos, Block block, int eventID, int eventParam) default void
LevelAccessor.blockUpdated
(BlockPos pos, Block block) abstract void
BaseSpawner.broadcastEvent
(Level level, BlockPos pos, int eventId) default boolean
default boolean
LevelReader.canSeeSkyFromBelowWater
(BlockPos pos) private boolean
NaturalSpawner.SpawnState.canSpawn
(EntityType<?> entityType, BlockPos pos, ChunkAccess chunk) private static boolean
NaturalSpawner.canSpawnMobAt
(ServerLevel level, StructureManager structureManager, ChunkGenerator generator, MobCategory category, MobSpawnSettings.SpawnerData data, BlockPos pos) void
BaseSpawner.clientTick
(Level level, BlockPos pos) default BlockHitResult
BlockGetter.clipWithInteractionOverride
(Vec3 startVec, Vec3 endVec, BlockPos pos, VoxelShape shape, BlockState state) private <T> ScheduledTick
<T> LevelAccessor.createTick
(BlockPos pos, T type, int delay) private <T> ScheduledTick
<T> LevelAccessor.createTick
(BlockPos pos, T type, int delay, TickPriority priority) private void
boolean
Level.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) default boolean
LevelWriter.destroyBlock
(BlockPos pos, boolean dropBlock) Sets a block to air, but also plays the sound and particles and can spawn dropsdefault boolean
LevelWriter.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity) boolean
LevelWriter.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) abstract void
Level.destroyBlockProgress
(int breakerId, BlockPos pos, int progress) default boolean
WorldGenLevel.ensureCanWrite
(BlockPos pos) default void
LevelAccessor.gameEvent
(Holder<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) default void
LevelAccessor.gameEvent
(ResourceKey<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) default void
ClipContext.Block.get
(BlockState state, BlockGetter block, BlockPos pos, CollisionContext collisionContext) ClipContext.ShapeGetter.get
(BlockState state, BlockGetter block, BlockPos pos, CollisionContext collisionContext) StructureManager.getAllStructuresAt
(BlockPos pos) default int
SignalGetter.getBestNeighborSignal
(BlockPos pos) Returns the highest redstone signal the given position receives from neighboring blocks.BlockGetter.getBlockEntity
(BlockPos pos) default <T extends BlockEntity>
Optional<T> BlockGetter.getBlockEntity
(BlockPos pos, BlockEntityType<T> blockEntityType) default <T extends BlockEntity>
Optional<T> CommonLevelAccessor.getBlockEntity
(BlockPos pos, BlockEntityType<T> blockEntityType) EmptyBlockGetter.getBlockEntity
(BlockPos pos) Level.getBlockEntity
(BlockPos pos) <T extends BlockEntity>
Optional<T> LevelSimulatedReader.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) PathNavigationRegion.getBlockEntity
(BlockPos pos) EntityBasedExplosionDamageCalculator.getBlockExplosionResistance
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, FluidState fluid) ExplosionDamageCalculator.getBlockExplosionResistance
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, FluidState fluid) SimpleExplosionDamageCalculator.getBlockExplosionResistance
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, FluidState fluid) default double
BlockGetter.getBlockFloorHeight
(BlockPos pos) ClipContext.getBlockShape
(BlockState blockState, BlockGetter level, BlockPos pos) BlockGetter.getBlockState
(BlockPos pos) EmptyBlockGetter.getBlockState
(BlockPos pos) Level.getBlockState
(BlockPos pos) PathNavigationRegion.getBlockState
(BlockPos pos) int
BlockAndTintGetter.getBlockTint
(BlockPos blockPos, ColorResolver colorResolver) default int
LevelReader.getBlockTint
(BlockPos blockPos, ColorResolver colorResolver) default int
BlockAndTintGetter.getBrightness
(LightLayer lightType, BlockPos blockPos) default ChunkAccess
private ChunkAccess
Level.getChunkAt
(BlockPos pos) default int
SignalGetter.getControlInputSignal
(BlockPos pos, Direction direction, boolean diodesOnly) Returns the control signal emitted from the given position in the given direction.Level.getCurrentDifficultyAt
(BlockPos pos) LevelAccessor.getCurrentDifficultyAt
(BlockPos pos) default int
SignalGetter.getDirectSignal
(BlockPos pos, Direction direction) Returns the direct redstone signal emitted from the given position in the given direction.default int
SignalGetter.getDirectSignalTo
(BlockPos pos) Returns the direct redstone signal the given position receives from neighboring blocks.ClipContext.getFluidShape
(FluidState state, BlockGetter level, BlockPos pos) BlockGetter.getFluidState
(BlockPos pos) EmptyBlockGetter.getFluidState
(BlockPos pos) Level.getFluidState
(BlockPos pos) PathNavigationRegion.getFluidState
(BlockPos pos) default BlockPos
CommonLevelAccessor.getHeightmapPos
(Heightmap.Types heightmapType, BlockPos pos) default BlockPos
LevelReader.getHeightmapPos
(Heightmap.Types heightmapType, BlockPos pos) LevelSimulatedReader.getHeightmapPos
(Heightmap.Types heightmapType, BlockPos pos) default int
BlockGetter.getLightEmission
(BlockPos pos) default float
LevelReader.getLightLevelDependentMagicValue
(BlockPos pos) Deprecated.default int
LevelReader.getMaxLocalRawBrightness
(BlockPos pos) default int
LevelReader.getMaxLocalRawBrightness
(BlockPos pos, int amount) BaseSpawner.getOrCreateDisplayEntity
(Level level, BlockPos pos) private SpawnData
BaseSpawner.getOrCreateNextSpawnData
(Level level, RandomSource random, BlockPos pos) default float
LevelReader.getPathfindingCostFromLightLevels
(BlockPos pos) double
PotentialCalculator.PointCharge.getPotentialChange
(BlockPos pos) double
PotentialCalculator.getPotentialEnergyChange
(BlockPos pos, double charge) private static Optional
<MobSpawnSettings.SpawnerData> NaturalSpawner.getRandomSpawnMobAt
(ServerLevel level, StructureManager structureManager, ChunkGenerator generator, MobCategory category, RandomSource random, BlockPos pos) default int
BlockAndTintGetter.getRawBrightness
(BlockPos blockPos, int amount) (package private) static Biome
NaturalSpawner.getRoughBiome
(BlockPos pos, ChunkAccess chunk) default int
Returns the redstone signal emitted from the given position in the given direction.StructureManager.getStructureAt
(BlockPos pos, Structure structure) StructureManager.getStructureWithPieceAt
(BlockPos pos, Predicate<Holder<Structure>> predicate) StructureManager.getStructureWithPieceAt
(BlockPos pos, HolderSet<Structure> structures) StructureManager.getStructureWithPieceAt
(BlockPos pos, TagKey<Structure> structureTag) StructureManager.getStructureWithPieceAt
(BlockPos pos, Structure structure) void
Level.globalLevelEvent
(int id, BlockPos pos, int data) boolean
StructureManager.hasAnyStructureAt
(BlockPos pos) default boolean
LevelReader.hasChunkAt
(BlockPos pos) Deprecated.default boolean
LevelReader.hasChunksAt
(BlockPos from, BlockPos to) Deprecated.default boolean
SignalGetter.hasNeighborSignal
(BlockPos pos) Returns whether the given position receives any redstone signal from neighboring blocks.default boolean
Returns whether a redstone signal is emitted from the given position in the given direction.default boolean
LevelReader.isEmptyBlock
(BlockPos pos) Checks to see if an air block exists at the provided location.boolean
Level.isFluidAtPosition
(BlockPos pos, Predicate<FluidState> predicate) boolean
LevelSimulatedReader.isFluidAtPosition
(BlockPos pos, Predicate<FluidState> predicate) static boolean
NaturalSpawner.isInNetherFortressBounds
(BlockPos pos, ServerLevel level, MobCategory category, StructureManager structureManager) static boolean
Level.isInSpawnableBounds
(BlockPos pos) boolean
Level.isInWorldBounds
(BlockPos pos) Check if the given BlockPos has valid coordinatesprivate static boolean
Level.isInWorldBoundsHorizontal
(BlockPos pos) boolean
private boolean
BaseSpawner.isNearPlayer
(Level level, BlockPos pos) default boolean
LevelHeightAccessor.isOutsideBuildHeight
(BlockPos pos) boolean
Level.isRainingAt
(BlockPos pos) Check if precipitation is currently happening at a positionboolean
Level.isStateAtPosition
(BlockPos pos, Predicate<BlockState> state) boolean
LevelSimulatedReader.isStateAtPosition
(BlockPos pos, Predicate<BlockState> state) default boolean
CollisionGetter.isUnobstructed
(BlockState state, BlockPos pos, CollisionContext context) static boolean
NaturalSpawner.isValidEmptySpawnBlock
(BlockGetter block, BlockPos pos, BlockState blockState, FluidState fluidState, EntityType<?> entityType) boolean
SpawnData.CustomSpawnRules.isValidPosition
(BlockPos pos, ServerLevel level) default boolean
default void
LevelAccessor.levelEvent
(int type, BlockPos pos, int data) void
LevelAccessor.levelEvent
(Player player, int type, BlockPos pos, int data) void
BaseSpawner.load
(Level level, BlockPos pos, CompoundTag tag) boolean
Level.loadedAndEntityCanStandOn
(BlockPos pos, Entity entity) boolean
Level.loadedAndEntityCanStandOnFace
(BlockPos pos, Entity entity, Direction direction) void
Level.markAndNotifyBlock
(BlockPos p_46605_, LevelChunk levelchunk, BlockState blockstate, BlockState p_46606_, int p_46607_, int p_46608_) boolean
Level.mayInteract
(Player player, BlockPos pos) private static WeightedRandomList
<MobSpawnSettings.SpawnerData> NaturalSpawner.mobsAt
(ServerLevel level, StructureManager structureManager, ChunkGenerator generator, MobCategory category, BlockPos pos, Holder<Biome> biome) void
Level.neighborChanged
(BlockPos pos, Block block, BlockPos fromPos) void
Level.neighborChanged
(BlockState state, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) void
Level.neighborShapeChanged
(Direction direction, BlockState queried, BlockPos pos, BlockPos offsetPos, int flags, int recursionLevel) default void
LevelAccessor.neighborShapeChanged
(Direction direction, BlockState queried, BlockPos pos, BlockPos offsetPos, int flags, int recursionLevel) void
Level.onBlockStateChange
(BlockPos pos, BlockState blockState, BlockState newState) void
Level.playLocalSound
(BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch, boolean distanceDelay) void
Level.playSound
(Entity entity, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) void
Level.playSound
(Player player, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) Plays a sound.default void
LevelAccessor.playSound
(Player player, BlockPos pos, SoundEvent sound, SoundSource source) void
LevelAccessor.playSound
(Player player, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) Plays a sound.boolean
Level.removeBlock
(BlockPos pos, boolean isMoving) boolean
LevelWriter.removeBlock
(BlockPos pos, boolean isMoving) void
Level.removeBlockEntity
(BlockPos pos) default void
LevelAccessor.scheduleTick
(BlockPos pos, Block block, int delay) default void
LevelAccessor.scheduleTick
(BlockPos pos, Block block, int delay, TickPriority priority) default void
LevelAccessor.scheduleTick
(BlockPos pos, Fluid fluid, int delay) default void
LevelAccessor.scheduleTick
(BlockPos pos, Fluid fluid, int delay, TickPriority priority) abstract void
Level.sendBlockUpdated
(BlockPos pos, BlockState oldState, BlockState newState, int flags) Flags are as in setBlockStatevoid
BaseSpawner.serverTick
(ServerLevel serverLevel, BlockPos pos) boolean
Level.setBlock
(BlockPos pos, BlockState newState, int flags) Sets a block state into this world.Flags are as follows: 1 will notify neighboring blocks throughinvalid reference
neighborChanged
boolean
Level.setBlock
(BlockPos pos, BlockState state, int flags, int recursionLeft) default boolean
LevelWriter.setBlock
(BlockPos pos, BlockState newState, int flags) Sets a block state into this world.Flags are as follows: 1 will cause a block update.boolean
LevelWriter.setBlock
(BlockPos pos, BlockState state, int flags, int recursionLeft) boolean
Level.setBlockAndUpdate
(BlockPos pos, BlockState state) Convenience method to update the block on both the client and servervoid
Level.setBlocksDirty
(BlockPos blockPos, BlockState oldState, BlockState newState) void
BaseSpawner.setEntityId
(EntityType<?> type, Level level, RandomSource random, BlockPos pos) protected void
BaseSpawner.setNextSpawnData
(Level level, BlockPos pos, SpawnData nextSpawnData) boolean
EntityBasedExplosionDamageCalculator.shouldBlockExplode
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, float power) boolean
ExplosionDamageCalculator.shouldBlockExplode
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, float power) boolean
SimpleExplosionDamageCalculator.shouldBlockExplode
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, float power) boolean
Level.shouldTickBlocksAt
(BlockPos pos) static void
NaturalSpawner.spawnCategoryForPosition
(MobCategory category, ServerLevel level, BlockPos pos) static void
NaturalSpawner.spawnCategoryForPosition
(MobCategory category, ServerLevel level, ChunkAccess chunk, BlockPos pos, NaturalSpawner.SpawnPredicate filter, NaturalSpawner.AfterSpawnCallback callback) boolean
StructureManager.structureHasPieceAt
(BlockPos pos, StructureStart structureStart) boolean
NaturalSpawner.SpawnPredicate.test
(EntityType<?> entityType, BlockPos pos, ChunkAccess chunk) void
Level.updateNeighborsAt
(BlockPos pos, Block block) void
Level.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block blockType, Direction skipSide) void
Level.updateNeighbourForOutputSignal
(BlockPos pos, Block block) Method parameters in net.minecraft.world.level with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate static void
Explosion.addOrAppendStack
(List<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> drops, ItemStack stack, BlockPos pos) static <T,
C> T BlockGetter.traverseBlocks
(Vec3 from, Vec3 to, C context, BiFunction<C, BlockPos, T> tester, Function<C, T> onFail) Constructors in net.minecraft.world.level with parameters of type BlockPosModifierConstructorDescriptionBlockEventData
(BlockPos pos, Block block, int paramA, int paramB) Creates an instance of aBlockEventData
record class.PathNavigationRegion
(Level level, BlockPos centerPos, BlockPos offsetPos) PointCharge
(BlockPos pos, double charge) Constructor parameters in net.minecraft.world.level with type arguments of type BlockPosModifierConstructorDescriptionExplosion
(Level level, Entity source, double x, double y, double z, float radius, boolean fire, Explosion.BlockInteraction blockInteraction, List<BlockPos> positions) Explosion
(Level level, Entity source, double x, double y, double z, float radius, List<BlockPos> toBlow, Explosion.BlockInteraction blockInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) -
Uses of BlockPos in net.minecraft.world.level.biome
Fields in net.minecraft.world.level.biome declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
Climate.SpawnFinder.Result.location
The field for thelocation
record component.Methods in net.minecraft.world.level.biome that return BlockPosModifier and TypeMethodDescriptionstatic BlockPos
Climate.findSpawnPosition
(List<Climate.ParameterPoint> points, Climate.Sampler sampler) Climate.Sampler.findSpawnPosition()
Climate.SpawnFinder.Result.location()
Returns the value of thelocation
record component.Methods in net.minecraft.world.level.biome that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBiomeSource.findBiomeHorizontal
(int x, int y, int z, int radius, int increment, Predicate<Holder<Biome>> biomePredicate, RandomSource random, boolean findClosest, Climate.Sampler sampler) BiomeSource.findBiomeHorizontal
(int x, int y, int z, int radius, Predicate<Holder<Biome>> biomePredicate, RandomSource random, Climate.Sampler sampler) FixedBiomeSource.findBiomeHorizontal
(int x, int y, int z, int radius, int increment, Predicate<Holder<Biome>> biomePredicate, RandomSource random, boolean findClosest, Climate.Sampler sampler) BiomeSource.findClosestBiome3d
(BlockPos pos, int radius, int horizontalStep, int verticalStep, Predicate<Holder<Biome>> biomePredicate, Climate.Sampler sampler, LevelReader level) FixedBiomeSource.findClosestBiome3d
(BlockPos pos, int radius, int horizontalStep, int verticalStep, Predicate<Holder<Biome>> biomePredicate, Climate.Sampler sampler, LevelReader level) Methods in net.minecraft.world.level.biome with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
BiomeSource.addDebugInfo
(List<String> info, BlockPos pos, Climate.Sampler sampler) void
MultiNoiseBiomeSource.addDebugInfo
(List<String> info, BlockPos pos, Climate.Sampler sampler) boolean
Biome.coldEnoughToSnow
(BlockPos pos) BiomeSource.findClosestBiome3d
(BlockPos pos, int radius, int horizontalStep, int verticalStep, Predicate<Holder<Biome>> biomePredicate, Climate.Sampler sampler, LevelReader level) FixedBiomeSource.findClosestBiome3d
(BlockPos pos, int radius, int horizontalStep, int verticalStep, Predicate<Holder<Biome>> biomePredicate, Climate.Sampler sampler, LevelReader level) private float
Biome.getHeightAdjustedTemperature
(BlockPos pos) BiomeManager.getNoiseBiomeAtPosition
(BlockPos pos) Biome.getPrecipitationAt
(BlockPos pos) private float
Biome.getTemperature
(BlockPos pos) Deprecated.abstract float
Biome.TemperatureModifier.modifyTemperature
(BlockPos pos, float temperature) boolean
Biome.shouldFreeze
(LevelReader level, BlockPos pos) boolean
Biome.shouldFreeze
(LevelReader level, BlockPos water, boolean mustBeAtEdge) boolean
Biome.shouldMeltFrozenOceanIcebergSlightly
(BlockPos pos) boolean
Biome.shouldSnow
(LevelReader level, BlockPos pos) boolean
Biome.warmEnoughToRain
(BlockPos pos) Constructors in net.minecraft.world.level.biome with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
ComposterBlock.InputContainer.pos
private final BlockPos
ComposterBlock.OutputContainer.pos
private final BlockPos
MultifaceSpreader.SpreadPos.pos
The field for thepos
record component.private final BlockPos
PitcherCropBlock.PosAndState.pos
The field for thepos
record component.private final BlockPos
PointedDripstoneBlock.FluidInfo.pos
The field for thepos
record component.private final BlockPos
RailState.pos
(package private) final BlockPos
RedstoneTorchBlock.Toggle.pos
private BlockPos
SculkSpreader.ChargeCursor.pos
Fields in net.minecraft.world.level.block with type parameters of type BlockPosMethods in net.minecraft.world.level.block that return BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
PointedDripstoneBlock.findFillableCauldronBelowStalactiteTip
(Level level, BlockPos pos, Fluid fluid) static BlockPos
PointedDripstoneBlock.findStalactiteTipAboveCauldron
(Level level, BlockPos pos) private static BlockPos
PointedDripstoneBlock.findTip
(BlockState state, LevelAccessor level, BlockPos pos, int maxIterations, boolean isTipMerge) default BlockPos
BonemealableBlock.getParticlePos
(BlockPos pos) MangroveLeavesBlock.getParticlePos
(BlockPos p_316180_) RootedDirtBlock.getParticlePos
(BlockPos p_316883_) SculkSpreader.ChargeCursor.getPos()
private static BlockPos
SculkSpreader.ChargeCursor.getValidMovementPos
(LevelAccessor level, BlockPos pos, RandomSource random) MultifaceSpreader.SpreadPos.pos()
Returns the value of thepos
record component.PitcherCropBlock.PosAndState.pos()
Returns the value of thepos
record component.PointedDripstoneBlock.FluidInfo.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.level.block that return types with arguments of type BlockPosModifier and TypeMethodDescriptionPointedDripstoneBlock.findBlockVertical
(LevelAccessor level, BlockPos pos, Direction.AxisDirection axis, BiPredicate<BlockPos, BlockState> positionalStatePredicate, Predicate<BlockState> statePredicate, int maxIterations) PointedDripstoneBlock.findRootBlock
(Level level, BlockPos pos, BlockState state, int maxIterations) RailState.getConnections()
GrowingPlantBodyBlock.getHeadPos
(BlockGetter level, BlockPos pos, Block block) Methods in net.minecraft.world.level.block with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
SculkSensorBlock.activate
(Entity entity, Level level, BlockPos pos, BlockState state, int power, int frequency) private static void
ChiseledBookShelfBlock.addBook
(Level level, BlockPos pos, Player player, ChiseledBookShelfBlockEntity blockEntity, ItemStack bookStack, int slot) void
SculkSpreader.addCursors
(BlockPos pos, int charge) (package private) static BlockState
ComposterBlock.addItem
(Entity entity, BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) void
SaplingBlock.advanceTree
(ServerLevel level, BlockPos pos, BlockState state, RandomSource random) private static boolean
ChorusFlowerBlock.allNeighborsEmpty
(LevelReader level, BlockPos pos, Direction excludingSide) private static boolean
Blocks.always
(BlockState state, BlockGetter blockGetter, BlockPos pos) static Boolean
Blocks.always
(BlockState state, BlockGetter blockGetter, BlockPos pos, EntityType<?> entity) private void
BeehiveBlock.angerNearbyBees
(Level level, BlockPos pos) void
AbstractCandleBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BaseFireBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BeehiveBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BlastFurnaceBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
Block.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BrewingStandBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BrushableBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BubbleColumnBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
CampfireBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
CherryLeavesBlock.animateTick
(BlockState p_272714_, Level p_272837_, BlockPos p_273218_, RandomSource p_273360_) void
CryingObsidianBlock.animateTick
(BlockState p_221055_, Level p_221056_, BlockPos p_221057_, RandomSource p_221058_) void
EnchantingTableBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EnderChestBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EndGatewayBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EndPortalBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EndRodBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
FallingBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
FurnaceBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
LeavesBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
LeverBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
LightningRodBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
MyceliumBlock.animateTick
(BlockState p_221789_, Level p_221790_, BlockPos p_221791_, RandomSource p_221792_) void
NetherPortalBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
PointedDripstoneBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedStoneOreBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedstoneTorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedstoneWallTorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedStoneWireBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RepeaterBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RespawnAnchorBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
SculkSensorBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
SmokerBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
SporeBlossomBlock.animateTick
(BlockState p_222503_, Level p_222504_, BlockPos p_222505_, RandomSource p_222506_) void
TorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
WallTorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
WetSpongeBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
WitherRoseBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).protected void
DragonEggBlock.attack
(BlockState state, Level level, BlockPos pos, Player player) protected void
NoteBlock.attack
(BlockState state, Level level, BlockPos pos, Player player) protected void
RedStoneOreBlock.attack
(BlockState state, Level level, BlockPos pos, Player player) private boolean
SculkVeinBlock.attemptPlaceSculk
(SculkSpreader spreader, LevelAccessor level, BlockPos pos, RandomSource random) default boolean
SculkBehaviour.attemptSpreadVein
(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions, boolean markForPostprocessing) boolean
BellBlock.attemptToRing
(Entity entity, Level level, BlockPos pos, Direction direction) boolean
BellBlock.attemptToRing
(Level level, BlockPos pos, Direction direction) int
SculkBehaviour.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) int
SculkBlock.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) int
SculkVeinBlock.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) private static DripstoneThickness
PointedDripstoneBlock.calculateDripstoneThickness
(LevelReader level, BlockPos pos, Direction dir, boolean isTipMerge) private int
ComparatorBlock.calculateOutputSignal
(Level level, BlockPos pos, BlockState state) static void
TripWireHookBlock.calculateState
(Level level, BlockPos pos, BlockState hookState, boolean attaching, boolean shouldNotifyNeighbours, int searchRange, BlockState state) private int
RedStoneWireBlock.calculateTargetStrength
(Level level, BlockPos pos) private static Direction
PointedDripstoneBlock.calculateTipDirection
(LevelReader level, BlockPos pos, Direction dir) static boolean
FaceAttachedHorizontalDirectionalBlock.canAttach
(LevelReader reader, BlockPos pos, Direction direction) private boolean
LadderBlock.canAttachTo
(BlockGetter blockReader, BlockPos pos, Direction direction) static boolean
MultifaceBlock.canAttachTo
(BlockGetter level, Direction direction, BlockPos pos, BlockState state) boolean
WallHangingSignBlock.canAttachTo
(LevelReader level, BlockState state, BlockPos pos, Direction direction) private static boolean
SpreadingSnowyDirtBlock.canBeGrass
(BlockState state, LevelReader levelReader, BlockPos pos) private static boolean
NyliumBlock.canBeNylium
(BlockState state, LevelReader reader, BlockPos pos) static boolean
BaseFireBlock.canBePlacedAt
(Level level, BlockPos pos, Direction direction) boolean
FireBlock.canCatchFire
(BlockGetter world, BlockPos pos, Direction face) Side sensitive version that calls the block function.private static boolean
PointedDripstoneBlock.canDripThrough
(BlockGetter level, BlockPos pos, BlockState state) private static boolean
BigDripleafBlock.canEntityTilt
(BlockPos pos, Entity entity) private boolean
PitcherCropBlock.canGrow
(LevelReader reader, BlockPos pos, BlockState state, int age) private static boolean
PitcherCropBlock.canGrowInto
(LevelReader level, BlockPos pos) private static boolean
ShulkerBoxBlock.canOpen
(BlockState state, Level level, BlockPos pos, ShulkerBoxBlockEntity blockEntity) boolean
WallHangingSignBlock.canPlace
(BlockState state, LevelReader level, BlockPos pos) protected static boolean
BigDripleafBlock.canPlaceAt
(LevelHeightAccessor level, BlockPos pos, BlockState state) private static boolean
SculkBlock.canPlaceGrowth
(LevelAccessor level, BlockPos pos) boolean
BarrierBlock.canPlaceLiquid
(Player player, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid) boolean
KelpBlock.canPlaceLiquid
(Player player, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid) boolean
KelpPlantBlock.canPlaceLiquid
(Player player, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid) boolean
LiquidBlockContainer.canPlaceLiquid
(Player player, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid) boolean
SeagrassBlock.canPlaceLiquid
(Player p_296226_, BlockGetter p_296449_, BlockPos p_154511_, BlockState p_154512_, Fluid p_295712_) default boolean
SimpleWaterloggedBlock.canPlaceLiquid
(Player player, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid) boolean
SlabBlock.canPlaceLiquid
(Player player, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid) boolean
TallSeagrassBlock.canPlaceLiquid
(Player p_296027_, BlockGetter p_154753_, BlockPos p_154754_, BlockState p_154755_, Fluid p_154756_) private static boolean
SpreadingSnowyDirtBlock.canPropagate
(BlockState state, LevelReader level, BlockPos pos) boolean
CarvedPumpkinBlock.canSpawnGolem
(LevelReader level, BlockPos pos) static boolean
WitherSkullBlock.canSpawnMob
(Level level, BlockPos pos, ItemStack stack) private boolean
VineBlock.canSpread
(BlockGetter blockReader, BlockPos pos) boolean
MultifaceSpreader.canSpreadInAnyDirection
(BlockState state, BlockGetter level, BlockPos pos, Direction spreadDirection) boolean
MultifaceSpreader.DefaultSpreaderConfig.canSpreadInto
(BlockGetter level, BlockPos pos, MultifaceSpreader.SpreadPos spreadPos) boolean
MultifaceSpreader.SpreadConfig.canSpreadInto
(BlockGetter level, BlockPos pos, MultifaceSpreader.SpreadPos spreadPos) private boolean
VineBlock.canSupportAtFace
(BlockGetter level, BlockPos pos, Direction direction) static boolean
Block.canSupportCenter
(LevelReader level, BlockPos pos, Direction direction) static boolean
Block.canSupportRigidBlock
(BlockGetter level, BlockPos pos) protected boolean
AmethystClusterBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BambooSaplingBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BambooStalkBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BannerBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BaseCoralPlantTypeBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BaseCoralWallFanBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BasePressurePlateBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BaseRailBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BaseTorchBlock.canSurvive
(BlockState p_304413_, LevelReader p_304885_, BlockPos p_304808_) protected boolean
BellBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BigDripleafBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BigDripleafStemBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BubbleColumnBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
BushBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
CactusBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
CakeBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
CandleBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
CandleCakeBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
CarpetBlock.canSurvive
(BlockState p_152922_, LevelReader p_152923_, BlockPos p_152924_) protected boolean
CeilingHangingSignBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
ChorusFlowerBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
ChorusPlantBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
CocoaBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
CropBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
DiodeBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
DirtPathBlock.canSurvive
(BlockState p_153148_, LevelReader p_153149_, BlockPos p_153150_) protected boolean
DoorBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
DoublePlantBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
FaceAttachedHorizontalDirectionalBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
FarmBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
FireBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
FrogspawnBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
GrindstoneBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
GrowingPlantBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
HangingRootsBlock.canSurvive
(BlockState p_153347_, LevelReader p_153348_, BlockPos p_153349_) protected boolean
LadderBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
LanternBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
MangrovePropaguleBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
MultifaceBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
MushroomBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) boolean
PitcherCropBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
PointedDripstoneBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
RedstoneWallTorchBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
RedStoneWireBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
ScaffoldingBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
SeaPickleBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
SmallDripleafBlock.canSurvive
(BlockState p_154615_, LevelReader p_154616_, BlockPos p_154617_) protected boolean
SnowLayerBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
SoulFireBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
SporeBlossomBlock.canSurvive
(BlockState p_154709_, LevelReader p_154710_, BlockPos p_154711_) protected boolean
StandingSignBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
SugarCaneBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
TallSeagrassBlock.canSurvive
(BlockState p_154768_, LevelReader p_154769_, BlockPos p_154770_) protected boolean
TripWireHookBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
VineBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
WallBannerBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
WallSignBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) protected boolean
WallTorchBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) static boolean
WallTorchBlock.canSurvive
(LevelReader level, BlockPos pos, Direction facing) protected boolean
DiodeBlock.canSurviveOn
(LevelReader level, BlockPos pos, BlockState state) private boolean
RedStoneWireBlock.canSurviveOn
(BlockGetter level, BlockPos pos, BlockState state) private static boolean
StairBlock.canTakeShape
(BlockState state, BlockGetter level, BlockPos pos, Direction face) private static boolean
PointedDripstoneBlock.canTipGrow
(BlockState state, ServerLevel level, BlockPos pos) default void
ChangeOverTimeBlock.changeOverTime
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) private static void
LecternBlock.changePowered
(Level level, BlockPos pos, BlockState state, boolean powered) static void
RespawnAnchorBlock.charge
(Entity entity, Level level, BlockPos pos, BlockState state) void
CopperBulbBlock.checkAndFlip
(BlockState state, ServerLevel level, BlockPos pos) private void
FireBlock.checkBurnOut
(Level level, BlockPos pos, int chance, RandomSource random, int age, Direction face) private void
RedStoneWireBlock.checkCornerChangeAt
(Level level, BlockPos pos) CallsLevel.updateNeighborsAt(net.minecraft.core.BlockPos, net.minecraft.world.level.block.Block)
for all neighboring blocks, but only if the given block is a redstone wire.private void
HopperBlock.checkPoweredState
(Level level, BlockPos pos, BlockState state) private void
BasePressurePlateBlock.checkPressed
(Entity entity, Level level, BlockPos pos, BlockState state, int currentSignal) protected void
ButtonBlock.checkPressed
(BlockState state, Level level, BlockPos pos) private void
DetectorRailBlock.checkPressed
(Level level, BlockPos pos, BlockState state) private void
TripWireBlock.checkPressed
(Level level, BlockPos pos) static void
WitherSkullBlock.checkSpawn
(Level level, BlockPos pos) static void
WitherSkullBlock.checkSpawn
(Level level, BlockPos pos, SkullBlockEntity blockEntity) protected void
ComparatorBlock.checkTickOnNeighbor
(Level level, BlockPos pos, BlockState state) Check the output signal of this diode and schedule a new block tick if it should change.protected void
DiodeBlock.checkTickOnNeighbor
(Level level, BlockPos pos, BlockState state) Check the output signal of this diode and schedule a new block tick if it should change.abstract DoubleBlockCombiner.NeighborCombineResult
<? extends ChestBlockEntity> AbstractChestBlock.combine
(BlockState state, Level level, BlockPos pos, boolean override) ChestBlock.combine
(BlockState state, Level level, BlockPos pos, boolean override) EnderChestBlock.combine
(BlockState state, Level level, BlockPos pos, boolean override) static <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> doubleBlockTypeGetter, Function<BlockState, Direction> directionGetter, DirectionProperty directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) static BlockState
DoublePlantBlock.copyWaterloggedFrom
(LevelReader level, BlockPos pos, BlockState state) private static void
PointedDripstoneBlock.createDripstone
(LevelAccessor level, BlockPos pos, Direction direction, DripstoneThickness thickness) private static void
PointedDripstoneBlock.createMergedTips
(BlockState state, LevelAccessor level, BlockPos pos) static void
SculkSensorBlock.deactivate
(Level level, BlockPos pos, BlockState state) private void
TurtleEggBlock.decreaseEggs
(Level level, BlockPos pos, BlockState state) default boolean
SculkBehaviour.depositCharge
(LevelAccessor level, BlockPos pos, RandomSource random) void
Block.destroy
(LevelAccessor level, BlockPos pos, BlockState state) Called after this block has been removed by a player.private void
FrogspawnBlock.destroyBlock
(Level level, BlockPos pos) private void
TurtleEggBlock.destroyEgg
(Level level, BlockState state, BlockPos pos, Entity entity, int chance) protected void
CrafterBlock.dispenseFrom
(BlockState state, ServerLevel level, BlockPos pos) protected void
DispenserBlock.dispenseFrom
(ServerLevel level, BlockState state, BlockPos pos) protected void
DropperBlock.dispenseFrom
(ServerLevel p_52944_, BlockState p_302455_, BlockPos p_52945_) private void
CrafterBlock.dispenseItem
(ServerLevel level, BlockPos pos, CrafterBlockEntity crafter, ItemStack stack, BlockState state, RecipeHolder<CraftingRecipe> recipe) static void
CampfireBlock.dowse
(Entity entity, LevelAccessor level, BlockPos pos, BlockState state) static void
BeehiveBlock.dropHoneycomb
(Level level, BlockPos pos) static void
Block.dropResources
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity) static void
Block.dropResources
(BlockState state, Level level, BlockPos pos) static void
Block.dropResources
(BlockState state, Level level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) protected static InteractionResult
CakeBlock.eat
(LevelAccessor level, BlockPos pos, BlockState state, Player player) private static void
TripWireHookBlock.emitState
(Level level, BlockPos pos, boolean attached, boolean powered, boolean wasAttached, boolean wasPowered) (package private) static BlockState
ComposterBlock.empty
(Entity entity, BlockState state, LevelAccessor level, BlockPos pos) protected void
BaseFireBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
BasePressurePlateBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
BigDripleafBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
BubbleColumnBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
ButtonBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
CactusBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
CampfireBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
CropBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
DetectorRailBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
EndGatewayBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
EndPortalBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
FrogspawnBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
HoneyBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
HopperBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
LavaCauldronBlock.entityInside
(BlockState p_153506_, Level p_153507_, BlockPos p_153508_, Entity p_153509_) protected void
LayeredCauldronBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
NetherPortalBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) void
PitcherCropBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
PowderSnowBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
SweetBerryBushBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
TripWireBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
WaterlilyBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
WebBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
WitherRoseBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) private void
CommandBlock.execute
(BlockState state, Level level, BlockPos pos, BaseCommandBlock logic, boolean canTrigger) private static void
CommandBlock.executeChain
(Level level, BlockPos pos, Direction direction) private void
RespawnAnchorBlock.explode
(BlockState state, Level level, BlockPos pos2) static void
Deprecated.private static void
TntBlock.explode
(Level level, BlockPos pos, LivingEntity entity) Deprecated.static void
AbstractCandleBlock.extinguish
(Player player, BlockState state, LevelAccessor level, BlockPos pos) static BlockState
ComposterBlock.extractProduce
(Entity entity, BlockState state, Level level, BlockPos pos) void
BedBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
Block.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
FarmBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
HayBlock.fallOn
(Level p_153362_, BlockState p_153363_, BlockPos p_153364_, Entity p_153365_, float p_153366_) void
HoneyBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
PointedDripstoneBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
PowderSnowBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
SlimeBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
TurtleEggBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) private boolean
FrostedIceBlock.fewerNeigboursThan
(BlockGetter level, BlockPos pos, int neighborsRequired) PointedDripstoneBlock.findBlockVertical
(LevelAccessor level, BlockPos pos, Direction.AxisDirection axis, BiPredicate<BlockPos, BlockState> positionalStatePredicate, Predicate<BlockState> statePredicate, int maxIterations) BedBlock.findBunkBedStandUpPosition
(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction stateFacing, Direction entityFacing) private static BlockPos
PointedDripstoneBlock.findFillableCauldronBelowStalactiteTip
(Level level, BlockPos pos, Fluid fluid) protected boolean
PoweredRailBlock.findPoweredRailSignal
(Level level, BlockPos pos, BlockState state, boolean searchForward, int recursionCount) PointedDripstoneBlock.findRootBlock
(Level level, BlockPos pos, BlockState state, int maxIterations) static BlockPos
PointedDripstoneBlock.findStalactiteTipAboveCauldron
(Level level, BlockPos pos) BedBlock.findStandUpPosition
(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction p_direction, float yRot) RespawnAnchorBlock.findStandUpPosition
(EntityType<?> entityType, CollisionGetter level, BlockPos pos) RespawnAnchorBlock.findStandUpPosition
(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean simulate) BedBlock.findStandUpPositionAtOffset
(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, int[][] offsets, boolean simulate) private static BlockPos
PointedDripstoneBlock.findTip
(BlockState state, LevelAccessor level, BlockPos pos, int maxIterations, boolean isTipMerge) private void
LiquidBlock.fizz
(LevelAccessor level, BlockPos pos) static void
ChorusFlowerBlock.generatePlant
(LevelAccessor level, BlockPos pos, RandomSource random, int maxHorizontalDistance) protected int
DiodeBlock.getAlternateSignal
(SignalGetter level, BlockPos pos, BlockState state) protected int
AbstractFurnaceBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
BarrelBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
BeehiveBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
BrewingStandBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
CakeBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
CandleCakeBlock.getAnalogOutputSignal
(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
ChestBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
ChiseledBookShelfBlock.getAnalogOutputSignal
(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
CommandBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
ComposterBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
CopperBulbBlock.getAnalogOutputSignal
(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
CrafterBlock.getAnalogOutputSignal
(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
DecoratedPotBlock.getAnalogOutputSignal
(BlockState p_306206_, Level p_306113_, BlockPos p_306305_) protected int
DetectorRailBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
DispenserBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
EndPortalFrameBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
HopperBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
JukeboxBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
LavaCauldronBlock.getAnalogOutputSignal
(BlockState p_153502_, Level p_153503_, BlockPos p_153504_) protected int
LayeredCauldronBlock.getAnalogOutputSignal
(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
LecternBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
RespawnAnchorBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
SculkSensorBlock.getAnalogOutputSignal
(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.protected int
ShulkerBoxBlock.getAnalogOutputSignal
(BlockState blockState, Level level, BlockPos pos) Returns the analog signal this block emits.static Direction
BedBlock.getBedOrientation
(BlockGetter level, BlockPos pos) protected VoxelShape
CeilingHangingSignBlock.getBlockSupportShape
(BlockState state, BlockGetter level, BlockPos pos) ChorusFlowerBlock.getBlockSupportShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
FenceGateBlock.getBlockSupportShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
LeavesBlock.getBlockSupportShape
(BlockState state, BlockGetter reader, BlockPos pos) protected VoxelShape
MudBlock.getBlockSupportShape
(BlockState p_221566_, BlockGetter p_221567_, BlockPos p_221568_) protected VoxelShape
ShulkerBoxBlock.getBlockSupportShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
SnowLayerBlock.getBlockSupportShape
(BlockState state, BlockGetter reader, BlockPos pos) protected VoxelShape
SoulSandBlock.getBlockSupportShape
(BlockState state, BlockGetter reader, BlockPos pos) protected VoxelShape
WallHangingSignBlock.getBlockSupportShape
(BlockState state, BlockGetter level, BlockPos pos) static Fluid
PointedDripstoneBlock.getCauldronFillFluidType
(ServerLevel level, BlockPos pos) AbstractBannerBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) AttachedStemBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) BambooSaplingBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) BigDripleafStemBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) Block.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) Deprecated.CandleCakeBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) CaveVinesBlock.getCloneItemStack
(LevelReader p_304590_, BlockPos p_152967_, BlockState p_152968_) CaveVinesPlantBlock.getCloneItemStack
(LevelReader p_304444_, BlockPos p_153008_, BlockState p_153009_) CropBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) DecoratedPotBlock.getCloneItemStack
(LevelReader p_304622_, BlockPos p_294412_, BlockState p_294723_) EndGatewayBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) EndPortalBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) FlowerPotBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) FrostedIceBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) GrowingPlantBodyBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) LightBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) NetherPortalBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) NetherWartBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) ShulkerBoxBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) StemBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) SweetBerryBushBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) TallSeagrassBlock.getCloneItemStack
(LevelReader p_304988_, BlockPos p_154750_, BlockState p_154751_) protected VoxelShape
BambooStalkBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BellBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BigDripleafBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CactusBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ComposterBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CrossCollisionBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FenceGateBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
GrindstoneBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
HoneyBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LecternBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LiquidBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
MudBlock.getCollisionShape
(BlockState p_221561_, BlockGetter p_221562_, BlockPos p_221563_, CollisionContext p_221564_) PitcherCropBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
PowderSnowBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ScaffoldingBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SculkShriekerBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SnowLayerBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SoulSandBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallHangingSignBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) private RedstoneSide
RedStoneWireBlock.getConnectingSide
(BlockGetter level, BlockPos pos, Direction face) private RedstoneSide
RedStoneWireBlock.getConnectingSide
(BlockGetter level, BlockPos pos, Direction direction, boolean nonNormalCubeAbove) private BlockState
RedStoneWireBlock.getConnectionState
(BlockGetter level, BlockState state, BlockPos pos) static Container
ChestBlock.getContainer
(ChestBlock chest, BlockState state, Level level, BlockPos pos, boolean override) ComposterBlock.getContainer
(BlockState state, LevelAccessor level, BlockPos pos) private ResourceLocation
NoteBlock.getCustomSoundId
(Level level, BlockPos pos) private static int
SculkBlock.getDecayPenalty
(SculkSpreader spreader, BlockPos cursorPos, BlockPos rootPos, int charge) protected float
BambooSaplingBlock.getDestroyProgress
(BlockState state, Player player, BlockGetter level, BlockPos pos) Get the hardness of this Block relative to the ability of the given playerprotected float
BambooStalkBlock.getDestroyProgress
(BlockState state, Player player, BlockGetter level, BlockPos pos) Get the hardness of this Block relative to the ability of the given playerprivate static DimensionTransition
NetherPortalBlock.getDimensionTransitionFromExit
(Entity entity, BlockPos pos, BlockUtil.FoundRectangle rectangle, ServerLevel level, DimensionTransition.PostDimensionTransition postDimensionTransition) protected int
BasePressurePlateBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
ButtonBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
DetectorRailBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
DiodeBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
LecternBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
LeverBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
LightningRodBlock.getDirectSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the direct signal this block emits in the given direction.protected int
ObserverBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
RedstoneTorchBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
RedStoneWireBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.int
SculkSensorBlock.getDirectSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the direct signal this block emits in the given direction.protected int
TrappedChestBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
TripWireHookBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.static int
ScaffoldingBlock.getDistance
(BlockGetter level, BlockPos pos) Block.getDrops
(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity) Block.getDrops
(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) int
AnvilBlock.getDustColor
(BlockState state, BlockGetter reader, BlockPos pos) int
ColoredFallingBlock.getDustColor
(BlockState state, BlockGetter level, BlockPos pos) int
ConcretePowderBlock.getDustColor
(BlockState state, BlockGetter reader, BlockPos pos) int
FallingBlock.getDustColor
(BlockState state, BlockGetter level, BlockPos pos) private DimensionTransition
NetherPortalBlock.getExitPortal
(ServerLevel level, Entity entity, BlockPos pos, BlockPos exitPos, boolean isNether, WorldBorder worldBorder) int
DropExperienceBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
RedStoneOreBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkCatalystBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkSensorBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkShriekerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SpawnerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) private static Optional
<PointedDripstoneBlock.FluidInfo> PointedDripstoneBlock.getFluidAboveStalactite
(Level level, BlockPos pos, BlockState state) protected static float
CropBlock.getGrowthSpeed
(BlockState blockState, BlockGetter p_52274_, BlockPos p_52275_) GrowingPlantBodyBlock.getHeadPos
(BlockGetter level, BlockPos pos, Block block) protected int
BambooStalkBlock.getHeightAboveUpToMax
(BlockGetter level, BlockPos pos) protected int
BambooStalkBlock.getHeightBelowUpToMax
(BlockGetter level, BlockPos pos) private int
FireBlock.getIgniteOdds
(LevelReader level, BlockPos pos) protected int
ComparatorBlock.getInputSignal
(Level level, BlockPos pos, BlockState state) protected int
DiodeBlock.getInputSignal
(Level level, BlockPos pos, BlockState state) private <T extends AbstractMinecart>
List<T> DetectorRailBlock.getInteractingMinecartOfType
(Level level, BlockPos pos, Class<T> cartType, Predicate<Entity> filter) protected VoxelShape
AbstractCauldronBlock.getInteractionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
ComposterBlock.getInteractionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
HopperBlock.getInteractionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
ScaffoldingBlock.getInteractionShape
(BlockState state, BlockGetter level, BlockPos pos) private ItemFrame
ComparatorBlock.getItemFrame
(Level level, Direction facing, BlockPos pos) protected int
LeavesBlock.getLightBlock
(BlockState state, BlockGetter level, BlockPos pos) protected int
TintedGlassBlock.getLightBlock
(BlockState p_154828_, BlockGetter p_154829_, BlockPos p_154830_) private PitcherCropBlock.PosAndState
PitcherCropBlock.getLowerHalf
(LevelReader level, BlockPos pos, BlockState state) protected MenuProvider
AnvilBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
BaseEntityBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
CartographyTableBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
ChestBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
CraftingTableBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
EnchantingTableBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
GrindstoneBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
LecternBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
LoomBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
SmithingTableBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) protected MenuProvider
StonecutterBlock.getMenuProvider
(BlockState state, Level level, BlockPos pos) private BlockState
RedStoneWireBlock.getMissingConnections
(BlockGetter level, BlockState state, BlockPos pos) default Optional
<BlockState> ChangeOverTimeBlock.getNextState
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected VoxelShape
FenceBlock.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
FenceGateBlock.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
LecternBlock.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
PointedDripstoneBlock.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
PowderSnowBlock.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
SculkShriekerBlock.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) protected VoxelShape
SkullBlock.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) protected int
ComparatorBlock.getOutputSignal
(BlockGetter level, BlockPos pos, BlockState state) protected int
DiodeBlock.getOutputSignal
(BlockGetter level, BlockPos pos, BlockState state) default BlockPos
BonemealableBlock.getParticlePos
(BlockPos pos) MangroveLeavesBlock.getParticlePos
(BlockPos p_316180_) RootedDirtBlock.getParticlePos
(BlockPos p_316883_) EndGatewayBlock.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) EndPortalBlock.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) NetherPortalBlock.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) Portal.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) private RailState
BaseRailBlock.getRailDirection
(BlockState state, BlockGetter world, BlockPos pos, AbstractMinecart cart) private BlockState
SculkBlock.getRandomGrowthState
(LevelAccessor level, BlockPos pos, RandomSource random, boolean isWorldGeneration) private AABB
DetectorRailBlock.getSearchBB
(BlockPos pos) protected long
BedBlock.getSeed
(BlockState state, BlockPos pos) Return a random long to be passed toBakedModel.getQuads(net.minecraft.world.level.block.state.BlockState, net.minecraft.core.Direction, net.minecraft.util.RandomSource)
, used for random model rotationsprotected long
DoorBlock.getSeed
(BlockState state, BlockPos pos) Return a random long to be passed toBakedModel.getQuads(net.minecraft.world.level.block.state.BlockState, net.minecraft.core.Direction, net.minecraft.util.RandomSource)
, used for random model rotationsprotected long
DoublePlantBlock.getSeed
(BlockState state, BlockPos pos) Return a random long to be passed toBakedModel.getQuads(net.minecraft.world.level.block.state.BlockState, net.minecraft.core.Direction, net.minecraft.util.RandomSource)
, used for random model rotationsprotected float
BarrierBlock.getShadeBrightness
(BlockState state, BlockGetter level, BlockPos pos) protected float
LightBlock.getShadeBrightness
(BlockState state, BlockGetter level, BlockPos pos) protected float
MudBlock.getShadeBrightness
(BlockState p_221552_, BlockGetter p_221553_, BlockPos p_221554_) protected float
SnowLayerBlock.getShadeBrightness
(BlockState state, BlockGetter level, BlockPos pos) protected float
SoulSandBlock.getShadeBrightness
(BlockState state, BlockGetter level, BlockPos pos) protected float
StructureVoidBlock.getShadeBrightness
(BlockState state, BlockGetter level, BlockPos pos) protected float
TransparentBlock.getShadeBrightness
(BlockState p_308911_, BlockGetter p_308952_, BlockPos p_308918_) protected VoxelShape
AbstractCauldronBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
AirBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
AmethystClusterBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
AnvilBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
AttachedStemBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
AzaleaBlock.getShape
(BlockState p_152084_, BlockGetter p_152085_, BlockPos p_152086_, CollisionContext p_152087_) protected VoxelShape
BambooSaplingBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BambooStalkBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BannerBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BaseCoralFanBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BaseCoralPlantBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BaseCoralPlantTypeBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BaseCoralWallFanBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BaseFireBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BasePressurePlateBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BaseRailBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BaseTorchBlock.getShape
(BlockState p_304673_, BlockGetter p_304919_, BlockPos p_304930_, CollisionContext p_304757_) protected VoxelShape
BedBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BeetrootBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BellBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BigDripleafBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BigDripleafStemBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BrewingStandBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BubbleColumnBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ButtonBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CactusBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CakeBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CampfireBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CandleBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CandleCakeBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CarpetBlock.getShape
(BlockState p_152917_, BlockGetter p_152918_, BlockPos p_152919_, CollisionContext p_152920_) protected VoxelShape
CarrotBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CeilingHangingSignBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ChainBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ChestBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CocoaBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ComposterBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ConduitBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CoralPlantBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CropBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
CrossCollisionBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
DaylightDetectorBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
DeadBushBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
DecoratedPotBlock.getShape
(BlockState p_273112_, BlockGetter p_273055_, BlockPos p_273137_, CollisionContext p_273151_) protected VoxelShape
DiodeBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
DirtPathBlock.getShape
(BlockState p_153143_, BlockGetter p_153144_, BlockPos p_153145_, CollisionContext p_153146_) protected VoxelShape
DoorBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
DragonEggBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
EnchantingTableBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
EnderChestBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
EndPortalBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
EndPortalFrameBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FarmBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FenceGateBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FireBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FlowerBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FlowerPotBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FrogspawnBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
FungusBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
GrindstoneBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
GrowingPlantBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
HangingRootsBlock.getShape
(BlockState p_153342_, BlockGetter p_153343_, BlockPos p_153344_, CollisionContext p_153345_) protected VoxelShape
HeavyCoreBlock.getShape
(BlockState p_334026_, BlockGetter p_334049_, BlockPos p_334056_, CollisionContext p_333870_) protected VoxelShape
HopperBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LadderBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LanternBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LecternBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LeverBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LightBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
LiquidBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
MangrovePropaguleBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
MultifaceBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
MushroomBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
NetherPortalBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
NetherSproutsBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
NetherWartBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
PiglinWallSkullBlock.getShape
(BlockState p_261765_, BlockGetter p_261604_, BlockPos p_261948_, CollisionContext p_261889_) PinkPetalsBlock.getShape
(BlockState p_273399_, BlockGetter p_273568_, BlockPos p_273314_, CollisionContext p_273274_) protected VoxelShape
PipeBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) PitcherCropBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
PointedDripstoneBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
PotatoBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
RedstoneWallTorchBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
RedStoneWireBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
RodBlock.getShape
(BlockState p_154346_, BlockGetter p_154347_, BlockPos p_154348_, CollisionContext p_154349_) protected VoxelShape
RootsBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SaplingBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ScaffoldingBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SculkSensorBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SeagrassBlock.getShape
(BlockState p_154525_, BlockGetter p_154526_, BlockPos p_154527_, CollisionContext p_154528_) protected VoxelShape
SeaPickleBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
ShulkerBoxBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SignBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SkullBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SlabBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SmallDripleafBlock.getShape
(BlockState p_154610_, BlockGetter p_154611_, BlockPos p_154612_, CollisionContext p_154613_) SnifferEggBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SnowLayerBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SporeBlossomBlock.getShape
(BlockState p_154699_, BlockGetter p_154700_, BlockPos p_154701_, CollisionContext p_154702_) protected VoxelShape
StairBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
StemBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
StonecutterBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
StructureVoidBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SugarCaneBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SweetBerryBushBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
TallGrassBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
TallSeagrassBlock.getShape
(BlockState p_154763_, BlockGetter p_154764_, BlockPos p_154765_, CollisionContext p_154766_) TorchflowerCropBlock.getShape
(BlockState p_272748_, BlockGetter p_273408_, BlockPos p_272762_, CollisionContext p_272649_) protected VoxelShape
TrapDoorBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
TripWireBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
TripWireHookBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
TurtleEggBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
VineBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallBannerBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallHangingSignBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallSignBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallSkullBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WallTorchBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
WaterlilyBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected int
BasePressurePlateBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
ButtonBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.int
CalibratedSculkSensorBlock.getSignal
(BlockState p_277782_, BlockGetter p_277556_, BlockPos p_277903_, Direction p_278059_) protected int
DaylightDetectorBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
DetectorRailBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
DiodeBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.int
JukeboxBlock.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.protected int
LecternBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
LeverBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
LightningRodBlock.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.protected int
ObserverBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
PoweredBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
RedstoneTorchBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
RedstoneWallTorchBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
RedStoneWireBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
SculkSensorBlock.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.protected int
TargetBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
TrappedChestBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
TripWireHookBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected abstract int
BasePressurePlateBlock.getSignalStrength
(Level level, BlockPos pos) Calculates what the signal strength of a pressure plate at the given location should be.protected int
PressurePlateBlock.getSignalStrength
(Level level, BlockPos pos) Calculates what the signal strength of a pressure plate at the given location should be.protected int
WeightedPressurePlateBlock.getSignalStrength
(Level level, BlockPos pos) Calculates what the signal strength of a pressure plate at the given location should be.MultifaceSpreader.getSpreadFromFaceTowardDirection
(BlockState state, BlockGetter level, BlockPos pos, Direction spreadDirection, Direction face, MultifaceSpreader.SpreadPredicate predicate) abstract MultifaceSpreader.SpreadPos
MultifaceSpreader.SpreadType.getSpreadPos
(BlockPos pos, Direction face, Direction spreadDirection) private static StairsShape
StairBlock.getStairsShape
(BlockState state, BlockGetter level, BlockPos pos) Returns a stair shape property based on the surrounding stairs from the given blockstate and positionstatic BlockState
BaseFireBlock.getState
(BlockGetter reader, BlockPos pos) protected BlockState
FireBlock.getStateForPlacement
(BlockGetter level, BlockPos pos) MultifaceBlock.getStateForPlacement
(BlockState currentState, BlockGetter level, BlockPos pos, Direction lookingDirection) MultifaceSpreader.DefaultSpreaderConfig.getStateForPlacement
(BlockState currentState, BlockGetter level, BlockPos pos, Direction lookingDirection) MultifaceSpreader.SpreadConfig.getStateForPlacement
(BlockState currentState, BlockGetter level, BlockPos pos, Direction lookingDirection) private BlockState
FireBlock.getStateWithAge
(LevelAccessor level, BlockPos pos, int age) static BlockState
ChorusPlantBlock.getStateWithConnections
(BlockGetter level, BlockPos pos, BlockState state) private BlockState
VineBlock.getUpdatedState
(BlockState state, BlockGetter level, BlockPos pos) private static BlockPos
SculkSpreader.ChargeCursor.getValidMovementPos
(LevelAccessor level, BlockPos pos, RandomSource random) protected VoxelShape
FenceBlock.getVisualShape
(BlockState state, BlockGetter reader, BlockPos pos, CollisionContext context) protected VoxelShape
IronBarsBlock.getVisualShape
(BlockState state, BlockGetter reader, BlockPos pos, CollisionContext context) protected VoxelShape
MudBlock.getVisualShape
(BlockState p_221556_, BlockGetter p_221557_, BlockPos p_221558_, CollisionContext p_221559_) protected VoxelShape
PowderSnowBlock.getVisualShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
SnowLayerBlock.getVisualShape
(BlockState state, BlockGetter reader, BlockPos pos, CollisionContext context) protected VoxelShape
SoulSandBlock.getVisualShape
(BlockState state, BlockGetter reader, BlockPos pos, CollisionContext context) protected VoxelShape
TransparentBlock.getVisualShape
(BlockState p_309057_, BlockGetter p_308936_, BlockPos p_308956_, CollisionContext p_309006_) boolean
ComparatorBlock.getWeakChanges
(BlockState state, LevelReader world, BlockPos pos) private void
PitcherCropBlock.grow
(ServerLevel level, BlockState state, BlockPos pos, int ageIncrement) private static void
PointedDripstoneBlock.grow
(ServerLevel server, BlockPos pos, Direction direction) protected void
BambooSaplingBlock.growBamboo
(Level level, BlockPos state) protected void
BambooStalkBlock.growBamboo
(BlockState state, Level level, BlockPos pos, RandomSource random, int age) void
CropBlock.growCrops
(Level level, BlockPos pos, BlockState state) boolean
MushroomBlock.growMushroom
(ServerLevel level, BlockPos pos, BlockState state, RandomSource random) static void
PointedDripstoneBlock.growStalactiteOrStalagmiteIfPossible
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) private static void
PointedDripstoneBlock.growStalagmiteBelow
(ServerLevel level, BlockPos pos) private static void
ChorusFlowerBlock.growTreeRecursive
(LevelAccessor level, BlockPos branchPos, RandomSource random, BlockPos originalBranchPos, int maxHorizontalDistance, int iterations) private void
LayeredCauldronBlock.handleEntityOnFireInside
(BlockState state, Level level, BlockPos pos) static void
ComposterBlock.handleFill
(Level level, BlockPos pos, boolean success) void
Block.handlePrecipitation
(BlockState state, Level level, BlockPos pos, Biome.Precipitation precipitation) void
CauldronBlock.handlePrecipitation
(BlockState state, Level level, BlockPos pos, Biome.Precipitation precipitation) void
LayeredCauldronBlock.handlePrecipitation
(BlockState state, Level level, BlockPos pos, Biome.Precipitation precipitation) private boolean
RailState.hasConnection
(BlockPos pos) private boolean
RailState.hasNeighborRail
(BlockPos pos) protected boolean
RedstoneTorchBlock.hasNeighborSignal
(Level level, BlockPos pos, BlockState state) protected boolean
RedstoneWallTorchBlock.hasNeighborSignal
(Level level, BlockPos pos, BlockState state) private boolean
static boolean
SculkVeinBlock.hasSubstrateAccess
(LevelAccessor level, BlockState state, BlockPos pos) static boolean
CropBlock.hasSufficientLight
(LevelReader level, BlockPos pos) static boolean
SnifferEggBlock.hatchBoost
(BlockGetter level, BlockPos pos) private void
FrogspawnBlock.hatchFrogspawn
(ServerLevel level, BlockPos pos, RandomSource random) private boolean
BeehiveBlock.hiveContainsBees
(Level level, BlockPos pos) static BlockState
ComposterBlock.insertItem
(Entity entity, BlockState state, ServerLevel level, ItemStack stack, BlockPos pos) private static void
RedStoneOreBlock.interact
(BlockState state, Level level, BlockPos pos) static boolean
VineBlock.isAcceptableNeighbour
(BlockGetter blockReader, BlockPos neighborPos, Direction attachedFace) private static boolean
ChestBlock.isBlockedChestByBlock
(BlockGetter level, BlockPos pos) boolean
AzaleaBlock.isBonemealSuccess
(Level p_220712_, RandomSource p_220713_, BlockPos p_220714_, BlockState p_220715_) boolean
BambooSaplingBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BambooStalkBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BigDripleafBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BigDripleafStemBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BonemealableBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
CaveVinesBlock.isBonemealSuccess
(Level p_220930_, RandomSource p_220931_, BlockPos p_220932_, BlockState p_220933_) boolean
CaveVinesPlantBlock.isBonemealSuccess
(Level p_220943_, RandomSource p_220944_, BlockPos p_220945_, BlockState p_220946_) boolean
CocoaBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
CropBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
FungusBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
GlowLichenBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
GrassBlock.isBonemealSuccess
(Level p_221275_, RandomSource p_221276_, BlockPos p_221277_, BlockState p_221278_) boolean
GrowingPlantBodyBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
GrowingPlantHeadBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
MangroveLeavesBlock.isBonemealSuccess
(Level p_221437_, RandomSource p_221438_, BlockPos p_221439_, BlockState p_221440_) boolean
MangrovePropaguleBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
MossBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
MushroomBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
NetherrackBlock.isBonemealSuccess
(Level p_221816_, RandomSource p_221817_, BlockPos p_221818_, BlockState p_221819_) boolean
NyliumBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
PinkPetalsBlock.isBonemealSuccess
(Level p_272604_, RandomSource p_273609_, BlockPos p_272988_, BlockState p_273231_) boolean
PitcherCropBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
RootedDirtBlock.isBonemealSuccess
(Level p_221979_, RandomSource p_221980_, BlockPos p_221981_, BlockState p_221982_) boolean
SaplingBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
SeagrassBlock.isBonemealSuccess
(Level p_222428_, RandomSource p_222429_, BlockPos p_222430_, BlockState p_222431_) boolean
SeaPickleBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
SmallDripleafBlock.isBonemealSuccess
(Level p_222438_, RandomSource p_222439_, BlockPos p_222440_, BlockState p_222441_) boolean
StemBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
SweetBerryBushBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
TallFlowerBlock.isBonemealSuccess
(Level p_222573_, RandomSource p_222574_, BlockPos p_222575_, BlockState p_222576_) boolean
TallGrassBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) private boolean
ScaffoldingBlock.isBottom
(BlockGetter level, BlockPos pos, int distance) private static boolean
BedBlock.isBunkBed
(BlockGetter level, BlockPos pos) private static boolean
ChestBlock.isCatSittingOnChest
(LevelAccessor level, BlockPos pos) static boolean
ChestBlock.isChestBlockedAt
(LevelAccessor level, BlockPos pos) protected boolean
BambooStalkBlock.isCollisionShapeFullBlock
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
PointedDripstoneBlock.isCollisionShapeFullBlock
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
AbstractCauldronBlock.isEntityInsideContent
(BlockState state, BlockPos pos, Entity entity) boolean
BaseRailBlock.isFlexibleRail
(BlockState state, BlockGetter world, BlockPos pos) boolean
TrapDoorBlock.isLadder
(BlockState state, LevelReader world, BlockPos pos, LivingEntity entity) boolean
DiodeBlock.isLocked
(LevelReader level, BlockPos pos, BlockState state) Check if neighboring blocks are locking this diode.boolean
RepeaterBlock.isLocked
(LevelReader level, BlockPos pos, BlockState state) Check if neighboring blocks are locking this diode.private static boolean
SculkSpreader.ChargeCursor.isMovementUnobstructed
(LevelAccessor level, BlockPos fromPos, BlockPos toPos) protected boolean
FireBlock.isNearRain
(Level level, BlockPos pos) private static boolean
FarmBlock.isNearWater
(LevelReader level, BlockPos pos) private static boolean
static boolean
protected boolean
PoweredRailBlock.isSameRailWithPower
(Level level, BlockPos state, boolean searchForward, int recursionCount, RailShape shape) static boolean
TurtleEggBlock.isSand
(BlockGetter reader, BlockPos pos) private boolean
HoneyBlock.isSlidingDown
(BlockPos pos, Entity entity) static boolean
CampfireBlock.isSmokeyPos
(Level level, BlockPos pos) private static boolean
PointedDripstoneBlock.isStalactiteStartPos
(BlockState state, LevelReader level, BlockPos pos) abstract boolean
SupportType.isSupporting
(BlockState state, BlockGetter level, BlockPos pos, Direction face) private static boolean
RedstoneTorchBlock.isToggledTooFrequently
(Level level, BlockPos pos, boolean logToggle) private static boolean
SculkSpreader.ChargeCursor.isUnobstructed
(LevelAccessor level, BlockPos pos, Direction direction) boolean
AzaleaBlock.isValidBonemealTarget
(LevelReader p_256329_, BlockPos p_256107_, BlockState p_255771_) boolean
BambooSaplingBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
BambooStalkBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
BigDripleafBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
BigDripleafStemBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
BonemealableBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
CaveVinesBlock.isValidBonemealTarget
(LevelReader p_256026_, BlockPos p_152971_, BlockState p_152972_) boolean
CaveVinesPlantBlock.isValidBonemealTarget
(LevelReader p_255942_, BlockPos p_153012_, BlockState p_153013_) boolean
CocoaBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
CropBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
FungusBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
GlowLichenBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
GrassBlock.isValidBonemealTarget
(LevelReader p_256229_, BlockPos p_256432_, BlockState p_255677_) boolean
GrowingPlantBodyBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
GrowingPlantHeadBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
MangroveLeavesBlock.isValidBonemealTarget
(LevelReader p_256534_, BlockPos p_256299_, BlockState p_255926_) boolean
MangrovePropaguleBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
MossBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
MushroomBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
NetherrackBlock.isValidBonemealTarget
(LevelReader p_256620_, BlockPos p_55003_, BlockState p_55004_) boolean
NyliumBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
PinkPetalsBlock.isValidBonemealTarget
(LevelReader p_272968_, BlockPos p_273762_, BlockState p_273662_) boolean
PitcherCropBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
RootedDirtBlock.isValidBonemealTarget
(LevelReader p_256100_, BlockPos p_255943_, BlockState p_255655_) boolean
SaplingBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
SeagrassBlock.isValidBonemealTarget
(LevelReader p_295512_, BlockPos p_154506_, BlockState p_154507_) boolean
SeaPickleBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
SmallDripleafBlock.isValidBonemealTarget
(LevelReader p_255772_, BlockPos p_154595_, BlockState p_154596_) boolean
StemBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
SweetBerryBushBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) boolean
TallFlowerBlock.isValidBonemealTarget
(LevelReader p_256234_, BlockPos p_57304_, BlockState p_57305_) boolean
TallGrassBlock.isValidBonemealTarget
(LevelReader level, BlockPos pos, BlockState state) static boolean
EnchantingTableBlock.isValidBookShelf
(Level level, BlockPos enchantingTablePos, BlockPos bookshelfPos) private boolean
FireBlock.isValidFireLocation
(BlockGetter level, BlockPos pos) private static boolean
PointedDripstoneBlock.isValidPointedDripstonePlacement
(LevelReader level, BlockPos pos, Direction dir) boolean
MultifaceBlock.isValidStateForPlacement
(BlockGetter level, BlockState state, BlockPos pos, Direction direction) private static boolean
RespawnAnchorBlock.isWaterThatWouldFlow
(BlockPos pos, Level level) static boolean
DoorBlock.isWoodenDoor
(Level level, BlockPos pos) private boolean
BedBlock.kickVillagerOutOfBed
(Level level, BlockPos pos) static void
LayeredCauldronBlock.lowerFillLevel
(BlockState state, Level level, BlockPos pos) private static void
LeverBlock.makeParticle
(BlockState state, LevelAccessor level, BlockPos pos, float alpha) static void
CampfireBlock.makeParticles
(Level level, BlockPos pos, boolean isSignalFire, boolean spawnExtraSmoke) private void
HoneyBlock.maybeDoSlideAchievement
(Entity entity, BlockPos pos) static void
PointedDripstoneBlock.maybeTransferFluid
(BlockState state, ServerLevel level, BlockPos pos, float randChance) protected boolean
AttachedStemBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
AzaleaBlock.mayPlaceOn
(BlockState p_152089_, BlockGetter p_152090_, BlockPos p_152091_) protected boolean
BushBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
CropBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
DeadBushBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) private static boolean
FrogspawnBlock.mayPlaceOn
(BlockGetter level, BlockPos pos) protected boolean
FungusBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
MangrovePropaguleBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
MushroomBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
NetherSproutsBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
NetherWartBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
PitcherCropBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
RootsBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
SeagrassBlock.mayPlaceOn
(BlockState p_154539_, BlockGetter p_154540_, BlockPos p_154541_) protected boolean
SeaPickleBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
SmallDripleafBlock.mayPlaceOn
(BlockState p_154636_, BlockGetter p_154637_, BlockPos p_154638_) protected boolean
StemBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
TallSeagrassBlock.mayPlaceOn
(BlockState p_154774_, BlockGetter p_154775_, BlockPos p_154776_) protected boolean
WaterlilyBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
WitherRoseBlock.mayPlaceOn
(BlockState state, BlockGetter level, BlockPos pos) protected void
IceBlock.melt
(BlockState state, Level level, BlockPos pos) protected void
AbstractSkullBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) protected void
BaseRailBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
BellBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
BigDripleafBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) protected void
CommandBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
CopperBulbBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) protected void
CrafterBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) protected void
DiodeBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
DispenserBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
DoorBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
FenceGateBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
FrostedIceBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
HopperBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
LiquidBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
NoteBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
RedstoneLampBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
RedstoneTorchBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
RedStoneWireBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
SpongeBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
StructureBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
TntBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
TrapDoorBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) private static boolean
Blocks.never
(BlockState state, BlockGetter blockGetter, BlockPos pos) static Boolean
Blocks.never
(BlockState state, BlockGetter blockGetter, BlockPos pos, EntityType<?> entity) AbstractBannerBlock.newBlockEntity
(BlockPos pos, BlockState state) AbstractSkullBlock.newBlockEntity
(BlockPos pos, BlockState state) BarrelBlock.newBlockEntity
(BlockPos pos, BlockState state) BeaconBlock.newBlockEntity
(BlockPos pos, BlockState state) BedBlock.newBlockEntity
(BlockPos pos, BlockState state) BeehiveBlock.newBlockEntity
(BlockPos pos, BlockState state) BellBlock.newBlockEntity
(BlockPos pos, BlockState state) BlastFurnaceBlock.newBlockEntity
(BlockPos pos, BlockState state) BrewingStandBlock.newBlockEntity
(BlockPos pos, BlockState state) BrushableBlock.newBlockEntity
(BlockPos pos, BlockState state) CalibratedSculkSensorBlock.newBlockEntity
(BlockPos p_277925_, BlockState p_277938_) CampfireBlock.newBlockEntity
(BlockPos pos, BlockState state) CeilingHangingSignBlock.newBlockEntity
(BlockPos pos, BlockState state) ChestBlock.newBlockEntity
(BlockPos pos, BlockState state) ChiseledBookShelfBlock.newBlockEntity
(BlockPos pos, BlockState state) CommandBlock.newBlockEntity
(BlockPos pos, BlockState state) ComparatorBlock.newBlockEntity
(BlockPos pos, BlockState state) ConduitBlock.newBlockEntity
(BlockPos pos, BlockState state) CrafterBlock.newBlockEntity
(BlockPos pos, BlockState state) DaylightDetectorBlock.newBlockEntity
(BlockPos pos, BlockState state) DecoratedPotBlock.newBlockEntity
(BlockPos p_273396_, BlockState p_272674_) DispenserBlock.newBlockEntity
(BlockPos pos, BlockState state) DropperBlock.newBlockEntity
(BlockPos p_153179_, BlockState p_153180_) EnchantingTableBlock.newBlockEntity
(BlockPos pos, BlockState state) EnderChestBlock.newBlockEntity
(BlockPos pos, BlockState state) EndGatewayBlock.newBlockEntity
(BlockPos pos, BlockState state) EndPortalBlock.newBlockEntity
(BlockPos pos, BlockState state) EntityBlock.newBlockEntity
(BlockPos pos, BlockState state) FurnaceBlock.newBlockEntity
(BlockPos pos, BlockState state) HopperBlock.newBlockEntity
(BlockPos pos, BlockState state) JigsawBlock.newBlockEntity
(BlockPos pos, BlockState state) JukeboxBlock.newBlockEntity
(BlockPos pos, BlockState state) LecternBlock.newBlockEntity
(BlockPos pos, BlockState state) SculkCatalystBlock.newBlockEntity
(BlockPos p_222117_, BlockState p_222118_) SculkSensorBlock.newBlockEntity
(BlockPos pos, BlockState state) SculkShriekerBlock.newBlockEntity
(BlockPos pos, BlockState state) ShulkerBoxBlock.newBlockEntity
(BlockPos pos, BlockState state) SignBlock.newBlockEntity
(BlockPos pos, BlockState state) SmokerBlock.newBlockEntity
(BlockPos pos, BlockState state) SpawnerBlock.newBlockEntity
(BlockPos pos, BlockState state) StructureBlock.newBlockEntity
(BlockPos pos, BlockState state) TrappedChestBlock.newBlockEntity
(BlockPos pos, BlockState state) TrialSpawnerBlock.newBlockEntity
(BlockPos p_311941_, BlockState p_312821_) VaultBlock.newBlockEntity
(BlockPos p_324543_, BlockState p_323652_) WallHangingSignBlock.newBlockEntity
(BlockPos pos, BlockState state) private static void
TripWireHookBlock.notifyNeighbors
(Block block, Level level, BlockPos pos, Direction direction) static Boolean
Blocks.ocelotOrParrot
(BlockState state, BlockGetter blockGetter, BlockPos pos, EntityType<?> entity) void
AnvilBlock.onBrokenAfterFall
(Level level, BlockPos pos, FallingBlockEntity fallingBlock) void
BrushableBlock.onBrokenAfterFall
(Level level, BlockPos pos, FallingBlockEntity fallingBlock) default void
Fallable.onBrokenAfterFall
(Level level, BlockPos pos, FallingBlockEntity fallingBlock) void
PointedDripstoneBlock.onBrokenAfterFall
(Level level, BlockPos pos, FallingBlockEntity fallingBlock) void
TntBlock.onCaughtFire
(BlockState state, Level world, BlockPos pos, Direction face, LivingEntity igniter) default void
SculkBehaviour.onDischarged
(LevelAccessor level, BlockState state, BlockPos pos, RandomSource random) void
SculkVeinBlock.onDischarged
(LevelAccessor level, BlockState state, BlockPos pos, RandomSource random) protected void
AbstractCandleBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
BellBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
ButtonBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
DoorBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
FenceGateBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
LeverBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
TrapDoorBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) void
AnvilBlock.onLand
(Level level, BlockPos pos, BlockState state, BlockState replaceableState, FallingBlockEntity fallingBlock) void
ConcretePowderBlock.onLand
(Level level, BlockPos pos, BlockState state, BlockState replaceableState, FallingBlockEntity fallingBlock) default void
Fallable.onLand
(Level level, BlockPos pos, BlockState state, BlockState replaceableState, FallingBlockEntity fallingBlock) void
LightningRodBlock.onLightningStrike
(BlockState state, Level level, BlockPos pos) void
ComparatorBlock.onNeighborChange
(BlockState state, LevelReader world, BlockPos pos, BlockPos neighbor) void
AbstractCauldronBlock.onPlace
(BlockState p_51978_, Level p_51979_, BlockPos p_51980_, BlockState p_51981_, boolean p_51982_) protected void
BaseFireBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
BaseRailBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) void
BrushableBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) protected void
CarvedPumpkinBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
ComposterBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
CopperBulbBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) protected void
CoralFanBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
CoralPlantBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
CoralWallFanBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
DetectorRailBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
DiodeBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
FallingBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
FireBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
FrogspawnBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) void
FrostedIceBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) protected void
HopperBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
LightningRodBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) protected void
LiquidBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
MagmaBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
ObserverBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
RedstoneTorchBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
RedStoneWireBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
ScaffoldingBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
SculkSensorBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) void
SnifferEggBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) protected void
SoulSandBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
SpongeBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
TargetBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
TntBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
TripWireBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
TurtleEggBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
WetSpongeBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) void
AbstractCauldronBlock.onRemove
(BlockState p_60515_, Level p_60516_, BlockPos p_60517_, BlockState p_60518_, boolean p_60519_) protected void
AbstractFurnaceBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
BarrelBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
BasePressurePlateBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
BaseRailBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
BrewingStandBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
ButtonBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
CampfireBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
ChestBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
ChiseledBookShelfBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean movedByPiston) protected void
ComposterBlock.onRemove
(BlockState p_60515_, Level p_60516_, BlockPos p_60517_, BlockState p_60518_, boolean p_60519_) protected void
CrafterBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean movedByPiston) protected void
DecoratedPotBlock.onRemove
(BlockState p_305821_, Level p_306245_, BlockPos p_305894_, BlockState p_306294_, boolean p_306159_) protected void
DiodeBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
DispenserBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
HopperBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
JukeboxBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
LecternBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
LeverBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
LightningRodBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean movedByPiston) protected void
ObserverBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
RedstoneTorchBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
RedStoneWireBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
SculkSensorBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean movedByPiston) protected void
SculkShriekerBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean movedByPiston) protected void
ShulkerBoxBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
TripWireBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
TripWireHookBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) static boolean
TurtleEggBlock.onSand
(BlockGetter level, BlockPos pos) protected abstract void
AbstractFurnaceBlock.openContainer
(Level level, BlockPos pos, Player player) Called to open this furnace's container.protected void
BlastFurnaceBlock.openContainer
(Level level, BlockPos pos, Player player) Called to open this furnace's container.protected void
FurnaceBlock.openContainer
(Level level, BlockPos pos, Player player) Called to open this furnace's container.protected void
SmokerBlock.openContainer
(Level level, BlockPos pos, Player player) Called to open this furnace's container.private void
LecternBlock.openScreen
(Level level, BlockPos pos, Player player) void
AzaleaBlock.performBonemeal
(ServerLevel p_220707_, RandomSource p_220708_, BlockPos p_220709_, BlockState p_220710_) void
BambooSaplingBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BambooStalkBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BigDripleafBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BigDripleafStemBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BonemealableBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
CaveVinesBlock.performBonemeal
(ServerLevel p_220923_, RandomSource p_220924_, BlockPos p_220925_, BlockState p_220926_) void
CaveVinesPlantBlock.performBonemeal
(ServerLevel p_220938_, RandomSource p_220939_, BlockPos p_220940_, BlockState p_220941_) void
CocoaBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
CropBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
FungusBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
GlowLichenBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
GrassBlock.performBonemeal
(ServerLevel p_221270_, RandomSource p_221271_, BlockPos p_221272_, BlockState p_221273_) void
GrowingPlantBodyBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
GrowingPlantHeadBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
MangroveLeavesBlock.performBonemeal
(ServerLevel p_221427_, RandomSource p_221428_, BlockPos p_221429_, BlockState p_221430_) void
MangrovePropaguleBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
MossBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
MushroomBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
NetherrackBlock.performBonemeal
(ServerLevel p_221811_, RandomSource p_221812_, BlockPos p_221813_, BlockState p_221814_) void
NyliumBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
PinkPetalsBlock.performBonemeal
(ServerLevel p_273476_, RandomSource p_273093_, BlockPos p_272601_, BlockState p_272683_) void
PitcherCropBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
RootedDirtBlock.performBonemeal
(ServerLevel p_221974_, RandomSource p_221975_, BlockPos p_221976_, BlockState p_221977_) void
SaplingBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
SeagrassBlock.performBonemeal
(ServerLevel p_222423_, RandomSource p_222424_, BlockPos p_222425_, BlockState p_222426_) void
SeaPickleBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
SmallDripleafBlock.performBonemeal
(ServerLevel p_222433_, RandomSource p_222434_, BlockPos p_222435_, BlockState p_222436_) void
StemBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
SweetBerryBushBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
TallFlowerBlock.performBonemeal
(ServerLevel p_222568_, RandomSource p_222569_, BlockPos p_222570_, BlockState p_222571_) void
TallGrassBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) BarrierBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) BubbleColumnBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) BucketPickup.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) LiquidBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) PowderSnowBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) protected static boolean
BigDripleafBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) private void
NyliumBlock.place
(Registry<ConfiguredFeature<?, ?>> featureRegistry, ResourceKey<ConfiguredFeature<?, ?>> featureKey, ServerLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) static void
DoublePlantBlock.placeAt
(LevelAccessor level, BlockState state, BlockPos pos, int flags) private static void
LecternBlock.placeBook
(LivingEntity entity, Level level, BlockPos pos, BlockState state, ItemStack stack) private void
ChorusFlowerBlock.placeDeadFlower
(Level level, BlockPos pos) private void
ChorusFlowerBlock.placeGrownFlower
(Level level, BlockPos pos, int age) boolean
CampfireBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
CandleBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
SlabBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor level, RandomSource random, BlockPos pos, Direction direction) void
BeehiveBlock.playerDestroy
(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.void
Block.playerDestroy
(Level level, Player player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack tool) Called after a player has successfully harvested this block.void
DoublePlantBlock.playerDestroy
(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.void
IceBlock.playerDestroy
(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.void
TurtleEggBlock.playerDestroy
(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.BaseFireBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) BedBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) BeehiveBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) Block.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) DecoratedPotBlock.playerWillDestroy
(Level p_273590_, BlockPos p_273343_, BlockState p_272869_, Player p_273002_) DoorBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) DoublePlantBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) ShulkerBoxBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) TntBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) TripWireBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) private void
NoteBlock.playNote
(Entity entity, BlockState state, Level level, BlockPos pos) protected void
ButtonBlock.playSound
(Player player, LevelAccessor level, BlockPos pos, boolean hitByArrow) private void
protected static void
LeverBlock.playSound
(Player player, LevelAccessor level, BlockPos pos, BlockState state) protected void
private static void
BigDripleafBlock.playTiltSound
(Level level, BlockPos pos, SoundEvent sound) private void
LecternBlock.popBook
(BlockState state, Level level, BlockPos pos) void
Block.popExperience
(ServerLevel level, BlockPos pos, int amount) Spawns the given amount of experience into the Level as experience orb entities.static void
Block.popResource
(Level level, BlockPos pos, ItemStack stack) Spawns the given stack into the Level at the given position, respecting the doTileDrops gamerulestatic void
Block.popResourceFromFace
(Level level, BlockPos pos, Direction direction, ItemStack stack) void
ButtonBlock.press
(BlockState state, Level level, BlockPos pos, Player player) protected static void
DoublePlantBlock.preventDropFromBottomPart
(Level level, BlockPos pos, BlockState state, Player player) protected boolean
BambooStalkBlock.propagatesSkylightDown
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
BarrierBlock.propagatesSkylightDown
(BlockState state, BlockGetter reader, BlockPos pos) protected boolean
BushBlock.propagatesSkylightDown
(BlockState state, BlockGetter reader, BlockPos pos) protected boolean
CrossCollisionBlock.propagatesSkylightDown
(BlockState state, BlockGetter reader, BlockPos pos) protected boolean
GlowLichenBlock.propagatesSkylightDown
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
LightBlock.propagatesSkylightDown
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
LiquidBlock.propagatesSkylightDown
(BlockState state, BlockGetter reader, BlockPos pos) protected boolean
PipeBlock.propagatesSkylightDown
(BlockState state, BlockGetter reader, BlockPos pos) protected boolean
ShulkerBoxBlock.propagatesSkylightDown
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
TintedGlassBlock.propagatesSkylightDown
(BlockState p_154824_, BlockGetter p_154825_, BlockPos p_154826_) protected boolean
TransparentBlock.propagatesSkylightDown
(BlockState p_309084_, BlockGetter p_309133_, BlockPos p_309097_) protected boolean
VineBlock.propagatesSkylightDown
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
WallBlock.propagatesSkylightDown
(BlockState state, BlockGetter reader, BlockPos pos) void
LeverBlock.pull
(BlockState state, Level level, BlockPos pos, Player player) static BlockState
Block.pushEntitiesUp
(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos) protected void
BambooSaplingBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
BambooStalkBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
BeetrootBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
BuddingAmethystBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
CactusBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
ChorusFlowerBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
CocoaBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
CropBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
FarmBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
GrowingPlantHeadBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
IceBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
LeavesBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
LiquidBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
MangrovePropaguleBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
MushroomBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
NetherPortalBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
NetherWartBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
NyliumBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.void
PitcherCropBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
PointedDripstoneBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
RedStoneOreBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SaplingBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SnowLayerBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SpreadingSnowyDirtBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
StemBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SugarCaneBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SweetBerryBushBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.void
TorchflowerCropBlock.randomTick
(BlockState p_273361_, ServerLevel p_273515_, BlockPos p_273546_, RandomSource p_273261_) protected void
TurtleEggBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
VineBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperBulbBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperDoorBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperFullBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperGrateBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperSlabBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperStairBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperTrapDoorBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
AbstractCauldronBlock.receiveStalactiteDrip
(BlockState state, Level level, BlockPos pos, Fluid fluid) protected void
CauldronBlock.receiveStalactiteDrip
(BlockState state, Level level, BlockPos pos, Fluid fluid) protected void
LayeredCauldronBlock.receiveStalactiteDrip
(BlockState state, Level level, BlockPos pos, Fluid fluid) private void
ComparatorBlock.refreshOutputState
(Level level, BlockPos pos, BlockState state) static boolean
SculkVeinBlock.regrow
(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions) void
BeehiveBlock.releaseBeesAndResetHoneyLevel
(Level level, BlockState state, BlockPos pos, Player player, BeehiveBlockEntity.BeeReleaseStatus beeReleaseStatus) private static void
ChiseledBookShelfBlock.removeBook
(Level level, BlockPos pos, Player player, ChiseledBookShelfBlockEntity blockEntity, int slot) private boolean
SpongeBlock.removeWaterBreadthFirstSearch
(Level level, BlockPos pos) static void
LecternBlock.resetBookState
(Entity entity, Level level, BlockPos pos, BlockState state, boolean hasBook) void
BeehiveBlock.resetHoneyLevel
(Level level, BlockState state, BlockPos pos) private static void
BigDripleafBlock.resetTilt
(BlockState state, Level level, BlockPos pos) protected static boolean
BaseCoralPlantTypeBlock.scanForWater
(BlockState state, BlockGetter level, BlockPos pos) protected boolean
CoralBlock.scanForWater
(BlockGetter level, BlockPos pos) private BlockState
NoteBlock.setInstrument
(LevelAccessor level, BlockPos pos, BlockState state) private static void
AbstractCandleBlock.setLit
(LevelAccessor level, BlockState state, BlockPos pos, boolean lit) void
DoorBlock.setOpen
(Entity entity, Level level, BlockState state, BlockPos pos, boolean open) private static void
TargetBlock.setOutputPower
(LevelAccessor level, BlockState state, int power, BlockPos pos, int waitTime) void
BedBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
Block.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
CommandBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
CrafterBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
DiodeBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
DoorBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
DoublePlantBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
JukeboxBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
PitcherCropBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
SmallDripleafBlock.setPlacedBy
(Level p_154599_, BlockPos p_154600_, BlockState p_154601_, LivingEntity p_154602_, ItemStack p_154603_) void
StructureBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
TripWireHookBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
WitherSkullBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.void
WitherWallSkullBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by ItemBlocks after a block is set in the world, to allow post-place logicprivate static void
BigDripleafBlock.setTilt
(BlockState state, Level level, BlockPos pos, Tilt p_tilt) private void
BigDripleafBlock.setTiltAndScheduleTick
(BlockState state, Level level, BlockPos pos, Tilt tilt, SoundEvent sound) private static boolean
BaseRailBlock.shouldBeRemoved
(BlockPos pos, Level level, RailShape shape) private static boolean
FarmBlock.shouldMaintainFarmland
(BlockGetter level, BlockPos pos) boolean
DiodeBlock.shouldPrioritize
(BlockGetter level, BlockPos pos, BlockState state) Check if this diode should have a higher tick priority than default.static boolean
Block.shouldRenderFace
(BlockState state, BlockGetter level, BlockPos offset, Direction face, BlockPos pos) private static boolean
ConcretePowderBlock.shouldSolidify
(BlockGetter level, BlockPos pos, BlockState state) private static boolean
ConcretePowderBlock.shouldSolidify
(BlockGetter level, BlockPos pos, BlockState state, FluidState fluidState) private boolean
LiquidBlock.shouldSpreadLiquid
(Level level, BlockPos pos, BlockState state) Deprecated.protected boolean
ComparatorBlock.shouldTurnOn
(Level level, BlockPos pos, BlockState state) protected boolean
DiodeBlock.shouldTurnOn
(Level level, BlockPos pos, BlockState state) private boolean
SculkSpreader.ChargeCursor.shouldUpdate
(LevelAccessor level, BlockPos pos, boolean isWorldGeneration) private BlockState
WallBlock.sideUpdate
(LevelReader level, BlockPos firstPos, BlockState firstState, BlockPos secondPos, BlockState secondState, Direction dir) static void
LecternBlock.signalPageChange
(Level level, BlockPos pos, BlockState state) private boolean
FrostedIceBlock.slightlyMelt
(BlockState state, Level level, BlockPos pos) protected void
DropExperienceBlock.spawnAfterBreak
(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected void
InfestedBlock.spawnAfterBreak
(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected void
RedStoneOreBlock.spawnAfterBreak
(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected void
SculkCatalystBlock.spawnAfterBreak
(BlockState p_222109_, ServerLevel p_222110_, BlockPos p_222111_, ItemStack p_222112_, boolean p_222113_) protected void
SculkSensorBlock.spawnAfterBreak
(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected void
SculkShriekerBlock.spawnAfterBreak
(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected void
SpawnerBlock.spawnAfterBreak
(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected void
BaseFireBlock.spawnDestroyParticles
(Level level, Player player, BlockPos pos, BlockState state) protected void
Block.spawnDestroyParticles
(Level level, Player player, BlockPos pos, BlockState state) static void
PointedDripstoneBlock.spawnDripParticle
(Level level, BlockPos pos, BlockState state) private static void
PointedDripstoneBlock.spawnDripParticle
(Level level, BlockPos pos, BlockState state, Fluid p_fluid) private static void
PointedDripstoneBlock.spawnFallingStalactite
(BlockState state, ServerLevel level, BlockPos pos) private static void
CarvedPumpkinBlock.spawnGolemInWorld
(Level level, BlockPattern.BlockPatternMatch patternMatch, Entity golem, BlockPos pos) private void
InfestedBlock.spawnInfestation
(ServerLevel level, BlockPos pos) private void
BeehiveBlock.spawnParticle
(Level level, BlockPos pos, VoxelShape shape, double y) private static void
RedStoneOreBlock.spawnParticles
(Level level, BlockPos pos) private void
RedStoneWireBlock.spawnParticlesAlongLine
(Level level, RandomSource random, BlockPos pos, Vec3 particleVec, Direction xDirection, Direction zDirection, float min, float max) private void
FrogspawnBlock.spawnTadpoles
(ServerLevel level, BlockPos pos, RandomSource random) long
MultifaceSpreader.spreadAll
(BlockState state, LevelAccessor level, BlockPos pos, boolean markForPostprocessing) private long
MultifaceSpreader.spreadFromFaceTowardAllDirections
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardDirection
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, Direction face, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, RandomSource random, boolean markForPostprocessing) MultifaceSpreader.spreadFromRandomFaceTowardRandomDirection
(BlockState state, LevelAccessor level, BlockPos pos, RandomSource random) private void
ObserverBlock.startSignal
(LevelAccessor level, BlockPos pos) protected boolean
MultifaceSpreader.DefaultSpreaderConfig.stateCanBeReplaced
(BlockGetter level, BlockPos pos, BlockPos spreadPos, Direction direction, BlockState state) boolean
SculkVeinBlock.SculkVeinSpreaderConfig.stateCanBeReplaced
(BlockGetter level, BlockPos pos, BlockPos spreadPos, Direction direction, BlockState state) void
Block.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
MagmaBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
RedStoneOreBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
SculkSensorBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
SculkShriekerBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
SlimeBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
TurtleEggBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) private static boolean
PitcherCropBlock.sufficientLight
(LevelReader level, BlockPos pos) private void
DragonEggBlock.teleport
(BlockState state, Level level, BlockPos pos) boolean
MultifaceSpreader.SpreadPredicate.test
(BlockGetter level, BlockPos pos, MultifaceSpreader.SpreadPos spreadPos) protected void
AbstractCauldronBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BambooStalkBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BarrelBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BasePressurePlateBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BigDripleafBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BigDripleafStemBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) void
BrushableBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BubbleColumnBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ButtonBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CactusBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ChestBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ChorusFlowerBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ChorusPlantBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CommandBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ComparatorBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ComposterBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralFanBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralPlantBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralWallFanBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CrafterBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
DetectorRailBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
DiodeBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
DirtPathBlock.tick
(BlockState p_221070_, ServerLevel p_221071_, BlockPos p_221072_, RandomSource p_221073_) protected void
DispenserBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
EnderChestBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FallingBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FarmBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FireBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FrogspawnBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FrostedIceBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
GrowingPlantBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
LeavesBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
LecternBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
LightningRodBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
MagmaBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ObserverBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
PointedDripstoneBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
RedstoneLampBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
RedstoneTorchBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ScaffoldingBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SculkCatalystBlock.tick
(BlockState p_222104_, ServerLevel p_222105_, BlockPos p_222106_, RandomSource p_222107_) protected void
SculkSensorBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SculkShriekerBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) void
SnifferEggBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SoulSandBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SugarCaneBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
TargetBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
TripWireBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
TripWireHookBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) private static void
DaylightDetectorBlock.tickEntity
(Level level, BlockPos pos, BlockState state, DaylightDetectorBlockEntity blockEntity) private void
TrapDoorBlock.toggle
(BlockState state, Level level, BlockPos pos, Player player) private BlockState
WallBlock.topUpdate
(LevelReader level, BlockState state, BlockPos pos, BlockState secondState) private static boolean
ConcretePowderBlock.touchesLiquid
(BlockGetter level, BlockPos pos, BlockState state) protected boolean
BaseEntityBlock.triggerEvent
(BlockState state, Level level, BlockPos pos, int id, int param) Called on server whenLevel.blockEvent(net.minecraft.core.BlockPos, net.minecraft.world.level.block.Block, int, int)
is called.protected boolean
ComparatorBlock.triggerEvent
(BlockState state, Level level, BlockPos pos, int id, int param) Called on server whenLevel.blockEvent(net.minecraft.core.BlockPos, net.minecraft.world.level.block.Block, int, int)
is called.protected boolean
NoteBlock.triggerEvent
(BlockState state, Level level, BlockPos pos, int id, int param) Called on server whenLevel.blockEvent(net.minecraft.core.BlockPos, net.minecraft.world.level.block.Block, int, int)
is called.protected void
SpongeBlock.tryAbsorbWater
(Level level, BlockPos pos) protected void
Block.tryDropExperience
(ServerLevel level, BlockPos pos, ItemStack heldItem, IntProvider amount) static boolean
LecternBlock.tryPlaceBook
(LivingEntity entity, Level level, BlockPos pos, BlockState state, ItemStack stack) static void
SculkSensorBlock.tryResonateVibration
(Entity entity, Level level, BlockPos pos, int frequency) protected void
BaseCoralPlantTypeBlock.tryScheduleDieTick
(BlockState state, LevelAccessor level, BlockPos pos) private void
BeehiveBlock.trySpawnDripParticles
(Level level, BlockPos pos, BlockState state) private void
CarvedPumpkinBlock.trySpawnGolem
(Level level, BlockPos pos) static void
FarmBlock.turnToDirt
(Entity entity, BlockState state, Level level, BlockPos pos) void
SculkSpreader.ChargeCursor.update
(LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) private static void
LecternBlock.updateBelow
(Level level, BlockPos pos, BlockState state) static void
BubbleColumnBlock.updateColumn
(LevelAccessor level, BlockPos pos, BlockState state) static void
BubbleColumnBlock.updateColumn
(LevelAccessor level, BlockPos pos, BlockState fluid, BlockState state) void
SculkSpreader.updateCursors
(LevelAccessor level, BlockPos pos, RandomSource random, boolean shouldConvertBlocks) protected BlockState
BaseRailBlock.updateDir
(Level level, BlockPos pos, BlockState state, boolean alwaysPlace) private static BlockState
LeavesBlock.updateDistance
(BlockState state, LevelAccessor level, BlockPos pos) static BlockState
Block.updateFromNeighbourShapes
(BlockState currentState, LevelAccessor level, BlockPos pos) With the provided block state, performs neighbor checks for all neighboring blocks to get an "adjusted" blockstate for placement in the world, if the current state is not valid.protected void
RedStoneWireBlock.updateIndirectNeighbourShapes
(BlockState state, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) Updates the shapes of indirect neighbors of this block.protected void
DiodeBlock.updateNeighborsInFront
(Level level, BlockPos pos, BlockState state) protected void
ObserverBlock.updateNeighborsInFront
(Level level, BlockPos pos, BlockState state) private void
RedStoneWireBlock.updateNeighborsOfNeighboringWires
(Level level, BlockPos pos) protected void
BasePressurePlateBlock.updateNeighbours
(Level level, BlockPos pos) Notify block and block below of changesprivate void
ButtonBlock.updateNeighbours
(BlockState state, Level level, BlockPos pos) private void
LeverBlock.updateNeighbours
(BlockState state, Level level, BlockPos pos) private void
LightningRodBlock.updateNeighbours
(BlockState state, Level level, BlockPos pos) private static void
SculkSensorBlock.updateNeighbours
(Level level, BlockPos pos, BlockState state) static void
Block.updateOrDestroy
(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos, int flags) Replaces oldState with newState, possibly playing effects and creating drops.static void
Block.updateOrDestroy
(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) private void
RedStoneWireBlock.updatePowerStrength
(Level level, BlockPos pos, BlockState state) protected void
DetectorRailBlock.updatePowerToConnected
(Level level, BlockPos pos, BlockState state, boolean powered) protected BlockState
AmethystClusterBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
AttachedStemBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
BambooSaplingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BambooStalkBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BannerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BarrierBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralPlantTypeBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralWallFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BasePressurePlateBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseRailBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseTorchBlock.updateShape
(BlockState p_304418_, Direction p_304475_, BlockState p_304669_, LevelAccessor p_304637_, BlockPos p_304633_, BlockPos p_304603_) protected BlockState
BedBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BeehiveBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BellBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafStemBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.BrushableBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BubbleColumnBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BushBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CactusBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CakeBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CampfireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleCakeBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CarpetBlock.updateShape
(BlockState p_152926_, Direction p_152927_, BlockState p_152928_, LevelAccessor p_152929_, BlockPos p_152930_, BlockPos p_152931_) protected BlockState
CeilingHangingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
ChainBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChestBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor facing and neighbor state, returning a new state.protected BlockState
ChorusFlowerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChorusPlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CocoaBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.ComparatorBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ConcretePowderBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
ConduitBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralPlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralWallFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
DecoratedPotBlock.updateShape
(BlockState p_276307_, Direction p_276322_, BlockState p_276280_, LevelAccessor p_276320_, BlockPos p_276270_, BlockPos p_276312_) protected BlockState
DirtPathBlock.updateShape
(BlockState p_153152_, Direction p_153153_, BlockState p_153154_, LevelAccessor p_153155_, BlockPos p_153156_, BlockPos p_153157_) protected BlockState
DoorBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
DoublePlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
EnderChestBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FaceAttachedHorizontalDirectionalBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FallingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FarmBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceGateBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FlowerPotBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FrogspawnBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GlowLichenBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantBodyBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantHeadBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
HangingRootsBlock.updateShape
(BlockState p_153351_, Direction p_153352_, BlockState p_153353_, LevelAccessor p_153354_, BlockPos p_153355_, BlockPos p_153356_) protected BlockState
HeavyCoreBlock.updateShape
(BlockState p_338756_, Direction p_338189_, BlockState p_338723_, LevelAccessor p_338514_, BlockPos p_338346_, BlockPos p_338401_) protected BlockState
HugeMushroomBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
IronBarsBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LadderBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LanternBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LeavesBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightningRodBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LiquidBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MagmaBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MangrovePropaguleBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MangroveRootsBlock.updateShape
(BlockState p_221514_, Direction p_221515_, BlockState p_221516_, LevelAccessor p_221517_, BlockPos p_221518_, BlockPos p_221519_) protected BlockState
MultifaceBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NetherPortalBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NoteBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ObserverBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.PitcherCropBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
PointedDripstoneBlock.updateShape
(BlockState state, Direction p_direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedstoneWallTorchBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedStoneWireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RepeaterBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ScaffoldingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkSensorBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkShriekerBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkVeinBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SeagrassBlock.updateShape
(BlockState p_154530_, Direction p_154531_, BlockState p_154532_, LevelAccessor p_154533_, BlockPos p_154534_, BlockPos p_154535_) protected BlockState
SeaPickleBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SlabBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SmallDripleafBlock.updateShape
(BlockState p_154625_, Direction p_154626_, BlockState p_154627_, LevelAccessor p_154628_, BlockPos p_154629_, BlockPos p_154630_) protected BlockState
SnowLayerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SnowyDirtBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulFireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulSandBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SporeBlossomBlock.updateShape
(BlockState p_154713_, Direction p_154714_, BlockState p_154715_, LevelAccessor p_154716_, BlockPos p_154717_, BlockPos p_154718_) protected BlockState
StairBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
StandingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SugarCaneBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TrapDoorBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireHookBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
VineBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBannerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.private BlockState
WallBlock.updateShape
(LevelReader level, BlockState state, BlockPos pos, BlockState neighbour, boolean northConnection, boolean eastConnection, boolean southConnection, boolean westConnection) protected BlockState
WallHangingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallTorchBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WaterloggedTransparentBlock.updateShape
(BlockState p_313906_, Direction p_313739_, BlockState p_313829_, LevelAccessor p_313692_, BlockPos p_313842_, BlockPos p_313843_) private static void
DaylightDetectorBlock.updateSignalStrength
(BlockState state, Level level, BlockPos pos) private void
RedStoneWireBlock.updatesOnShapeChange
(Level level, BlockPos pos, BlockState oldState, BlockState newState) private void
TripWireBlock.updateSource
(Level level, BlockPos pos, BlockState state) protected BlockState
BaseRailBlock.updateState
(BlockState state, Level level, BlockPos pos, boolean movedByPiston) protected void
BaseRailBlock.updateState
(BlockState state, Level level, BlockPos pos, Block neighborBlock) protected void
PoweredRailBlock.updateState
(BlockState state, Level level, BlockPos pos, Block block) protected void
RailBlock.updateState
(BlockState state, Level level, BlockPos pos, Block block) static InteractionResult
CaveVines.use
(Entity entity, BlockState state, Level level, BlockPos pos) protected ItemInteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
BeehiveBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CakeBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CampfireBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CandleBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CandleCakeBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
ComposterBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResult
FenceBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
FlowerPotBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
JukeboxBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
LecternBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
NoteBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResult
RedStoneOreBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
SignBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
TntBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected ItemInteractionResult
WallHangingSignBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResult
AbstractFurnaceBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
AnvilBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
BarrelBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
BeaconBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
BedBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
BellBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
BrewingStandBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
ButtonBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
CakeBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
CandleCakeBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
CartographyTableBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
CaveVinesBlock.useWithoutItem
(BlockState p_152980_, Level p_152981_, BlockPos p_152982_, Player p_152983_, BlockHitResult p_152985_) protected InteractionResult
CaveVinesPlantBlock.useWithoutItem
(BlockState p_153021_, Level p_153022_, BlockPos p_153023_, Player p_153024_, BlockHitResult p_153026_) protected InteractionResult
ChestBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
ChiseledBookShelfBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
CommandBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
ComparatorBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
ComposterBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
CrafterBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
CraftingTableBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
DaylightDetectorBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
DecoratedPotBlock.useWithoutItem
(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResult
DispenserBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
DoorBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
DragonEggBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
EnchantingTableBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
EnderChestBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
FenceBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
FenceGateBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
FletchingTableBlock.useWithoutItem
(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResult
FlowerPotBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
GrindstoneBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
HopperBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
JigsawBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
JukeboxBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
LecternBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
LeverBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
LightBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
LoomBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
NoteBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
RedStoneWireBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
RepeaterBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
RespawnAnchorBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
ShulkerBoxBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
SignBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
SmithingTableBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
StonecutterBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
StructureBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
SweetBerryBushBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResult
TrapDoorBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) void
Block.wasExploded
(Level level, BlockPos pos, Explosion explosion) Called when this Block is destroyed by an Explosionvoid
TntBlock.wasExploded
(Level level, BlockPos pos, Explosion explosion) Called when this Block is destroyed by an ExplosionMethod parameters in net.minecraft.world.level.block with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> doubleBlockTypeGetter, Function<BlockState, Direction> directionGetter, DirectionProperty directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) PointedDripstoneBlock.findBlockVertical
(LevelAccessor level, BlockPos pos, Direction.AxisDirection axis, BiPredicate<BlockPos, BlockState> positionalStatePredicate, Predicate<BlockState> statePredicate, int maxIterations) protected void
AbstractCandleBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
BellBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
ButtonBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
DoorBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
FenceGateBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
LeverBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
TrapDoorBlock.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) Constructors in net.minecraft.world.level.block with parameters of type BlockPosModifierConstructorDescriptionChargeCursor
(BlockPos pos, int charge) private
ChargeCursor
(BlockPos pos, int charge, int decayDelay, int updateDelay, Optional<Set<Direction>> facings) (package private)
FluidInfo
(BlockPos pos, Fluid fluid, BlockState sourceState) Creates an instance of aFluidInfo
record class.InputContainer
(BlockState state, LevelAccessor level, BlockPos pos) OutputContainer
(BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) (package private)
PosAndState
(BlockPos pos, BlockState state) Creates an instance of aPosAndState
record class.RailState
(Level level, BlockPos pos, BlockState p_state) Creates an instance of aSpreadPos
record class. -
Uses of BlockPos in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as BlockPosModifier and TypeFieldDescriptionprotected final BlockPos
SculkSensorBlockEntity.VibrationUser.blockPos
private BlockPos
TheEndGatewayBlockEntity.exitPortal
private BlockPos
BeehiveBlockEntity.savedFlowerPos
private BlockPos
StructureBlockEntity.structurePos
protected final BlockPos
BlockEntity.worldPosition
Fields in net.minecraft.world.level.block.entity with type parameters of type BlockPosMethods in net.minecraft.world.level.block.entity that return BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
TheEndGatewayBlockEntity.findExitPosition
(Level level, BlockPos pos) private static BlockPos
TheEndGatewayBlockEntity.findOrCreateValidTeleportPos
(ServerLevel level, BlockPos pos) private static BlockPos
TheEndGatewayBlockEntity.findTallestBlock
(BlockGetter level, BlockPos pos, int radius, boolean allowBedrock) private static BlockPos
TheEndGatewayBlockEntity.findValidSpawnInChunk
(LevelChunk chunk) BlockEntity.getBlockPos()
TickingBlockEntity.getPos()
static BlockPos
BlockEntity.getPosFromTag
(CompoundTag tag) StructureBlockEntity.getStructurePos()
Methods in net.minecraft.world.level.block.entity that return types with arguments of type BlockPosModifier and TypeMethodDescriptionStructureBlockEntity.getRelatedCorners
(BlockPos minPos, BlockPos maxPos) Methods in net.minecraft.world.level.block.entity with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
SkullBlockEntity.animation
(Level level, BlockPos pos, BlockState state, SkullBlockEntity blockEntity) private static void
ConduitBlockEntity.animationTick
(Level level, BlockPos pos, List<BlockPos> positions, Entity entity, int tickCount) private static void
BeaconBlockEntity.applyEffects
(Level level, BlockPos pos, int beaconLevel, Holder<MobEffect> primaryEffect, Holder<MobEffect> secondaryEffect) private static void
ConduitBlockEntity.applyEffects
(Level level, BlockPos pos, List<BlockPos> positions) private static boolean
BellBlockEntity.areRaidersNearby
(BlockPos pos, List<LivingEntity> raiders) static void
TheEndGatewayBlockEntity.beamAnimationTick
(Level level, BlockPos pos, BlockState state, TheEndGatewayBlockEntity blockEntity) private void
SculkCatalystBlockEntity.CatalystListener.bloom
(ServerLevel level, BlockPos pos, BlockState state, RandomSource random) static void
EnchantingTableBlockEntity.bookAnimationTick
(Level level, BlockPos pos, BlockState state, EnchantingTableBlockEntity enchantingTable) private static Optional
<BoundingBox> StructureBlockEntity.calculateEnclosingBoundingBox
(BlockPos pos, Stream<BlockPos> relatedCorners) boolean
CalibratedSculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) boolean
SculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) boolean
SculkShriekerBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_316788_, GameEvent.Context p_282914_) static void
BellBlockEntity.clientTick
(Level level, BlockPos pos, BlockState state, BellBlockEntity blockEntity) static void
ConduitBlockEntity.clientTick
(Level level, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) static void
SpawnerBlockEntity.clientTick
(Level level, BlockPos pos, BlockState state, SpawnerBlockEntity blockEntity) static void
CampfireBlockEntity.cookTick
(Level level, BlockPos pos, BlockState state, CampfireBlockEntity blockEntity) static void
CampfireBlockEntity.cooldownTick
(Level level, BlockPos pos, BlockState state, CampfireBlockEntity blockEntity) BlockEntityType.BlockEntitySupplier.create
(BlockPos pos, BlockState state) BlockEntityType.create
(BlockPos pos, BlockState state) private static CommandSourceStack
SignBlockEntity.createCommandSourceStack
(Player player, Level level, BlockPos pos) BeehiveBlockEntity.Occupant.createEntity
(Level level, BlockPos pos) void
ContainerOpenersCounter.decrementOpeners
(Player player, Level level, BlockPos pos, BlockState state) private static void
BrewingStandBlockEntity.doBrew
(Level level, BlockPos pos, NonNullList<ItemStack> items) private static void
ShulkerBoxBlockEntity.doNeighborUpdates
(Level level, BlockPos pos, BlockState state) private static boolean
HopperBlockEntity.ejectItems
(Level level, BlockPos pos, HopperBlockEntity blockEntity) static void
HopperBlockEntity.entityInside
(Level level, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) boolean
SignBlockEntity.executeClickCommandsIfPresent
(Player player, Level level, BlockPos pos, boolean frontText) private static LivingEntity
ConduitBlockEntity.findDestroyTarget
(Level level, BlockPos pos, UUID targetId) private static Vec3
TheEndGatewayBlockEntity.findExitPortalXZPosTentative
(ServerLevel level, BlockPos pos) private static BlockPos
TheEndGatewayBlockEntity.findExitPosition
(Level level, BlockPos pos) private static BlockPos
TheEndGatewayBlockEntity.findOrCreateValidTeleportPos
(ServerLevel level, BlockPos pos) private static BlockPos
TheEndGatewayBlockEntity.findTallestBlock
(BlockGetter level, BlockPos pos, int radius, boolean allowBedrock) private static Container
HopperBlockEntity.getAttachedContainer
(Level level, BlockPos pos, HopperBlockEntity blockEntity) private int
CalibratedSculkSensorBlockEntity.VibrationUser.getBackSignal
(Level level, BlockPos pos, BlockState state) private static Container
HopperBlockEntity.getBlockContainer
(Level level, BlockPos pos, BlockState state) BlockEntityType.getBlockEntity
(BlockGetter level, BlockPos pos) static Container
HopperBlockEntity.getContainerAt
(Level level, BlockPos pos) private static Container
HopperBlockEntity.getContainerAt
(Level level, BlockPos pos, BlockState state, double x, double y, double z) private static AABB
ConduitBlockEntity.getDestroyRangeAABB
(BlockPos pos) static int
ChestBlockEntity.getOpenCount
(BlockGetter level, BlockPos pos) ContainerOpenersCounter.getPlayersWithContainerOpen
(Level level, BlockPos pos) TheEndGatewayBlockEntity.getPortalPosition
(ServerLevel level, BlockPos pos) StructureBlockEntity.getRelatedCorners
(BlockPos minPos, BlockPos maxPos) private static Container
HopperBlockEntity.getSourceContainer
(Level level, Hopper hopper, BlockPos pos, BlockState state) void
ContainerOpenersCounter.incrementOpeners
(Player player, Level level, BlockPos pos, BlockState state) private static boolean
BellBlockEntity.isRaiderWithinRange
(BlockPos pos, LivingEntity raider) static void
ChestBlockEntity.lidAnimateTick
(Level level, BlockPos pos, BlockState state, ChestBlockEntity blockEntity) static void
EnderChestBlockEntity.lidAnimateTick
(Level level, BlockPos pos, BlockState state, EnderChestBlockEntity blockEntity) static BlockEntity
BlockEntity.loadStatic
(BlockPos pos, BlockState state, CompoundTag tag, HolderLookup.Provider registries) private static void
BellBlockEntity.makeRaidersGlow
(Level level, BlockPos pos, List<LivingEntity> raiders) private void
ShulkerBoxBlockEntity.moveCollidedEntities
(Level level, BlockPos pos, BlockState state) protected abstract void
ContainerOpenersCounter.onClose
(Level level, BlockPos pos, BlockState state) protected abstract void
ContainerOpenersCounter.onOpen
(Level level, BlockPos pos, BlockState state) void
SculkSensorBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) void
SculkShriekerBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, Entity p_282286_, Entity p_281384_, float p_283119_) protected abstract void
ContainerOpenersCounter.openerCountChanged
(Level level, BlockPos pos, BlockState state, int count, int openCount) static void
CampfireBlockEntity.particleTick
(Level level, BlockPos pos, BlockState state, CampfireBlockEntity blockEntity) static void
BeaconBlockEntity.playSound
(Level level, BlockPos pos, SoundEvent sound) (package private) static void
ChestBlockEntity.playSound
(Level level, BlockPos pos, BlockState state, SoundEvent sound) static void
TheEndGatewayBlockEntity.portalTick
(Level level, BlockPos pos, BlockState state, TheEndGatewayBlockEntity blockEntity) static void
HopperBlockEntity.pushItemsTick
(Level level, BlockPos pos, BlockState state, HopperBlockEntity blockEntity) void
ContainerOpenersCounter.recheckOpeners
(Level level, BlockPos pos, BlockState state) private static boolean
BeehiveBlockEntity.releaseOccupant
(Level level, BlockPos pos, BlockState state, BeehiveBlockEntity.Occupant occupant, List<Entity> storedInHives, BeehiveBlockEntity.BeeReleaseStatus releaseStatus, BlockPos storedFlowerPos) void
BellBlockEntity.ResonationEndAction.run
(Level level, BlockPos pos, List<LivingEntity> raiders) private static void
ContainerOpenersCounter.scheduleRecheck
(Level level, BlockPos pos, BlockState state) static void
AbstractFurnaceBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity blockEntity) static void
BeehiveBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, BeehiveBlockEntity beehive) static void
BellBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, BellBlockEntity blockEntity) static void
BrewingStandBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity) static void
ConduitBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) static void
CrafterBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, CrafterBlockEntity crafter) static void
SculkCatalystBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, SculkCatalystBlockEntity sculkCatalyst) static void
SpawnerBlockEntity.serverTick
(Level level, BlockPos pos, BlockState state, SpawnerBlockEntity blockEntity) protected static void
BlockEntity.setChanged
(Level level, BlockPos pos, BlockState state) void
TheEndGatewayBlockEntity.setExitPosition
(BlockPos exitPortal, boolean exactTeleport) void
StructureBlockEntity.setStructurePos
(BlockPos structurePos) private static void
BellBlockEntity.showBellParticles
(Level level, BlockPos pos, List<LivingEntity> raiders) protected void
ChestBlockEntity.signalOpenCount
(Level level, BlockPos pos, BlockState state, int eventId, int eventParam) protected void
TrappedChestBlockEntity.signalOpenCount
(Level p_155865_, BlockPos p_155866_, BlockState p_155867_, int p_155868_, int p_155869_) private static void
TheEndGatewayBlockEntity.spawnGatewayPortal
(ServerLevel level, BlockPos pos, EndGatewayConfiguration config) static void
BeaconBlockEntity.tick
(Level level, BlockPos pos, BlockState state, BeaconBlockEntity blockEntity) private static void
BellBlockEntity.tick
(Level level, BlockPos pos, BlockState state, BellBlockEntity blockEntity, BellBlockEntity.ResonationEndAction resonationEndAction) void
BlockEntityTicker.tick
(Level level, BlockPos pos, BlockState state, T blockEntity) static void
JukeboxBlockEntity.tick
(Level level, BlockPos pos, BlockState state, JukeboxBlockEntity jukebox) static void
ShulkerBoxBlockEntity.tick
(Level level, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity) static void
SignBlockEntity.tick
(Level level, BlockPos pos, BlockState state, SignBlockEntity sign) private static void
BeehiveBlockEntity.tickOccupants
(Level level, BlockPos pos, BlockState state, List<BeehiveBlockEntity.BeeData> data, BlockPos savedFlowerPos) static void
TheEndGatewayBlockEntity.triggerCooldown
(Level level, BlockPos pos, BlockState state, TheEndGatewayBlockEntity blockEntity) private static boolean
HopperBlockEntity.tryMoveItems
(Level level, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier validator) private void
ShulkerBoxBlockEntity.updateAnimation
(Level level, BlockPos pos, BlockState state) private static void
ConduitBlockEntity.updateClientTarget
(Level level, BlockPos pos, ConduitBlockEntity blockEntity) private static void
ConduitBlockEntity.updateDestroyTarget
(Level level, BlockPos pos, BlockState state, List<BlockPos> positions, ConduitBlockEntity blockEntity) private static boolean
ConduitBlockEntity.updateShape
(Level level, BlockPos pos, List<BlockPos> positions) Method parameters in net.minecraft.world.level.block.entity with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate static void
ConduitBlockEntity.animationTick
(Level level, BlockPos pos, List<BlockPos> positions, Entity entity, int tickCount) private static void
ConduitBlockEntity.applyEffects
(Level level, BlockPos pos, List<BlockPos> positions) private static Optional
<BoundingBox> StructureBlockEntity.calculateEnclosingBoundingBox
(BlockPos pos, Stream<BlockPos> relatedCorners) private static void
ConduitBlockEntity.updateDestroyTarget
(Level level, BlockPos pos, BlockState state, List<BlockPos> positions, ConduitBlockEntity blockEntity) private static void
ConduitBlockEntity.updateHunting
(ConduitBlockEntity blockEntity, List<BlockPos> positions) private static boolean
ConduitBlockEntity.updateShape
(Level level, BlockPos pos, List<BlockPos> positions) Constructors in net.minecraft.world.level.block.entity with parameters of type BlockPosModifierConstructorDescriptionprotected
AbstractFurnaceBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState, RecipeType<? extends AbstractCookingRecipe> recipeType) BannerBlockEntity
(BlockPos pos, BlockState blockState) BannerBlockEntity
(BlockPos pos, BlockState blockState, DyeColor baseColor) BarrelBlockEntity
(BlockPos pos, BlockState blockState) protected
BaseContainerBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState) BeaconBlockEntity
(BlockPos pos, BlockState blockState) BedBlockEntity
(BlockPos pos, BlockState blockState) BedBlockEntity
(BlockPos pos, BlockState blockState, DyeColor color) BeehiveBlockEntity
(BlockPos pos, BlockState blockState) BellBlockEntity
(BlockPos pos, BlockState blockState) BlastFurnaceBlockEntity
(BlockPos pos, BlockState blockState) BlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState) BrewingStandBlockEntity
(BlockPos pos, BlockState state) BrushableBlockEntity
(BlockPos pos, BlockState blockState) CalibratedSculkSensorBlockEntity
(BlockPos pos, BlockState blockState) CampfireBlockEntity
(BlockPos pos, BlockState blockState) ChestBlockEntity
(BlockPos pos, BlockState blockState) protected
ChestBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState) ChiseledBookShelfBlockEntity
(BlockPos pos, BlockState state) CommandBlockEntity
(BlockPos pos, BlockState blockState) ComparatorBlockEntity
(BlockPos pos, BlockState blockState) ConduitBlockEntity
(BlockPos pos, BlockState blockState) CrafterBlockEntity
(BlockPos pos, BlockState state) DaylightDetectorBlockEntity
(BlockPos pos, BlockState blockState) DecoratedPotBlockEntity
(BlockPos pos, BlockState state) DispenserBlockEntity
(BlockPos pos, BlockState blockState) protected
DispenserBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState) DropperBlockEntity
(BlockPos p_155498_, BlockState p_155499_) EnchantingTableBlockEntity
(BlockPos pos, BlockState state) EnderChestBlockEntity
(BlockPos pos, BlockState blockState) FurnaceBlockEntity
(BlockPos pos, BlockState blockState) HangingSignBlockEntity
(BlockPos p_250603_, BlockState p_251674_) HopperBlockEntity
(BlockPos pos, BlockState blockState) JigsawBlockEntity
(BlockPos pos, BlockState blockState) JukeboxBlockEntity
(BlockPos pos, BlockState blockState) LecternBlockEntity
(BlockPos pos, BlockState blockState) protected
RandomizableContainerBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState) SculkCatalystBlockEntity
(BlockPos pos, BlockState blockState) SculkSensorBlockEntity
(BlockPos pos, BlockState blockState) protected
SculkSensorBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState) SculkShriekerBlockEntity
(BlockPos pos, BlockState blockState) ShulkerBoxBlockEntity
(BlockPos pos, BlockState blockState) ShulkerBoxBlockEntity
(DyeColor color, BlockPos pos, BlockState blockState) SignBlockEntity
(BlockPos pos, BlockState blockState) SignBlockEntity
(BlockEntityType type, BlockPos pos, BlockState blockState) SkullBlockEntity
(BlockPos pos, BlockState blockState) SmokerBlockEntity
(BlockPos pos, BlockState blockState) SpawnerBlockEntity
(BlockPos pos, BlockState blockState) StructureBlockEntity
(BlockPos pos, BlockState blockState) TheEndGatewayBlockEntity
(BlockPos pos, BlockState blockState) TheEndPortalBlockEntity
(BlockPos pos, BlockState blockState) protected
TheEndPortalBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState blockState) TrappedChestBlockEntity
(BlockPos p_155862_, BlockState p_155863_) TrialSpawnerBlockEntity
(BlockPos pos, BlockState state) VibrationUser
(BlockPos pos) VibrationUser
(BlockPos pos) -
Uses of BlockPos in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
TrialSpawner.addBecomeOminousParticles
(Level level, BlockPos pos, RandomSource random) static void
TrialSpawner.addDetectPlayerParticles
(Level level, BlockPos pos, RandomSource random, int type, ParticleOptions particle) static void
TrialSpawner.addEjectItemParticles
(Level level, BlockPos pos, RandomSource random) static void
TrialSpawner.addSpawnParticles
(Level level, BlockPos pos, RandomSource random, SimpleParticleType particleType) void
TrialSpawner.applyOminous
(ServerLevel level, BlockPos pos) TrialSpawnerState.calculatePositionToSpawnSpawner
(ServerLevel level, BlockPos pos, TrialSpawner spawner, TrialSpawnerData spawnerData) int
TrialSpawnerData.countAdditionalPlayers
(BlockPos pos) PlayerDetector.detect
(ServerLevel level, PlayerDetector.EntitySelector entitySelector, BlockPos pos, double maxDistance, boolean requireLineOfSight) void
TrialSpawner.ejectReward
(ServerLevel level, BlockPos pos, ResourceKey<LootTable> lootTable) void
TrialSpawnerState.ParticleEmission.emit
(Level level, RandomSource random, BlockPos pos, boolean isOminous) void
TrialSpawnerState.emitParticles
(Level level, BlockPos pos, boolean isOminous) (package private) SimpleWeightedRandomList
<ItemStack> TrialSpawnerData.getDispensingItems
(ServerLevel level, TrialSpawnerConfig config, BlockPos pos) private static long
TrialSpawnerData.lowResolutionPosition
(ServerLevel level, BlockPos pos) void
TrialSpawner.removeOminous
(ServerLevel level, BlockPos pos) private static Entity
TrialSpawnerState.selectEntityToSpawnItemAbove
(List<Player> player, Set<UUID> currentMobs, TrialSpawner spawner, BlockPos pos, ServerLevel level) private static boolean
TrialSpawner.shouldMobBeUntracked
(ServerLevel level, BlockPos pos, UUID uuid) TrialSpawner.spawnMob
(ServerLevel level, BlockPos pos) private void
TrialSpawnerState.spawnOminousOminousItemSpawner
(ServerLevel level, BlockPos pos, TrialSpawner spawner) (package private) TrialSpawnerState
TrialSpawnerState.tickAndGetNext
(BlockPos pos, TrialSpawner spawner, ServerLevel level) void
TrialSpawner.tickClient
(Level level, BlockPos pos, boolean isOminous) void
TrialSpawner.tickServer
(ServerLevel level, BlockPos pos, boolean isOminous) void
TrialSpawnerData.tryDetectPlayers
(ServerLevel level, BlockPos pos, TrialSpawner spawner) -
Uses of BlockPos in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault with parameters of type BlockPosModifier and TypeMethodDescription(package private) static void
VaultBlockEntity.Server.cycleDisplayItemFromLootTable
(ServerLevel level, VaultState state, VaultConfig config, VaultSharedData sharedData, BlockPos pos) private void
VaultState.ejectResultItem
(ServerLevel level, BlockPos pos, ItemStack stack, float ejectionProgress) static void
VaultBlockEntity.Client.emitActivationParticles
(Level level, BlockPos pos, BlockState state, VaultSharedData sharedData, ParticleOptions particle) private static void
VaultBlockEntity.Client.emitConnectionParticlesForNearbyPlayers
(Level level, BlockPos pos, BlockState state, VaultSharedData sharedData) static void
VaultBlockEntity.Client.emitDeactivationParticles
(Level level, BlockPos pos, ParticleOptions particle) private static void
VaultBlockEntity.Client.emitIdleParticles
(Level level, BlockPos pos, VaultSharedData sharedData, ParticleOptions particle) private static ItemStack
VaultBlockEntity.Server.getRandomDisplayItemFromLootTable
(ServerLevel level, BlockPos pos, ResourceKey<LootTable> lootTable) private static boolean
VaultBlockEntity.Client.isWithinConnectionRange
(BlockPos pos, VaultSharedData sharedData, Player player) private static Vec3
VaultBlockEntity.Client.keyholePos
(BlockPos pos, Direction facing) protected void
VaultState.onEnter
(ServerLevel level, BlockPos pos, VaultConfig config, VaultSharedData sharedData, boolean isOminous) protected void
VaultState.onExit
(ServerLevel level, BlockPos pos, VaultConfig config, VaultSharedData sharedData) void
VaultState.onTransition
(ServerLevel level, BlockPos pos, VaultState state, VaultConfig config, VaultSharedData sharedData, boolean isOminous) private static void
VaultBlockEntity.Client.playIdleSounds
(Level level, BlockPos pos, VaultSharedData sharedData) private static void
VaultBlockEntity.Server.playInsertFailSound
(ServerLevel level, VaultServerData serverData, BlockPos pos, SoundEvent sound) private static Vec3
VaultBlockEntity.Client.randomPosCenterOfCage
(BlockPos pos, RandomSource random) private static Vec3
VaultBlockEntity.Client.randomPosInsideCage
(BlockPos pos, RandomSource random) VaultBlockEntity.Server.resolveItemsToEject
(ServerLevel level, VaultConfig config, BlockPos pos, Player player) (package private) static void
VaultBlockEntity.Server.setVaultState
(ServerLevel level, BlockPos pos, BlockState oldState, BlockState newState, VaultConfig config, VaultSharedData sharedData) static void
VaultBlockEntity.Client.tick
(Level level, BlockPos pos, BlockState state, VaultClientData clientData, VaultSharedData sharedData) static void
VaultBlockEntity.Server.tick
(ServerLevel level, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData) VaultState.tickAndGetNext
(ServerLevel level, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData) static void
VaultBlockEntity.Server.tryInsertKey
(ServerLevel level, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, Player player, ItemStack stack) private static void
VaultBlockEntity.Server.unlock
(ServerLevel level, BlockState state, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, List<ItemStack> itemsToEject) (package private) void
VaultSharedData.updateConnectedPlayersWithinRange
(ServerLevel level, BlockPos pos, VaultServerData serverData, VaultConfig config, double deactivationRange) private static VaultState
VaultState.updateStateForConnectedPlayers
(ServerLevel level, BlockPos pos, VaultConfig config, VaultServerData severData, VaultSharedData sharedData, double deactivationRange) Constructors in net.minecraft.world.level.block.entity.vault with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.block.grower
Methods in net.minecraft.world.level.block.grower with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
TreeGrower.growTree
(ServerLevel level, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, RandomSource random) private boolean
TreeGrower.hasFlowers
(LevelAccessor level, BlockPos pos) private static boolean
TreeGrower.isTwoByTwoSapling
(BlockState state, BlockGetter level, BlockPos pos, int xOffset, int yOffset) -
Uses of BlockPos in net.minecraft.world.level.block.piston
Fields in net.minecraft.world.level.block.piston declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
PistonStructureResolver.pistonPos
private final BlockPos
PistonStructureResolver.startPos
Fields in net.minecraft.world.level.block.piston with type parameters of type BlockPosModifier and TypeFieldDescriptionPistonStructureResolver.toDestroy
All blocks to be destroyed by the pistonPistonStructureResolver.toPush
All block positions to be moved by the pistonMethods in net.minecraft.world.level.block.piston that return types with arguments of type BlockPosModifier and TypeMethodDescriptionPistonStructureResolver.getToDestroy()
PistonStructureResolver.getToPush()
Methods in net.minecraft.world.level.block.piston with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
PistonStructureResolver.addBlockLine
(BlockPos originPos, Direction direction) private boolean
PistonStructureResolver.addBranchingBlocks
(BlockPos fromPos) protected boolean
PistonHeadBlock.canSurvive
(BlockState state, LevelReader level, BlockPos pos) private void
PistonBaseBlock.checkIfExtend
(Level level, BlockPos pos, BlockState state) void
MovingPistonBlock.destroy
(LevelAccessor level, BlockPos pos, BlockState state) Called after this block has been removed by a player.private static void
PistonMovingBlockEntity.fixEntityWithinPistonBase
(BlockPos pos, Entity entity, Direction dir, double progress) private PistonMovingBlockEntity
MovingPistonBlock.getBlockEntity
(BlockGetter blockReader, BlockPos pos) MovingPistonBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) PistonHeadBlock.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state) protected VoxelShape
MovingPistonBlock.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) PistonMovingBlockEntity.getCollisionShape
(BlockGetter level, BlockPos pos) private boolean
PistonBaseBlock.getNeighborSignal
(SignalGetter signalGetter, BlockPos pos, Direction p_direction) protected VoxelShape
MovingPistonBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
PistonBaseBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
PistonHeadBlock.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) static boolean
PistonBaseBlock.isPushable
(BlockState state, Level level, BlockPos pos, Direction movementDirection, boolean allowDestroy, Direction pistonFacing) Checks if the piston can push the given BlockState.private static boolean
PistonMovingBlockEntity.matchesStickyCritera
(AABB box, Entity entity, BlockPos pos) private boolean
PistonBaseBlock.moveBlocks
(Level level, BlockPos pos, Direction facing, boolean extending) private static AABB
PistonMovingBlockEntity.moveByPositionAndProgress
(BlockPos pos, AABB aabb, PistonMovingBlockEntity pistonMovingBlockEntity) private static void
PistonMovingBlockEntity.moveCollidedEntities
(Level level, BlockPos pos, float partialTick, PistonMovingBlockEntity piston) private static void
PistonMovingBlockEntity.moveStuckEntities
(Level level, BlockPos pos, float partialTick, PistonMovingBlockEntity piston) protected void
PistonBaseBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) protected void
PistonHeadBlock.neighborChanged
(BlockState state, Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) MovingPistonBlock.newBlockEntity
(BlockPos pos, BlockState state) static BlockEntity
MovingPistonBlock.newMovingBlockEntity
(BlockPos pos, BlockState blockState, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) protected void
PistonBaseBlock.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean isMoving) protected void
MovingPistonBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) protected void
PistonHeadBlock.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean isMoving) PistonHeadBlock.playerWillDestroy
(Level level, BlockPos pos, BlockState state, Player player) PistonBaseBlock.rotate
(BlockState state, LevelAccessor world, BlockPos pos, Rotation direction) void
PistonBaseBlock.setPlacedBy
(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.static void
PistonMovingBlockEntity.tick
(Level level, BlockPos pos, BlockState state, PistonMovingBlockEntity blockEntity) protected boolean
PistonBaseBlock.triggerEvent
(BlockState state, Level level, BlockPos pos, int id, int param) Called on server whenLevel.blockEvent(net.minecraft.core.BlockPos, net.minecraft.world.level.block.Block, int, int)
is called.protected BlockState
PistonHeadBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected InteractionResult
MovingPistonBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) Constructors in net.minecraft.world.level.block.piston with parameters of type BlockPosModifierConstructorDescriptionPistonMovingBlockEntity
(BlockPos pos, BlockState blockState) PistonMovingBlockEntity
(BlockPos pos, BlockState blockState, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) PistonStructureResolver
(Level level, BlockPos pistonPos, Direction pistonDirection, boolean extending) -
Uses of BlockPos in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
BlockBehaviour.attack
(BlockState state, Level level, BlockPos pos, Player player) void
boolean
BlockBehaviour.BlockStateBase.canSurvive
(LevelReader level, BlockPos pos) protected boolean
BlockBehaviour.canSurvive
(BlockState state, LevelReader level, BlockPos pos) boolean
BlockBehaviour.BlockStateBase.emissiveRendering
(BlockGetter level, BlockPos pos) final boolean
BlockBehaviour.BlockStateBase.entityCanStandOn
(BlockGetter level, BlockPos pos, Entity entity) final boolean
BlockBehaviour.BlockStateBase.entityCanStandOnFace
(BlockGetter level, BlockPos pos, Entity entity, Direction face) void
BlockBehaviour.BlockStateBase.entityInside
(Level level, BlockPos pos, Entity entity) protected void
BlockBehaviour.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) BlockBehaviour.OffsetFunction.evaluate
(BlockState state, BlockGetter level, BlockPos pos) int
BlockBehaviour.BlockStateBase.getAnalogOutputSignal
(Level level, BlockPos pos) protected int
BlockBehaviour.getAnalogOutputSignal
(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.BlockBehaviour.BlockStateBase.getBlockSupportShape
(BlockGetter level, BlockPos pos) protected VoxelShape
BlockBehaviour.getBlockSupportShape
(BlockState state, BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getCollisionShape
(BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getCollisionShape
(BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BlockBehaviour.getCollisionShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) float
BlockBehaviour.BlockStateBase.getDestroyProgress
(Player player, BlockGetter level, BlockPos pos) protected float
BlockBehaviour.getDestroyProgress
(BlockState state, Player player, BlockGetter level, BlockPos pos) Get the hardness of this Block relative to the ability of the given playerfloat
BlockBehaviour.BlockStateBase.getDestroySpeed
(BlockGetter level, BlockPos pos) int
BlockBehaviour.BlockStateBase.getDirectSignal
(BlockGetter level, BlockPos pos, Direction direction) protected int
BlockBehaviour.getDirectSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the direct signal this block emits in the given direction.BlockBehaviour.BlockStateBase.getFaceOcclusionShape
(BlockGetter level, BlockPos pos, Direction direction) BlockBehaviour.BlockStateBase.getInteractionShape
(BlockGetter level, BlockPos pos) protected VoxelShape
BlockBehaviour.getInteractionShape
(BlockState state, BlockGetter level, BlockPos pos) int
BlockBehaviour.BlockStateBase.getLightBlock
(BlockGetter level, BlockPos pos) protected int
BlockBehaviour.getLightBlock
(BlockState state, BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getMapColor
(BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getMenuProvider
(Level level, BlockPos pos) protected MenuProvider
BlockBehaviour.getMenuProvider
(BlockState state, Level level, BlockPos pos) BlockBehaviour.BlockStateBase.getOcclusionShape
(BlockGetter level, BlockPos pos) protected VoxelShape
BlockBehaviour.getOcclusionShape
(BlockState state, BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getOffset
(BlockGetter level, BlockPos pos) long
protected long
BlockBehaviour.getSeed
(BlockState state, BlockPos pos) Return a random long to be passed toBakedModel.getQuads(net.minecraft.world.level.block.state.BlockState, net.minecraft.core.Direction, net.minecraft.util.RandomSource)
, used for random model rotationsfloat
BlockBehaviour.BlockStateBase.getShadeBrightness
(BlockGetter level, BlockPos pos) protected float
BlockBehaviour.getShadeBrightness
(BlockState state, BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getShape
(BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getShape
(BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BlockBehaviour.getShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) int
BlockBehaviour.BlockStateBase.getSignal
(BlockGetter level, BlockPos pos, Direction direction) protected int
BlockBehaviour.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.BlockBehaviour.BlockStateBase.getVisualShape
(BlockGetter level, BlockPos pos, CollisionContext context) protected VoxelShape
BlockBehaviour.getVisualShape
(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) void
BlockBehaviour.BlockStateBase.handleNeighborChanged
(Level level, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving) boolean
BlockBehaviour.BlockStateBase.hasPostProcess
(BlockGetter level, BlockPos pos) boolean
BlockBehaviour.BlockStateBase.isCollisionShapeFullBlock
(BlockGetter level, BlockPos pos) protected boolean
BlockBehaviour.isCollisionShapeFullBlock
(BlockState state, BlockGetter level, BlockPos pos) boolean
BlockBehaviour.BlockStateBase.isFaceSturdy
(BlockGetter level, BlockPos pos, Direction direction) boolean
BlockBehaviour.BlockStateBase.isFaceSturdy
(BlockGetter level, BlockPos pos, Direction face, SupportType supportType) protected boolean
BlockBehaviour.isOcclusionShapeFullBlock
(BlockState state, BlockGetter level, BlockPos pos) boolean
BlockBehaviour.BlockStateBase.isRedstoneConductor
(BlockGetter level, BlockPos pos) boolean
BlockBehaviour.BlockStateBase.isSolidRender
(BlockGetter level, BlockPos pos) boolean
BlockBehaviour.BlockStateBase.isSuffocating
(BlockGetter level, BlockPos pos) boolean
BlockBehaviour.BlockStateBase.isValidSpawn
(BlockGetter level, BlockPos pos, EntityType<?> entityType) boolean
BlockBehaviour.BlockStateBase.isViewBlocking
(BlockGetter level, BlockPos pos) protected void
BlockBehaviour.neighborChanged
(BlockState state, Level level, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) void
BlockBehaviour.BlockStateBase.onExplosionHit
(Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
BlockBehaviour.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) void
BlockBehaviour.BlockStateBase.onPlace
(Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) protected void
BlockBehaviour.onPlace
(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston) void
BlockBehaviour.BlockStateBase.onRemove
(Level level, BlockPos pos, BlockState newState, boolean movedByPiston) protected void
BlockBehaviour.onRemove
(BlockState state, Level level, BlockPos pos, BlockState newState, boolean movedByPiston) boolean
BlockBehaviour.BlockStateBase.propagatesSkylightDown
(BlockGetter level, BlockPos pos) protected boolean
BlockBehaviour.propagatesSkylightDown
(BlockState state, BlockGetter level, BlockPos pos) void
BlockBehaviour.BlockStateBase.randomTick
(ServerLevel level, BlockPos pos, RandomSource random) protected void
BlockBehaviour.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.void
BlockBehaviour.BlockStateBase.spawnAfterBreak
(ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) protected void
BlockBehaviour.spawnAfterBreak
(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishboolean
BlockBehaviour.StateArgumentPredicate.test
(BlockState state, BlockGetter level, BlockPos pos, A value) boolean
BlockBehaviour.StatePredicate.test
(BlockState state, BlockGetter level, BlockPos pos) void
BlockBehaviour.BlockStateBase.tick
(ServerLevel level, BlockPos pos, RandomSource random) protected void
BlockBehaviour.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) boolean
BlockBehaviour.BlockStateBase.triggerEvent
(Level level, BlockPos pos, int id, int param) protected boolean
BlockBehaviour.triggerEvent
(BlockState state, Level level, BlockPos pos, int id, int param) Called on server whenLevel.blockEvent(net.minecraft.core.BlockPos, net.minecraft.world.level.block.Block, int, int)
is called.final void
BlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags) void
BlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags, int recursionLeft) protected void
BlockBehaviour.updateIndirectNeighbourShapes
(BlockState state, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) Updates the shapes of indirect neighbors of this block.final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags) final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags, int recursionLeft) BlockBehaviour.BlockStateBase.updateShape
(Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) protected BlockState
BlockBehaviour.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected ItemInteractionResult
BlockBehaviour.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResult
BlockBehaviour.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) Method parameters in net.minecraft.world.level.block.state with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
BlockBehaviour.BlockStateBase.onExplosionHit
(Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected void
BlockBehaviour.onExplosionHit
(BlockState state, Level level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) -
Uses of BlockPos in net.minecraft.world.level.block.state.pattern
Fields in net.minecraft.world.level.block.state.pattern declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BlockPattern.BlockPatternMatch.frontTopLeft
private final BlockPos
BlockInWorld.pos
Fields in net.minecraft.world.level.block.state.pattern with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final com.google.common.cache.LoadingCache
<BlockPos, BlockInWorld> BlockPattern.BlockPatternMatch.cache
Methods in net.minecraft.world.level.block.state.pattern that return BlockPosModifier and TypeMethodDescriptionBlockPattern.BlockPatternMatch.getFrontTopLeft()
BlockInWorld.getPos()
protected static BlockPos
BlockPattern.translateAndRotate
(BlockPos pos, Direction finger, Direction thumb, int palmOffset, int thumbOffset, int fingerOffset) 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)Methods in net.minecraft.world.level.block.state.pattern that return types with arguments of type BlockPosModifier and TypeMethodDescriptionstatic com.google.common.cache.LoadingCache
<BlockPos, BlockInWorld> BlockPattern.createLevelCache
(LevelReader level, boolean forceLoad) Methods in net.minecraft.world.level.block.state.pattern with parameters of type BlockPosModifier and TypeMethodDescriptionBlockPattern.find
(LevelReader level, BlockPos pos) Calculates whether the given world position matches the pattern.private BlockPattern.BlockPatternMatch
BlockPattern.matches
(BlockPos pos, Direction finger, Direction thumb, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> cache) Checks that the given pattern invalid input: '&' rotation is at the block coordinates.BlockPattern.matches
(LevelReader level, BlockPos pos, Direction finger, Direction thumb) protected static BlockPos
BlockPattern.translateAndRotate
(BlockPos pos, Direction finger, Direction thumb, int palmOffset, int thumbOffset, int fingerOffset) 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)Method parameters in net.minecraft.world.level.block.state.pattern with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate BlockPattern.BlockPatternMatch
BlockPattern.matches
(BlockPos pos, Direction finger, Direction thumb, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> cache) Checks that the given pattern invalid input: '&' rotation is at the block coordinates.Constructors in net.minecraft.world.level.block.state.pattern with parameters of type BlockPosModifierConstructorDescriptionBlockInWorld
(LevelReader level, BlockPos pos, boolean loadChunks) BlockPatternMatch
(BlockPos frontTopLeft, Direction forwards, Direction up, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> cache, int width, int height, int depth) Constructor parameters in net.minecraft.world.level.block.state.pattern with type arguments of type BlockPosModifierConstructorDescriptionBlockPatternMatch
(BlockPos frontTopLeft, Direction forwards, Direction up, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> cache, int width, int height, int depth) -
Uses of BlockPos in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border that return BlockPosModifier and TypeMethodDescriptionWorldBorder.clampToBounds
(double x, double y, double z) WorldBorder.clampToBounds
(BlockPos pos) WorldBorder.clampToBounds
(Vec3 pos) Methods in net.minecraft.world.level.border with parameters of type BlockPosModifier and TypeMethodDescriptionWorldBorder.clampToBounds
(BlockPos pos) boolean
WorldBorder.isWithinBounds
(BlockPos pos) -
Uses of BlockPos in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk with type parameters of type BlockPosModifier and TypeFieldDescriptionprotected final Map
<BlockPos, BlockEntity> ChunkAccess.blockEntities
protected final Map
<BlockPos, CompoundTag> ChunkAccess.pendingBlockEntities
private final Map
<BlockPos, LevelChunk.RebindableTickingBlockEntityWrapper> LevelChunk.tickersInLevel
Methods in net.minecraft.world.level.chunk that return BlockPosModifier and TypeMethodDescriptionLevelChunk.BoundTickingBlockEntity.getPos()
LevelChunk.RebindableTickingBlockEntityWrapper.getPos()
static BlockPos
ProtoChunk.unpackOffsetCoordinates
(short packedPos, int yOffset, ChunkPos chunkPos) Methods in net.minecraft.world.level.chunk that return types with arguments of type BlockPosModifier and TypeMethodDescriptionChunkGenerator.findNearestMapStructure
(ServerLevel level, HolderSet<Structure> structure, BlockPos pos, int searchRadius, boolean skipKnownStructures) LevelChunk.getBlockEntities()
ProtoChunk.getBlockEntities()
ChunkAccess.getBlockEntitiesPos()
ProtoChunk.getBlockEntityNbts()
ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> structureHoldersSet, ServerLevel level, StructureManager structureManager, BlockPos pos, boolean skipKnownStructures, ConcentricRingsStructurePlacement placement) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> structureHoldersSet, LevelReader level, StructureManager structureManager, int x, int y, int z, boolean skipKnownStructures, long seed, RandomSpreadStructurePlacement spreadPlacement) ChunkGenerator.getStructureGeneratingAt
(Set<Holder<Structure>> structureHoldersSet, LevelReader level, StructureManager structureManager, boolean skipKnownStructures, StructurePlacement placement, ChunkPos chunkPos) Methods in net.minecraft.world.level.chunk with parameters of type BlockPosModifier and TypeMethodDescriptionabstract void
ChunkGenerator.addDebugScreenInfo
(List<String> info, RandomState random, BlockPos pos) private BlockEntity
LevelChunk.createBlockEntity
(BlockPos pos) ChunkGenerator.findNearestMapStructure
(ServerLevel level, HolderSet<Structure> structure, BlockPos pos, int searchRadius, boolean skipKnownStructures) EmptyLevelChunk.getBlockEntity
(BlockPos pos, LevelChunk.EntityCreationType creationType) ImposterProtoChunk.getBlockEntity
(BlockPos pos) LevelChunk.getBlockEntity
(BlockPos pos) LevelChunk.getBlockEntity
(BlockPos pos, LevelChunk.EntityCreationType creationType) ProtoChunk.getBlockEntity
(BlockPos pos) ChunkAccess.getBlockEntityNbt
(BlockPos pos) ImposterProtoChunk.getBlockEntityNbt
(BlockPos pos) abstract CompoundTag
ChunkAccess.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) ImposterProtoChunk.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) LevelChunk.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) ProtoChunk.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) BulkSectionAccess.getBlockState
(BlockPos pos) EmptyLevelChunk.getBlockState
(BlockPos pos) ImposterProtoChunk.getBlockState
(BlockPos pos) LevelChunk.getBlockState
(BlockPos pos) ProtoChunk.getBlockState
(BlockPos pos) EmptyLevelChunk.getFluidState
(BlockPos pos) ImposterProtoChunk.getFluidState
(BlockPos pos) LevelChunk.getFluidState
(BlockPos pos) ProtoChunk.getFluidState
(BlockPos pos) int
EmptyLevelChunk.getLightEmission
(BlockPos pos) ChunkGenerator.getMobsAt
(Holder<Biome> biome, StructureManager structureManager, MobCategory category, BlockPos pos) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> structureHoldersSet, ServerLevel level, StructureManager structureManager, BlockPos pos, boolean skipKnownStructures, ConcentricRingsStructurePlacement placement) BulkSectionAccess.getSection
(BlockPos pos) (package private) boolean
void
ChunkAccess.markPosForPostprocessing
(BlockPos pos) void
ImposterProtoChunk.markPosForPostprocessing
(BlockPos pos) void
ProtoChunk.markPosForPostprocessing
(BlockPos pos) static short
ProtoChunk.packOffsetCoordinates
(BlockPos pos) private BlockEntity
LevelChunk.promotePendingBlockEntity
(BlockPos pos, CompoundTag tag) abstract void
ChunkAccess.removeBlockEntity
(BlockPos pos) void
EmptyLevelChunk.removeBlockEntity
(BlockPos pos) void
ImposterProtoChunk.removeBlockEntity
(BlockPos pos) void
LevelChunk.removeBlockEntity
(BlockPos pos) void
ProtoChunk.removeBlockEntity
(BlockPos pos) private void
LevelChunk.removeBlockEntityTicker
(BlockPos pos) abstract BlockState
ChunkAccess.setBlockState
(BlockPos pos, BlockState state, boolean isMoving) EmptyLevelChunk.setBlockState
(BlockPos pos, BlockState state, boolean isMoving) ImposterProtoChunk.setBlockState
(BlockPos pos, BlockState state, boolean isMoving) LevelChunk.setBlockState
(BlockPos pos, BlockState state, boolean isMoving) ProtoChunk.setBlockState
(BlockPos pos, BlockState state, boolean isMoving) UpgradeData.BlockFixer.updateShape
(BlockState state, Direction direction, BlockState offsetState, LevelAccessor level, BlockPos pos, BlockPos offsetPos) private static BlockState
UpgradeData.updateState
(BlockState state, Direction direction, LevelAccessor level, BlockPos pos, BlockPos offsetPos) Method parameters in net.minecraft.world.level.chunk with type arguments of type BlockPosModifier and TypeMethodDescriptionfinal void
ChunkAccess.findBlockLightSources
(BiConsumer<BlockPos, BlockState> output) void
LightChunk.findBlockLightSources
(BiConsumer<BlockPos, BlockState> output) void
ChunkAccess.findBlocks
(BiPredicate<BlockState, BlockPos> p_285343_, BiConsumer<BlockPos, BlockState> p_285030_) Deprecated, for removal: This API element is subject to removal in a future version.void
ChunkAccess.findBlocks
(BiPredicate<BlockState, BlockPos> p_285343_, BiConsumer<BlockPos, BlockState> p_285030_) Deprecated, for removal: This API element is subject to removal in a future version.void
ChunkAccess.findBlocks
(Predicate<BlockState> predicate, BiConsumer<BlockPos, BlockState> output) void
ChunkAccess.findBlocks
(Predicate<BlockState> p_285343_, BiPredicate<BlockState, BlockPos> fineFilter, BiConsumer<BlockPos, BlockState> p_285030_) void
ChunkAccess.findBlocks
(Predicate<BlockState> p_285343_, BiPredicate<BlockState, BlockPos> fineFilter, BiConsumer<BlockPos, BlockState> p_285030_) void
ImposterProtoChunk.findBlocks
(BiPredicate<BlockState, BlockPos> p_285465_, BiConsumer<BlockPos, BlockState> p_285030_) void
ImposterProtoChunk.findBlocks
(BiPredicate<BlockState, BlockPos> p_285465_, BiConsumer<BlockPos, BlockState> p_285030_) void
ImposterProtoChunk.findBlocks
(Predicate<BlockState> predicate, BiConsumer<BlockPos, BlockState> output) void
ImposterProtoChunk.findBlocks
(Predicate<BlockState> p_285465_, BiPredicate<BlockState, BlockPos> fineFilter, BiConsumer<BlockPos, BlockState> p_285030_) void
ImposterProtoChunk.findBlocks
(Predicate<BlockState> p_285465_, BiPredicate<BlockState, BlockPos> fineFilter, BiConsumer<BlockPos, BlockState> p_285030_) -
Uses of BlockPos in net.minecraft.world.level.dimension.end
Fields in net.minecraft.world.level.dimension.end declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
EndDragonFight.origin
private BlockPos
EndDragonFight.portalLocation
Fields in net.minecraft.world.level.dimension.end with type parameters of type BlockPosModifier and TypeFieldDescriptionEndDragonFight.Data.exitPortalLocation
The field for theexitPortalLocation
record component.Methods in net.minecraft.world.level.dimension.end that return types with arguments of type BlockPosModifier and TypeMethodDescriptionEndDragonFight.Data.exitPortalLocation()
Returns the value of theexitPortalLocation
record component.Methods in net.minecraft.world.level.dimension.end with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
EndDragonFight.spawnNewGateway
(BlockPos pos) abstract void
DragonRespawnAnimation.tick
(ServerLevel level, EndDragonFight manager, List<EndCrystal> crystals, int ticks, BlockPos pos) Constructors in net.minecraft.world.level.dimension.end with parameters of type BlockPosModifierConstructorDescriptionEndDragonFight
(ServerLevel level, long seed, EndDragonFight.Data data, BlockPos origin) -
Uses of BlockPos in net.minecraft.world.level.entity
Methods in net.minecraft.world.level.entity that return BlockPosMethods in net.minecraft.world.level.entity with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
PersistentEntitySectionManager.canPositionTick
(BlockPos pos) -
Uses of BlockPos in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent declared as BlockPosConstructors in net.minecraft.world.level.gameevent with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.gameevent.vibrations
Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static boolean
VibrationSystem.Ticker.areAdjacentChunksTicking
(Level level, BlockPos pos) boolean
VibrationSystem.User.canReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) static float
VibrationSystem.Listener.distanceBetweenInBlocks
(BlockPos pos1, BlockPos pos2) void
VibrationSystem.User.onReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) -
Uses of BlockPos in net.minecraft.world.level.levelgen
Fields in net.minecraft.world.level.levelgen with type parameters of type BlockPosMethods in net.minecraft.world.level.levelgen with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
DebugLevelSource.addDebugScreenInfo
(List<String> info, RandomState random, BlockPos pos) void
FlatLevelSource.addDebugScreenInfo
(List<String> info, RandomState random, BlockPos pos) void
NoiseBasedChunkGenerator.addDebugScreenInfo
(List<String> info, RandomState random, BlockPos pos) default RandomSource
Column.scan
(LevelSimulatedReader level, BlockPos pos, int maxDistance, Predicate<BlockState> columnPredicate, Predicate<BlockState> tipPredicate) Scans for a column of states satisfyingcolumnPredicate
, up to a length ofmaxDistance
from the origin, and ending with a state which satisfiestipPredicate
.private boolean
PatrolSpawner.spawnPatrolMember
(ServerLevel level, BlockPos pos, RandomSource random, boolean leader) SurfaceSystem.topMaterial
(SurfaceRules.RuleSource rule, CarvingContext context, Function<BlockPos, Holder<Biome>> biomeGetter, ChunkAccess chunk, NoiseChunk noiseChunk, BlockPos pos, boolean hasFluid) Deprecated.Method parameters in net.minecraft.world.level.levelgen with type arguments of type BlockPosModifier and TypeMethodDescriptionSurfaceSystem.topMaterial
(SurfaceRules.RuleSource rule, CarvingContext context, Function<BlockPos, Holder<Biome>> biomeGetter, ChunkAccess chunk, NoiseChunk noiseChunk, BlockPos pos, boolean hasFluid) Deprecated.Constructor parameters in net.minecraft.world.level.levelgen with type arguments of type BlockPosModifierConstructorDescriptionprotected
Context
(SurfaceSystem system, RandomState randomState, ChunkAccess chunk, NoiseChunk noiseChunk, Function<BlockPos, Holder<Biome>> biomeGetter, Registry<Biome> p_224621_, WorldGenerationContext context) -
Uses of BlockPos in net.minecraft.world.level.levelgen.blending
Methods in net.minecraft.world.level.levelgen.blending with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static void
Blender.generateBorderTick
(ChunkAccess chunk, BlockPos pos) private static boolean
BlendingData.isGround
(ChunkAccess chunk, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.level.levelgen.blockpredicates
Methods in net.minecraft.world.level.levelgen.blockpredicates with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
AllOfPredicate.test
(WorldGenLevel level, BlockPos pos) boolean
AnyOfPredicate.test
(WorldGenLevel p_190387_, BlockPos p_190388_) boolean
HasSturdyFacePredicate.test
(WorldGenLevel level, BlockPos pos) boolean
InsideWorldBoundsPredicate.test
(WorldGenLevel level, BlockPos pos) boolean
NotPredicate.test
(WorldGenLevel level, BlockPos pos) final boolean
StateTestingPredicate.test
(WorldGenLevel level, BlockPos pos) boolean
TrueBlockPredicate.test
(WorldGenLevel level, BlockPos pos) boolean
UnobstructedPredicate.test
(WorldGenLevel level, BlockPos pos) boolean
WouldSurvivePredicate.test
(WorldGenLevel level, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.level.levelgen.carver
Methods in net.minecraft.world.level.levelgen.carver with parameters of type BlockPosModifier and TypeMethodDescriptionprivate BlockState
WorldCarver.getCarveState
(CarvingContext context, C config, BlockPos pos, Aquifer aquifer) CarvingContext.topMaterial
(Function<BlockPos, Holder<Biome>> biomeMapper, ChunkAccess access, BlockPos pos, boolean hasFluid) Deprecated.Method parameters in net.minecraft.world.level.levelgen.carver with type arguments of type BlockPosModifier and TypeMethodDescriptionboolean
CanyonWorldCarver.carve
(CarvingContext context, CanyonCarverConfiguration config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.boolean
CaveWorldCarver.carve
(CarvingContext context, CaveCarverConfiguration config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.boolean
ConfiguredWorldCarver.carve
(CarvingContext context, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) abstract boolean
WorldCarver.carve
(CarvingContext context, C config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.protected boolean
NetherWorldCarver.carveBlock
(CarvingContext p_190731_, CaveCarverConfiguration p_190732_, ChunkAccess p_190733_, Function<BlockPos, Holder<Biome>> p_190734_, CarvingMask p_190735_, BlockPos.MutableBlockPos p_190736_, BlockPos.MutableBlockPos p_190737_, Aquifer p_190738_, org.apache.commons.lang3.mutable.MutableBoolean p_190739_) protected boolean
WorldCarver.carveBlock
(CarvingContext context, C config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeGetter, CarvingMask carvingMask, BlockPos.MutableBlockPos pos, BlockPos.MutableBlockPos checkPos, Aquifer aquifer, org.apache.commons.lang3.mutable.MutableBoolean reachedSurface) Carves a single block, replacing it with the appropriate state if possible, and handles replacing exposed dirt with grass.protected boolean
WorldCarver.carveEllipsoid
(CarvingContext context, C config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, Aquifer aquifer, double x, double y, double z, double horizontalRadius, double verticalRadius, CarvingMask carvingMask, WorldCarver.CarveSkipChecker skipChecker) Carves blocks in an ellipsoid (more accurately a spheroid), defined by a center (x, y, z) position, with a horizontal and vertical radius (the semi-axes)protected void
CaveWorldCarver.createRoom
(CarvingContext context, CaveCarverConfiguration config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, Aquifer aquifer, double x, double y, double z, float radius, double horizontalVerticalRatio, CarvingMask carvingMask, WorldCarver.CarveSkipChecker skipChecker) protected void
CaveWorldCarver.createTunnel
(CarvingContext context, CaveCarverConfiguration config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, long seed, Aquifer aquifer, double x, double y, double z, double horizontalRadiusMultiplier, double verticalRadiusMultiplier, float thickness, float yaw, float pitch, int branchIndex, int branchCount, double horizontalVerticalRatio, CarvingMask carvingMask, WorldCarver.CarveSkipChecker skipChecker) private void
CanyonWorldCarver.doCarve
(CarvingContext context, CanyonCarverConfiguration config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, long seed, Aquifer aquifer, double x, double y, double z, float thickness, float yaw, float pitch, int branchIndex, int branchCount, double horizontalVerticalRatio, CarvingMask carvingMask) CarvingContext.topMaterial
(Function<BlockPos, Holder<Biome>> biomeMapper, ChunkAccess access, BlockPos pos, boolean hasFluid) Deprecated. -
Uses of BlockPos in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature declared as BlockPosModifier and TypeFieldDescriptionprivate static final BlockPos
EndPodiumFeature.END_PODIUM_LOCATION
private final BlockPos
FeaturePlaceContext.origin
private static final BlockPos
VoidStartPlatformFeature.PLATFORM_OFFSET
private BlockPos
LargeDripstoneFeature.LargeDripstone.root
Methods in net.minecraft.world.level.levelgen.feature that return BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
BasaltColumnsFeature.findAir
(LevelAccessor level, BlockPos.MutableBlockPos pos, int distance) private static BlockPos
BasaltColumnsFeature.findSurface
(LevelAccessor level, int seaLevel, BlockPos.MutableBlockPos pos, int distance) private static BlockPos
ReplaceBlobsFeature.findTarget
(LevelAccessor level, BlockPos.MutableBlockPos topPos, Block block) static BlockPos
EndPodiumFeature.getLocation
(BlockPos pos) (package private) BlockPos
FeaturePlaceContext.origin()
Methods in net.minecraft.world.level.levelgen.feature that return types with arguments of type BlockPosModifier and TypeMethodDescriptionVegetationPatchFeature.placeGroundPatch
(WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, BlockPos pos, Predicate<BlockState> state, int xRadius, int zRadius) WaterloggedVegetationPatchFeature.placeGroundPatch
(WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, BlockPos pos, Predicate<BlockState> state, int xRadius, int zRadius) Methods in net.minecraft.world.level.levelgen.feature with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
IcebergFeature.belowIsAir
(BlockGetter level, BlockPos pos) private boolean
DripstoneClusterFeature.canBeAdjacentToWater
(LevelAccessor level, BlockPos pos) private boolean
DripstoneClusterFeature.canPlacePool
(WorldGenLevel level, BlockPos pos) private boolean
SculkPatchFeature.canSpreadFrom
(LevelAccessor level, BlockPos pos) private void
IcebergFeature.carve
(int radius, int localY, BlockPos pos, LevelAccessor level, boolean placeWater, double perpendicularAngle, BlockPos ellipseOrigin, int majorRadius, int minorRadius) static boolean
Feature.checkNeighbors
(Function<BlockPos, BlockState> adjacentStateAccessor, BlockPos pos, Predicate<BlockState> filter) static void
EndPlatformFeature.createEndPlatform
(ServerLevelAccessor level, BlockPos pos, boolean dropBlocks) private static void
PointedDripstoneFeature.createPatchOfDripstoneBlocks
(LevelAccessor level, RandomSource random, BlockPos pos, PointedDripstoneConfiguration config) private boolean
TreeFeature.doPlace
(WorldGenLevel level, RandomSource random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootBlockSetter, BiConsumer<BlockPos, BlockState> trunkBlockSetter, FoliagePlacer.FoliageSetter foliageBlockSetter, TreeConfiguration config) private void
IcebergFeature.generateCutOut
(RandomSource random, LevelAccessor level, int majorAxis, int height, BlockPos pos, boolean elliptical, int ellipseRadius, double angle, int minorAxis) private void
IcebergFeature.generateIcebergBlock
(LevelAccessor level, RandomSource random, BlockPos pos, int height, int localX, int localY, int localZ, int radius, int majorRadius, boolean elliptical, int minorRadius, double angle, boolean placeSnow, BlockState state) private static OptionalInt
UnderwaterMagmaFeature.getFloorY
(WorldGenLevel level, BlockPos pos, UnderwaterMagmaConfiguration config) static BlockPos
EndPodiumFeature.getLocation
(BlockPos pos) private int
TreeFeature.getMaxFreeTreeHeight
(LevelSimulatedReader level, int trunkHeight, BlockPos topPosition, TreeConfiguration config) PointedDripstoneFeature.getTipDirection
(LevelAccessor level, BlockPos pos, RandomSource random) protected static void
DripstoneUtils.growPointedDripstone
(LevelAccessor level, BlockPos pos, Direction direction, int height, boolean mergeTip) static boolean
Feature.isAdjacentToAir
(Function<BlockPos, BlockState> adjacentStateAccessor, BlockPos pos) private static boolean
BasaltColumnsFeature.isAirOrLavaOcean
(LevelAccessor level, int seaLevel, BlockPos pos) static boolean
TreeFeature.isAirOrLeaves
(LevelSimulatedReader level, BlockPos pos) boolean
SpikeFeature.EndSpike.isCenterWithinChunk
(BlockPos pos) protected static boolean
DripstoneUtils.isCircleMostlyEmbeddedInStone
(WorldGenLevel level, BlockPos pos, int radius) private static boolean
DeltaFeature.isClear
(LevelAccessor level, BlockPos pos, DeltaFeatureConfiguration config) protected static boolean
DripstoneUtils.isEmptyOrWater
(LevelAccessor level, BlockPos pos) protected static boolean
DripstoneUtils.isEmptyOrWaterOrLava
(LevelAccessor level, BlockPos pos) private static boolean
WaterloggedVegetationPatchFeature.isExposed
(WorldGenLevel level, Set<BlockPos> positions, BlockPos pos, BlockPos.MutableBlockPos mutablePos) private static boolean
WaterloggedVegetationPatchFeature.isExposedDirection
(WorldGenLevel level, BlockPos pos, BlockPos.MutableBlockPos mutablePos, Direction direction) static boolean
Feature.isGrassOrDirt
(LevelSimulatedReader level, BlockPos pos) private static boolean
TwistingVinesFeature.isInvalidPlacementLocation
(LevelAccessor level, BlockPos pos) private boolean
DripstoneClusterFeature.isLava
(LevelReader level, BlockPos pos) private static boolean
HugeFungusFeature.isReplaceable
(WorldGenLevel level, BlockPos pos, HugeFungusConfiguration config, boolean checkConfig) private boolean
UnderwaterMagmaFeature.isValidPlacement
(WorldGenLevel level, BlockPos pos) protected boolean
AbstractHugeMushroomFeature.isValidPosition
(LevelAccessor level, BlockPos pos, int maxHeight, BlockPos.MutableBlockPos mutablePos, HugeMushroomFeatureConfiguration config) private static boolean
TreeFeature.isVine
(LevelSimulatedReader level, BlockPos pos) private boolean
UnderwaterMagmaFeature.isWaterOrAir
(LevelAccessor level, BlockPos pos) protected abstract void
AbstractHugeMushroomFeature.makeCap
(LevelAccessor level, RandomSource random, BlockPos pos, int treeHeight, BlockPos.MutableBlockPos mutablePos, HugeMushroomFeatureConfiguration config) protected void
HugeBrownMushroomFeature.makeCap
(LevelAccessor p_225043_, RandomSource p_225044_, BlockPos p_225045_, int p_225046_, BlockPos.MutableBlockPos p_225047_, HugeMushroomFeatureConfiguration p_225048_) protected void
HugeRedMushroomFeature.makeCap
(LevelAccessor p_225082_, RandomSource p_225083_, BlockPos p_225084_, int p_225085_, BlockPos.MutableBlockPos p_225086_, HugeMushroomFeatureConfiguration p_225087_) private static LargeDripstoneFeature.LargeDripstone
LargeDripstoneFeature.makeDripstone
(BlockPos root, boolean pointingUp, RandomSource random, int radius, FloatProvider bluntnessBase, FloatProvider scaleBase) protected void
Feature.markAboveForPostProcessing
(WorldGenLevel level, BlockPos basePos) If the above two blocks are not air, marks them for post-processing.private boolean
BlockPileFeature.mayPlaceOn
(LevelAccessor level, BlockPos pos, RandomSource random) (package private) BlockPos
private void
ScatteredOreFeature.offsetTargetPos
(BlockPos.MutableBlockPos mutablePos, RandomSource random, BlockPos pos, int magnitude) boolean
ConfiguredFeature.place
(WorldGenLevel reader, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) boolean
Feature.place
(FC config, WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) boolean
WeightedPlacedFeature.place
(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) private void
BasaltPillarFeature.placeBaseHangOff
(LevelAccessor level, RandomSource random, BlockPos pos) private boolean
BasaltColumnsFeature.placeColumn
(LevelAccessor level, int seaLevel, BlockPos pos, int distance, int reach) private void
DripstoneClusterFeature.placeColumn
(WorldGenLevel level, RandomSource random, BlockPos pos, int x, int z, float wetness, double chance, int height, float density, DripstoneClusterConfiguration config) protected boolean
CoralFeature.placeCoralBlock
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) private void
LargeDripstoneFeature.placeDebugMarkers
(WorldGenLevel level, BlockPos pos, Column.Range range, LargeDripstoneFeature.WindOffsetter windOffsetter) private static void
RootSystemFeature.placeDirt
(BlockPos pos, int maxY, WorldGenLevel level, RootSystemConfiguration config, RandomSource random) private static boolean
RootSystemFeature.placeDirtAndTree
(WorldGenLevel level, ChunkGenerator chunkGenerator, RootSystemConfiguration config, RandomSource random, BlockPos.MutableBlockPos mutablePos, BlockPos basePos) protected static boolean
DripstoneUtils.placeDripstoneBlockIfPossible
(LevelAccessor level, BlockPos pos) protected boolean
CoralClawFeature.placeFeature
(LevelAccessor p_224959_, RandomSource p_224960_, BlockPos p_224961_, BlockState p_224962_) protected abstract boolean
CoralFeature.placeFeature
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) protected boolean
CoralMushroomFeature.placeFeature
(LevelAccessor p_224982_, RandomSource p_224983_, BlockPos p_224984_, BlockState p_224985_) protected boolean
CoralTreeFeature.placeFeature
(LevelAccessor p_224987_, RandomSource p_224988_, BlockPos p_224989_, BlockState p_224990_) VegetationPatchFeature.placeGroundPatch
(WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, BlockPos pos, Predicate<BlockState> state, int xRadius, int zRadius) WaterloggedVegetationPatchFeature.placeGroundPatch
(WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, BlockPos pos, Predicate<BlockState> state, int xRadius, int zRadius) static boolean
MultifaceGrowthFeature.placeGrowthIfPossible
(WorldGenLevel level, BlockPos pos, BlockState state, MultifaceGrowthConfiguration config, RandomSource random, List<Direction> directions) private boolean
BasaltPillarFeature.placeHangOff
(LevelAccessor level, RandomSource random, BlockPos pos) private void
HugeFungusFeature.placeHat
(WorldGenLevel level, RandomSource random, HugeFungusConfiguration config, BlockPos pos, int height, boolean huge) private void
HugeFungusFeature.placeHatDropBlock
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state, boolean weepingVines) private void
WeepingVinesFeature.placeRoofNetherWart
(LevelAccessor level, RandomSource random, BlockPos pos) private void
WeepingVinesFeature.placeRoofWeepingVines
(LevelAccessor level, RandomSource random, BlockPos pos) private static void
RootSystemFeature.placeRoots
(WorldGenLevel level, RootSystemConfiguration config, RandomSource random, BlockPos basePos, BlockPos.MutableBlockPos mutablePos) private void
HugeFungusFeature.placeStem
(WorldGenLevel level, RandomSource random, HugeFungusConfiguration config, BlockPos pos, int height, boolean huge) private static void
DesertWellFeature.placeSusSand
(WorldGenLevel level, BlockPos pos) protected void
AbstractHugeMushroomFeature.placeTrunk
(LevelAccessor level, RandomSource random, BlockPos pos, HugeMushroomFeatureConfiguration config, int maxHeight, BlockPos.MutableBlockPos mutablePos) protected boolean
VegetationPatchFeature.placeVegetation
(WorldGenLevel level, VegetationPatchConfiguration config, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) protected boolean
WaterloggedVegetationPatchFeature.placeVegetation
(WorldGenLevel level, VegetationPatchConfiguration config, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) private void
IcebergFeature.removeFloatingSnowLayer
(LevelAccessor level, BlockPos pos) private void
DripstoneClusterFeature.replaceBlocksWithDripstoneBlocks
(WorldGenLevel level, BlockPos pos, int thickness, Direction direction) protected void
Feature.safeSetBlock
(WorldGenLevel level, BlockPos pos, BlockState state, Predicate<BlockState> oldState) protected void
Feature.setBlock
(LevelWriter level, BlockPos pos, BlockState state) protected void
TreeFeature.setBlock
(LevelWriter level, BlockPos pos, BlockState state) private static void
TreeFeature.setBlockKnownShape
(LevelWriter level, BlockPos pos, BlockState state) private void
IcebergFeature.setIcebergBlock
(BlockPos pos, LevelAccessor level, RandomSource random, int heightRemaining, int height, boolean elliptical, boolean placeSnow, BlockState state) private double
IcebergFeature.signedDistanceCircle
(int x, int z, BlockPos center, int radius, RandomSource random) private double
IcebergFeature.signedDistanceEllipse
(int x, int z, BlockPos center, int majorRadius, int minorRadius, double angle) Given an ellipse defined by the equation(x/a)^2 + (y/b)^2 = 1
, wherea
andb
are the semi-major and semi-minor axes respectively, this computes the distance between an arbitrary point and the ellipse.private void
IcebergFeature.smooth
(LevelAccessor level, BlockPos pos, int majorRadius, int height, boolean elliptical, int minorRadius) Smooths out an iceberg by removing blocks which either have air below, or non-iceberg blocks on three or more horizontal sides, with air.private static boolean
RootSystemFeature.spaceForTree
(WorldGenLevel level, RootSystemConfiguration config, BlockPos pos) private void
BlockPileFeature.tryPlaceBlock
(LevelAccessor level, BlockPos pos, RandomSource random, BlockPileConfiguration config) private static void
HugeFungusFeature.tryPlaceWeepingVines
(BlockPos pos, LevelAccessor level, RandomSource random) static boolean
TreeFeature.validTreePos
(LevelSimulatedReader level, BlockPos pos) Method parameters in net.minecraft.world.level.levelgen.feature with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic boolean
OreFeature.canPlaceOre
(BlockState state, Function<BlockPos, BlockState> adjacentStateAccessor, RandomSource random, OreConfiguration config, OreConfiguration.TargetBlockState targetState, BlockPos.MutableBlockPos mutablePos) static boolean
Feature.checkNeighbors
(Function<BlockPos, BlockState> adjacentStateAccessor, BlockPos pos, Predicate<BlockState> filter) protected void
VegetationPatchFeature.distributeVegetation
(FeaturePlaceContext<VegetationPatchConfiguration> context, WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, Set<BlockPos> possiblePositions, int xRadius, int zRadius) private boolean
TreeFeature.doPlace
(WorldGenLevel level, RandomSource random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootBlockSetter, BiConsumer<BlockPos, BlockState> trunkBlockSetter, FoliagePlacer.FoliageSetter foliageBlockSetter, TreeConfiguration config) static boolean
Feature.isAdjacentToAir
(Function<BlockPos, BlockState> adjacentStateAccessor, BlockPos pos) private static boolean
WaterloggedVegetationPatchFeature.isExposed
(WorldGenLevel level, Set<BlockPos> positions, BlockPos pos, BlockPos.MutableBlockPos mutablePos) private static DiscreteVoxelShape
TreeFeature.updateLeaves
(LevelAccessor level, BoundingBox box, Set<BlockPos> rootPositions, Set<BlockPos> trunkPositions, Set<BlockPos> foliagePositions) Constructors in net.minecraft.world.level.levelgen.feature with parameters of type BlockPosModifierConstructorDescriptionFeaturePlaceContext
(Optional<ConfiguredFeature<?, ?>> topFeature, WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin, FC config) (package private)
LargeDripstone
(BlockPos root, boolean pointingUp, int radius, double bluntness, double scale) -
Uses of BlockPos in net.minecraft.world.level.levelgen.feature.configurations
Fields in net.minecraft.world.level.levelgen.feature.configurations declared as BlockPosFields in net.minecraft.world.level.levelgen.feature.configurations with type parameters of type BlockPosMethods in net.minecraft.world.level.levelgen.feature.configurations that return BlockPosMethods in net.minecraft.world.level.levelgen.feature.configurations that return types with arguments of type BlockPosMethods in net.minecraft.world.level.levelgen.feature.configurations with parameters of type BlockPosConstructors in net.minecraft.world.level.levelgen.feature.configurations with parameters of type BlockPosModifierConstructorDescriptionSpikeConfiguration
(boolean crystalInvulnerable, List<SpikeFeature.EndSpike> spikes, BlockPos crystalBeamTarget) Constructor parameters in net.minecraft.world.level.levelgen.feature.configurations with type arguments of type BlockPosModifierConstructorDescriptionprivate
EndGatewayConfiguration
(Optional<BlockPos> exit, boolean exact) private
SpikeConfiguration
(boolean crystalInvulnerable, List<SpikeFeature.EndSpike> spikes, Optional<BlockPos> crystalBeamTarget) -
Uses of BlockPos in net.minecraft.world.level.levelgen.feature.foliageplacers
Fields in net.minecraft.world.level.levelgen.feature.foliageplacers declared as BlockPosMethods in net.minecraft.world.level.levelgen.feature.foliageplacers that return BlockPosMethods in net.minecraft.world.level.levelgen.feature.foliageplacers with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
protected void
FoliagePlacer.placeLeavesRow
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, BlockPos pos, int range, int localY, boolean large) protected final void
FoliagePlacer.placeLeavesRowWithHangingLeavesBelow
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, BlockPos pos, int range, int localY, boolean large, float hangingLeavesChance, float hangingLeavesExtensionChance) void
FoliagePlacer.FoliageSetter.set
(BlockPos pos, BlockState state) private static boolean
FoliagePlacer.tryPlaceExtension
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, float extensionChance, BlockPos logPos, BlockPos.MutableBlockPos pos) protected static boolean
FoliagePlacer.tryPlaceLeaf
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, BlockPos pos) Constructors in net.minecraft.world.level.levelgen.feature.foliageplacers with parameters of type BlockPosModifierConstructorDescriptionFoliageAttachment
(BlockPos pos, int radiusOffset, boolean doubleTrunk) -
Uses of BlockPos in net.minecraft.world.level.levelgen.feature.rootplacers
Methods in net.minecraft.world.level.levelgen.feature.rootplacers that return BlockPosMethods in net.minecraft.world.level.levelgen.feature.rootplacers that return types with arguments of type BlockPosModifier and TypeMethodDescriptionMangroveRootPlacer.potentialRootPositions
(BlockPos pos, Direction direction, RandomSource random, BlockPos trunkOrigin) Methods in net.minecraft.world.level.levelgen.feature.rootplacers with parameters of type BlockPosModifier and TypeMethodDescriptionprotected boolean
MangroveRootPlacer.canPlaceRoot
(LevelSimulatedReader level, BlockPos pos) protected boolean
RootPlacer.canPlaceRoot
(LevelSimulatedReader level, BlockPos pos) protected BlockState
RootPlacer.getPotentiallyWaterloggedState
(LevelSimulatedReader level, BlockPos pos, BlockState state) RootPlacer.getTrunkOrigin
(BlockPos pos, RandomSource random) protected void
MangroveRootPlacer.placeRoot
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration treeConfig) protected void
RootPlacer.placeRoot
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration treeConfig) boolean
MangroveRootPlacer.placeRoots
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, BlockPos trunkOrigin, TreeConfiguration treeConfig) abstract boolean
RootPlacer.placeRoots
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, BlockPos trunkOrigin, TreeConfiguration treeConfig) MangroveRootPlacer.potentialRootPositions
(BlockPos pos, Direction direction, RandomSource random, BlockPos trunkOrigin) private boolean
MangroveRootPlacer.simulateRoots
(LevelSimulatedReader level, RandomSource random, BlockPos pos, Direction direction, BlockPos trunkOrigin, List<BlockPos> roots, int length) Method parameters in net.minecraft.world.level.levelgen.feature.rootplacers with type arguments of type BlockPosModifier and TypeMethodDescriptionprotected void
MangroveRootPlacer.placeRoot
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration treeConfig) protected void
RootPlacer.placeRoot
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration treeConfig) boolean
MangroveRootPlacer.placeRoots
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, BlockPos trunkOrigin, TreeConfiguration treeConfig) abstract boolean
RootPlacer.placeRoots
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, BlockPos trunkOrigin, TreeConfiguration treeConfig) private boolean
MangroveRootPlacer.simulateRoots
(LevelSimulatedReader level, RandomSource random, BlockPos pos, Direction direction, BlockPos trunkOrigin, List<BlockPos> roots, int length) -
Uses of BlockPos in net.minecraft.world.level.levelgen.feature.stateproviders
Methods in net.minecraft.world.level.levelgen.feature.stateproviders with parameters of type BlockPosModifier and TypeMethodDescriptionprotected double
NoiseBasedStateProvider.getNoiseValue
(BlockPos pos, double delta) protected BlockState
NoiseProvider.getRandomState
(List<BlockState> possibleStates, BlockPos pos, double delta) protected double
DualNoiseProvider.getSlowNoiseValue
(BlockPos pos) abstract BlockState
BlockStateProvider.getState
(RandomSource random, BlockPos pos) DualNoiseProvider.getState
(RandomSource random, BlockPos pos) NoiseProvider.getState
(RandomSource random, BlockPos pos) NoiseThresholdProvider.getState
(RandomSource random, BlockPos pos) RandomizedIntStateProvider.getState
(RandomSource random, BlockPos pos) RotatedBlockProvider.getState
(RandomSource random, BlockPos pos) RuleBasedBlockStateProvider.getState
(WorldGenLevel level, RandomSource random, BlockPos pos) SimpleStateProvider.getState
(RandomSource random, BlockPos pos) WeightedStateProvider.getState
(RandomSource random, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.level.levelgen.feature.treedecorators
Fields in net.minecraft.world.level.levelgen.feature.treedecorators with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final BiConsumer
<BlockPos, BlockState> TreeDecorator.Context.decorationSetter
private final it.unimi.dsi.fastutil.objects.ObjectArrayList
<BlockPos> TreeDecorator.Context.leaves
private final it.unimi.dsi.fastutil.objects.ObjectArrayList
<BlockPos> TreeDecorator.Context.logs
private final it.unimi.dsi.fastutil.objects.ObjectArrayList
<BlockPos> TreeDecorator.Context.roots
Methods in net.minecraft.world.level.levelgen.feature.treedecorators that return types with arguments of type BlockPosModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.ObjectArrayList
<BlockPos> TreeDecorator.Context.leaves()
it.unimi.dsi.fastutil.objects.ObjectArrayList
<BlockPos> TreeDecorator.Context.logs()
it.unimi.dsi.fastutil.objects.ObjectArrayList
<BlockPos> TreeDecorator.Context.roots()
Methods in net.minecraft.world.level.levelgen.feature.treedecorators with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static void
LeaveVineDecorator.addHangingVine
(BlockPos pos, BooleanProperty sideProperty, TreeDecorator.Context context) private boolean
AttachedToLeavesDecorator.hasRequiredEmptyBlocks
(TreeDecorator.Context context, BlockPos pos, Direction direction) boolean
private void
AlterGroundDecorator.placeBlockAt
(TreeDecorator.Context context, BlockPos pos) private void
AlterGroundDecorator.placeBlockAt
(TreeDecorator.Context context, BlockPos pos, AlterGroundEvent.StateProvider eventProvider) private void
AlterGroundDecorator.placeCircle
(TreeDecorator.Context context, BlockPos pos) private void
AlterGroundDecorator.placeCircle
(TreeDecorator.Context context, BlockPos pos, AlterGroundEvent.StateProvider eventProvider) void
TreeDecorator.Context.placeVine
(BlockPos pos, BooleanProperty sideProperty) void
TreeDecorator.Context.setBlock
(BlockPos pos, BlockState state) Constructor parameters in net.minecraft.world.level.levelgen.feature.treedecorators with type arguments of type BlockPosModifierConstructorDescriptionContext
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> decorationSetter, RandomSource random, Set<BlockPos> logs, Set<BlockPos> leaves, Set<BlockPos> roots) Context
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> decorationSetter, RandomSource random, Set<BlockPos> logs, Set<BlockPos> leaves, Set<BlockPos> roots) -
Uses of BlockPos in net.minecraft.world.level.levelgen.feature.trunkplacers
Methods in net.minecraft.world.level.levelgen.feature.trunkplacers with parameters of type BlockPosModifier and TypeMethodDescriptionprivate FoliagePlacer.FoliageAttachment
CherryTrunkPlacer.generateBranch
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config, Function<BlockState, BlockState> propertySetter, Direction p_direction, int secondBranchStartOffsetFromTop, boolean doubleBranch, BlockPos.MutableBlockPos currentPos) private Direction.Axis
FancyTrunkPlacer.getLogAxis
(BlockPos pos, BlockPos otherPos) private int
private static boolean
TrunkPlacer.isDirt
(LevelSimulatedReader level, BlockPos pos) boolean
TrunkPlacer.isFree
(LevelSimulatedReader level, BlockPos pos) private void
FancyTrunkPlacer.makeBranches
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int maxHeight, BlockPos pos, List<FancyTrunkPlacer.FoliageCoords> foliageCoords, TreeConfiguration config) private boolean
FancyTrunkPlacer.makeLimb
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos basePos, BlockPos offsetPos, boolean modifyWorld, TreeConfiguration config) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config, Function<BlockState, BlockState> propertySetter) private void
GiantTrunkPlacer.placeLogIfFreeWithOffset
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos.MutableBlockPos pos, TreeConfiguration config, BlockPos offsetPos, int offsetX, int offsetY, int offsetZ) BendingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) CherryTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) DarkOakTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) FancyTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) ForkingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) GiantTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) MegaJungleTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) StraightTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) abstract List
<FoliagePlacer.FoliageAttachment> TrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) UpwardsBranchingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) protected static void
TrunkPlacer.setDirtAt
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config) protected boolean
TrunkPlacer.validTreePos
(LevelSimulatedReader level, BlockPos pos) protected boolean
UpwardsBranchingTrunkPlacer.validTreePos
(LevelSimulatedReader level, BlockPos pos) Method parameters in net.minecraft.world.level.levelgen.feature.trunkplacers with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate FoliagePlacer.FoliageAttachment
CherryTrunkPlacer.generateBranch
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config, Function<BlockState, BlockState> propertySetter, Direction p_direction, int secondBranchStartOffsetFromTop, boolean doubleBranch, BlockPos.MutableBlockPos currentPos) private void
FancyTrunkPlacer.makeBranches
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int maxHeight, BlockPos pos, List<FancyTrunkPlacer.FoliageCoords> foliageCoords, TreeConfiguration config) private boolean
FancyTrunkPlacer.makeLimb
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos basePos, BlockPos offsetPos, boolean modifyWorld, TreeConfiguration config) private void
UpwardsBranchingTrunkPlacer.placeBranch
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, TreeConfiguration treeConfig, List<FoliagePlacer.FoliageAttachment> foliageAttachments, BlockPos.MutableBlockPos pos, int y, Direction direction, int extraBranchLength, int extraBranchSteps) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config, Function<BlockState, BlockState> propertySetter) protected void
TrunkPlacer.placeLogIfFree
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos.MutableBlockPos pos, TreeConfiguration config) private void
GiantTrunkPlacer.placeLogIfFreeWithOffset
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos.MutableBlockPos pos, TreeConfiguration config, BlockPos offsetPos, int offsetX, int offsetY, int offsetZ) BendingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) CherryTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) DarkOakTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) FancyTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) ForkingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) GiantTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) MegaJungleTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) StraightTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) abstract List
<FoliagePlacer.FoliageAttachment> TrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) UpwardsBranchingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) protected static void
TrunkPlacer.setDirtAt
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config) Constructors in net.minecraft.world.level.levelgen.feature.trunkplacers with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.levelgen.placement
Fields in net.minecraft.world.level.levelgen.placement with type parameters of type BlockPosMethods in net.minecraft.world.level.levelgen.placement that return types with arguments of type BlockPosModifier and TypeMethodDescriptionCarvingMaskPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) CountOnEveryLayerPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) Deprecated.EnvironmentScanPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) FixedPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) HeightmapPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) HeightRangePlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) InSquarePlacement.getPositions
(PlacementContext p_226348_, RandomSource p_226349_, BlockPos p_226350_) PlacementFilter.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) PlacementModifier.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) RandomOffsetPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) RepeatingPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) Methods in net.minecraft.world.level.levelgen.placement with parameters of type BlockPosModifier and TypeMethodDescriptionprotected int
CountPlacement.count
(RandomSource random, BlockPos pos) protected int
NoiseBasedCountPlacement.count
(RandomSource random, BlockPos pos) protected int
NoiseThresholdCountPlacement.count
(RandomSource random, BlockPos pos) protected abstract int
RepeatingPlacement.count
(RandomSource random, BlockPos pos) PlacementContext.getBlockState
(BlockPos pos) CarvingMaskPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) CountOnEveryLayerPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) Deprecated.EnvironmentScanPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) FixedPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) HeightmapPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) HeightRangePlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) InSquarePlacement.getPositions
(PlacementContext p_226348_, RandomSource p_226349_, BlockPos p_226350_) PlacementFilter.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) PlacementModifier.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) RandomOffsetPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) RepeatingPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) private static boolean
FixedPlacement.isSameChunk
(int x, int z, BlockPos pos) static FixedPlacement
boolean
PlacedFeature.place
(WorldGenLevel level, ChunkGenerator generator, RandomSource random, BlockPos pos) boolean
PlacedFeature.placeWithBiomeCheck
(WorldGenLevel level, ChunkGenerator generator, RandomSource random, BlockPos pos) private boolean
PlacedFeature.placeWithContext
(PlacementContext context, RandomSource source, BlockPos pos) protected boolean
BiomeFilter.shouldPlace
(PlacementContext p_226317_, RandomSource p_226318_, BlockPos p_226319_) protected boolean
BlockPredicateFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected abstract boolean
PlacementFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected boolean
RarityFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected boolean
SurfaceRelativeThresholdFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected boolean
SurfaceWaterDepthFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) Constructor parameters in net.minecraft.world.level.levelgen.placement with type arguments of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure declared as BlockPosModifier and TypeFieldDescriptionprotected BlockPos
PoolElementStructurePiece.position
private final BlockPos
Structure.GenerationStub.position
The field for theposition
record component.protected BlockPos
TemplateStructurePiece.templatePosition
Methods in net.minecraft.world.level.levelgen.structure that return BlockPosModifier and TypeMethodDescriptionBoundingBox.getCenter()
StructurePiece.getLocatorPosition()
protected BlockPos
Structure.getLowestYIn5by5BoxOffset7Blocks
(Structure.GenerationContext context, Rotation rotation) Deprecated.PoolElementStructurePiece.getPosition()
Structure.GenerationStub.position()
Returns the value of theposition
record component.TemplateStructurePiece.templatePosition()
Methods in net.minecraft.world.level.levelgen.structure with parameters of type BlockPosModifier and TypeMethodDescriptionprotected boolean
StructurePiece.createChest
(ServerLevelAccessor level, BoundingBox box, RandomSource random, BlockPos pos, ResourceKey<LootTable> lootTable, BlockState state) BoundingBox.encapsulate
(BlockPos pos) Deprecated.protected abstract void
TemplateStructurePiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) void
PoolElementStructurePiece.place
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, BlockPos pos, boolean keepJigsaws) void
PoolElementStructurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) abstract void
StructurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
TemplateStructurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) static BlockState
StructurePiece.reorient
(BlockGetter level, BlockPos pos, BlockState state) Method parameters in net.minecraft.world.level.levelgen.structure with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic Optional
<BoundingBox> BoundingBox.encapsulatingPositions
(Iterable<BlockPos> positions) void
BoundingBox.forAllCorners
(Consumer<BlockPos> pos) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type BlockPosModifierConstructorDescriptionBoundingBox
(BlockPos pos) GenerationStub
(BlockPos position, com.mojang.datafixers.util.Either<Consumer<StructurePiecesBuilder>, StructurePiecesBuilder> generator) Creates an instance of aGenerationStub
record class.GenerationStub
(BlockPos p_226675_, Consumer<StructurePiecesBuilder> p_226676_) PoolElementStructurePiece
(StructureTemplateManager structureTemplateManager, StructurePoolElement element, BlockPos position, int groundLevelDelta, Rotation rotation, BoundingBox boundingBox, LiquidSettings liquidSettings) TemplateStructurePiece
(StructurePieceType type, int genDepth, StructureTemplateManager structureTemplateManager, ResourceLocation location, String templateName, StructurePlaceSettings placeSettings, BlockPos templatePosition) -
Uses of BlockPos in net.minecraft.world.level.levelgen.structure.pieces
Methods in net.minecraft.world.level.levelgen.structure.pieces with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.levelgen.structure.placement
Methods in net.minecraft.world.level.levelgen.structure.placement that return BlockPos -
Uses of BlockPos in net.minecraft.world.level.levelgen.structure.pools
Methods in net.minecraft.world.level.levelgen.structure.pools that return types with arguments of type BlockPosModifier and TypeMethodDescriptionJigsawPlacement.getRandomNamedJigsaw
(StructurePoolElement element, ResourceLocation startJigsawName, BlockPos pos, Rotation rotation, StructureTemplateManager structureTemplateManager, WorldgenRandom random) Methods in net.minecraft.world.level.levelgen.structure.pools with parameters of type BlockPosModifier and TypeMethodDescriptionstatic Optional
<Structure.GenerationStub> JigsawPlacement.addPieces
(Structure.GenerationContext context, Holder<StructureTemplatePool> startPool, Optional<ResourceLocation> startJigsawName, int maxDepth, BlockPos pos, boolean useExpansionHack, Optional<Heightmap.Types> projectStartToHeightmap, int maxDistanceFromCenter, PoolAliasLookup aliasLookup, DimensionPadding dimensionPadding, LiquidSettings liquidSettings) static boolean
JigsawPlacement.generateJigsaw
(ServerLevel level, Holder<StructureTemplatePool> startPool, ResourceLocation startJigsawName, int maxDepth, BlockPos pos, boolean keepJigsaws) EmptyPoolElement.getBoundingBox
(StructureTemplateManager p_227172_, BlockPos p_227173_, Rotation p_227174_) FeaturePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation) ListPoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation) SinglePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation) abstract BoundingBox
StructurePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation) SinglePoolElement.getDataMarkers
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, boolean relativePosition) JigsawPlacement.getRandomNamedJigsaw
(StructurePoolElement element, ResourceLocation startJigsawName, BlockPos pos, Rotation rotation, StructureTemplateManager structureTemplateManager, WorldgenRandom random) EmptyPoolElement.getShuffledJigsawBlocks
(StructureTemplateManager p_227176_, BlockPos p_227177_, Rotation p_227178_, RandomSource p_227179_) FeaturePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) ListPoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) SinglePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) abstract List
<StructureTemplate.StructureBlockInfo> StructurePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) void
StructurePoolElement.handleDataMarker
(LevelAccessor level, StructureTemplate.StructureBlockInfo blockInfo, BlockPos pos, Rotation rotation, RandomSource random, BoundingBox box) boolean
EmptyPoolElement.place
(StructureTemplateManager p_227158_, WorldGenLevel p_227159_, StructureManager p_227160_, ChunkGenerator p_227161_, BlockPos p_227162_, BlockPos p_227163_, Rotation p_227164_, BoundingBox p_227165_, RandomSource p_227166_, LiquidSettings p_352245_, boolean p_227167_) boolean
FeaturePoolElement.place
(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) boolean
ListPoolElement.place
(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) boolean
SinglePoolElement.place
(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) abstract boolean
StructurePoolElement.place
(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) -
Uses of BlockPos in net.minecraft.world.level.levelgen.structure.pools.alias
Methods in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type BlockPosModifier and TypeMethodDescriptionstatic PoolAliasLookup
PoolAliasLookup.create
(List<PoolAliasBinding> aliases, BlockPos pos, long seed) -
Uses of BlockPos in net.minecraft.world.level.levelgen.structure.structures
Fields in net.minecraft.world.level.levelgen.structure.structures declared as BlockPosModifier and TypeFieldDescription(package private) static final BlockPos
ShipwreckPieces.PIVOT
WoodlandMansionPieces.PlacementData.position
private BlockPos
DesertPyramidPiece.randomCollapsedRoofPos
Fields in net.minecraft.world.level.levelgen.structure.structures with type parameters of type BlockPosModifier and TypeFieldDescriptionEndCityPieces.FAT_TOWER_BRIDGES
(package private) static final Map
<ResourceLocation, BlockPos> IglooPieces.OFFSETS
(package private) static final Map
<ResourceLocation, BlockPos> IglooPieces.PIVOTS
DesertPyramidPiece.potentialSuspiciousSandWorldPositions
EndCityPieces.TOWER_BRIDGES
Methods in net.minecraft.world.level.levelgen.structure.structures that return BlockPosModifier and TypeMethodDescriptionStrongholdPieces.StartPiece.getLocatorPosition()
DesertPyramidPiece.getRandomCollapsedRoofPos()
private static BlockPos
IglooPieces.IglooPiece.makePosition
(ResourceLocation location, BlockPos pos, int down) Methods in net.minecraft.world.level.levelgen.structure.structures that return types with arguments of type BlockPosModifier and TypeMethodDescriptionOceanRuinPieces.allPositions
(RandomSource random, BlockPos pos) DesertPyramidPiece.getPotentialSuspiciousSandWorldPositions()
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
DesertPyramidPiece.addCellarRoom
(BlockPos pos, WorldGenLevel level, BoundingBox box) private void
DesertPyramidPiece.addCellarStairs
(BlockPos pos, WorldGenLevel level, BoundingBox box) private static void
OceanRuinPieces.addClusterRuins
(StructureTemplateManager structureTemplateManager, RandomSource random, Rotation p_rotation, BlockPos pos, OceanRuinStructure structure, StructurePieceAccessor structurePieceAccessor) private void
RuinedPortalPiece.addNetherrackDripColumn
(RandomSource random, LevelAccessor level, BlockPos pos) (package private) static EndCityPieces.EndCityPiece
EndCityPieces.addPiece
(StructureTemplateManager structureTemplateManager, EndCityPieces.EndCityPiece piece, BlockPos startPos, String name, Rotation rotation, boolean overwrite) private static void
OceanRuinPieces.addPiece
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, StructurePieceAccessor structurePieceAccessor, RandomSource random, OceanRuinStructure structure, boolean isLarge, float integrity) static void
IglooPieces.addPieces
(StructureTemplateManager structureTemplateManager, BlockPos startPos, Rotation rotation, StructurePieceAccessor pieces, RandomSource random) static void
NetherFossilPieces.addPieces
(StructureTemplateManager structureManager, StructurePieceAccessor pieces, RandomSource random, BlockPos pos) static void
OceanRuinPieces.addPieces
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, StructurePieceAccessor structurePieceAccessor, RandomSource random, OceanRuinStructure structure) ShipwreckPieces.addRandomPiece
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, StructurePieceAccessor pieces, RandomSource random, boolean isBeached) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom1x1
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation p_rotation, Direction direction, WoodlandMansionPieces.FloorRoomCollection floorRooms) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom1x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation rotation, Direction frontDirection, Direction sideDirection, WoodlandMansionPieces.FloorRoomCollection floorRooms, boolean isStairs) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom2x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation p_rotation, Direction frontDirection, Direction sideDirection, WoodlandMansionPieces.FloorRoomCollection floorRooms) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom2x2Secret
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation rotation, WoodlandMansionPieces.FloorRoomCollection floorRooms) OceanRuinPieces.allPositions
(RandomSource random, BlockPos pos) private boolean
RuinedPortalPiece.canBlockBeReplacedByNetherrackOrMagma
(LevelAccessor level, BlockPos pos) private boolean
MineshaftPieces.MineShaftCorridor.canHangChainBelow
(LevelReader level, BlockPos pos, BlockState state) private boolean
MineshaftPieces.MineShaftCorridor.canPlaceColumnOnTopOf
(LevelReader level, BlockPos pos, BlockState state) void
WoodlandMansionPieces.MansionPiecePlacer.createMansion
(BlockPos pos, Rotation rotation, List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, WoodlandMansionPieces.MansionGrid grid) private void
WoodlandMansionPieces.MansionPiecePlacer.createRoof
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation rotation, WoodlandMansionPieces.SimpleGrid layout, WoodlandMansionPieces.SimpleGrid nextFloorLayout) boolean
EndCityPieces.SectionGenerator.generate
(StructureTemplateManager structureTemplateManager, int counter, EndCityPieces.EndCityPiece piece, BlockPos startPos, List<StructurePiece> pieces, RandomSource random) static void
WoodlandMansionPieces.generateMansion
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, RandomSource random) private void
EndCityStructure.generatePieces
(StructurePiecesBuilder builder, BlockPos startPos, Rotation rotation, Structure.GenerationContext context) private void
WoodlandMansionStructure.generatePieces
(StructurePiecesBuilder builder, Structure.GenerationContext context, BlockPos pos, Rotation rotation) private int
OceanRuinPieces.OceanRuinPiece.getHeight
(BlockPos templatePos, BlockGetter level, BlockPos pos) protected void
EndCityPieces.EndCityPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
IglooPieces.IglooPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
NetherFossilPieces.NetherFossilPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
OceanRuinPieces.OceanRuinPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
RuinedPortalPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
ShipwreckPieces.ShipwreckPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
WoodlandMansionPieces.WoodlandMansionPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) private static boolean
private static BlockPos
IglooPieces.IglooPiece.makePosition
(ResourceLocation location, BlockPos pos, int down) private static StructurePlaceSettings
RuinedPortalPiece.makeSettings
(Mirror mirror, Rotation rotation, RuinedPortalPiece.VerticalPlacement verticalPlacement, BlockPos pos, RuinedPortalPiece.Properties properties) private void
RuinedPortalPiece.maybeAddLeavesAbove
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.maybeAddVines
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.placeNetherrackOrMagma
(RandomSource random, LevelAccessor level, BlockPos pos) private static void
DesertPyramidStructure.placeSuspiciousSand
(BoundingBox boundingBox, WorldGenLevel worldGenLevel, BlockPos pos) void
BuriedTreasurePieces.BuriedTreasurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
DesertPyramidPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
IglooPieces.IglooPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
JungleTemplePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftCorridor.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftStairs.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.BridgeCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.BridgeEndFiller.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.BridgeStraight.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleCorridorStairsPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleCorridorTBalconyPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleEntrance.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorCrossingPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleStalkRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.MonsterThrone.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.RoomCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.StairsRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFossilPieces.NetherFossilPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.MonumentBuilding.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentCoreRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleXRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleXYRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleYRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleYZRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleZRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentEntryRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentPenthouse.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentSimpleRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentSimpleTopRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentWingRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanRuinPieces.OceanRuinPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
RuinedPortalPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
ShipwreckPieces.ShipwreckPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.ChestCorridor.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.FillerCorridor.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.FiveCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.LeftTurn.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.Library.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.PortalRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.PrisonHall.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.RightTurn.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.RoomCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.StairsDown.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.Straight.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.StraightStairsDown.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
SwampHutPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) (package private) static boolean
EndCityPieces.recursiveChildren
(StructureTemplateManager structureTemplateManager, EndCityPieces.SectionGenerator sectionGenerator, int counter, EndCityPieces.EndCityPiece piece, BlockPos startPos, List<StructurePiece> pieces, RandomSource random) static void
EndCityPieces.startHouseTower
(StructureTemplateManager structureTemplateManager, BlockPos startPos, Rotation rotation, List<StructurePiece> pieces, RandomSource random) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type BlockPosModifierConstructorDescriptionEndCityPiece
(StructureTemplateManager structureTemplateManager, String name, BlockPos startPos, Rotation rotation, boolean overwrite) IglooPiece
(StructureTemplateManager structureTemplateManager, ResourceLocation location, BlockPos startPos, Rotation rotation, int down) NetherFossilPiece
(StructureTemplateManager structureManager, ResourceLocation location, BlockPos pos, Rotation rotation) OceanRuinPiece
(StructureTemplateManager structureTemplateManager, ResourceLocation location, BlockPos pos, Rotation rotation, float integrity, OceanRuinStructure.Type biomeType, boolean isLarge) RuinedPortalPiece
(StructureTemplateManager structureTemplateManager, BlockPos templatePosition, RuinedPortalPiece.VerticalPlacement verticalPlacement, RuinedPortalPiece.Properties properties, ResourceLocation location, StructureTemplate template, Rotation rotation, Mirror mirror, BlockPos pivotPos) ShipwreckPiece
(StructureTemplateManager structureTemplateManager, ResourceLocation location, BlockPos pos, Rotation rotation, boolean isBeached) WoodlandMansionPiece
(StructureTemplateManager structureTemplateManager, String templateName, BlockPos templatePosition, Rotation rotation) WoodlandMansionPiece
(StructureTemplateManager structureTemplateManager, String templateName, BlockPos templatePosition, Rotation rotation, Mirror mirror) -
Uses of BlockPos in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as BlockPosModifier and TypeFieldDescriptionfinal BlockPos
StructureTemplate.StructureEntityInfo.blockPos
private final BlockPos
StructureTemplate.StructureBlockInfo.pos
The field for thepos
record component.private BlockPos
StructurePlaceSettings.rotationPivot
Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return BlockPosModifier and TypeMethodDescriptionStructureTemplate.calculateConnectedPosition
(StructurePlaceSettings decorator, BlockPos start, StructurePlaceSettings settings, BlockPos end) static BlockPos
StructureTemplate.calculateRelativePosition
(StructurePlaceSettings decorator, BlockPos pos) StructurePlaceSettings.getRotationPivot()
StructureTemplate.getZeroPositionWithTransform
(BlockPos targetPos, Mirror mirror, Rotation rotation) static BlockPos
StructureTemplate.getZeroPositionWithTransform
(BlockPos pos, Mirror mirror, Rotation rotation, int sizeX, int sizeZ) StructureTemplate.StructureBlockInfo.pos()
Returns the value of thepos
record component.static BlockPos
Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
StructureTemplate.addEntitiesToWorld
(ServerLevelAccessor p_74524_, BlockPos p_74525_, StructurePlaceSettings placementIn) StructureTemplate.calculateConnectedPosition
(StructurePlaceSettings decorator, BlockPos start, StructurePlaceSettings settings, BlockPos end) static BlockPos
StructureTemplate.calculateRelativePosition
(StructurePlaceSettings decorator, BlockPos pos) private void
StructureTemplate.fillEntityList
(Level level, BlockPos startPos, BlockPos endPos) void
StructureTemplate.fillFromWorld
(Level level, BlockPos pos, Vec3i size, boolean withEntities, Block toIgnore) StructureTemplate.filterBlocks
(BlockPos pos, StructurePlaceSettings settings, Block block) it.unimi.dsi.fastutil.objects.ObjectArrayList
<StructureTemplate.StructureBlockInfo> StructureTemplate.filterBlocks
(BlockPos pos, StructurePlaceSettings settings, Block block, boolean relativePosition) CappedProcessor.finalizeProcessing
(ServerLevelAccessor serverLevel, BlockPos offset, BlockPos pos, List<StructureTemplate.StructureBlockInfo> originalBlockInfos, List<StructureTemplate.StructureBlockInfo> processedBlockInfos, StructurePlaceSettings settings) StructureProcessor.finalizeProcessing
(ServerLevelAccessor serverLevel, BlockPos offset, BlockPos pos, List<StructureTemplate.StructureBlockInfo> originalBlockInfos, List<StructureTemplate.StructureBlockInfo> processedBlockInfos, StructurePlaceSettings settings) StructureTemplate.getBoundingBox
(BlockPos startPos, Rotation rotation, BlockPos pivotPos, Mirror mirror) protected static BoundingBox
StructureTemplate.getBoundingBox
(BlockPos startPos, Rotation rotation, BlockPos pivotPos, Mirror mirror, Vec3i size) StructureTemplate.getBoundingBox
(StructurePlaceSettings settings, BlockPos startPos) StructurePlaceSettings.getRandomPalette
(List<StructureTemplate.Palette> palettes, BlockPos pos) StructureTemplate.getZeroPositionWithTransform
(BlockPos targetPos, Mirror mirror, Rotation rotation) static BlockPos
StructureTemplate.getZeroPositionWithTransform
(BlockPos pos, Mirror mirror, Rotation rotation, int sizeX, int sizeZ) boolean
StructureTemplate.placeInWorld
(ServerLevelAccessor serverLevel, BlockPos offset, BlockPos pos, StructurePlaceSettings settings, RandomSource random, int flags) StructureProcessor.process
(LevelReader p_74140_, BlockPos p_74141_, BlockPos p_74142_, StructureTemplate.StructureBlockInfo p_74143_, StructureTemplate.StructureBlockInfo p_74144_, StructurePlaceSettings p_74145_, StructureTemplate template) BlackstoneReplaceProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) BlockAgeProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) BlockIgnoreProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) BlockRotProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) GravityProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) JigsawReplacementProcessor.processBlock
(LevelReader p_74127_, BlockPos p_74128_, BlockPos p_74129_, StructureTemplate.StructureBlockInfo p_74130_, StructureTemplate.StructureBlockInfo p_74131_, StructurePlaceSettings p_74132_) LavaSubmergedBlockProcessor.processBlock
(LevelReader p_74140_, BlockPos p_74141_, BlockPos p_74142_, StructureTemplate.StructureBlockInfo p_74143_, StructureTemplate.StructureBlockInfo p_74144_, StructurePlaceSettings p_74145_) ProtectedBlockProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) RuleProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) StructureProcessor.processBlock
(LevelReader level, BlockPos offset, BlockPos pos, StructureTemplate.StructureBlockInfo blockInfo, StructureTemplate.StructureBlockInfo relativeBlockInfo, StructurePlaceSettings settings) StructureTemplate.processBlockInfos
(ServerLevelAccessor serverLevel, BlockPos offset, BlockPos pos, StructurePlaceSettings settings, List<StructureTemplate.StructureBlockInfo> blockInfos) StructureTemplate.processBlockInfos
(ServerLevelAccessor serverLevel, BlockPos offset, BlockPos pos, StructurePlaceSettings settings, List<StructureTemplate.StructureBlockInfo> blockInfos, StructureTemplate template) StructureProcessor.processEntity
(LevelReader world, BlockPos seedPos, StructureTemplate.StructureEntityInfo rawEntityInfo, StructureTemplate.StructureEntityInfo entityInfo, StructurePlaceSettings placementSettings, StructureTemplate template) FORGE: Add entity processing.StructureTemplate.processEntityInfos
(StructureTemplate template, LevelAccessor p_215387_0_, BlockPos p_215387_1_, StructurePlaceSettings p_215387_2_, List<StructureTemplate.StructureEntityInfo> p_215387_3_) StructurePlaceSettings.setRotationPivot
(BlockPos rotationPivot) boolean
AxisAlignedLinearPosTest.test
(BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) boolean
LinearPosTest.test
(BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) boolean
PosAlwaysTrueTest.test
(BlockPos p_230301_, BlockPos p_230302_, BlockPos p_230303_, RandomSource p_230304_) abstract boolean
PosRuleTest.test
(BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) boolean
ProcessorRule.test
(BlockState inputState, BlockState existingState, BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) static BlockPos
static Vec3
static void
StructureTemplate.updateShapeAtEdge
(LevelAccessor level, int flags, DiscreteVoxelShape shape, BlockPos pos) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type BlockPosModifierConstructorDescriptionStructureBlockInfo
(BlockPos pos, BlockState state, CompoundTag nbt) Creates an instance of aStructureBlockInfo
record class.StructureEntityInfo
(Vec3 pos, BlockPos blockPos, CompoundTag nbt) -
Uses of BlockPos in net.minecraft.world.level.lighting
Methods in net.minecraft.world.level.lighting with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
LayerLightEventListener.DummyLightLayerEventListener.checkBlock
(BlockPos pos) void
LevelLightEngine.checkBlock
(BlockPos pos) void
LightEngine.checkBlock
(BlockPos pos) void
LightEventListener.checkBlock
(BlockPos pos) private int
ChunkSkyLightSources.findLowestSourceBelow
(BlockGetter level, BlockPos pos, BlockState state) static int
LightEngine.getLightBlockInto
(BlockGetter level, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int defaultReturnValue) int
LayerLightEventListener.DummyLightLayerEventListener.getLightValue
(BlockPos levelPos) int
LayerLightEventListener.getLightValue
(BlockPos levelPos) int
LightEngine.getLightValue
(BlockPos levelPos) static VoxelShape
LightEngine.getOcclusionShape
(BlockGetter level, BlockPos pos, BlockState state, Direction direction) protected int
LightEngine.getOpacity
(BlockState state, BlockPos pos) int
LevelLightEngine.getRawBrightness
(BlockPos blockPos, int amount) protected BlockState
static boolean
LightEngine.hasDifferentLightProperties
(BlockGetter level, BlockPos pos, BlockState state1, BlockState state2) private static boolean
ChunkSkyLightSources.isEdgeOccluded
(BlockGetter level, BlockPos pos1, BlockState state1, BlockPos pos2, BlockState state2) private boolean
ChunkSkyLightSources.updateEdge
(BlockGetter level, int index, int minY, BlockPos pos1, BlockState state1, BlockPos pos2, BlockState state2) default void
LightEventListener.updateSectionStatus
(BlockPos pos, boolean isQueueEmpty) -
Uses of BlockPos in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
Fluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
FluidState.animateTick
(Level level, BlockPos pos, RandomSource random) void
LavaFluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
WaterFluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) protected abstract void
FlowingFluid.beforeDestroyingBlock
(LevelAccessor level, BlockPos pos, BlockState state) protected void
LavaFluid.beforeDestroyingBlock
(LevelAccessor level, BlockPos pos, BlockState state) protected void
WaterFluid.beforeDestroyingBlock
(LevelAccessor level, BlockPos pos, BlockState state) boolean
EmptyFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluid, Direction direction) boolean
FluidState.canBeReplacedWith
(BlockGetter level, BlockPos pos, Fluid fluid, Direction direction) boolean
LavaFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) boolean
WaterFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) boolean
FlowingFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) private boolean
FlowingFluid.canHoldFluid
(BlockGetter level, BlockPos pos, BlockState state, Fluid fluid) private boolean
FlowingFluid.canPassThrough
(BlockGetter level, Fluid fluid, BlockPos pos, BlockState state, Direction direction, BlockPos spreadPos, BlockState spreadState, FluidState fluidState) private boolean
FlowingFluid.canPassThroughWall
(Direction direction, BlockGetter level, BlockPos pos, BlockState state, BlockPos spreadPos, BlockState spreadState) protected boolean
FlowingFluid.canSpreadTo
(BlockGetter level, BlockPos fromPos, BlockState fromBlockState, Direction direction, BlockPos toPos, BlockState toBlockState, FluidState toFluidState, Fluid fluid) private void
LavaFluid.fizz
(LevelAccessor level, BlockPos pos) private static short
FlowingFluid.getCacheKey
(BlockPos sourcePos, BlockPos spreadPos) EmptyFluid.getFlow
(BlockGetter blockReader, BlockPos pos, FluidState fluidState) FlowingFluid.getFlow
(BlockGetter blockReader, BlockPos pos, FluidState fluidState) protected abstract Vec3
Fluid.getFlow
(BlockGetter blockReader, BlockPos pos, FluidState fluidState) FluidState.getFlow
(BlockGetter level, BlockPos pos) float
EmptyFluid.getHeight
(FluidState state, BlockGetter level, BlockPos pos) float
FlowingFluid.getHeight
(FluidState state, BlockGetter level, BlockPos pos) abstract float
Fluid.getHeight
(FluidState state, BlockGetter level, BlockPos pos) float
FluidState.getHeight
(BlockGetter level, BlockPos pos) protected FluidState
FlowingFluid.getNewLiquid
(Level level, BlockPos pos, BlockState blockState) EmptyFluid.getShape
(FluidState state, BlockGetter level, BlockPos pos) FlowingFluid.getShape
(FluidState state, BlockGetter level, BlockPos pos) abstract VoxelShape
Fluid.getShape
(FluidState state, BlockGetter level, BlockPos pos) FluidState.getShape
(BlockGetter level, BlockPos pos) protected int
FlowingFluid.getSlopeDistance
(LevelReader level, BlockPos spreadPos, int distance, Direction p_direction, BlockState currentSpreadState, BlockPos sourcePos, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> stateCache, it.unimi.dsi.fastutil.shorts.Short2BooleanMap waterHoleCache) protected Map
<Direction, FluidState> FlowingFluid.getSpread
(Level level, BlockPos pos, BlockState state) protected int
FlowingFluid.getSpreadDelay
(Level level, BlockPos pos, FluidState currentState, FluidState newState) int
LavaFluid.getSpreadDelay
(Level level, BlockPos pos, FluidState currentState, FluidState newState) private boolean
LavaFluid.hasFlammableNeighbours
(LevelReader level, BlockPos pos) private static boolean
FlowingFluid.hasSameAbove
(FluidState fluidState, BlockGetter level, BlockPos pos) private boolean
LavaFluid.isFlammable
(LevelReader level, BlockPos pos) Deprecated.Forge: useLavaFluid.isFlammable(LevelReader,BlockPos, Direction)
insteadprivate boolean
LavaFluid.isFlammable
(LevelReader p_level, BlockPos p_pos, Direction face) protected boolean
FlowingFluid.isSolidFace
(BlockGetter level, BlockPos neighborPos, Direction side) private boolean
FlowingFluid.isWaterHole
(BlockGetter level, Fluid fluid, BlockPos pos, BlockState state, BlockPos spreadPos, BlockState spreadState) protected void
Fluid.randomTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
FluidState.randomTick
(Level level, BlockPos pos, RandomSource random) void
LavaFluid.randomTick
(Level level, BlockPos pos, FluidState state, RandomSource random) boolean
FluidState.shouldRenderBackwardUpFace
(BlockGetter level, BlockPos pos) private int
FlowingFluid.sourceNeighborCount
(LevelReader level, BlockPos pos) Returns the number of immediately adjacent source blocks of the same fluid that lie on the horizontal plane.protected void
FlowingFluid.spread
(Level level, BlockPos pos, FluidState state) protected void
FlowingFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) protected void
LavaFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) private void
FlowingFluid.spreadToSides
(Level level, BlockPos pos, FluidState fluidState, BlockState blockState) void
FlowingFluid.tick
(Level level, BlockPos pos, FluidState state) protected void
Fluid.tick
(Level level, BlockPos pos, FluidState state) void
-
Uses of BlockPos in net.minecraft.world.level.pathfinder
Fields in net.minecraft.world.level.pathfinder declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
PathfindingContext.mobPosition
private final BlockPos
Path.target
Methods in net.minecraft.world.level.pathfinder that return BlockPosModifier and TypeMethodDescriptionNode.asBlockPos()
(package private) BlockPos
PathfindingContext.currentEvalPos()
Path.getNextNodePos()
Path.getNodePos
(int index) Path.getTarget()
PathfindingContext.mobPosition()
Methods in net.minecraft.world.level.pathfinder that return types with arguments of type BlockPosModifier and TypeMethodDescriptionFlyNodeEvaluator.iteratePathfindingStartNodeCandidatePositions
(Mob mob) Methods in net.minecraft.world.level.pathfinder with parameters of type BlockPosModifier and TypeMethodDescriptionprotected boolean
FlyNodeEvaluator.canStartAt
(BlockPos pos) protected boolean
WalkNodeEvaluator.canStartAt
(BlockPos pos) private PathType
PathTypeCache.compute
(BlockGetter level, BlockPos pos, int index, long packedPos) float
Node.distanceManhattan
(BlockPos pos) float
Node.distanceTo
(BlockPos pos) float
Node.distanceToSqr
(BlockPos pos) PathfindingContext.getBlockState
(BlockPos pos) protected double
WalkNodeEvaluator.getFloorLevel
(BlockPos pos) static double
WalkNodeEvaluator.getFloorLevel
(BlockGetter level, BlockPos pos) protected Node
PathTypeCache.getOrCompute
(BlockGetter level, BlockPos pos) NodeEvaluator.getPathType
(Mob mob, BlockPos pos) protected static PathType
WalkNodeEvaluator.getPathTypeFromState
(BlockGetter level, BlockPos pos) static PathType
WalkNodeEvaluator.getPathTypeStatic
(Mob mob, BlockPos pos) protected Node
WalkNodeEvaluator.getStartNode
(BlockPos pos) void
PathTypeCache.invalidate
(BlockPos pos) private Path
PathFinder.reconstructPath
(Node point, BlockPos targetPos, boolean reachesTarget) Converts a recursive path point structure into a pathMethod parameters in net.minecraft.world.level.pathfinder with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate Path
PathFinder.findPath
(ProfilerFiller profiler, Node p_node, Map<Target, BlockPos> targetPos, float maxRange, int accuracy, float searchDepthMultiplier) PathFinder.findPath
(PathNavigationRegion region, Mob mob, Set<BlockPos> targetPositions, float maxRange, int accuracy, float searchDepthMultiplier) Finds a path to one of the specified positions and post-processes it or returns null if no path could be found within given accuracyConstructors in net.minecraft.world.level.pathfinder with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.portal
Fields in net.minecraft.world.level.portal declared as BlockPosMethods in net.minecraft.world.level.portal that return BlockPosMethods in net.minecraft.world.level.portal that return types with arguments of type BlockPosModifier and TypeMethodDescriptionPortalForcer.findClosestPortalPosition
(BlockPos exitPos, boolean isNether, WorldBorder worldBorder) Methods in net.minecraft.world.level.portal with parameters of type BlockPosModifier and TypeMethodDescriptionprivate BlockPos
PortalShape.calculateBottomLeft
(BlockPos pos) private boolean
PortalForcer.canHostFrame
(BlockPos originalPos, BlockPos.MutableBlockPos offsetPos, Direction p_direction, int offsetScale) PortalForcer.createPortal
(BlockPos pos, Direction.Axis axis) PortalForcer.findClosestPortalPosition
(BlockPos exitPos, boolean isNether, WorldBorder worldBorder) static Optional
<PortalShape> PortalShape.findEmptyPortalShape
(LevelAccessor level, BlockPos bottomLeft, Direction.Axis axis) static Optional
<PortalShape> PortalShape.findPortalShape
(LevelAccessor level, BlockPos bottomLeft, Predicate<PortalShape> predicate, Direction.Axis axis) private int
PortalShape.getDistanceUntilEdgeAboveFrame
(BlockPos pos, Direction direction) Constructors in net.minecraft.world.level.portal with parameters of type BlockPosModifierConstructorDescriptionPortalShape
(LevelAccessor level, BlockPos bottomLeft, Direction.Axis axis) -
Uses of BlockPos in net.minecraft.world.level.redstone
Fields in net.minecraft.world.level.redstone declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
CollectingNeighborUpdater.FullNeighborUpdate.neighborPos
The field for theneighborPos
record component.private final BlockPos
CollectingNeighborUpdater.ShapeUpdate.neighborPos
The field for theneighborPos
record component.private final BlockPos
CollectingNeighborUpdater.SimpleNeighborUpdate.neighborPos
The field for theneighborPos
record component.private final BlockPos
CollectingNeighborUpdater.FullNeighborUpdate.pos
The field for thepos
record component.private final BlockPos
CollectingNeighborUpdater.ShapeUpdate.pos
The field for thepos
record component.private final BlockPos
CollectingNeighborUpdater.SimpleNeighborUpdate.pos
The field for thepos
record component.private final BlockPos
CollectingNeighborUpdater.MultiNeighborUpdate.sourcePos
Methods in net.minecraft.world.level.redstone that return BlockPosModifier and TypeMethodDescriptionCollectingNeighborUpdater.FullNeighborUpdate.neighborPos()
Returns the value of theneighborPos
record component.CollectingNeighborUpdater.ShapeUpdate.neighborPos()
Returns the value of theneighborPos
record component.CollectingNeighborUpdater.SimpleNeighborUpdate.neighborPos()
Returns the value of theneighborPos
record component.CollectingNeighborUpdater.FullNeighborUpdate.pos()
Returns the value of thepos
record component.CollectingNeighborUpdater.ShapeUpdate.pos()
Returns the value of thepos
record component.CollectingNeighborUpdater.SimpleNeighborUpdate.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.level.redstone with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
CollectingNeighborUpdater.addAndRun
(BlockPos pos, CollectingNeighborUpdater.NeighborUpdates updates) static void
NeighborUpdater.executeShapeUpdate
(LevelAccessor level, Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) static void
NeighborUpdater.executeUpdate
(Level level, BlockState state, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) void
CollectingNeighborUpdater.neighborChanged
(BlockPos pos, Block neighborBlock, BlockPos neighborPos) void
CollectingNeighborUpdater.neighborChanged
(BlockState state, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) void
InstantNeighborUpdater.neighborChanged
(BlockPos pos, Block neighborBlock, BlockPos neighborPos) void
InstantNeighborUpdater.neighborChanged
(BlockState state, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) void
NeighborUpdater.neighborChanged
(BlockPos pos, Block neighborBlock, BlockPos neighborPos) void
NeighborUpdater.neighborChanged
(BlockState state, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) void
CollectingNeighborUpdater.shapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) void
InstantNeighborUpdater.shapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) void
NeighborUpdater.shapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) void
CollectingNeighborUpdater.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block block, Direction facing) default void
NeighborUpdater.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block block, Direction facing) Constructors in net.minecraft.world.level.redstone with parameters of type BlockPosModifierConstructorDescription(package private)
FullNeighborUpdate
(BlockState state, BlockPos pos, Block block, BlockPos neighborPos, boolean movedByPiston) Creates an instance of aFullNeighborUpdate
record class.(package private)
MultiNeighborUpdate
(BlockPos sourcePos, Block sourceBlock, Direction skipDirection) (package private)
ShapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) Creates an instance of aShapeUpdate
record class.(package private)
SimpleNeighborUpdate
(BlockPos pos, Block block, BlockPos neighborPos) Creates an instance of aSimpleNeighborUpdate
record class. -
Uses of BlockPos in net.minecraft.world.level.saveddata.maps
Fields in net.minecraft.world.level.saveddata.maps declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
MapBanner.pos
The field for thepos
record component.private final BlockPos
MapFrame.pos
Methods in net.minecraft.world.level.saveddata.maps that return BlockPosModifier and TypeMethodDescriptionMapFrame.getPos()
MapBanner.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.level.saveddata.maps with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
MapItemSavedData.addTargetDecoration
(ItemStack stack, BlockPos pos, String type, Holder<MapDecorationType> mapDecorationType) static String
static MapBanner
MapBanner.fromWorld
(BlockGetter level, BlockPos pos) void
MapItemSavedData.removedFromFrame
(BlockPos pos, int entityId) boolean
MapItemSavedData.toggleBanner
(LevelAccessor accessor, BlockPos pos) Constructors in net.minecraft.world.level.saveddata.maps with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level.storage
Fields in net.minecraft.world.level.storage declared as BlockPosMethods in net.minecraft.world.level.storage that return BlockPosModifier and TypeMethodDescriptionDerivedLevelData.getSpawnPos()
LevelData.getSpawnPos()
PrimaryLevelData.getSpawnPos()
Methods in net.minecraft.world.level.storage with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
void
void
Constructors in net.minecraft.world.level.storage with parameters of type BlockPosModifierConstructorDescriptionprivate
PrimaryLevelData
(CompoundTag loadedPlayerTag, boolean wasModded, BlockPos spawnPos, float spawnAngle, long gameTime, long dayTime, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, WorldBorder.Settings worldBorder, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, UUID wanderingTraderId, Set<String> knownServerBrands, Set<String> removedFeatureFlags, TimerQueue<MinecraftServer> scheduledEvents, CompoundTag customBossEvents, EndDragonFight.Data endDragonFightData, LevelSettings settings, WorldOptions worldOptions, PrimaryLevelData.SpecialWorldProperty specialWorldProperty, com.mojang.serialization.Lifecycle worldGenSettingsLifecycle) -
Uses of BlockPos in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
LocationCheck.offset
The field for theoffset
record component.Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.MapCodec
<BlockPos> LocationCheck.OFFSET_CODEC
Methods in net.minecraft.world.level.storage.loot.predicates that return BlockPosModifier and TypeMethodDescriptionLocationCheck.offset()
Returns the value of theoffset
record component.Methods in net.minecraft.world.level.storage.loot.predicates with parameters of type BlockPosModifier and TypeMethodDescriptionstatic LootItemCondition.Builder
LocationCheck.checkLocation
(LocationPredicate.Builder locationPredicateBuilder, BlockPos offset) Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type BlockPosModifierConstructorDescriptionLocationCheck
(Optional<LocationPredicate> predicate, BlockPos offset) Creates an instance of aLocationCheck
record class. -
Uses of BlockPos in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as BlockPosMethods in net.minecraft.world.phys that return BlockPosMethods in net.minecraft.world.phys with parameters of type BlockPosModifier and TypeMethodDescriptionstatic BlockHitResult
static AABB
AABB.encapsulatingFullBlocks
(BlockPos startPos, BlockPos endPos) static BlockHitResult
Creates a new BlockRayTraceResult marked as a miss.BlockHitResult.withPosition
(BlockPos pos) Constructors in net.minecraft.world.phys with parameters of type BlockPosModifierConstructorDescriptionprivate
BlockHitResult
(boolean miss, Vec3 location, Direction direction, BlockPos blockPos, boolean inside) BlockHitResult
(Vec3 location, Direction direction, BlockPos blockPos, boolean inside) -
Uses of BlockPos in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
CollisionContext.isAbove
(VoxelShape shape, BlockPos pos, boolean canAscend) boolean
EntityCollisionContext.isAbove
(VoxelShape shape, BlockPos pos, boolean canAscend) -
Uses of BlockPos in net.minecraft.world.ticks
Fields in net.minecraft.world.ticks declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
SavedTick.pos
The field for thepos
record component.private final BlockPos
ScheduledTick.pos
The field for thepos
record component.Fields in net.minecraft.world.ticks with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Function
<BlockPos, TickContainerAccess<T>> WorldGenTickAccess.containerGetter
Methods in net.minecraft.world.ticks that return BlockPosModifier and TypeMethodDescriptionSavedTick.pos()
Returns the value of thepos
record component.ScheduledTick.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.ticks with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
LevelChunkTicks.hasScheduledTick
(BlockPos pos, T type) boolean
LevelTicks.hasScheduledTick
(BlockPos pos, T type) boolean
ProtoChunkTicks.hasScheduledTick
(BlockPos pos, T type) boolean
TickAccess.hasScheduledTick
(BlockPos pos, T type) boolean
WorldGenTickAccess.hasScheduledTick
(BlockPos pos, T type) static <T> SavedTick
<T> static <T> ScheduledTick
<T> private static CompoundTag
SavedTick.saveTick
(String id, BlockPos pos, int delay, TickPriority priority) boolean
LevelTickAccess.willTickThisTick
(BlockPos pos, T type) boolean
LevelTicks.willTickThisTick
(BlockPos pos, T type) boolean
WorldGenTickAccess.willTickThisTick
(BlockPos pos, T type) Method parameters in net.minecraft.world.ticks with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate void
LevelTicks.runCollectedTicks
(BiConsumer<BlockPos, T> ticker) void
LevelTicks.tick
(long gameTime, int maxAllowedTicks, BiConsumer<BlockPos, T> ticker) Constructors in net.minecraft.world.ticks with parameters of type BlockPosModifierConstructorDescriptionSavedTick
(T type, BlockPos pos, int delay, TickPriority priority) Creates an instance of aSavedTick
record class.ScheduledTick
(T p_193383_, BlockPos p_193384_, long p_193385_, long p_193386_) ScheduledTick
(T type, BlockPos pos, long triggerTick, TickPriority priority, long subTickOrder) Creates an instance of aScheduledTick
record class.Constructor parameters in net.minecraft.world.ticks with type arguments of type BlockPosModifierConstructorDescriptionWorldGenTickAccess
(Function<BlockPos, TickContainerAccess<T>> containerGetter) -
Uses of BlockPos in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BlockCapabilityCache.pos
private final BlockPos
CapabilityListenerHolder.ListenerReference.pos
Methods in net.neoforged.neoforge.capabilities that return BlockPosMethods in net.neoforged.neoforge.capabilities with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
CapabilityListenerHolder.addListener
(BlockPos pos, ICapabilityInvalidationListener listener) Adds a listener.static <T,
C extends @Nullable Object>
BlockCapabilityCache<T, C> BlockCapabilityCache.create
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context) Creates a new cache instance and registers it to the level.static <T,
C extends @Nullable Object>
BlockCapabilityCache<T, C> BlockCapabilityCache.create
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context, BooleanSupplier isValid, Runnable invalidationListener) Creates a new cache instance with an invalidation listener, and registers it to the level.BlockCapability.getCapability
(Level level, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) IBlockCapabilityProvider.getCapability
(Level level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, C context) Returns the capability, ornull
if not available.void
CapabilityListenerHolder.invalidatePos
(BlockPos pos) Invalidates listeners at a specific block position.Constructors in net.neoforged.neoforge.capabilities with parameters of type BlockPosModifierConstructorDescriptionprivate
BlockCapabilityCache
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context, BooleanSupplier isValid, Runnable invalidationListener) private
ListenerReference
(ReferenceQueue<ICapabilityInvalidationListener> queue, BlockPos pos, ICapabilityInvalidationListener listener) -
Uses of BlockPos in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
ClientHooks.calculateFaceWithoutAO
(BlockAndTintGetter getter, BlockState state, BlockPos pos, BakedQuad quad, boolean isFaceCubic, float[] brightness, int[] lightmap) ClientHooks.gatherAdditionalRenderers
(BlockPos sectionOrigin, Level level) static boolean
ClientHooks.renderBlockOverlay
(Player player, PoseStack mat, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos pos) static void
ClientHooks.renderPistonMovedBlocks
(BlockPos pos, BlockState state, PoseStack stack, MultiBufferSource bufferSource, Level level, boolean checkSides, int packedOverlay, BlockRenderDispatcher blockRenderer) -
Uses of BlockPos in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
RenderBlockScreenEffectEvent.blockPos
private final BlockPos
AddSectionGeometryEvent.sectionOrigin
Methods in net.neoforged.neoforge.client.event that return BlockPosModifier and TypeMethodDescriptionRenderBlockScreenEffectEvent.getBlockPos()
Returns the position of the block which the overlay is gotten from.AddSectionGeometryEvent.getSectionOrigin()
Constructors in net.neoforged.neoforge.client.event with parameters of type BlockPosModifierConstructorDescriptionAddSectionGeometryEvent
(BlockPos sectionOrigin, Level level) RenderBlockScreenEffectEvent
(Player player, PoseStack poseStack, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos blockPos) -
Uses of BlockPos in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type BlockPosModifier and TypeMethodDescriptiondefault ModelData
IBakedModelExtension.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) -
Uses of BlockPos in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type BlockPosModifier and TypeMethodDescriptiondefault boolean
IClientBlockExtensions.addDestroyEffects
(BlockState state, Level Level, BlockPos pos, ParticleEngine manager) Spawn particles for when the block is destroyed.default boolean
IClientBlockExtensions.areBreakingParticlesTinted
(BlockState state, ClientLevel level, BlockPos pos) Returns true if the breaking particles created from theBlockState
passed should be tinted with biome colors.default ResourceLocation
IClientFluidTypeExtensions.getFlowingTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a flowing fluid.default org.joml.Vector3d
IClientBlockExtensions.getFogColor
(BlockState state, LevelReader level, BlockPos pos, Entity entity, org.joml.Vector3d originalColor, float partialTick) NOT CURRENTLY IMPLEMENTEDdefault ResourceLocation
IClientFluidTypeExtensions.getOverlayTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a fluid directly touching a non-opaque block other than air.default ResourceLocation
IClientFluidTypeExtensions.getStillTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a source fluid.default int
IClientFluidTypeExtensions.getTintColor
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the tint applied to the fluid's textures.default boolean
IClientBlockExtensions.playBreakSound
(BlockState state, Level level, BlockPos pos) Play breaking sound(s) when the block is destroyed.default boolean
IClientFluidTypeExtensions.renderFluid
(FluidState fluidState, BlockAndTintGetter getter, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState) Called to allow rendering custom quads for a fluid during chunk meshing. -
Uses of BlockPos in net.neoforged.neoforge.client.model
Methods in net.neoforged.neoforge.client.model with parameters of type BlockPosModifier and TypeMethodDescriptionBakedModelWrapper.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) CompositeModel.Baked.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) -
Uses of BlockPos in net.neoforged.neoforge.client.model.data
Fields in net.neoforged.neoforge.client.model.data with type parameters of type BlockPosMethods in net.neoforged.neoforge.client.model.data with parameters of type BlockPosModifier and TypeMethodDescriptionstatic ModelData
MultipartModelData.create
(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> selectors, BitSet bitset, BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData tileModelData) Retrieves model data for a block at the given position. -
Uses of BlockPos in net.neoforged.neoforge.client.model.lighting
Fields in net.neoforged.neoforge.client.model.lighting declared as BlockPosMethods in net.neoforged.neoforge.client.model.lighting with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
FlatQuadLighter.computeLightingAt
(BlockAndTintGetter level, BlockPos pos, BlockState state) protected abstract void
QuadLighter.computeLightingAt
(BlockAndTintGetter level, BlockPos pos, BlockState state) protected void
SmoothQuadLighter.computeLightingAt
(BlockAndTintGetter level, BlockPos origin, BlockState state) static boolean
LightPipelineAwareModelBlockRenderer.render
(VertexConsumer vertexConsumer, QuadLighter lighter, BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) final void
QuadLighter.setup
(BlockAndTintGetter level, BlockPos pos, BlockState state) Set up this lighter to light quads of the given block.void
LightPipelineAwareModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
LightPipelineAwareModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) -
Uses of BlockPos in net.neoforged.neoforge.client.textures
Methods in net.neoforged.neoforge.client.textures with parameters of type BlockPosModifier and TypeMethodDescriptionstatic TextureAtlasSprite[]
FluidSpriteCache.getFluidSprites
(BlockAndTintGetter level, BlockPos pos, FluidState fluid) Returns an array holding the still sprite, the flowing sprite and the overlay sprite (if specified, otherwise null) of the given fluid at the given position. -
Uses of BlockPos in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return types with arguments of type BlockPosModifier and TypeMethodDescriptionCommonHooks.isLivingOnLadder
(BlockState state, Level level, BlockPos pos, LivingEntity entity) Methods in net.neoforged.neoforge.common with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
CommonHooks.canCropGrow
(Level level, BlockPos pos, BlockState state, boolean def) Checks if a crop can grow by firingCropGrowEvent.Pre
.static boolean
CommonHooks.canEntityDestroy
(Level level, BlockPos pos, LivingEntity entity) boolean
SpecialPlantable.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.static BlockEvent.BreakEvent
CommonHooks.fireBlockBreak
(Level level, GameType gameType, ServerPlayer player, BlockPos pos, BlockState state) FiresBlockEvent.BreakEvent
, pre-emptively canceling the event based on the conditions that will cause the block to not be broken anyway.static void
CommonHooks.fireCropGrowPost
(Level level, BlockPos pos, BlockState state) static void
CommonHooks.handleBlockDrops
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEvent
when block drops (items and experience) are determined.static boolean
FarmlandWaterManager.hasBlockWaterTicket
(LevelReader level, BlockPos pos) Tests if a block is in a region that is watered by blocks.CommonHooks.isLivingOnLadder
(BlockState state, Level level, BlockPos pos, LivingEntity entity) default boolean
IShearable.isShearable
(@Nullable Player player, ItemStack item, Level level, BlockPos pos) Checks if this object can be sheared.CommonHooks.onClientMineHold
(Player player, BlockPos pos, Direction face) static boolean
CommonHooks.onFarmlandTrample
(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity) CommonHooks.onLeftClickBlock
(Player player, BlockPos pos, Direction face, ServerboundPlayerActionPacket.Action action) static int
CommonHooks.onNoteChange
(Level level, BlockPos pos, BlockState state, int old, int _new) CommonHooks.onRightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) Shears this object.void
SpecialPlantable.spawnPlantAtPosition
(ItemStack itemStack, LevelAccessor level, BlockPos pos, @Nullable Direction direction) Spawns the plant with the given direction attachment point at location.default void
IShearable.spawnShearedDrop
(Level level, BlockPos pos, ItemStack drop) Performs the logic used to drop a shear result into the world at the correct position and with the proper movement.static boolean
CommonHooks.tryDispenseShearsHarvestBlock
(BlockSource source, ItemStack stack, ServerLevel level, BlockPos pos) Attempts to modify target block usingItemAbilities.SHEARS_HARVEST
inShearsDispenseItemBehavior
, consistent with vanilla beehive harvest behavior (also controlled byItemAbilities.SHEARS_HARVEST
). -
Uses of BlockPos in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return BlockPosModifier and TypeMethodDescriptiondefault BlockPos
IAbstractMinecartExtension.getCurrentRailPosition()
Internal, returns the current spot to look for the attached rail.Methods in net.neoforged.neoforge.common.extensions with parameters of type BlockPosModifier and TypeMethodDescriptiondefault boolean
IBlockExtension.addLandingEffects
(BlockState state1, ServerLevel level, BlockPos pos, BlockState state2, LivingEntity entity, int numberOfParticles) Allows a block to override the standard EntityLivingBase.updateFallState particles, this is a server side method that spawns particles with WorldServer.spawnParticle.default boolean
IBlockStateExtension.addLandingEffects
(ServerLevel level, BlockPos pos, BlockState state2, LivingEntity entity, int numberOfParticles) Allows a block to override the standard EntityLivingBase.updateFallState particles, this is a server side method that spawns particles with WorldServer.spawnParticle.default boolean
IBlockExtension.addRunningEffects
(BlockState state, Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default boolean
IBlockStateExtension.addRunningEffects
(Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default boolean
IBlockExtension.canBeHydrated
(BlockState state, BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default boolean
IBlockStateExtension.canBeHydrated
(BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default boolean
IBlockExtension.canConnectRedstone
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Direction direction) Whether redstone dust should visually connect to this block on a given sidedefault boolean
IFluidExtension.canConvertToSource
(FluidState state, Level level, BlockPos pos) Returns whether the fluid can create a source.default boolean
IFluidStateExtension.canConvertToSource
(Level level, BlockPos pos) Returns whether the fluid can create a source.default boolean
IBlockExtension.canDropFromExplosion
(BlockState state, BlockGetter level, BlockPos pos, Explosion explosion) Determines if this block should drop loot when exploded.default boolean
IBlockStateExtension.canDropFromExplosion
(BlockGetter level, BlockPos pos, Explosion explosion) Determines if this block should drop loot when exploded.default boolean
IBlockExtension.canEntityDestroy
(BlockState state, BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default boolean
IBlockStateExtension.canEntityDestroy
(BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default boolean
IFluidExtension.canExtinguish
(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.default boolean
IFluidStateExtension.canExtinguish
(BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.default boolean
IBlockExtension.canHarvestBlock
(BlockState state, BlockGetter level, BlockPos pos, Player player) Determines if the player can harvest this block, obtaining it's drops when the block is destroyed.default boolean
IBlockStateExtension.canHarvestBlock
(BlockGetter level, BlockPos pos, Player player) Determines if the player can harvest this block, obtaining it's drops when the block is destroyed.default boolean
IFluidExtension.canHydrate
(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.default boolean
IFluidStateExtension.canHydrate
(BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.default boolean
IBaseRailBlockExtension.canMakeSlopes
(BlockState state, BlockGetter level, BlockPos pos) Returns true if the rail can make up and down slopes.default boolean
IBlockStateExtension.canRedstoneConnectTo
(BlockGetter level, BlockPos pos, @Nullable Direction direction) Whether redstone dust should visually connect to this block on a side.default TriState
IBlockExtension.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 TriState
IBlockStateExtension.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.boolean
IEntityExtension.canTrample
(BlockState state, BlockPos pos, float fallDistance) default boolean
IBlockExtension.collisionExtendsVertically
(BlockState state, BlockGetter level, BlockPos pos, Entity collidingEntity) Determines if this block's collision box should be treated as though it can extend above its block space.default boolean
IBlockStateExtension.collisionExtendsVertically
(BlockGetter level, BlockPos pos, Entity collidingEntity) Determines if this block's collision box should be treated as though it can extend above its block space.default boolean
IItemExtension.doesSneakBypassUse
(ItemStack stack, LevelReader level, BlockPos pos, Player player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default boolean
IItemStackExtension.doesSneakBypassUse
(LevelReader level, BlockPos pos, Player player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default boolean
IDispensibleContainerItemExtension.emptyContents
(@Nullable Player player, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful.default @Nullable PathType
IBlockExtension.getAdjacentBlockPathType
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent block to a pathfinding entity.default @Nullable PathType
IBlockStateExtension.getAdjacentBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent block to a pathfinding entity.default @Nullable PathType
IFluidExtension.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable PathType
IFluidStateExtension.getAdjacentBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default BlockState
IBlockExtension.getAppearance
(BlockState state, BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockState
that this block reports to look like on the given side, for querying by other mods.default BlockState
IBlockStateExtension.getAppearance
(BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockState
that this state reports to look like on the given side for querying by other mods.default @Nullable AuxiliaryLightManager
IBlockGetterExtension.getAuxLightManager
(BlockPos pos) Get theAuxiliaryLightManager
of the chunk containing the givenBlockPos
.default @Nullable Integer
IBlockExtension.getBeaconColorMultiplier
(BlockState state, LevelReader level, BlockPos pos, BlockPos beaconPos) default @Nullable Integer
IBlockStateExtension.getBeaconColorMultiplier
(LevelReader level, BlockPos pos, BlockPos beacon) default Direction
IBlockExtension.getBedDirection
(BlockState state, LevelReader level, BlockPos pos) Returns the direction of the block.default Direction
IBlockStateExtension.getBedDirection
(LevelReader level, BlockPos pos) Returns the direction of the block.default @Nullable PathType
IBlockExtension.getBlockPathType
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable PathType
IBlockStateExtension.getBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable PathType
IFluidExtension.getBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.default @Nullable PathType
IFluidStateExtension.getBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.default <T,
C extends @Nullable Object>
TILevelExtension.getCapability
(BlockCapability<T, C> cap, BlockPos pos, C context) Retrieve a block capability.default <T,
C extends @Nullable Object>
TILevelExtension.getCapability
(BlockCapability<T, C> cap, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) Retrieve a block capability.default <T> T
ILevelExtension.getCapability
(BlockCapability<T, @Nullable Void> cap, BlockPos pos) Retrieve a block capability with no context.default <T> T
ILevelExtension.getCapability
(BlockCapability<T, @Nullable Void> cap, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity) Retrieve a block capability with no context.default ItemStack
IBlockExtension.getCloneItemStack
(BlockState state, HitResult target, LevelReader level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IBlockStateExtension.getCloneItemStack
(HitResult target, LevelReader level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault float
IBlockExtension.getEnchantPowerBonus
(BlockState state, LevelReader level, BlockPos pos) Determines the amount of enchanting power this block can provide to an enchanting table.default float
IBlockStateExtension.getEnchantPowerBonus
(LevelReader level, BlockPos pos) Determines the amount of enchanting power this block can provide to an enchanting table.default int
IBlockExtension.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default int
IBlockStateExtension.getExpDrop
(LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default float
IBlockExtension.getExplosionResistance
(BlockState state, BlockGetter level, BlockPos pos, Explosion explosion) Location sensitive version of getExplosionResistancedefault float
IBlockStateExtension.getExplosionResistance
(BlockGetter level, BlockPos pos, Explosion explosion) Location sensitive version of getExplosionResistancedefault float
IFluidExtension.getExplosionResistance
(FluidState state, BlockGetter level, BlockPos pos, Explosion explosion) Returns the explosion resistance of the fluid.default float
IFluidStateExtension.getExplosionResistance
(BlockGetter level, BlockPos pos, Explosion explosion) Returns the explosion resistance of the fluid.default int
IBlockExtension.getFireSpreadSpeed
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Called when fire is updating on a neighbor block.default int
IBlockStateExtension.getFireSpreadSpeed
(BlockGetter level, BlockPos pos, Direction face) Called when fire is updating on a neighbor block.default int
IBlockExtension.getFlammability
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Chance that fire will spread and consume this block.default int
IBlockStateExtension.getFlammability
(BlockGetter level, BlockPos pos, Direction face) Chance that fire will spread and consume this block.default float
IBlockExtension.getFriction
(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default float
IBlockStateExtension.getFriction
(LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default int
IBlockExtension.getLightEmission
(BlockState state, BlockGetter level, BlockPos pos) Get a light value for this block, taking into account the given state and coordinates, normal ranges are between 0 and 15default int
IBlockStateExtension.getLightEmission
(BlockGetter level, BlockPos pos) Get a light value for this block, taking into account the given state and coordinates, normal ranges are between 0 and 15default MapColor
IBlockExtension.getMapColor
(BlockState state, BlockGetter level, BlockPos pos, MapColor defaultColor) Returns theMapColor
shown on the map.default ModelData
IBlockGetterExtension.getModelData
(BlockPos pos) Retrieves model data for a block at the given position.IBaseRailBlockExtension.getRailDirection
(BlockState state, BlockGetter level, BlockPos pos, @Nullable AbstractMinecart cart) Return the rail's direction.default float
IBaseRailBlockExtension.getRailMaxSpeed
(BlockState state, Level level, BlockPos pos, AbstractMinecart cart) Returns the max speed of the rail at the specified position.default Optional
<ServerPlayer.RespawnPosAngle> IBlockExtension.getRespawnPosition
(BlockState state, EntityType<?> type, LevelReader levelReader, BlockPos pos, float orientation) Returns the position that the entity is moved to upon respawning at this block.default Optional
<ServerPlayer.RespawnPosAngle> IBlockStateExtension.getRespawnPosition
(EntityType<?> type, LevelReader level, BlockPos pos, float orientation) Returns the position that the entity is moved to upon respawning at this block.default SoundType
IBlockExtension.getSoundType
(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault SoundType
IBlockStateExtension.getSoundType
(LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault BlockState
IBlockExtension.getStateAtViewpoint
(BlockState state, BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeCamera.getBlockAtCamera()
).default BlockState
IBlockStateExtension.getStateAtViewpoint
(BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeCamera.getBlockAtCamera()
).default boolean
IBlockExtension.getWeakChanges
(BlockState state, LevelReader level, BlockPos pos) If this block should be notified of weak changes.default boolean
IBlockStateExtension.getWeakChanges
(LevelReader level, BlockPos pos) If this block should be notified of weak changes.default boolean
IBlockExtension.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 boolean
IBlockStateExtension.hidesNeighborFace
(BlockGetter level, BlockPos pos, BlockState neighborState, Direction dir) Whether this block hides the neighbors face pointed towards by the given direction.default void
ILevelExtension.invalidateCapabilities
(BlockPos pos) Notify all listeners that the capabilities at a specific position might have changed.default boolean
ILevelReaderExtension.isAreaLoaded
(BlockPos center, int range) default boolean
IBlockExtension.isBed
(BlockState state, BlockGetter level, BlockPos pos, LivingEntity sleeper) Determines if this block is classified as a bed, replacinginstanceof BedBlock
checks.default boolean
IBlockStateExtension.isBed
(BlockGetter level, BlockPos pos, LivingEntity sleeper) Determines if this block is classified as a bed, replacinginstanceof BedBlock
checks.default boolean
IBlockExtension.isBurning
(BlockState state, BlockGetter level, BlockPos pos) Determines if this block should set fire and deal fire damage to entities coming into contact with it.default boolean
IBlockStateExtension.isBurning
(BlockGetter level, BlockPos pos) Determines if this block should set fire and deal fire damage to entities coming into contact with it.default boolean
IBlockExtension.isConduitFrame
(BlockState state, LevelReader level, BlockPos pos, BlockPos conduit) Determines if this block can be used as the frame of a conduit.default boolean
IBlockStateExtension.isConduitFrame
(LevelReader level, BlockPos pos, BlockPos conduit) Determines if this block can be used as the frame of a conduit.default boolean
IBlockExtension.isFertile
(BlockState state, BlockGetter level, BlockPos pos) Checks if this soil is fertile, typically this means that growth rates of plants on this soil will be slightly sped up.default boolean
IBlockStateExtension.isFertile
(BlockGetter level, BlockPos pos) Checks if this soil is fertile, typically this means that growth rates of plants on this soil will be slightly sped up.default boolean
IBlockExtension.isFireSource
(BlockState state, LevelReader level, BlockPos pos, Direction direction) Currently only called by fire when it is on top of this block.default boolean
IBlockStateExtension.isFireSource
(LevelReader level, BlockPos pos, Direction side) Currently only called by fire when it is on top of this block.default boolean
IBlockExtension.isFlammable
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Called when fire is updating, checks if a block face can catch fire.default boolean
IBlockStateExtension.isFlammable
(BlockGetter level, BlockPos pos, Direction face) Called when fire is updating, checks if a block face can catch fire.boolean
IBaseRailBlockExtension.isFlexibleRail
(BlockState state, BlockGetter level, BlockPos pos) Return true if the rail can make corners.default boolean
IBlockExtension.isLadder
(BlockState state, LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity can use this block to 'climb' like a ladder.default boolean
IBlockStateExtension.isLadder
(LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity can use this block to 'climb' like a ladder.default boolean
IBlockExtension.isPortalFrame
(BlockState state, BlockGetter level, BlockPos pos) Determines if this block can be used as part of a frame of a nether portal.default boolean
IBlockStateExtension.isPortalFrame
(BlockGetter level, BlockPos pos) Determines if this block can be used as part of a frame of a nether portal.default boolean
IBlockExtension.isScaffolding
(BlockState state, LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity handles movement on this block like scaffolding.default boolean
IBlockExtension.makesOpenTrapdoorAboveClimbable
(BlockState state, LevelReader level, BlockPos pos, BlockState trapdoorState) Checks if this block makes an open trapdoor above it climbable.void
IAbstractMinecartExtension.moveMinecartOnRail
(BlockPos pos) Moved to allow overrides.default void
IBlockExtension.onBlockExploded
(BlockState state, Level level, BlockPos pos, Explosion explosion) Called when the block is destroyed by an explosion.default void
IBlockStateExtension.onBlockExploded
(Level level, BlockPos pos, Explosion explosion) Called when the block is destroyed by an explosion.default void
IBlockExtension.onBlockStateChange
(LevelReader level, BlockPos pos, BlockState oldState, BlockState newState) Called after theBlockState
at the givenBlockPos
was changed and neighbors were updated.default void
IBlockStateExtension.onBlockStateChange
(LevelReader level, BlockPos pos, BlockState oldState) Called after theBlockState
at the givenBlockPos
was changed and neighbors were updated.default void
IBlockExtension.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 void
IBlockStateExtension.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 boolean
IBlockExtension.onDestroyedByPlayer
(BlockState state, Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IBlockStateExtension.onDestroyedByPlayer
(Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default void
IBlockExtension.onDestroyedByPushReaction
(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY
.default void
IBlockStateExtension.onDestroyedByPushReaction
(Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY
.default void
IBaseRailBlockExtension.onMinecartPass
(BlockState state, Level level, BlockPos pos, AbstractMinecart cart) This function is called by any minecart that passes over this rail.default void
IBlockExtension.onNeighborChange
(BlockState state, LevelReader level, BlockPos pos, BlockPos neighbor) Called when a block entity on a side of this block changes, is created, or is destroyed.default void
IBlockStateExtension.onNeighborChange
(LevelReader level, BlockPos pos, BlockPos neighbor) Called when a block entity on a side of this block changes, is created, or is destroyed.default boolean
IBlockExtension.onTreeGrow
(BlockState state, LevelReader level, BiConsumer<BlockPos, BlockState> placeFunction, RandomSource randomSource, BlockPos pos, TreeConfiguration config) Called when a tree grows on top of this block and tries to set it to dirt by the trunk placer.default boolean
IBlockStateExtension.onTreeGrow
(LevelReader level, BiConsumer<BlockPos, BlockState> placeFunction, RandomSource randomSource, BlockPos pos, TreeConfiguration config) Called when a tree grows on top of this block and tries to set it to dirt by the trunk placer.default OptionalInt
IPlayerExtension.openMenu
(MenuProvider menuProvider, BlockPos pos) Request to open a GUI on the client, from the serverdefault BlockState
IBlockExtension.rotate
(BlockState state, LevelAccessor level, BlockPos pos, Rotation direction) default BlockState
IBlockStateExtension.rotate
(LevelAccessor level, BlockPos pos, Rotation direction) default void
IBlockExtension.setBedOccupied
(BlockState state, Level level, BlockPos pos, LivingEntity sleeper, boolean occupied) Called when a user either starts or stops sleeping in the bed.default void
IBlockStateExtension.setBedOccupied
(Level level, BlockPos pos, LivingEntity sleeper, boolean occupied) Called when a user either starts or stops sleeping in the bed.default boolean
IBlockExtension.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 boolean
IBlockStateExtension.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 boolean
IBlockExtension.shouldDisplayFluidOverlay
(BlockState state, BlockAndTintGetter level, BlockPos pos, FluidState fluidState) Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid.default boolean
IBlockStateExtension.shouldDisplayFluidOverlay
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState) Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid.Method parameters in net.neoforged.neoforge.common.extensions with type arguments of type BlockPosModifier and TypeMethodDescriptiondefault boolean
IBlockExtension.onTreeGrow
(BlockState state, LevelReader level, BiConsumer<BlockPos, BlockState> placeFunction, RandomSource randomSource, BlockPos pos, TreeConfiguration config) Called when a tree grows on top of this block and tries to set it to dirt by the trunk placer.default boolean
IBlockStateExtension.onTreeGrow
(LevelReader level, BiConsumer<BlockPos, BlockState> placeFunction, RandomSource randomSource, BlockPos pos, TreeConfiguration config) Called when a tree grows on top of this block and tries to set it to dirt by the trunk placer. -
Uses of BlockPos in net.neoforged.neoforge.common.util
Fields in net.neoforged.neoforge.common.util declared as BlockPosMethods in net.neoforged.neoforge.common.util that return BlockPosMethods in net.neoforged.neoforge.common.util with parameters of type BlockPosModifier and TypeMethodDescriptionstatic BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos) Creates a new snapshot with the default block flags (and Block#UPDATE_CLIENTS
.static BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, int flag) Creates a new snapshot of the data at the given position.private static @Nullable CompoundTag
BlockSnapshot.getBlockEntityTag
(LevelAccessor level, BlockPos pos) Checks for a block entity at a given position, and saves it to NBT with full metadata if it exists.boolean
BlockSnapshot.restoreBlockEntity
(LevelAccessor level, BlockPos pos) Loads the storedBlockEntity
data if one exists at the given position.boolean
BlockSnapshot.restoreToLocation
(LevelAccessor level, BlockPos pos, int flags) Restores this block snapshot to the target level and position with the specified flags.Constructors in net.neoforged.neoforge.common.util with parameters of type BlockPosModifierConstructorDescriptionprivate
BlockSnapshot
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, BlockState state, @Nullable CompoundTag nbt, int flags) -
Uses of BlockPos in net.neoforged.neoforge.common.world
Fields in net.neoforged.neoforge.common.world with type parameters of type BlockPosMethods in net.neoforged.neoforge.common.world with parameters of type BlockPosModifier and TypeMethodDescriptionint
AuxiliaryLightManager.getLightAt
(BlockPos pos) Returns the light value at the given position or 0 if none is present.int
LevelChunkAuxiliaryLightManager.getLightAt
(BlockPos pos) default void
AuxiliaryLightManager.removeLightAt
(BlockPos pos) Remove the light value at the given positionvoid
AuxiliaryLightManager.setLightAt
(BlockPos pos, int value) Set the light value at the given position to the given valuevoid
LevelChunkAuxiliaryLightManager.setLightAt
(BlockPos pos, int value) Method parameters in net.neoforged.neoforge.common.world with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
LevelChunkAuxiliaryLightManager.handleLightDataSync
(Map<BlockPos, Byte> lights) -
Uses of BlockPos in net.neoforged.neoforge.common.world.chunk
Fields in net.neoforged.neoforge.common.world.chunk with type parameters of type BlockPosModifier and TypeFieldDescription(package private) static final TicketType
<ForcedChunkManager.TicketOwner<BlockPos>> ForcedChunkManager.BLOCK
(package private) static final TicketType
<ForcedChunkManager.TicketOwner<BlockPos>> ForcedChunkManager.BLOCK_TICKING
TicketHelper.blockTickets
Methods in net.neoforged.neoforge.common.world.chunk that return BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
ForcedChunkManager.readBlockPos
(CompoundTag compoundtag) Methods in net.neoforged.neoforge.common.world.chunk that return types with arguments of type BlockPosModifier and TypeMethodDescriptionTicketHelper.getBlockTickets()
Returns all "BLOCK" tickets this controller had registered and which block positions are forcing which chunks.Methods in net.neoforged.neoforge.common.world.chunk with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
TicketController.forceChunk
(ServerLevel level, BlockPos owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded with the "owner" of the ticket being a given block position.void
TicketHelper.removeAllTickets
(BlockPos owner) Removes all tickets that a given block was responsible for; both ticking and not ticking.void
TicketHelper.removeTicket
(BlockPos owner, long chunk, boolean ticking) Removes the ticket for the given chunk that a given block was responsible for.static CompoundTag
ForcedChunkManager.writeBlockPos
(BlockPos blockpos) Method parameters in net.neoforged.neoforge.common.world.chunk with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate static void
ForcedChunkManager.readBlockForcedChunks
(ResourceLocation controllerId, long chunkPos, CompoundTag modEntry, String key, Map<ForcedChunkManager.TicketOwner<BlockPos>, it.unimi.dsi.fastutil.longs.LongSet> blockForcedChunks) Reads the forge block forced chunks.static void
ForcedChunkManager.readModForcedChunks
(CompoundTag nbt, ForcedChunkManager.TicketTracker<BlockPos> blockForcedChunks, ForcedChunkManager.TicketTracker<UUID> entityForcedChunks) Reads the mod forced chunks from the NBT compound.static void
ForcedChunkManager.writeModForcedChunks
(CompoundTag nbt, ForcedChunkManager.TicketTracker<BlockPos> blockForcedChunks, ForcedChunkManager.TicketTracker<UUID> entityForcedChunks) Writes the mod forced chunks into the NBT compound.Constructor parameters in net.neoforged.neoforge.common.world.chunk with type arguments of type BlockPosModifierConstructorDescription(package private)
TicketHelper
(ForcedChunksSavedData saveData, ResourceLocation controllerId, Map<BlockPos, TicketSet> blockTickets, Map<UUID, TicketSet> entityTickets) -
Uses of BlockPos in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
EventHooks.canCreateFluidSource
(Level level, BlockPos pos, BlockState state) Checks if a fluid is allowed to create a fluid source.static com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> EventHooks.canPlayerStartSleeping
(ServerPlayer player, BlockPos pos, com.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> vanillaResult) static boolean
EventHooks.checkSpawnPlacements
(EntityType<?> entityType, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random, boolean defaultResult) static boolean
EventHooks.doPlayerHarvestCheck
(Player player, BlockState state, BlockGetter level, BlockPos pos) static BlockGrowFeatureEvent
EventHooks.fireBlockGrowFeature
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> holder) Fires theBlockGrowFeatureEvent
and returns the event object.static BonemealEvent
EventHooks.fireBonemealEvent
(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) Called when bone meal (or equivalent) is used on a block.static BlockState
EventHooks.fireFluidPlaceBlockEvent
(LevelAccessor level, BlockPos pos, BlockPos liquidPos, BlockState state) static PlayerSpawnPhantomsEvent
EventHooks.firePlayerSpawnPhantoms
(ServerPlayer player, ServerLevel level, BlockPos pos) Called fromPhantomSpawner.tick(net.minecraft.server.level.ServerLevel, boolean, boolean)
just before the spawn conditions for phantoms are evaluated.static float
EventHooks.getBreakSpeed
(Player player, BlockState state, float original, BlockPos pos) EventHooks.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) static int
EventHooks.onEnchantmentLevelSet
(Level level, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int enchantmentLevel) static boolean
EventHooks.onEntityDestroyBlock
(LivingEntity entity, BlockPos pos, BlockState state) EventHooks.onNeighborNotify
(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) static void
EventHooks.onPistonMovePost
(Level level, BlockPos pos, Direction direction, boolean extending) static boolean
EventHooks.onPistonMovePre
(Level level, BlockPos pos, Direction direction, boolean extending) static boolean
EventHooks.onPlayerSpawnSet
(Player player, ResourceKey<Level> levelKey, BlockPos pos, boolean forced) static Optional
<PortalShape> EventHooks.onTrySpawnPortal
(LevelAccessor level, BlockPos pos, Optional<PortalShape> size) Method parameters in net.neoforged.neoforge.event with type arguments of type BlockPosModifier and TypeMethodDescriptionEventHooks.alterGround
(TreeDecorator.Context ctx, List<BlockPos> positions, AlterGroundEvent.StateProvider provider) Fires theAlterGroundEvent
and retrieves the resultingAlterGroundEvent.StateProvider
. -
Uses of BlockPos in net.neoforged.neoforge.event.enchanting
Fields in net.neoforged.neoforge.event.enchanting declared as BlockPosMethods in net.neoforged.neoforge.event.enchanting that return BlockPosModifier and TypeMethodDescriptionEnchantmentLevelSetEvent.getPos()
Get the pos of the enchantment tableConstructors in net.neoforged.neoforge.event.enchanting with parameters of type BlockPosModifierConstructorDescriptionEnchantmentLevelSetEvent
(Level level, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int enchantLevel) -
Uses of BlockPos in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
LivingDestroyBlockEvent.pos
private final BlockPos
MobSpawnEvent.SpawnPlacementCheck.pos
Methods in net.neoforged.neoforge.event.entity.living that return BlockPosModifier and TypeMethodDescriptionLivingDestroyBlockEvent.getPos()
MobSpawnEvent.SpawnPlacementCheck.getPos()
Constructors in net.neoforged.neoforge.event.entity.living with parameters of type BlockPosModifierConstructorDescriptionLivingDestroyBlockEvent
(LivingEntity entity, BlockPos pos, BlockState state) SpawnPlacementCheck
(EntityType<?> entityType, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random, boolean defaultResult) Internal. -
Uses of BlockPos in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as BlockPosModifier and TypeFieldDescriptionprivate static final BlockPos
PlayerEvent.BreakSpeed.LEGACY_UNKNOWN
private final @Nullable BlockPos
PlayerSetSpawnEvent.newSpawn
private final BlockPos
BonemealEvent.pos
private final BlockPos
CanPlayerSleepEvent.pos
private final BlockPos
PlayerEvent.HarvestCheck.pos
private final BlockPos
PlayerInteractEvent.pos
private final BlockPos
UseItemOnBlockEvent.pos
Fields in net.neoforged.neoforge.event.entity.player with type parameters of type BlockPosMethods in net.neoforged.neoforge.event.entity.player that return BlockPosModifier and TypeMethodDescription@Nullable BlockPos
PlayerSetSpawnEvent.getNewSpawn()
The new spawn position, or null if the spawn position is being reset.BonemealEvent.getPos()
Returns the position of the bone mealed block.CanPlayerSleepEvent.getPos()
PlayerEvent.HarvestCheck.getPos()
PlayerInteractEvent.getPos()
If the interaction was on an entity, will be a BlockPos centered on the entity.UseItemOnBlockEvent.getPos()
If the interaction was on an entity, will be a BlockPos centered on the entity.Methods in net.neoforged.neoforge.event.entity.player that return types with arguments of type BlockPosModifier and TypeMethodDescriptionPlayerEvent.BreakSpeed.getPosition()
CanContinueSleepingEvent.getSleepingPos()
Returns the sleeping position of the sleeping entity.Methods in net.neoforged.neoforge.event.entity.player with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
PlayerSpawnPhantomsEvent.shouldSpawnPhantoms
(ServerLevel level, BlockPos pos) Checks if a spawn attempt should be made by checking the current result and evaluating the vanilla conditions if necessary.Constructors in net.neoforged.neoforge.event.entity.player with parameters of type BlockPosModifierConstructorDescriptionBonemealEvent
(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) BreakSpeed
(Player player, BlockState state, float original, @Nullable BlockPos pos) CanPlayerSleepEvent
(ServerPlayer player, BlockPos pos, @Nullable Player.BedSleepingProblem problem) HarvestCheck
(Player player, BlockState state, BlockGetter level, BlockPos pos, boolean success) LeftClickBlock
(Player player, BlockPos pos, Direction face, PlayerInteractEvent.LeftClickBlock.Action action) protected
PlayerInteractEvent
(Player player, InteractionHand hand, BlockPos pos, @Nullable Direction face) PlayerSetSpawnEvent
(Player player, ResourceKey<Level> spawnLevel, @Nullable BlockPos newSpawn, boolean forced) RightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) -
Uses of BlockPos in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BlockEvent.FluidPlaceBlockEvent.liquidPos
private final BlockPos
BlockEvent.pos
private final BlockPos
BlockGrowFeatureEvent.pos
private final BlockPos
LevelEvent.PotentialSpawns.pos
Fields in net.neoforged.neoforge.event.level with type parameters of type BlockPosMethods in net.neoforged.neoforge.event.level that return BlockPosModifier and TypeMethodDescriptionPistonEvent.getFaceOffsetPos()
Helper method that gets the piston position offset by its facingBlockEvent.FluidPlaceBlockEvent.getLiquidPos()
BlockEvent.getPos()
BlockGrowFeatureEvent.getPos()
Returns the coordinates of the sapling attempting to grow.LevelEvent.PotentialSpawns.getPos()
Returns the block position where the chosen mob will be spawned..Methods in net.neoforged.neoforge.event.level that return types with arguments of type BlockPosModifier and TypeMethodDescriptionExplosionEvent.Detonate.getAffectedBlocks()
return the list of blocks affected by the explosion.ExplosionKnockbackEvent.getAffectedBlocks()
return the list of blocks affected by the explosion.AlterGroundEvent.getPositions()
The list of positions that are considered roots is different depending on if the context has roots, logs, or both.Methods in net.neoforged.neoforge.event.level with parameters of type BlockPosModifier and TypeMethodDescriptionAlterGroundEvent.StateProvider.getState
(RandomSource random, BlockPos state) Gets the BlockState that will be placed at the passed position.Constructors in net.neoforged.neoforge.event.level with parameters of type BlockPosModifierConstructorDescriptionBlockDropsEvent
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Constructs a new BlockDropsEventBlockEvent
(LevelAccessor level, BlockPos pos, BlockState state) BlockGrowFeatureEvent
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> feature) BreakEvent
(Level level, BlockPos pos, BlockState state, Player player) Change
(Level world, BlockPos pos, BlockState state, int oldNote, int newNote) FarmlandTrampleEvent
(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity) FluidPlaceBlockEvent
(LevelAccessor level, BlockPos pos, BlockPos liquidPos, BlockState state) NeighborNotifyEvent
(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) protected
NoteBlockEvent
(Level world, BlockPos pos, BlockState state, int note) PistonEvent
(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Play
(Level world, BlockPos pos, BlockState state, int note, NoteBlockInstrument instrument) PortalSpawnEvent
(LevelAccessor level, BlockPos pos, BlockState state, PortalShape size) Post
(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) PotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) Pre
(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Constructor parameters in net.neoforged.neoforge.event.level with type arguments of type BlockPosModifierConstructorDescriptionAlterGroundEvent
(TreeDecorator.Context ctx, List<BlockPos> positions, AlterGroundEvent.StateProvider provider) -
Uses of BlockPos in net.neoforged.neoforge.event.level.block
Constructors in net.neoforged.neoforge.event.level.block with parameters of type BlockPosModifierConstructorDescriptionCreateFluidSourceEvent
(Level level, BlockPos pos, BlockState state) CropGrowEvent
(Level level, BlockPos pos, BlockState state) Post
(Level level, BlockPos pos, BlockState original, BlockState state) Pre
(Level level, BlockPos pos, BlockState state) -
Uses of BlockPos in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
BaseFlowingFluid.beforeDestroyingBlock
(LevelAccessor worldIn, BlockPos pos, BlockState state) final boolean
FluidType.canBePlacedInLevel
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns whether the fluid can be placed in the level.final boolean
FluidType.canBePlacedInLevel
(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns whether the fluid can be placed in the level.protected boolean
BaseFlowingFluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) boolean
BaseFlowingFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) boolean
FluidType.canConvertToSource
(FluidState state, LevelReader reader, BlockPos pos) Returns whether the fluid can create a source.boolean
FluidType.canExtinguish
(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.boolean
FluidType.canHydrate
(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.static boolean
FluidInteractionRegistry.canInteract
(Level level, BlockPos pos) Performs all potential fluid interactions at a given position.static void
FluidUtil.destroyBlockOnFluidPlacement
(Level level, BlockPos pos) Destroys a block when a fluid is placed in the same position.@Nullable PathType
FluidType.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.FluidType.getBlockForFluidState
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns the associatedBlockState
for aFluidState
.@Nullable PathType
FluidType.getBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.int
FluidType.getDensity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the density of the fluid.private static IFluidHandler
FluidUtil.getFluidBlockHandler
(Fluid fluid, Level level, BlockPos pos) Internal method for getting a fluid block handler for placing a fluid.static Optional
<IFluidHandler> FluidUtil.getFluidHandler
(Level level, BlockPos blockPos, @Nullable Direction side) Helper method to get an IFluidHandler for at a block position.int
FluidType.getLightLevel
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the light level emitted by the fluid.@Nullable SoundEvent
FluidType.getSound
(@Nullable Player player, BlockGetter getter, BlockPos pos, SoundAction action) Returns a sound to play when a certain action is performed at a position.FluidType.getStateForPlacement
(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns theFluidState
when aFluidStack
is trying to place it.int
FluidType.getTemperature
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the temperature of the fluid.int
FluidType.getViscosity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the viscosity, or thickness, of the fluid.boolean
FluidType.handleCauldronDrip
(Fluid fluid, Level level, BlockPos cauldronPos) Returns whether a fluid above a pointed dripstone block can successfully fill a cauldron below.void
FluidInteractionRegistry.FluidInteraction.interact
(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Performs the interaction between the source and the surrounding data.static boolean
FluidUtil.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.boolean
FluidType.isVaporizedOnPlacement
(Level level, BlockPos pos, FluidStack stack) Determines if this fluid should be vaporized when placed into a level.void
FluidType.onVaporize
(@Nullable Player player, Level level, BlockPos pos, FluidStack stack) Performs an action when a fluid can be vaporized when placed into a level.boolean
FluidInteractionRegistry.HasFluidInteraction.test
(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Returns whether the interaction can occur.static FluidActionResult
FluidUtil.tryPickUpFluid
(ItemStack emptyContainer, @Nullable Player playerIn, Level level, BlockPos pos, Direction side) Attempts to pick up a fluid in the level and put it in an empty container item.static FluidActionResult
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) static boolean
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Tries to place a fluid resource into the level as a block and drains the fluidSource. -
Uses of BlockPos in net.neoforged.neoforge.fluids.capability.wrappers
Fields in net.neoforged.neoforge.fluids.capability.wrappers declared as BlockPosModifier and TypeFieldDescriptionprotected final BlockPos
BlockWrapper.blockPos
protected final BlockPos
BlockWrapper.LiquidContainerBlockWrapper.blockPos
protected final BlockPos
BucketPickupHandlerWrapper.blockPos
private final BlockPos
CauldronWrapper.pos
Constructors in net.neoforged.neoforge.fluids.capability.wrappers with parameters of type BlockPosModifierConstructorDescriptionBlockWrapper
(BlockState state, Level world, BlockPos blockPos) BucketPickupHandlerWrapper
(Player player, BucketPickup bucketPickupHandler, Level world, BlockPos blockPos) CauldronWrapper
(Level level, BlockPos pos) LiquidContainerBlockWrapper
(LiquidBlockContainer liquidContainer, Level world, BlockPos blockPos) -
Uses of BlockPos in net.neoforged.neoforge.gametest
Methods in net.neoforged.neoforge.gametest that return BlockPosMethods in net.neoforged.neoforge.gametest that return types with arguments of type BlockPos -
Uses of BlockPos in net.neoforged.neoforge.items
Methods in net.neoforged.neoforge.items with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
VanillaInventoryCodeHooks.dropperInsertHook
(Level level, BlockPos pos, DispenserBlockEntity dropper, int slot, ItemStack stack) Copied from BlockDropper#dispense and added capability supportprivate static Optional
<org.apache.commons.lang3.tuple.Pair<IItemHandler, Object>> VanillaInventoryCodeHooks.getAttachedItemHandler
(Level level, BlockPos pos, Direction direction) static ItemStack
VanillaInventoryCodeHooks.insertCrafterOutput
(Level level, BlockPos pos, CrafterBlockEntity crafterBlockEntity, ItemStack stack) Added capability support for the Crafter dispensing the result -
Uses of BlockPos in net.neoforged.neoforge.network.payload
Fields in net.neoforged.neoforge.network.payload with type parameters of type BlockPosModifier and TypeFieldDescriptionAuxiliaryLightDataPayload.entries
The field for theentries
record component.Methods in net.neoforged.neoforge.network.payload that return types with arguments of type BlockPosModifier and TypeMethodDescriptionAuxiliaryLightDataPayload.entries()
Returns the value of theentries
record component.Constructor parameters in net.neoforged.neoforge.network.payload with type arguments of type BlockPosModifierConstructorDescriptionAuxiliaryLightDataPayload
(ChunkPos pos, Map<BlockPos, Byte> entries) Creates an instance of aAuxiliaryLightDataPayload
record class. -
Uses of BlockPos in net.neoforged.neoforge.server.command
Methods in net.neoforged.neoforge.server.command with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static int
GenerateCommand.executeGeneration
(CommandSourceStack source, BlockPos pos, int chunkRadius, boolean progressBar)