Uses of Class
net.minecraft.util.math.BlockPos
Packages that use BlockPos
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
The basic AI system for Minecraft living entities.
The Named Binary Tag (NBT) data format.
-
Uses of BlockPos in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
PlacedBlockCriterion.Conditions.matches
(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack) boolean
ItemCriterion.Conditions.test
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack) void
ItemCriterion.trigger
(ServerPlayerEntity player, BlockPos pos, ItemStack stack) void
PlacedBlockCriterion.trigger
(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack) void
UsedEnderEyeCriterion.trigger
(ServerPlayerEntity player, BlockPos strongholdPos) -
Uses of BlockPos in net.minecraft.block
Fields in net.minecraft.block declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
ComposterBlock.ComposterInventory.pos
private final BlockPos
ComposterBlock.FullComposterInventory.pos
private final BlockPos
LichenGrower.GrowPos.pos
The field for thepos
record component.private final BlockPos
PointedDripstoneBlock.DrippingFluid.pos
The field for thepos
record component.private final BlockPos
RailPlacementHelper.pos
(package private) final BlockPos
RedstoneTorchBlock.BurnoutEntry.pos
Fields in net.minecraft.block with type parameters of type BlockPosModifier and TypeFieldDescriptionEnchantingTableBlock.BOOKSHELF_OFFSETS
RailPlacementHelper.neighbors
Methods in net.minecraft.block that return BlockPosModifier and TypeMethodDescriptionPointedDripstoneBlock.getCauldronPos
(World world, BlockPos pos, Fluid fluid) PointedDripstoneBlock.getDripPos
(World world, BlockPos pos) PointedDripstoneBlock.getTipPos
(BlockState state, WorldAccess world, BlockPos pos, int range, boolean allowMerged) LichenGrower.GrowPos.pos()
Returns the value of thepos
record component.PointedDripstoneBlock.DrippingFluid.pos()
Returns the value of thepos
record component.Methods in net.minecraft.block that return types with arguments of type BlockPosModifier and TypeMethodDescriptionRailPlacementHelper.getNeighbors()
AbstractPlantBlock.getStemHeadPos
(BlockView world, BlockPos pos, Block block) PointedDripstoneBlock.getSupportingPos
(World world, BlockPos pos, BlockState state, int range) PointedDripstoneBlock.searchInDirection
(WorldAccess world, BlockPos pos, Direction.AxisDirection direction, BiPredicate<BlockPos, BlockState> continuePredicate, Predicate<BlockState> stopPredicate, int range) Methods in net.minecraft.block with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
SpongeBlock.absorbWater
(World world, BlockPos pos) private void
BeehiveBlock.addHoneyParticle
(World world, BlockPos pos, VoxelShape shape, double height) private void
RedstoneWireBlock.addPoweredParticles
(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) (package private) static BlockState
ComposterBlock.addToComposter
(BlockState state, WorldAccess world, BlockPos pos, ItemStack item) void
BeehiveBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) Called server-side when the block is broken by the player using correct tool.void
Block.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) Called server-side when the block is broken by the player using correct tool.void
IceBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) Called server-side when the block is broken by the player using correct tool.void
TallPlantBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) Called server-side when the block is broken by the player using correct tool.void
TurtleEggBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) Called server-side when the block is broken by the player using correct tool.boolean
AbstractBlock.AbstractBlockState.allowsSpawning
(BlockView world, BlockPos pos, EntityType<?> type) private static boolean
Blocks.always
(BlockState state, BlockView world, BlockPos pos) A shortcut to always returntrue
a context predicate, used assettings.solidBlock(Blocks::always)
.private static Boolean
Blocks.always
(BlockState state, BlockView world, BlockPos pos, EntityType<?> type) A shortcut to always returntrue
in a typed context predicate with anEntityType
, used likesettings.allowSpawning(Blocks::always)
.private void
BeehiveBlock.angerNearbyBees
(World world, BlockPos pos) void
CropBlock.applyGrowth
(World world, BlockPos pos, BlockState state) private boolean
FireBlock.areBlocksAroundFlammable
(BlockView world, BlockPos pos) static void
SculkCatalystBlock.bloom
(ServerWorld world, BlockPos pos, BlockState state, Random random) private void
TurtleEggBlock.breakEgg
(World world, BlockPos pos, BlockState state) private void
FrogspawnBlock.breakWithoutDrop
(World world, BlockPos pos) float
AbstractBlock.AbstractBlockState.calcBlockBreakingDelta
(PlayerEntity player, BlockView world, BlockPos pos) float
AbstractBlock.calcBlockBreakingDelta
(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) Deprecated.float
BambooBlock.calcBlockBreakingDelta
(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) float
BambooSaplingBlock.calcBlockBreakingDelta
(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) static int
ScaffoldingBlock.calculateDistance
(BlockView world, BlockPos pos) private int
ComparatorBlock.calculateOutputSignal
(World world, BlockPos pos, BlockState state) static boolean
EnchantingTableBlock.canAccessBookshelf
(World world, BlockPos tablePos, BlockPos bookshelfOffset) private boolean
RailPlacementHelper.canConnect
(BlockPos pos) boolean
CarvedPumpkinBlock.canDispense
(WorldView world, BlockPos pos) static boolean
WitherSkullBlock.canDispense
(World world, BlockPos pos, ItemStack stack) private static boolean
PointedDripstoneBlock.canDripThrough
(BlockView world, BlockPos pos, BlockState state) Returns whether it can drip through the blockblock
atpos
.boolean
FluidFillable.canFillWithFluid
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
KelpBlock.canFillWithFluid
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
KelpPlantBlock.canFillWithFluid
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
SeagrassBlock.canFillWithFluid
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
SlabBlock.canFillWithFluid
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
TallSeagrassBlock.canFillWithFluid
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) default boolean
Waterloggable.canFillWithFluid
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) boolean
AbstractPlantBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
AbstractPlantStemBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
AzaleaBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BambooBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BambooSaplingBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BigDripleafBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BigDripleafStemBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CaveVinesBodyBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CaveVinesHeadBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CocoaBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CropBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
FernBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
Fertilizable.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
FungusBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
GlowLichenBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
GrassBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
LichenGrower.canGrow
(BlockState state, BlockView world, BlockPos pos, Direction direction) boolean
LichenGrower.GrowChecker.canGrow
(BlockView world, BlockPos pos, LichenGrower.GrowPos growPos) boolean
LichenGrower.LichenGrowChecker.canGrow
(BlockView world, BlockPos pos, LichenGrower.GrowPos growPos) protected boolean
LichenGrower.LichenGrowChecker.canGrow
(BlockView world, BlockPos pos, BlockPos growPos, Direction direction, BlockState state) boolean
MangroveLeavesBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
MossBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
MushroomPlantBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
NetherrackBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
NyliumBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) private static boolean
PointedDripstoneBlock.canGrow
(BlockState state, ServerWorld world, BlockPos pos) boolean
PropaguleBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
RootedDirtBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SaplingBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SculkVeinBlock.SculkVeinGrowChecker.canGrow
(BlockView world, BlockPos pos, BlockPos growPos, Direction direction, BlockState state) boolean
SeagrassBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SeaPickleBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SmallDripleafBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
StemBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SweetBerryBushBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
TallFlowerBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) private boolean
protected static boolean
BigDripleafBlock.canGrowInto
(HeightLimitView world, BlockPos pos, BlockState state) static boolean
MultifaceGrowthBlock.canGrowOn
(BlockView world, Direction direction, BlockPos pos, BlockState state) boolean
MultifaceGrowthBlock.canGrowWithDirection
(BlockView world, BlockState state, BlockPos pos, Direction direction) private static boolean
private boolean
private static boolean
ShulkerBoxBlock.canOpen
(BlockState state, World world, BlockPos pos, ShulkerBoxBlockEntity entity) boolean
AbstractBlock.AbstractBlockState.canPathfindThrough
(BlockView world, BlockPos pos, NavigationType type) boolean
AbstractBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) boolean
AbstractCauldronBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
AbstractSkullBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
AnvilBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
BambooBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
BedBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
BellBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
BrewingStandBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
CactusBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
CakeBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
CampfireBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
CandleCakeBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
ChainBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
ChestBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
ChorusPlantBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
CocoaBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
ComposterBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
ConduitBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
DirtPathBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
DoorBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
DragonEggBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
EnchantingTableBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
EnderChestBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
EndPortalFrameBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
FarmlandBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
FenceBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
FenceGateBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
FlowerPotBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
FluidBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
GrindstoneBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
HopperBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
HorizontalConnectingBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
LanternBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
LecternBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
MudBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
PistonBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
PistonExtensionBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
PistonHeadBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
PlantBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
PointedDripstoneBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
PowderSnowBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
RespawnAnchorBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
RodBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
SculkSensorBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
SeaPickleBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
SlabBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
SnowBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
SoulSandBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
StairsBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
StonecutterBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
TrapdoorBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
WallBlock.canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.boolean
AbstractBlock.AbstractBlockState.canPlaceAt
(WorldView world, BlockPos pos) boolean
AbstractBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Deprecated.static boolean
AbstractFireBlock.canPlaceAt
(World world, BlockPos pos, Direction direction) boolean
AbstractPlantPartBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
AbstractPressurePlateBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
AbstractRailBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
AbstractRedstoneGateBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
AmethystClusterBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
BambooBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
BambooSaplingBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
BannerBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
BellBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
BigDripleafBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
BigDripleafStemBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
BubbleColumnBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CactusBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CakeBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CandleBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CandleCakeBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CarpetBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
ChorusFlowerBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
ChorusPlantBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CocoaBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CoralParentBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
CropBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
DeadCoralWallFanBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
DirtPathBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
DoorBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
FarmlandBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
FireBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
FrogspawnBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
GrindstoneBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
HangingRootsBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
LadderBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
LanternBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
MultifaceGrowthBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
MushroomPlantBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
PistonHeadBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
PlantBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
PointedDripstoneBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
PropaguleBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
RedstoneWireBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
ScaffoldingBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
SeaPickleBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
SignBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
SmallDripleafBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
SnowBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
SoulFireBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
SporeBlossomBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
SugarCaneBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
TallPlantBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
TallSeagrassBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
TorchBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
TripwireHookBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
VineBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
WallBannerBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
WallMountedBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.static boolean
WallMountedBlock.canPlaceAt
(WorldView world, BlockPos pos, Direction direction) boolean
WallRedstoneTorchBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
WallSignBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.boolean
WallTorchBlock.canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.private static boolean
PointedDripstoneBlock.canPlaceAtWithDirection
(WorldView world, BlockPos pos, Direction direction) private boolean
LadderBlock.canPlaceOn
(BlockView world, BlockPos pos, Direction side) protected boolean
AttachedStemBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
AzaleaBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
CropBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
DeadBushBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
FungusBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
LilyPadBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
MushroomPlantBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
NetherWartBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
PlantBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
PropaguleBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
RootsBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
SeagrassBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
SeaPickleBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
SmallDripleafBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
SproutsBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
StemBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
TallSeagrassBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) protected boolean
WitherRoseBlock.canPlantOnTop
(BlockState floor, BlockView world, BlockPos pos) private boolean
RedstoneWireBlock.canRunOnTop
(BlockView world, BlockPos pos, BlockState floor) private static Boolean
Blocks.canSpawnOnLeaves
(BlockState state, BlockView world, BlockPos pos, EntityType<?> type) private static boolean
SpreadableBlock.canSpread
(BlockState state, WorldView world, BlockPos pos) private static boolean
SpreadableBlock.canSurvive
(BlockState state, WorldView world, BlockPos pos) private static void
BigDripleafBlock.changeTilt
(BlockState state, World world, BlockPos pos, Tilt tilt) private void
BigDripleafBlock.changeTilt
(BlockState state, World world, BlockPos pos, Tilt tilt, @Nullable SoundEvent sound) static void
RespawnAnchorBlock.charge
(World world, BlockPos pos, BlockState state) protected void
CoralParentBlock.checkLivingConditions
(BlockState state, WorldAccess world, BlockPos pos) static BlockState
ComposterBlock.compost
(BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) private boolean
SculkVeinBlock.convertToBlock
(SculkSpreadManager spreadManager, WorldAccess world, BlockPos pos, Random random) protected int
BambooBlock.countBambooAbove
(BlockView world, BlockPos pos) protected int
BambooBlock.countBambooBelow
(BlockView world, BlockPos pos) AbstractBannerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.AbstractSignBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.AbstractSkullBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BarrelBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BeaconBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BedBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BeehiveBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BellBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BlastFurnaceBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BlockEntityProvider.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BrewingStandBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.CampfireBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ChestBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.CommandBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ComparatorBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ConduitBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.DaylightDetectorBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.DispenserBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.DropperBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EnchantingTableBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EnderChestBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EndGatewayBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EndPortalBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.FurnaceBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.HopperBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.JigsawBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.JukeboxBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.LecternBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.PistonExtensionBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SculkCatalystBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SculkSensorBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SculkShriekerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ShulkerBoxBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SmokerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SpawnerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.StructureBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.TrappedChestBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.static BlockEntity
PistonExtensionBlock.createBlockEntityPiston
(BlockPos pos, BlockState state, BlockState pushedBlock, Direction facing, boolean extending, boolean source) static void
PointedDripstoneBlock.createParticle
(World world, BlockPos pos, BlockState state) private static void
PointedDripstoneBlock.createParticle
(World world, BlockPos pos, BlockState state, Fluid fluid) AbstractBlock.AbstractBlockState.createScreenHandlerFactory
(World world, BlockPos pos) AbstractBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Deprecated.AnvilBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.BlockWithEntity.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.CartographyTableBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.ChestBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.CraftingTableBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.EnchantingTableBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.GrindstoneBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.LecternBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.LoomBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.SmithingTableBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.StonecutterBlock.createScreenHandlerFactory
(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornull
if screen handler cannot be created.static void
LeveledCauldronBlock.decrementFluidLevel
(BlockState state, World world, BlockPos pos) private void
protected void
DispenserBlock.dispense
(ServerWorld world, BlockPos pos) protected void
DropperBlock.dispense
(ServerWorld world, BlockPos pos) static void
PointedDripstoneBlock.dripTick
(BlockState state, ServerWorld world, BlockPos pos, float dripChance) private void
LecternBlock.dropBook
(BlockState state, World world, BlockPos pos) protected void
Block.dropExperience
(ServerWorld world, BlockPos pos, int size) Drops experience orbs.protected void
Block.dropExperienceWhenMined
(ServerWorld world, BlockPos pos, ItemStack tool, IntProvider experience) Drops experience orbs.static void
BeehiveBlock.dropHoneycomb
(World world, BlockPos pos) static void
static void
static void
Block.dropStacks
(BlockState state, WorldAccess world, BlockPos pos, @Nullable BlockEntity blockEntity) static void
Block.dropStacks
(BlockState state, World world, BlockPos pos) static void
Block.dropStacks
(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack stack) (package private) static BlockState
ComposterBlock.emptyComposter
(BlockState state, WorldAccess world, BlockPos pos) static BlockState
ComposterBlock.emptyFullComposter
(BlockState state, World world, BlockPos pos) private void
CommandBlock.execute
(BlockState state, World world, BlockPos pos, CommandBlockExecutor executor, boolean hasCommand) private static void
CommandBlock.executeCommandChain
(World world, BlockPos pos, Direction facing) private void
RespawnAnchorBlock.explode
(BlockState state, World world, BlockPos explodedPos) static void
AbstractCandleBlock.extinguish
(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) static void
CampfireBlock.extinguish
(@Nullable Entity entity, WorldAccess world, BlockPos pos, BlockState state) protected void
AbstractCauldronBlock.fillFromDripstone
(BlockState state, World world, BlockPos pos, Fluid fluid) protected void
CauldronBlock.fillFromDripstone
(BlockState state, World world, BlockPos pos, Fluid fluid) protected void
LeveledCauldronBlock.fillFromDripstone
(BlockState state, World world, BlockPos pos, Fluid fluid) RespawnAnchorBlock.findRespawnPosition
(EntityType<?> entity, CollisionView world, BlockPos pos) RespawnAnchorBlock.findRespawnPosition
(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, float spawnAngle) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, int[][] possibleOffsets, boolean ignoreInvalidPos) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection) static void
ChorusFlowerBlock.generate
(WorldAccess world, BlockPos pos, Random random, int size) private static void
ChorusFlowerBlock.generate
(WorldAccess world, BlockPos pos, Random random, BlockPos rootPos, int size, int layer) void
SaplingBlock.generate
(ServerWorld world, BlockPos pos, BlockState state, Random random) float
AbstractBlock.AbstractBlockState.getAmbientOcclusionLightLevel
(BlockView world, BlockPos pos) float
AbstractBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) Deprecated.float
AbstractGlassBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) float
BarrierBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) float
LightBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) float
MudBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) float
SnowBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) float
SoulSandBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) float
StructureVoidBlock.getAmbientOcclusionLightLevel
(BlockState state, BlockView world, BlockPos pos) private @Nullable ItemFrameEntity
ComparatorBlock.getAttachedItemFrame
(World world, Direction facing, BlockPos pos) protected static float
CropBlock.getAvailableMoisture
(Block block, BlockView world, BlockPos pos) abstract DoubleBlockProperties.PropertySource<? extends ChestBlockEntity>
AbstractChestBlock.getBlockEntitySource
(BlockState state, World world, BlockPos pos, boolean ignoreBlocked) ChestBlock.getBlockEntitySource
(BlockState state, World world, BlockPos pos, boolean ignoreBlocked) EnderChestBlock.getBlockEntitySource
(BlockState state, World world, BlockPos pos, boolean ignoreBlocked) private int
FireBlock.getBurnChance
(WorldView world, BlockPos pos) AbstractBlock.AbstractBlockState.getCameraCollisionShape
(BlockView world, BlockPos pos, ShapeContext context) AbstractBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractGlassBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FenceBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) MudBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PaneBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PowderSnowBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SnowBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SoulSandBlock.getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private Box
DetectorRailBlock.getCartDetectionBox
(BlockPos pos) private <T extends AbstractMinecartEntity>
List<T>DetectorRailBlock.getCarts
(World world, BlockPos pos, Class<T> entityClass, Predicate<Entity> entityPredicate) PointedDripstoneBlock.getCauldronPos
(World world, BlockPos pos, Fluid fluid) AbstractBlock.AbstractBlockState.getCollisionShape
(BlockView world, BlockPos pos) AbstractBlock.AbstractBlockState.getCollisionShape
(BlockView world, BlockPos pos, ShapeContext context) AbstractBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) Deprecated.Consider callingAbstractBlock.AbstractBlockState.getCollisionShape(BlockView, BlockPos, ShapeContext)
instead.BambooBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BellBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BigDripleafBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CactusBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ComposterBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FenceGateBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FluidBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) GrindstoneBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) HoneyBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) HorizontalConnectingBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) LecternBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) MudBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PistonExtensionBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PowderSnowBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ScaffoldingBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SculkShriekerBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SnowBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SoulSandBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) WallBlock.getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) int
AnvilBlock.getColor
(BlockState state, BlockView world, BlockPos pos) int
ConcretePowderBlock.getColor
(BlockState state, BlockView world, BlockPos pos) int
FallingBlock.getColor
(BlockState state, BlockView world, BlockPos pos) int
GravelBlock.getColor
(BlockState state, BlockView world, BlockPos pos) int
SandBlock.getColor
(BlockState state, BlockView world, BlockPos pos) int
AbstractBlock.AbstractBlockState.getComparatorOutput
(World world, BlockPos pos) int
AbstractBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Deprecated.int
AbstractFurnaceBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
BarrelBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
BeehiveBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
BrewingStandBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
CakeBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
CandleCakeBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
ChestBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
CommandBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
ComposterBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
DetectorRailBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
DispenserBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
EndPortalFrameBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
HopperBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
JukeboxBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
LavaCauldronBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
LecternBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
LeveledCauldronBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
RespawnAnchorBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
SculkSensorBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.int
ShulkerBoxBlock.getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.AbstractBlock.AbstractBlockState.getCullingFace
(BlockView world, BlockPos pos, Direction direction) AbstractBlock.AbstractBlockState.getCullingShape
(BlockView world, BlockPos pos) AbstractBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) Deprecated.FenceBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) FenceGateBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) LecternBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) PointedDripstoneBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) PowderSnowBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) SculkShriekerBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) SkullBlock.getCullingShape
(BlockState state, BlockView world, BlockPos pos) private static int
SculkBlock.getDecay
(SculkSpreadManager spreadManager, BlockPos cursorPos, BlockPos catalystPos, int charge) private BlockState
RedstoneWireBlock.getDefaultWireState
(BlockView world, BlockState state, BlockPos pos) BedBlock.getDirection
(BlockView world, BlockPos pos) PointedDripstoneBlock.getDirectionToPlaceAt
(WorldView world, BlockPos pos, Direction direction) static Fluid
PointedDripstoneBlock.getDripFluid
(ServerWorld world, BlockPos pos) PointedDripstoneBlock.getDripPos
(World world, BlockPos pos) Block.getDroppedStacks
(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity) Block.getDroppedStacks
(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) private BlockState
SculkBlock.getExtraBlockState
(WorldAccess world, BlockPos pos, Random random, boolean allowShrieker) private static Optional<PointedDripstoneBlock.DrippingFluid>
PointedDripstoneBlock.getFluid
(World world, BlockPos pos, BlockState state) LichenGrower.getGrowPos
(BlockState state, BlockView world, BlockPos pos, Direction oldDirection, Direction newDirection, LichenGrower.GrowPosPredicate predicate) abstract LichenGrower.GrowPos
LichenGrower.GrowType.getGrowPos
(BlockPos pos, Direction newDirection, Direction oldDirection) float
AbstractBlock.AbstractBlockState.getHardness
(BlockView world, BlockPos pos) protected int
AbstractRedstoneGateBlock.getInputLevel
(WorldView world, BlockPos pos, Direction dir) ChestBlock.getInventory
(ChestBlock block, BlockState state, World world, BlockPos pos, boolean ignoreBlocked) ComposterBlock.getInventory
(BlockState state, WorldAccess world, BlockPos pos) InventoryProvider.getInventory
(BlockState state, WorldAccess world, BlockPos pos) AbstractBlock.AbstractBlockState.getMapColor
(BlockView world, BlockPos pos) protected int
AbstractRedstoneGateBlock.getMaxInputLevelSides
(WorldView world, BlockPos pos, BlockState state) AbstractBlock.AbstractBlockState.getModelOffset
(BlockView world, BlockPos pos) private @Nullable RailPlacementHelper
RailPlacementHelper.getNeighboringRail
(BlockPos pos) int
AbstractBlock.AbstractBlockState.getOpacity
(BlockView world, BlockPos pos) int
AbstractBlock.getOpacity
(BlockState state, BlockView world, BlockPos pos) Deprecated.int
LeavesBlock.getOpacity
(BlockState state, BlockView world, BlockPos pos) int
TintedGlassBlock.getOpacity
(BlockState state, BlockView world, BlockPos pos) AbstractBlock.AbstractBlockState.getOutlineShape
(BlockView world, BlockPos pos) AbstractBlock.AbstractBlockState.getOutlineShape
(BlockView world, BlockPos pos, ShapeContext context) AbstractBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) Deprecated.Consider callingAbstractBlock.AbstractBlockState.getOutlineShape(BlockView, BlockPos, ShapeContext)
instead.AbstractButtonBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractCauldronBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractFireBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractPlantPartBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractPressurePlateBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractRailBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractRedstoneGateBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AbstractSignBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AirBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AmethystClusterBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AnvilBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AttachedStemBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) AzaleaBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BambooBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BambooSaplingBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BannerBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BedBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BeetrootsBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BellBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BigDripleafBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BigDripleafStemBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BrewingStandBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) BubbleColumnBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CactusBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CakeBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CampfireBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CandleBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CandleCakeBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CarpetBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CarrotsBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ChainBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ChestBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CocoaBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ComposterBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ConduitBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ConnectingBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CoralBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CoralParentBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) CropBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DaylightDetectorBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DeadBushBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DeadCoralBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DeadCoralFanBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DeadCoralWallFanBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DirtPathBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DoorBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) DragonEggBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) EnchantingTableBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) EnderChestBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) EndPortalBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) EndPortalFrameBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FarmlandBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FenceGateBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FernBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FireBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FlowerBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FlowerPotBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FluidBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FrogspawnBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) FungusBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) GrindstoneBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) HangingRootsBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) HopperBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) HorizontalConnectingBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) LadderBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) LanternBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) LecternBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) LeverBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) LightBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) LilyPadBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) MultifaceGrowthBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) MushroomPlantBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) NetherPortalBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) NetherWartBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PistonBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PistonExtensionBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PistonHeadBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PointedDripstoneBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PotatoesBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) PropaguleBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) RedstoneWireBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) RodBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) RootsBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SaplingBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ScaffoldingBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SculkSensorBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SeagrassBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SeaPickleBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) ShulkerBoxBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SkullBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SlabBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SmallDripleafBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SnowBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SporeBlossomBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SproutsBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) StairsBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) StemBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) StonecutterBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) StructureVoidBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SugarCaneBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) SweetBerryBushBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) TallSeagrassBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) TorchBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) TrapdoorBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) TripwireBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) TripwireHookBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) TurtleEggBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) VineBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) WallBannerBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) WallBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) WallRedstoneTorchBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) WallSignBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) WallSkullBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) WallTorchBlock.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected int
AbstractRedstoneGateBlock.getOutputLevel
(BlockView world, BlockPos pos, BlockState state) protected int
ComparatorBlock.getOutputLevel
(BlockView world, BlockPos pos, BlockState state) AbstractBannerBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.AbstractPlantBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.AttachedStemBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BambooSaplingBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BigDripleafStemBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.Block.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CandleCakeBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CaveVinesBodyBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CaveVinesHeadBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CropBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.EndGatewayBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.EndPortalBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.FlowerPotBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.FrostedIceBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.LightBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.NetherPortalBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.NetherWartBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.PistonExtensionBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.PistonHeadBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.ShulkerBoxBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.SpawnerBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.StemBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.SweetBerryBushBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.TallSeagrassBlock.getPickStack
(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.private @Nullable PistonBlockEntity
PistonExtensionBlock.getPistonBlockEntity
(BlockView world, BlockPos pos) private BlockState
VineBlock.getPlacementShape
(BlockState state, BlockView world, BlockPos pos) private BlockState
RedstoneWireBlock.getPlacementState
(BlockView world, BlockState state, BlockPos pos) protected int
AbstractRedstoneGateBlock.getPower
(World world, BlockPos pos, BlockState state) protected int
ComparatorBlock.getPower
(World world, BlockPos pos, BlockState state) AbstractBlock.AbstractBlockState.getRaycastShape
(BlockView world, BlockPos pos) AbstractBlock.getRaycastShape
(BlockState state, BlockView world, BlockPos pos) Deprecated.AbstractCauldronBlock.getRaycastShape
(BlockState state, BlockView world, BlockPos pos) ComposterBlock.getRaycastShape
(BlockState state, BlockView world, BlockPos pos) HopperBlock.getRaycastShape
(BlockState state, BlockView world, BlockPos pos) ScaffoldingBlock.getRaycastShape
(BlockState state, BlockView world, BlockPos pos) private int
RedstoneWireBlock.getReceivedRedstonePower
(World world, BlockPos pos) protected abstract int
AbstractPressurePlateBlock.getRedstoneOutput
(World world, BlockPos pos) protected int
PressurePlateBlock.getRedstoneOutput
(World world, BlockPos pos) protected int
WeightedPressurePlateBlock.getRedstoneOutput
(World world, BlockPos pos) private WireConnection
RedstoneWireBlock.getRenderConnectionType
(BlockView world, BlockPos pos, Direction direction) private WireConnection
RedstoneWireBlock.getRenderConnectionType
(BlockView world, BlockPos pos, Direction direction, boolean bool) long
AbstractBlock.AbstractBlockState.getRenderingSeed
(BlockPos pos) long
AbstractBlock.getRenderingSeed
(BlockState state, BlockPos pos) Deprecated.Consider callingAbstractBlock.AbstractBlockState.getRenderingSeed(net.minecraft.util.math.BlockPos)
instead.long
BedBlock.getRenderingSeed
(BlockState state, BlockPos pos) Returns the seed value for rendering.long
DoorBlock.getRenderingSeed
(BlockState state, BlockPos pos) Returns the seed value for rendering.long
TallPlantBlock.getRenderingSeed
(BlockState state, BlockPos pos) Returns the seed value for rendering.AbstractBlock.AbstractBlockState.getSidesShape
(BlockView world, BlockPos pos) AbstractBlock.getSidesShape
(BlockState state, BlockView world, BlockPos pos) Deprecated.LeavesBlock.getSidesShape
(BlockState state, BlockView world, BlockPos pos) MudBlock.getSidesShape
(BlockState state, BlockView world, BlockPos pos) SnowBlock.getSidesShape
(BlockState state, BlockView world, BlockPos pos) SoulSandBlock.getSidesShape
(BlockState state, BlockView world, BlockPos pos) private static StairShape
StairsBlock.getStairShape
(BlockState state, BlockView world, BlockPos pos) static BlockState
private BlockState
WallBlock.getStateAt
(WorldView world, BlockState state, BlockPos pos, BlockState aboveState) AbstractBlock.AbstractBlockState.getStateForNeighborUpdate
(Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AbstractBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) AbstractPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.AbstractPlantStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.AbstractPressurePlateBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.AbstractRailBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.AbstractSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.AmethystClusterBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.AttachedStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BambooBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BambooSaplingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BannerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BedBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BeehiveBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BellBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BigDripleafBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BigDripleafStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BubbleColumnBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CactusBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CakeBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CampfireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CandleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CandleCakeBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CarpetBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ChainBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ChestBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ChorusFlowerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ChorusPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CocoaBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ConcretePowderBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ConduitBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CoralBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CoralBlockBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CoralFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CoralParentBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.CoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.DeadCoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.DirtPathBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.DoorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.EnderChestBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FallingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FarmlandBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FenceBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FenceGateBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FlowerPotBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FluidBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.FrogspawnBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.GlowLichenBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.HangingRootsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.LadderBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.LanternBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.LeavesBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.LightBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.LightningRodBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.MagmaBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.MangroveRootsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.MultifaceGrowthBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.MushroomBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.NetherPortalBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.NoteBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ObserverBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.PaneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.PistonHeadBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.PlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.PointedDripstoneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.PropaguleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.RedstoneWireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.RepeaterBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ScaffoldingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SculkSensorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SculkShriekerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SculkVeinBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SeagrassBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SeaPickleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SlabBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SmallDripleafBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SnowBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SnowyBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SoulFireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SoulSandBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SporeBlossomBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.StairsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.SugarCaneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.TallPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.TorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.TrapdoorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.TripwireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.TripwireHookBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.VineBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.WallBannerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.WallBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.WallMountedBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.WallRedstoneTorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.WallSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.WallTorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FireBlock.getStateForPosition
(BlockView world, BlockPos pos) private BlockState
WallBlock.getStateWith
(WorldView world, BlockState state, BlockPos pos, BlockState aboveState, boolean north, boolean east, boolean south, boolean west) private BlockState
FireBlock.getStateWithAge
(WorldAccess world, BlockPos pos, int age) LichenGrower.GrowChecker.getStateWithDirection
(BlockState state, BlockView world, BlockPos pos, Direction direction) LichenGrower.LichenGrowChecker.getStateWithDirection
(BlockState state, BlockView world, BlockPos pos, Direction direction) private BlockState
WallBlock.getStateWithNeighbor
(WorldView world, BlockPos pos, BlockState state, BlockPos neighborPos, BlockState neighborState, Direction direction) AbstractPlantBlock.getStemHeadPos
(BlockView world, BlockPos pos, Block block) int
AbstractBlock.AbstractBlockState.getStrongRedstonePower
(BlockView world, BlockPos pos, Direction direction) int
AbstractBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractButtonBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
AbstractPressurePlateBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
AbstractRedstoneGateBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
DetectorRailBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
LecternBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
LeverBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
LightningRodBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
ObserverBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
RedstoneTorchBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
RedstoneWireBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
TrappedChestBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
TripwireHookBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.PointedDripstoneBlock.getSupportingPos
(World world, BlockPos pos, BlockState state, int range) private static Thickness
PointedDripstoneBlock.getThickness
(WorldView world, BlockPos pos, Direction direction, boolean tryMerge) PointedDripstoneBlock.getTipPos
(BlockState state, WorldAccess world, BlockPos pos, int range, boolean allowMerged) int
AbstractBlock.AbstractBlockState.getWeakRedstonePower
(BlockView world, BlockPos pos, Direction direction) int
AbstractBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractButtonBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
AbstractPressurePlateBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
AbstractRedstoneGateBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
DaylightDetectorBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
DetectorRailBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
LecternBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
LeverBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
LightningRodBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
ObserverBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
RedstoneBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
RedstoneTorchBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
RedstoneWireBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
SculkSensorBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
TargetBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
TrappedChestBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
TripwireHookBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
WallRedstoneTorchBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.void
AbstractPlantBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
AbstractPlantStemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
AzaleaBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BambooBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BambooSaplingBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) protected void
void
BigDripleafBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) static void
BigDripleafBlock.grow
(WorldAccess world, Random random, BlockPos pos, Direction direction) void
BigDripleafStemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CaveVinesBodyBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CaveVinesHeadBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) private void
void
CocoaBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CropBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FernBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
Fertilizable.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FungusBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
GlowLichenBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
GrassBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) long
LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, boolean markForPostProcessing) private long
LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Direction direction, boolean markForPostProcessing) LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Direction oldDirection, Direction newDirection, boolean markForPostProcessing) LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Direction direction, Random random, boolean markForPostProcessing) LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Random random) void
MangroveLeavesBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
MossBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
MushroomPlantBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
NetherrackBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
NyliumBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
PropaguleBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
RootedDirtBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SaplingBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SeagrassBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SeaPickleBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SmallDripleafBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
StemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SweetBerryBushBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
TallFlowerBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) private static void
PointedDripstoneBlock.growMerged
(BlockState state, WorldAccess world, BlockPos pos) private static boolean
ConcretePowderBlock.hardensOnAnySide
(BlockView world, BlockPos pos) private boolean
private static boolean
ChestBlock.hasBlockOnTop
(BlockView world, BlockPos pos) private static boolean
ChestBlock.hasCatOnTop
(WorldAccess world, BlockPos pos) private static boolean
boolean
AbstractBlock.AbstractBlockState.hasEmissiveLighting
(BlockView world, BlockPos pos) protected boolean
AbstractRedstoneGateBlock.hasPower
(World world, BlockPos pos, BlockState state) protected boolean
ComparatorBlock.hasPower
(World world, BlockPos pos, BlockState state) final boolean
AbstractBlock.AbstractBlockState.hasSolidTopSurface
(BlockView world, BlockPos pos, Entity entity) private static boolean
RespawnAnchorBlock.hasStillWater
(BlockPos pos, World world) static boolean
private void
FrogspawnBlock.hatch
(ServerWorld world, BlockPos pos, Random random) private boolean
FrostedIceBlock.increaseAge
(BlockState state, World world, BlockPos pos) boolean
EntityShapeContext.isAbove
(VoxelShape shape, BlockPos pos, boolean defaultValue) boolean
ShapeContext.isAbove
(VoxelShape shape, BlockPos pos, boolean defaultValue) private static boolean
BedBlock.isBedBelow
(BlockView world, BlockPos pos) private static boolean
RedstoneTorchBlock.isBurnedOut
(World world, BlockPos pos, boolean addNew) static boolean
ChestBlock.isChestBlocked
(WorldAccess world, BlockPos pos) boolean
AbstractBlock.isCullingShapeFullCube
(BlockState state, BlockView world, BlockPos pos) Deprecated.private static boolean
StairsBlock.isDifferentOrientation
(BlockState state, BlockView world, BlockPos pos, Direction dir) private static boolean
BigDripleafBlock.isEntityAbove
(BlockPos pos, Entity entity) protected boolean
AbstractCauldronBlock.isEntityTouchingFluid
(BlockState state, BlockPos pos, Entity entity) boolean
AbstractPlantBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
AbstractPlantStemBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
AzaleaBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
BambooBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
BambooSaplingBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
BigDripleafBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
BigDripleafStemBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
CaveVinesBodyBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
CaveVinesHeadBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
CocoaBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
CropBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
FernBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
Fertilizable.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
FungusBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
GlowLichenBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
GrassBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
MangroveLeavesBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
MossBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
MushroomPlantBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
NetherrackBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
NyliumBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
PropaguleBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
RootedDirtBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
SaplingBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
SeagrassBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
SeaPickleBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
SmallDripleafBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
StemBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
SweetBerryBushBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
TallFlowerBlock.isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
AbstractBlock.AbstractBlockState.isFullCube
(BlockView world, BlockPos pos) private static boolean
PointedDripstoneBlock.isHeldByPointedDripstone
(BlockState state, WorldView world, BlockPos pos) protected boolean
protected static boolean
CoralParentBlock.isInWater
(BlockState state, BlockView world, BlockPos pos) static boolean
CampfireBlock.isLitCampfireInRange
(World world, BlockPos pos) boolean
AbstractRedstoneGateBlock.isLocked
(WorldView world, BlockPos pos, BlockState state) boolean
RepeaterBlock.isLocked
(WorldView world, BlockPos pos, BlockState state) static boolean
PistonBlock.isMovable
(BlockState state, World world, BlockPos pos, Direction direction, boolean canBreak, Direction pistonDir) private boolean
RailPlacementHelper.isNeighbor
(BlockPos pos) boolean
AbstractBlock.AbstractBlockState.isOpaqueFullCube
(BlockView world, BlockPos pos) protected boolean
PoweredRailBlock.isPoweredByOtherRails
(World world, BlockPos pos, boolean bool, int distance, RailShape shape) protected boolean
PoweredRailBlock.isPoweredByOtherRails
(World world, BlockPos pos, BlockState state, boolean bool, int distance) static boolean
protected boolean
FireBlock.isRainingAround
(World world, BlockPos pos) static boolean
static boolean
TurtleEggBlock.isSandBelow
(BlockView world, BlockPos pos) boolean
AbstractBlock.isShapeFullCube
(BlockState state, BlockView world, BlockPos pos) Deprecated.boolean
BambooBlock.isShapeFullCube
(BlockState state, BlockView world, BlockPos pos) boolean
PointedDripstoneBlock.isShapeFullCube
(BlockState state, BlockView world, BlockPos pos) boolean
AbstractBlock.AbstractBlockState.isSideSolid
(BlockView world, BlockPos pos, Direction direction, SideShapeType shapeType) boolean
AbstractBlock.AbstractBlockState.isSideSolidFullSquare
(BlockView world, BlockPos pos, Direction direction) private boolean
boolean
AbstractBlock.AbstractBlockState.isSolidBlock
(BlockView world, BlockPos pos) final boolean
AbstractBlock.AbstractBlockState.isSolidSurface
(BlockView world, BlockPos pos, Entity entity, Direction direction) private static boolean
ChorusFlowerBlock.isSurroundedByAir
(WorldView world, BlockPos pos, @Nullable Direction exceptDirection) boolean
AbstractRedstoneGateBlock.isTargetNotAligned
(BlockView world, BlockPos pos, BlockState state) boolean
AbstractBlock.AbstractBlockState.isTranslucent
(BlockView world, BlockPos pos) boolean
AbstractGlassBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
BambooBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
BarrierBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
Block.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
ConnectingBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
FluidBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
GlowLichenBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
HorizontalConnectingBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
LightBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
PlantBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
TintedGlassBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
VineBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) boolean
WallBlock.isTranslucent
(BlockState state, BlockView world, BlockPos pos) private boolean
RailPlacementHelper.isVerticallyNearRail
(BlockPos pos) private static boolean
FarmlandBlock.isWaterNearby
(WorldView world, BlockPos pos) static boolean
DoorBlock.isWoodenDoor
(World world, BlockPos pos) private static void
RedstoneOreBlock.light
(BlockState state, World world, BlockPos pos) abstract boolean
SideShapeType.matches
(BlockState state, BlockView world, BlockPos pos, Direction direction) protected void
IceBlock.melt
(BlockState state, World world, BlockPos pos) default boolean
SculkSpreadable.method_41470
(WorldAccess world, BlockPos pos, Random random) private boolean
void
AbstractBlock.AbstractBlockState.neighborUpdate
(World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Deprecated.void
AbstractBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
AbstractRailBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
AbstractRedstoneGateBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
BellBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
BigDripleafBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
CommandBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
DispenserBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
DoorBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
FenceGateBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
FluidBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
FrostedIceBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
HopperBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
NoteBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
PistonBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
PistonHeadBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
RedstoneLampBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
RedstoneTorchBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
RedstoneWireBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
SpongeBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
StructureBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
TntBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.void
TrapdoorBlock.neighborUpdate
(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) Called when a neighboring block is updated.private static boolean
Blocks.never
(BlockState state, BlockView world, BlockPos pos) A shortcut to always returnfalse
a context predicate, used assettings.solidBlock(Blocks::never)
.private static Boolean
Blocks.never
(BlockState state, BlockView world, BlockPos pos, EntityType<?> type) A shortcut to always returnfalse
in a typed context predicate with anEntityType
, used likesettings.allowSpawning(Blocks::never)
.void
AbstractBlock.AbstractBlockState.onBlockAdded
(World world, BlockPos pos, BlockState state, boolean notify) void
AbstractBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Deprecated.void
AbstractFireBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
AbstractRailBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
AbstractRedstoneGateBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
CarvedPumpkinBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
ComposterBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
CoralBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
CoralFanBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
CoralWallFanBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
DetectorRailBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
FallingBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
FireBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
FluidBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
FrogspawnBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
HopperBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
LightningRodBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
MagmaBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
ObserverBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
PistonBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
RedstoneTorchBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
RedstoneWireBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
ScaffoldingBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
SculkSensorBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
SoulSandBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
SpongeBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
StairsBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
TargetBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
TntBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
TripwireBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
TurtleEggBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
WetSpongeBlock.onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.void
AbstractBlock.AbstractBlockState.onBlockBreakStart
(World world, BlockPos pos, PlayerEntity player) void
AbstractBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) void
DragonEggBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).void
NoteBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).void
RedstoneOreBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).void
StairsBlock.onBlockBreakStart
(BlockState state, World world, BlockPos pos, PlayerEntity player) Called when a player starts breaking the block (including when instant-mining).void
AbstractFireBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
BedBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
BeehiveBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
Block.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
DoorBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
PistonHeadBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
ShulkerBoxBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
TallPlantBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
TntBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.void
TripwireBlock.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.protected static void
TallPlantBlock.onBreakInCreative
(World world, BlockPos pos, BlockState state, PlayerEntity player) Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative.void
Block.onBroken
(WorldAccess world, BlockPos pos, BlockState state) Called after a player breaks a block and the block is removed from the world.void
PistonExtensionBlock.onBroken
(WorldAccess world, BlockPos pos, BlockState state) Called after a player breaks a block and the block is removed from the world.void
StairsBlock.onBroken
(WorldAccess world, BlockPos pos, BlockState state) Called after a player breaks a block and the block is removed from the world.void
Block.onDestroyedByExplosion
(World world, BlockPos pos, Explosion explosion) Called when this block is destroyed by an explosion.void
StairsBlock.onDestroyedByExplosion
(World world, BlockPos pos, Explosion explosion) Called when this block is destroyed by an explosion.void
TntBlock.onDestroyedByExplosion
(World world, BlockPos pos, Explosion explosion) Called when this block is destroyed by an explosion.void
AnvilBlock.onDestroyedOnLanding
(World world, BlockPos pos, FallingBlockEntity fallingBlockEntity) default void
LandingBlock.onDestroyedOnLanding
(World world, BlockPos pos, FallingBlockEntity fallingBlockEntity) void
PointedDripstoneBlock.onDestroyedOnLanding
(World world, BlockPos pos, FallingBlockEntity fallingBlockEntity) void
AbstractBlock.AbstractBlockState.onEntityCollision
(World world, BlockPos pos, Entity entity) void
AbstractBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Deprecated.void
AbstractButtonBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
AbstractFireBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
AbstractPressurePlateBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
BigDripleafBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
BubbleColumnBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
CactusBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
CampfireBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
CobwebBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
CropBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
DetectorRailBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
EndPortalBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
FrogspawnBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
HoneyBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
HopperBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
LavaCauldronBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
LeveledCauldronBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
LilyPadBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
NetherPortalBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
PowderSnowBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
SweetBerryBushBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
TripwireBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
WitherRoseBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.protected void
LeveledCauldronBlock.onFireCollision
(BlockState state, World world, BlockPos pos) protected void
PowderSnowCauldronBlock.onFireCollision
(BlockState state, World world, BlockPos pos) void
BedBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
Block.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
FarmlandBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
HayBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
HoneyBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
PointedDripstoneBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
PowderSnowBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
SlimeBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
TurtleEggBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.void
AnvilBlock.onLanding
(World world, BlockPos pos, BlockState fallingBlockState, BlockState currentStateInPos, FallingBlockEntity fallingBlockEntity) void
ConcretePowderBlock.onLanding
(World world, BlockPos pos, BlockState fallingBlockState, BlockState currentStateInPos, FallingBlockEntity fallingBlockEntity) default void
LandingBlock.onLanding
(World world, BlockPos pos, BlockState fallingBlockState, BlockState currentStateInPos, FallingBlockEntity fallingBlockEntity) void
AbstractBannerBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
AbstractFurnaceBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
AbstractRedstoneGateBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
BarrelBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
BeaconBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
BedBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
Block.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
BrewingStandBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
ChestBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
CommandBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
ConduitBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
DispenserBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
DoorBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
EnchantingTableBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
HopperBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
JukeboxBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
PistonBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
PlayerSkullBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
ShulkerBoxBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
SmallDripleafBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
StructureBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
TallPlantBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
TripwireHookBlock.onPlaced
(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
WallPlayerSkullBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
WallWitherSkullBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.void
WitherSkullBlock.onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.static void
WitherSkullBlock.onPlaced
(World world, BlockPos pos, SkullBlockEntity blockEntity) void
AbstractBlock.AbstractBlockState.onStacksDropped
(ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) void
AbstractBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) void
InfestedBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
OreBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
RedstoneOreBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SculkCatalystBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SculkSensorBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SculkShriekerBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
SpawnerBlock.onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.void
AbstractBlock.AbstractBlockState.onStateReplaced
(World world, BlockPos pos, BlockState state, boolean moved) void
AbstractBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Deprecated.void
AbstractButtonBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
AbstractFurnaceBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
AbstractPressurePlateBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
AbstractRailBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
AbstractRedstoneGateBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
BarrelBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
BrewingStandBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
CampfireBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
ChestBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
DispenserBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
HopperBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
JukeboxBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
LecternBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
LeverBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
LightningRodBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
ObserverBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
PistonExtensionBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
PistonHeadBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
RedstoneTorchBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
RedstoneWireBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
SculkSensorBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
SculkShriekerBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
ShulkerBoxBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
StairsBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
TripwireBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
TripwireHookBlock.onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.void
Block.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
MagmaBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
RedstoneOreBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
SculkSensorBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
SculkShriekerBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
SlimeBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
StairsBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
TurtleEggBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.boolean
AbstractBlock.AbstractBlockState.onSyncedBlockEvent
(World world, BlockPos pos, int type, int data) boolean
AbstractBlock.onSyncedBlockEvent
(BlockState state, World world, BlockPos pos, int type, int data) Deprecated.boolean
BlockWithEntity.onSyncedBlockEvent
(BlockState state, World world, BlockPos pos, int type, int data) Handles the block event, which is an event specific to a block with an integer ID and data.boolean
ComparatorBlock.onSyncedBlockEvent
(BlockState state, World world, BlockPos pos, int type, int data) Handles the block event, which is an event specific to a block with an integer ID and data.boolean
NoteBlock.onSyncedBlockEvent
(BlockState state, World world, BlockPos pos, int type, int data) Handles the block event, which is an event specific to a block with an integer ID and data.boolean
PistonBlock.onSyncedBlockEvent
(BlockState state, World world, BlockPos pos, int type, int data) Handles the block event, which is an event specific to a block with an integer ID and data.AbstractBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) AbstractButtonBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractCauldronBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractFurnaceBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractSignBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AnvilBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BarrelBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeaconBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BedBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeehiveBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BellBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BrewingStandBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CakeBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CampfireBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleCakeBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CartographyTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesBodyBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesHeadBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ChestBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CommandBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComparatorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComposterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CraftingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DaylightDetectorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DispenserBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DoorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DragonEggBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnchantingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnderChestBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceGateBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FletchingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FlowerPotBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.GrindstoneBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.HopperBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JigsawBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JukeboxBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LecternBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LeverBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LightBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LoomBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.NoteBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PistonExtensionBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PumpkinBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneOreBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneWireBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RepeaterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RespawnAnchorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ShulkerBoxBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SmithingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StairsBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StonecutterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StructureBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SweetBerryBushBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TntBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TrapdoorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.protected abstract void
AbstractFurnaceBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) protected void
BlastFurnaceBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) protected void
FurnaceBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) private void
LecternBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) protected void
SmokerBlock.openScreen
(World world, BlockPos pos, PlayerEntity player) static ActionResult
CaveVines.pickBerries
(BlockState state, World world, BlockPos pos) private static void
PointedDripstoneBlock.place
(WorldAccess world, BlockPos pos, Direction direction, Thickness thickness) static boolean
SculkVeinBlock.place
(WorldAccess world, BlockPos pos, BlockState state, Collection<Direction> directions) static void
TallPlantBlock.placeAt
(WorldAccess world, BlockState state, BlockPos pos, int flags) protected static boolean
BigDripleafBlock.placeDripleafAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.placeStemAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) protected void
AbstractButtonBlock.playClickSound
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered) protected abstract void
AbstractPressurePlateBlock.playDepressSound
(WorldAccess world, BlockPos pos) protected void
PressurePlateBlock.playDepressSound
(WorldAccess world, BlockPos pos) protected void
WeightedPressurePlateBlock.playDepressSound
(WorldAccess world, BlockPos pos) static void
ComposterBlock.playEffects
(World world, BlockPos pos, boolean fill) private void
FluidBlock.playExtinguishSound
(WorldAccess world, BlockPos pos) private void
private void
DoorBlock.playOpenCloseSound
(World world, BlockPos pos, boolean open) protected abstract void
AbstractPressurePlateBlock.playPressSound
(WorldAccess world, BlockPos pos) protected void
PressurePlateBlock.playPressSound
(WorldAccess world, BlockPos pos) protected void
WeightedPressurePlateBlock.playPressSound
(WorldAccess world, BlockPos pos) private void
TripwireHookBlock.playSound
(World world, BlockPos pos, boolean attached, boolean on, boolean detached, boolean off) private static void
BigDripleafBlock.playTiltSound
(World world, BlockPos pos, SoundEvent soundEvent) protected void
TrapdoorBlock.playToggleSound
(@Nullable PlayerEntity player, World world, BlockPos pos, boolean open) static BlockState
Block.postProcessState
(BlockState state, WorldAccess world, BlockPos pos) void
AbstractButtonBlock.powerOn
(BlockState state, World world, BlockPos pos) void
Block.precipitationTick
(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation) Called randomly server-side on blocks with unobstructed sky access when it is raining or snowing.void
CauldronBlock.precipitationTick
(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation) Called randomly server-side on blocks with unobstructed sky access when it is raining or snowing.void
LeveledCauldronBlock.precipitationTick
(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation) Called randomly server-side on blocks with unobstructed sky access when it is raining or snowing.final void
AbstractBlock.AbstractBlockState.prepare
(WorldAccess world, BlockPos pos, int flags) void
AbstractBlock.AbstractBlockState.prepare
(WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth) void
AbstractBlock.prepare
(BlockState state, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth) Deprecated.Consider callingAbstractBlock.AbstractBlockState.prepare(WorldAccess, BlockPos, int, int)
instead.void
RedstoneWireBlock.prepare
(BlockState state, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth) Called when the block state changes, before the neighbor-triggered state update on the original block, and after the neighbor-triggered state update on the replaced block.static void
private static void
TntBlock.primeTnt
(World world, BlockPos pos, @Nullable LivingEntity igniter) static BlockState
Block.pushEntitiesUpBeforeBlockChange
(BlockState from, BlockState to, WorldAccess world, BlockPos pos) Pushes entities standing on a block up before changing the block to taller ones.private static void
LecternBlock.putBook
(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) static boolean
LecternBlock.putBookIfAbsent
(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) void
AbstractCandleBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
AbstractFireBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BeehiveBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BlastFurnaceBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
Block.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BrewingStandBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BubbleColumnBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
CampfireBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
CryingObsidianBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EnchantingTableBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EnderChestBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EndGatewayBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EndPortalBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EndRodBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
FallingBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
FurnaceBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
LeavesBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
LeverBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
LightningRodBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
MyceliumBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
NetherPortalBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
PointedDripstoneBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RedstoneOreBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RedstoneTorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RedstoneWireBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RepeaterBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RespawnAnchorBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
SculkSensorBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
SmokerBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
SporeBlossomBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
StairsBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
TorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WallRedstoneTorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WallTorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WetSpongeBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WitherRoseBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
AbstractBlock.AbstractBlockState.randomTick
(ServerWorld world, BlockPos pos, Random random) void
AbstractBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) void
AbstractPlantStemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BambooBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BambooSaplingBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BeetrootsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BuddingAmethystBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CactusBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
ChorusFlowerBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CocoaBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CropBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FarmlandBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FluidBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FrostedIceBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
IceBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
LeavesBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
MagmaBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
MushroomPlantBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NetherPortalBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NetherWartBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NyliumBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableSlabBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableStairsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PointedDripstoneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PropaguleBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
RedstoneOreBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SaplingBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SnowBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SpreadableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
StairsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
StemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SugarCaneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SweetBerryBushBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
TurtleEggBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
VineBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.private boolean
FluidBlock.receiveNeighborFluids
(World world, BlockPos pos, BlockState state) private void
JukeboxBlock.removeRecord
(World world, BlockPos pos) static void
Block.replace
(BlockState state, BlockState newState, WorldAccess world, BlockPos pos, int flags) Replaces thestate
with thenewState
at thepos
.static void
Block.replace
(BlockState state, BlockState newState, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth) Replaces thestate
with thenewState
at thepos
.private static void
BigDripleafBlock.resetTilt
(BlockState state, World world, BlockPos pos) boolean
boolean
void
AbstractBlock.AbstractBlockState.scheduledTick
(ServerWorld world, BlockPos pos, Random random) void
AbstractBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) void
AbstractButtonBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractCauldronBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractPlantPartBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractPressurePlateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractRedstoneGateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BambooBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BarrelBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BigDripleafBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BigDripleafStemBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BubbleColumnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CactusBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChorusFlowerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChorusPlantBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CommandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ComparatorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ComposterBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralBlockBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralWallFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DetectorRailBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DirtPathBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DispenserBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
EnderChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FallingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FarmlandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FrogspawnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FrostedIceBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LeavesBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LecternBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LightningRodBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
MagmaBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ObserverBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
PointedDripstoneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
RedstoneLampBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
RedstoneTorchBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ScaffoldingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkCatalystBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkSensorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkShriekerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SoulSandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
StairsBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SugarCaneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TargetBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TripwireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TripwireHookBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.private void
ObserverBlock.scheduleTick
(WorldAccess world, BlockPos pos) PointedDripstoneBlock.searchInDirection
(WorldAccess world, BlockPos pos, Direction.AxisDirection direction, BiPredicate<BlockPos, BlockState> continuePredicate, Predicate<BlockState> stopPredicate, int range) static void
SculkSensorBlock.setActive
(@Nullable Entity entity, World world, BlockPos pos, BlockState state, int power) static void
SculkSensorBlock.setCooldown
(World world, BlockPos pos, BlockState state) static void
LecternBlock.setHasBook
(World world, BlockPos pos, BlockState state, boolean hasBook) private static void
AbstractCandleBlock.setLit
(WorldAccess world, BlockState state, BlockPos pos, boolean lit) void
DoorBlock.setOpen
(@Nullable Entity entity, World world, BlockState state, BlockPos pos, boolean open) private static void
TargetBlock.setPower
(WorldAccess world, BlockState state, int power, BlockPos pos, int delay) static void
LecternBlock.setPowered
(World world, BlockPos pos, BlockState state) private static void
LecternBlock.setPowered
(World world, BlockPos pos, BlockState state, boolean powered) void
LightningRodBlock.setPowered
(BlockState state, World world, BlockPos pos) void
JukeboxBlock.setRecord
(@Nullable Entity user, WorldAccess world, BlockPos pos, BlockState state, ItemStack stack) static void
FarmlandBlock.setToDirt
(BlockState state, World world, BlockPos pos) private boolean
ScaffoldingBlock.shouldBeBottom
(BlockView world, BlockPos pos, int distance) boolean
AbstractBlock.AbstractBlockState.shouldBlockVision
(BlockView world, BlockPos pos) static boolean
VineBlock.shouldConnectTo
(BlockView world, BlockPos pos, Direction direction) static boolean
Block.shouldDrawSide
(BlockState state, BlockView world, BlockPos pos, Direction side, BlockPos otherPos) private static boolean
AbstractRailBlock.shouldDropRail
(BlockPos pos, World world, RailShape shape) Checks if this rail should be dropped.private boolean
PistonBlock.shouldExtend
(World world, BlockPos pos, Direction pistonFace) private static boolean
ConcretePowderBlock.shouldHarden
(BlockView world, BlockPos pos, BlockState state) private boolean
VineBlock.shouldHaveSide
(BlockView world, BlockPos pos, Direction side) private static boolean
AbstractFireBlock.shouldLightPortalAt
(World world, BlockPos pos, Direction direction) private static boolean
SculkBlock.shouldNotDecay
(WorldAccess world, BlockPos pos) boolean
AbstractBlock.AbstractBlockState.shouldPostProcess
(BlockView world, BlockPos pos) boolean
AbstractBlock.AbstractBlockState.shouldSuffocate
(BlockView world, BlockPos pos) protected boolean
RedstoneTorchBlock.shouldUnpower
(World world, BlockPos pos, BlockState state) protected boolean
WallRedstoneTorchBlock.shouldUnpower
(World world, BlockPos pos, BlockState state) static boolean
Block.sideCoversSmallSquare
(WorldView world, BlockPos pos, Direction side) protected void
AbstractFireBlock.spawnBreakParticles
(World world, PlayerEntity player, BlockPos pos, BlockState state) protected void
Block.spawnBreakParticles
(World world, PlayerEntity player, BlockPos pos, BlockState state) private static void
PointedDripstoneBlock.spawnFallingBlock
(BlockState state, ServerWorld world, BlockPos pos) private void
BeehiveBlock.spawnHoneyParticles
(World world, BlockPos pos, BlockState state) private static void
LeverBlock.spawnParticles
(BlockState state, WorldAccess world, BlockPos pos, float alpha) private static void
RedstoneOreBlock.spawnParticles
(World world, BlockPos pos) private void
InfestedBlock.spawnSilverfish
(ServerWorld world, BlockPos pos) static void
CampfireBlock.spawnSmokeParticle
(World world, BlockPos pos, boolean isSignal, boolean lotsOfSmoke) private void
FrogspawnBlock.spawnTadpoles
(ServerWorld world, BlockPos pos, Random random) int
SculkBlock.spread
(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) int
SculkSpreadable.spread
(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) default boolean
SculkSpreadable.spread
(WorldAccess world, BlockPos pos, BlockState state, @Nullable Collection<Direction> directions, boolean markForPostProcessing) int
SculkVeinBlock.spread
(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) default void
SculkSpreadable.spreadAtSamePosition
(WorldAccess world, BlockState state, BlockPos pos, Random random) void
SculkVeinBlock.spreadAtSamePosition
(WorldAccess world, BlockState state, BlockPos pos, Random random) private static boolean
NyliumBlock.stayAlive
(BlockState state, WorldView world, BlockPos pos) void
BeehiveBlock.takeHoney
(World world, BlockState state, BlockPos pos) void
BeehiveBlock.takeHoney
(World world, BlockState state, BlockPos pos, @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState) private void
DragonEggBlock.teleport
(BlockState state, World world, BlockPos pos) boolean
AbstractBlock.ContextPredicate.test
(BlockState state, BlockView world, BlockPos pos) boolean
AbstractBlock.TypedContextPredicate.test
(BlockState state, BlockView world, BlockPos pos, A type) boolean
LichenGrower.GrowPosPredicate.test
(BlockView world, BlockPos pos, LichenGrower.GrowPos growPos) private static void
DaylightDetectorBlock.tick
(World world, BlockPos pos, BlockState state, DaylightDetectorBlockEntity blockEntity) default void
Degradable.tickDegradation
(BlockState state, ServerWorld world, BlockPos pos, Random random) LeverBlock.togglePower
(BlockState state, World world, BlockPos pos) static <S extends BlockEntity>
DoubleBlockProperties.PropertySource<S>DoubleBlockProperties.toPropertySource
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockProperties.Type> typeMapper, Function<BlockState, Direction> function, DirectionProperty directionProperty, BlockState state, WorldAccess world, BlockPos pos, BiPredicate<WorldAccess, BlockPos> fallbackTester) private void
HoneyBlock.triggerAdvancement
(Entity entity, BlockPos pos) private void
TurtleEggBlock.tryBreakEgg
(World world, BlockState state, BlockPos pos, Entity entity, int inverseChance) default void
Degradable.tryDegrade
(BlockState state, ServerWorld world, BlockPos pos, Random random) BubbleColumnBlock.tryDrainFluid
(WorldAccess world, BlockPos pos, BlockState state) FluidBlock.tryDrainFluid
(WorldAccess world, BlockPos pos, BlockState state) FluidDrainable.tryDrainFluid
(WorldAccess world, BlockPos pos, BlockState state) PowderSnowBlock.tryDrainFluid
(WorldAccess world, BlockPos pos, BlockState state) default ItemStack
Waterloggable.tryDrainFluid
(WorldAccess world, BlockPos pos, BlockState state) protected static ActionResult
CakeBlock.tryEat
(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player) boolean
CampfireBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
CandleBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
FluidFillable.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpPlantBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
SeagrassBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
SlabBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
TallSeagrassBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) default boolean
Waterloggable.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) static void
PointedDripstoneBlock.tryGrow
(BlockState state, ServerWorld world, BlockPos pos, Random random) private static void
PointedDripstoneBlock.tryGrow
(ServerWorld world, BlockPos pos, Direction direction) private static void
PointedDripstoneBlock.tryGrowStalagmite
(ServerWorld world, BlockPos pos) private void
PistonBlock.tryMove
(World world, BlockPos pos, BlockState state) private void
AbstractButtonBlock.tryPowerWithProjectiles
(BlockState state, World world, BlockPos pos) private void
CarvedPumpkinBlock.trySpawnEntity
(World world, BlockPos pos) boolean
MushroomPlantBlock.trySpawningBigMushroom
(ServerWorld world, BlockPos pos, BlockState state, Random random) private void
FireBlock.trySpreadingFire
(World world, BlockPos pos, int spreadFactor, Random random, int currentAge) static void
BubbleColumnBlock.update
(WorldAccess world, BlockPos pos, BlockState state) static void
BubbleColumnBlock.update
(WorldAccess world, BlockPos pos, BlockState water, BlockState bubbleSource) private void
ComparatorBlock.update
(World world, BlockPos pos, BlockState state) private void
RedstoneWireBlock.update
(World world, BlockPos pos, BlockState state) protected void
private void
TripwireBlock.update
(World world, BlockPos pos, BlockState state) void
TripwireHookBlock.update
(World world, BlockPos pos, BlockState state, boolean beingRemoved, boolean bool, int int2, @Nullable BlockState blockState) protected void
AbstractRailBlock.updateBlockState
(BlockState state, World world, BlockPos pos, Block neighbor) protected BlockState
AbstractRailBlock.updateBlockState
(World world, BlockPos pos, BlockState state, boolean forceUpdate) protected void
PoweredRailBlock.updateBlockState
(BlockState state, World world, BlockPos pos, Block neighbor) protected void
RailBlock.updateBlockState
(BlockState state, World world, BlockPos pos, Block neighbor) protected BlockState
AbstractRailBlock.updateCurves
(BlockState state, World world, BlockPos pos, boolean notify) private static BlockState
LeavesBlock.updateDistanceFromLogs
(BlockState state, WorldAccess world, BlockPos pos) private void
HopperBlock.updateEnabled
(World world, BlockPos pos, BlockState state) private void
RedstoneWireBlock.updateForNewState
(World world, BlockPos pos, BlockState oldState, BlockState newState) protected void
BambooBlock.updateLeaves
(BlockState state, World world, BlockPos pos, Random random, int height) protected void
DetectorRailBlock.updateNearbyRails
(World world, BlockPos pos, BlockState state, boolean unpowering) private static void
LecternBlock.updateNeighborAlways
(World world, BlockPos pos, BlockState state) final void
AbstractBlock.AbstractBlockState.updateNeighbors
(WorldAccess world, BlockPos pos, int flags) final void
AbstractBlock.AbstractBlockState.updateNeighbors
(WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth) private void
AbstractButtonBlock.updateNeighbors
(BlockState state, World world, BlockPos pos) protected void
AbstractPressurePlateBlock.updateNeighbors
(World world, BlockPos pos) private void
LeverBlock.updateNeighbors
(BlockState state, World world, BlockPos pos) private void
LightningRodBlock.updateNeighbors
(BlockState state, World world, BlockPos pos) protected void
ObserverBlock.updateNeighbors
(World world, BlockPos pos, BlockState state) private void
RedstoneWireBlock.updateNeighbors
(World world, BlockPos pos) private static void
SculkSensorBlock.updateNeighbors
(World world, BlockPos pos) private void
TripwireHookBlock.updateNeighborsOnAxis
(World world, BlockPos pos, Direction direction) private void
RedstoneWireBlock.updateOffsetNeighbors
(World world, BlockPos pos) protected void
AbstractPressurePlateBlock.updatePlateState
(@Nullable Entity entity, World world, BlockPos pos, BlockState state, int output) protected void
AbstractRedstoneGateBlock.updatePowered
(World world, BlockPos pos, BlockState state) protected void
ComparatorBlock.updatePowered
(World world, BlockPos pos, BlockState state) private void
TripwireBlock.updatePowered
(World world, BlockPos pos) private void
DetectorRailBlock.updatePoweredStatus
(World world, BlockPos pos, BlockState state) private static void
DaylightDetectorBlock.updateState
(BlockState state, World world, BlockPos pos) protected void
AbstractRedstoneGateBlock.updateTarget
(World world, BlockPos pos, BlockState state) static boolean
SculkVeinBlock.veinCoversSculkReplaceable
(WorldAccess world, BlockState state, BlockPos pos) private boolean
BedBlock.wakeVillager
(World world, BlockPos pos) Wakes up a sleeping villager atpos
, if any.ChorusPlantBlock.withConnectionProperties
(BlockView world, BlockPos pos) MultifaceGrowthBlock.withDirection
(BlockState state, BlockView world, BlockPos pos, Direction direction) static BlockState
TallPlantBlock.withWaterloggedState
(WorldView world, BlockPos pos, BlockState state) Method parameters in net.minecraft.block with type arguments of type BlockPosModifier and TypeMethodDescriptionPointedDripstoneBlock.searchInDirection
(WorldAccess world, BlockPos pos, Direction.AxisDirection direction, BiPredicate<BlockPos, BlockState> continuePredicate, Predicate<BlockState> stopPredicate, int range) static <S extends BlockEntity>
DoubleBlockProperties.PropertySource<S>DoubleBlockProperties.toPropertySource
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockProperties.Type> typeMapper, Function<BlockState, Direction> function, DirectionProperty directionProperty, BlockState state, WorldAccess world, BlockPos pos, BiPredicate<WorldAccess, BlockPos> fallbackTester) Constructors in net.minecraft.block with parameters of type BlockPosModifierConstructorDescriptionBurnoutEntry
(BlockPos pos, long time) ComposterInventory
(BlockState state, WorldAccess world, BlockPos pos) (package private)
DrippingFluid
(BlockPos blockPos, Fluid fluid, BlockState blockState) FullComposterInventory
(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) RailPlacementHelper
(World world, BlockPos pos, BlockState state) -
Uses of BlockPos in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron with parameters of type BlockPosModifier and TypeMethodDescriptionstatic ActionResult
CauldronBehavior.emptyCauldron
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent) static ActionResult
CauldronBehavior.fillCauldron
(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) CauldronBehavior.interact
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) -
Uses of BlockPos in net.minecraft.block.dispenser
Methods in net.minecraft.block.dispenser with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static boolean
ShearsDispenserBehavior.tryShearBlock
(ServerWorld world, BlockPos pos) private static boolean
ShearsDispenserBehavior.tryShearEntity
(ServerWorld world, BlockPos pos) -
Uses of BlockPos in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as BlockPosModifier and TypeFieldDescriptionEndGatewayBlockEntity.exitPortalPos
BeehiveBlockEntity.flowerPos
private BlockPos
StructureBlockBlockEntity.offset
protected final BlockPos
BlockEntity.pos
private BlockPos
SculkSpreadManager.Cursor.pos
Fields in net.minecraft.block.entity with type parameters of type BlockPosMethods in net.minecraft.block.entity that return BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
EndGatewayBlockEntity.findBestPortalExitPos
(World world, BlockPos pos) private static BlockPos
EndGatewayBlockEntity.findExitPortalPos
(BlockView world, BlockPos pos, int searchRadius, boolean force) EndGatewayBlockEntity.findPortalPosition
(WorldChunk chunk) StructureBlockBlockEntity.getOffset()
BlockEntity.getPos()
Returns the block entity's position.SculkSpreadManager.Cursor.getPos()
SculkSpreadManager.Cursor.getSpreadPos
(WorldAccess world, BlockPos pos, Random random) static BlockPos
BlockEntity.posFromNbt
(NbtCompound nbt) Returns the block position fromnbt
.private static BlockPos
EndGatewayBlockEntity.setupExitPortalLocation
(ServerWorld world, BlockPos pos) Finds teleport location and creates an island to teleport to (if there is none).Methods in net.minecraft.block.entity that return types with arguments of type BlockPosModifier and TypeMethodDescriptionStructureBlockBlockEntity.streamCornerPos
(BlockPos start, BlockPos end) Streams positions ofStructureBlockMode.CORNER
mode structure blocks with matching names.Methods in net.minecraft.block.entity with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
SculkSensorBlockEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.void
SculkShriekerBlockEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
SculkSensorBlockEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkShriekerBlockEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.private static void
BellBlockEntity.applyGlowToRaiders
(World world, BlockPos pos, List<LivingEntity> hearingEntities) private static void
BellBlockEntity.applyParticlesToRaiders
(World world, BlockPos pos, List<LivingEntity> hearingEntities) SpawnsParticleTypes.ENTITY_EFFECT
particles around raiders within 48 blocks.private static void
BeaconBlockEntity.applyPlayerEffects
(World world, BlockPos pos, int beaconLevel, @Nullable StatusEffect primaryEffect, @Nullable StatusEffect secondaryEffect) private static void
ConduitBlockEntity.attackHostileEntity
(World world, BlockPos pos, BlockState state, List<BlockPos> activatingBlocks, ConduitBlockEntity blockEntity) private static boolean
SculkShriekerWarningManager.canIncreaseWarningLevel
(ServerWorld world, BlockPos pos) private boolean
SculkSpreadManager.Cursor.canSpread
(WorldAccess world, BlockPos pos, boolean worldGen) private static boolean
SculkSpreadManager.Cursor.canSpread
(WorldAccess world, BlockPos sourcePos, BlockPos targetPos) private static boolean
SculkSpreadManager.Cursor.canSpread
(WorldAccess world, BlockPos pos, Direction direction) static void
BellBlockEntity.clientTick
(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) static void
CampfireBlockEntity.clientTick
(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire) static void
ChestBlockEntity.clientTick
(World world, BlockPos pos, BlockState state, ChestBlockEntity blockEntity) static void
ConduitBlockEntity.clientTick
(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) static void
EnderChestBlockEntity.clientTick
(World world, BlockPos pos, BlockState state, EnderChestBlockEntity blockEntity) static void
EndGatewayBlockEntity.clientTick
(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) static void
MobSpawnerBlockEntity.clientTick
(World world, BlockPos pos, BlockState state, MobSpawnerBlockEntity blockEntity) void
ViewerCountManager.closeContainer
(PlayerEntity player, World world, BlockPos pos, BlockState state) private static void
BrewingStandBlockEntity.craft
(World world, BlockPos pos, DefaultedList<ItemStack> slots) BlockEntityType.BlockEntityFactory.create
(BlockPos pos, BlockState state) static @Nullable BlockEntity
BlockEntity.createFromNbt
(BlockPos pos, BlockState state, NbtCompound nbt) Returns the new block entity loaded fromnbt
, ornull
if it fails.private static void
EndGatewayBlockEntity.createPortal
(ServerWorld world, BlockPos pos, EndGatewayFeatureConfig config) private static BlockPos
EndGatewayBlockEntity.findBestPortalExitPos
(World world, BlockPos pos) private static BlockPos
EndGatewayBlockEntity.findExitPortalPos
(BlockView world, BlockPos pos, int searchRadius, boolean force) private static @Nullable LivingEntity
ConduitBlockEntity.findTargetEntity
(World world, BlockPos pos, UUID uuid) private static Vec3d
EndGatewayBlockEntity.findTeleportLocation
(ServerWorld world, BlockPos pos) Returns the block entity instance of this type atpos
, ornull
if no such block entity exists.private static Box
ConduitBlockEntity.getAttackZone
(BlockPos pos) PistonBlockEntity.getCollisionShape
(BlockView world, BlockPos pos) private int
ViewerCountManager.getInRangeViewerCount
(World world, BlockPos pos) HopperBlockEntity.getInventoryAt
(World world, BlockPos pos) HopperBlockEntity.getOutputInventory
(World world, BlockPos pos, BlockState state) private static List<ServerPlayerEntity>
SculkShriekerWarningManager.getPlayersInRange
(ServerWorld world, BlockPos pos) static int
ChestBlockEntity.getPlayersLookingInChestCount
(BlockView world, BlockPos pos) SculkSpreadManager.Cursor.getSpreadPos
(WorldAccess world, BlockPos pos, Random random) StructureBlockBlockEntity.getStructureBox
(BlockPos pos, Stream<BlockPos> corners) private static void
ConduitBlockEntity.givePlayersEffects
(World world, BlockPos pos, List<BlockPos> activatingBlocks) private static boolean
HopperBlockEntity.insert
(World world, BlockPos pos, BlockState state, Inventory inventory) private static boolean
HopperBlockEntity.insertAndExtract
(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier booleanSupplier) BlockEntityType.instantiate
(BlockPos pos, BlockState state) Returns a new instance of the block entity.private static boolean
BellBlockEntity.isRaiderEntity
(BlockPos pos, LivingEntity entity) Determines whether the given entity is in theEntityTypeTags.RAIDERS
entity type tag and within 48 blocks of the given position.static void
CampfireBlockEntity.litServerTick
(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire) protected static void
BlockEntity.markDirty
(World world, BlockPos pos, BlockState state) private static void
PistonBlockEntity.moveEntitiesInHoneyBlock
(World world, BlockPos pos, float float2, PistonBlockEntity blockEntity) private static Box
PistonBlockEntity.offsetHeadBox
(BlockPos pos, Box box, PistonBlockEntity blockEntity) protected abstract void
ViewerCountManager.onContainerClose
(World world, BlockPos pos, BlockState state) Run when this container closes (when the viewer count reaches zero).protected abstract void
ViewerCountManager.onContainerOpen
(World world, BlockPos pos, BlockState state) Run when this container is opened (when the viewer count becomes nonzero).static void
HopperBlockEntity.onEntityCollided
(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) protected void
ChestBlockEntity.onInvOpenOrClose
(World world, BlockPos pos, BlockState state, int oldViewerCount, int newViewerCount) protected void
TrappedChestBlockEntity.onInvOpenOrClose
(World world, BlockPos pos, BlockState state, int oldViewerCount, int newViewerCount) protected abstract void
ViewerCountManager.onViewerCountUpdate
(World world, BlockPos pos, BlockState state, int oldViewerCount, int newViewerCount) Called when the viewer count updates, such as when a player interact with this container or when distance-based checks are run.void
ViewerCountManager.openContainer
(PlayerEntity player, World world, BlockPos pos, BlockState state) static void
BeaconBlockEntity.playSound
(World world, BlockPos pos, SoundEvent sound) (package private) static void
ChestBlockEntity.playSound
(World world, BlockPos pos, BlockState state, SoundEvent soundEvent) private static void
private static void
PistonBlockEntity.pushEntities
(World world, BlockPos pos, float float2, PistonBlockEntity blockEntity) private void
ShulkerBoxBlockEntity.pushEntities
(World world, BlockPos pos, BlockState state) private static boolean
BellBlockEntity.raidersHearBell
(BlockPos pos, List<LivingEntity> hearingEntities) Determines whether at least one of the given entities would be affected by the bell.private static boolean
BeehiveBlockEntity.releaseBee
(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.Bee bee, @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos flowerPos) void
BellBlockEntity.Effect.run
(World world, BlockPos pos, List<LivingEntity> hearingEntities) private static void
ViewerCountManager.scheduleBlockTick
(World world, BlockPos pos, BlockState state) static void
BeehiveBlockEntity.serverTick
(World world, BlockPos pos, BlockState state, BeehiveBlockEntity blockEntity) static void
BellBlockEntity.serverTick
(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) static void
ConduitBlockEntity.serverTick
(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) static void
EndGatewayBlockEntity.serverTick
(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) static void
HopperBlockEntity.serverTick
(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity) static void
MobSpawnerBlockEntity.serverTick
(World world, BlockPos pos, BlockState state, MobSpawnerBlockEntity blockEntity) void
EndGatewayBlockEntity.setExitPortalPos
(BlockPos pos, boolean exactTeleport) static void
LootableContainerBlockEntity.setLootTable
(BlockView world, Random random, BlockPos pos, Identifier id) void
private static BlockPos
EndGatewayBlockEntity.setupExitPortalLocation
(ServerWorld world, BlockPos pos) Finds teleport location and creates an island to teleport to (if there is none).private static void
ConduitBlockEntity.spawnNautilusParticles
(World world, BlockPos pos, List<BlockPos> activatingBlocks, @Nullable Entity entity, int ticks) void
SculkSpreadManager.Cursor.spread
(WorldAccess world, BlockPos pos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) void
private static void
EndGatewayBlockEntity.startTeleportCooldown
(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) StructureBlockBlockEntity.streamCornerPos
(BlockPos start, BlockPos end) Streams positions ofStructureBlockMode.CORNER
mode structure blocks with matching names.static void
AbstractFurnaceBlockEntity.tick
(World world, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity blockEntity) static void
BeaconBlockEntity.tick
(World world, BlockPos pos, BlockState state, BeaconBlockEntity blockEntity) private static void
BellBlockEntity.tick
(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity, BellBlockEntity.Effect bellEffect) void
BlockEntityTicker.tick
(World world, BlockPos pos, BlockState state, T blockEntity) Ticks the block entity.static void
BrewingStandBlockEntity.tick
(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity) static void
EnchantingTableBlockEntity.tick
(World world, BlockPos pos, BlockState state, EnchantingTableBlockEntity blockEntity) static void
JukeboxBlockEntity.tick
(World world, BlockPos pos, BlockState state, JukeboxBlockEntity blockEntity) static void
PistonBlockEntity.tick
(World world, BlockPos pos, BlockState state, PistonBlockEntity blockEntity) static void
SculkCatalystBlockEntity.tick
(World world, BlockPos pos, BlockState state, SculkCatalystBlockEntity blockEntity) void
SculkSpreadManager.tick
(WorldAccess world, BlockPos pos, Random random, boolean shouldConvertToBlock) static void
ShulkerBoxBlockEntity.tick
(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity) static void
SkullBlockEntity.tick
(World world, BlockPos pos, BlockState state, SkullBlockEntity blockEntity) private static void
BeehiveBlockEntity.tickBees
(World world, BlockPos pos, BlockState state, List<BeehiveBlockEntity.Bee> bees, @Nullable BlockPos flowerPos) static void
EndGatewayBlockEntity.tryTeleportingEntity
(World world, BlockPos pos, BlockState state, Entity entity, EndGatewayBlockEntity blockEntity) static void
CampfireBlockEntity.unlitServerTick
(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire) private static boolean
ConduitBlockEntity.updateActivatingBlocks
(World world, BlockPos pos, List<BlockPos> activatingBlocks) private void
ShulkerBoxBlockEntity.updateAnimation
(World world, BlockPos pos, BlockState state) private static void
ShulkerBoxBlockEntity.updateNeighborStates
(World world, BlockPos pos, BlockState state) private static void
ConduitBlockEntity.updateTargetEntity
(World world, BlockPos pos, ConduitBlockEntity blockEntity) void
ViewerCountManager.updateViewerCount
(World world, BlockPos pos, BlockState state) static OptionalInt
SculkShriekerWarningManager.warnNearbyPlayers
(ServerWorld world, BlockPos pos, ServerPlayerEntity player) Method parameters in net.minecraft.block.entity with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate static void
ConduitBlockEntity.attackHostileEntity
(World world, BlockPos pos, BlockState state, List<BlockPos> activatingBlocks, ConduitBlockEntity blockEntity) StructureBlockBlockEntity.getStructureBox
(BlockPos pos, Stream<BlockPos> corners) private static void
ConduitBlockEntity.givePlayersEffects
(World world, BlockPos pos, List<BlockPos> activatingBlocks) private static void
ConduitBlockEntity.openEye
(ConduitBlockEntity blockEntity, List<BlockPos> activatingBlocks) private static void
ConduitBlockEntity.spawnNautilusParticles
(World world, BlockPos pos, List<BlockPos> activatingBlocks, @Nullable Entity entity, int ticks) private static boolean
ConduitBlockEntity.updateActivatingBlocks
(World world, BlockPos pos, List<BlockPos> activatingBlocks) Constructors in net.minecraft.block.entity with parameters of type BlockPosModifierConstructorDescriptionprotected
AbstractFurnaceBlockEntity
(BlockEntityType<?> blockEntityType, BlockPos pos, BlockState state, RecipeType<? extends AbstractCookingRecipe> recipeType) BannerBlockEntity
(BlockPos pos, BlockState state) BannerBlockEntity
(BlockPos pos, BlockState state, DyeColor baseColor) BarrelBlockEntity
(BlockPos pos, BlockState state) BeaconBlockEntity
(BlockPos pos, BlockState state) BedBlockEntity
(BlockPos pos, BlockState state) BedBlockEntity
(BlockPos pos, BlockState state, DyeColor color) BeehiveBlockEntity
(BlockPos pos, BlockState state) BellBlockEntity
(BlockPos pos, BlockState state) BlastFurnaceBlockEntity
(BlockPos pos, BlockState state) BlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) BrewingStandBlockEntity
(BlockPos pos, BlockState state) CampfireBlockEntity
(BlockPos pos, BlockState state) protected
ChestBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) ChestBlockEntity
(BlockPos pos, BlockState state) CommandBlockBlockEntity
(BlockPos pos, BlockState state) ComparatorBlockEntity
(BlockPos pos, BlockState state) ConduitBlockEntity
(BlockPos pos, BlockState state) private
DaylightDetectorBlockEntity
(BlockPos pos, BlockState state) protected
DispenserBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) DispenserBlockEntity
(BlockPos pos, BlockState state) DropperBlockEntity
(BlockPos pos, BlockState state) EnchantingTableBlockEntity
(BlockPos pos, BlockState state) EnderChestBlockEntity
(BlockPos pos, BlockState state) EndGatewayBlockEntity
(BlockPos pos, BlockState state) protected
EndPortalBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) EndPortalBlockEntity
(BlockPos pos, BlockState state) FurnaceBlockEntity
(BlockPos pos, BlockState state) HopperBlockEntity
(BlockPos pos, BlockState state) JigsawBlockEntity
(BlockPos pos, BlockState state) JukeboxBlockEntity
(BlockPos pos, BlockState state) LecternBlockEntity
(BlockPos pos, BlockState state) protected
LockableContainerBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) protected
LootableContainerBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) MobSpawnerBlockEntity
(BlockPos pos, BlockState state) PistonBlockEntity
(BlockPos pos, BlockState state) PistonBlockEntity
(BlockPos pos, BlockState state, BlockState pushedBlock, Direction facing, boolean extending, boolean source) SculkCatalystBlockEntity
(BlockPos pos, BlockState state) SculkSensorBlockEntity
(BlockPos pos, BlockState state) SculkShriekerBlockEntity
(BlockPos pos, BlockState state) ShulkerBoxBlockEntity
(@Nullable DyeColor color, BlockPos pos, BlockState state) ShulkerBoxBlockEntity
(BlockPos pos, BlockState state) SignBlockEntity
(BlockPos pos, BlockState state) SkullBlockEntity
(BlockPos pos, BlockState state) SmokerBlockEntity
(BlockPos pos, BlockState state) StructureBlockBlockEntity
(BlockPos pos, BlockState state) TrappedChestBlockEntity
(BlockPos pos, BlockState state) -
Uses of BlockPos in net.minecraft.block.pattern
Fields in net.minecraft.block.pattern declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BlockPattern.Result.frontTopLeft
private final BlockPos
CachedBlockPosition.pos
Fields in net.minecraft.block.pattern with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final LoadingCache<BlockPos,
CachedBlockPosition> BlockPattern.Result.cache
Methods in net.minecraft.block.pattern that return BlockPosModifier and TypeMethodDescriptionCachedBlockPosition.getBlockPos()
BlockPattern.Result.getFrontTopLeft()
protected static BlockPos
BlockPattern.translate
(BlockPos pos, Direction forwards, Direction up, int offsetLeft, int offsetDown, int offsetForwards) Methods in net.minecraft.block.pattern that return types with arguments of type BlockPosMethods in net.minecraft.block.pattern with parameters of type BlockPosModifier and TypeMethodDescriptionBlockPattern.searchAround
(WorldView world, BlockPos pos) private @Nullable BlockPattern.Result
BlockPattern.testTransform
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache) BlockPattern.testTransform
(WorldView world, BlockPos frontTopLeft, Direction forwards, Direction up) protected static BlockPos
BlockPattern.translate
(BlockPos pos, Direction forwards, Direction up, int offsetLeft, int offsetDown, int offsetForwards) Method parameters in net.minecraft.block.pattern with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate @Nullable BlockPattern.Result
BlockPattern.testTransform
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache) Constructors in net.minecraft.block.pattern with parameters of type BlockPosModifierConstructorDescriptionCachedBlockPosition
(WorldView world, BlockPos pos, boolean forceLoad) Result
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache, int width, int height, int depth) Constructor parameters in net.minecraft.block.pattern with type arguments of type BlockPosModifierConstructorDescriptionResult
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache, int width, int height, int depth) -
Uses of BlockPos in net.minecraft.block.piston
Fields in net.minecraft.block.piston declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
PistonHandler.posFrom
private final BlockPos
PistonHandler.posTo
Fields in net.minecraft.block.piston with type parameters of type BlockPosMethods in net.minecraft.block.piston that return types with arguments of type BlockPosMethods in net.minecraft.block.piston with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
private boolean
PistonHandler.tryMoveAdjacentBlock
(BlockPos pos) Constructors in net.minecraft.block.piston with parameters of type BlockPosModifierConstructorDescriptionPistonHandler
(World world, BlockPos pos, Direction dir, boolean retracted) -
Uses of BlockPos in net.minecraft.block.sapling
Methods in net.minecraft.block.sapling with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
SaplingGenerator.areFlowersNearby
(WorldAccess world, BlockPos pos) static boolean
LargeTreeSaplingGenerator.canGenerateLargeTree
(BlockState state, BlockView world, BlockPos pos, int x, int z) boolean
LargeTreeSaplingGenerator.generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) boolean
SaplingGenerator.generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) boolean
LargeTreeSaplingGenerator.generateLargeTree
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random, int x, int z) -
Uses of BlockPos in net.minecraft.client
Methods in net.minecraft.client with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
Keyboard.copyBlock
(BlockState state, BlockPos pos, @Nullable NbtCompound nbt) -
Uses of BlockPos in net.minecraft.client.color.block
Methods in net.minecraft.client.color.block with parameters of type BlockPosModifier and TypeMethodDescriptionint
BlockColorProvider.getColor
(BlockState state, @Nullable BlockRenderView world, @Nullable BlockPos pos, int tintIndex) Returns the color of the block state for the specified tint index, or -1 if not tinted.int
BlockColors.getColor
(BlockState state, @Nullable BlockRenderView world, @Nullable BlockPos pos, int tintIndex) int
BlockColors.getParticleColor
(BlockState state, World world, BlockPos pos) Returns the particle color of the block state. -
Uses of BlockPos in net.minecraft.client.color.world
Methods in net.minecraft.client.color.world with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static int
BiomeColors.getColor
(BlockRenderView world, BlockPos pos, ColorResolver resolver) static int
BiomeColors.getFoliageColor
(BlockRenderView world, BlockPos pos) static int
BiomeColors.getGrassColor
(BlockRenderView world, BlockPos pos) static int
BiomeColors.getWaterColor
(BlockRenderView world, BlockPos pos) -
Uses of BlockPos in net.minecraft.client.item
Methods in net.minecraft.client.item with parameters of type BlockPosModifier and TypeMethodDescriptionprivate float
CompassAnglePredicateProvider.getAngleTo
(Entity entity, long time, BlockPos pos) private double
CompassAnglePredicateProvider.getAngleTo
(Entity entity, BlockPos pos) -
Uses of BlockPos in net.minecraft.client.network
Fields in net.minecraft.client.network declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
ClientPlayerInteractionManager.currentBreakingPos
Methods in net.minecraft.client.network with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
PendingUpdateManager.addPendingUpdate
(BlockPos pos, BlockState state, ClientPlayerEntity player) boolean
ClientPlayerInteractionManager.attackBlock
(BlockPos pos, Direction direction) boolean
ClientPlayerInteractionManager.breakBlock
(BlockPos pos) boolean
PendingUpdateManager.hasPendingUpdate
(BlockPos pos, BlockState state) private boolean
ClientPlayerInteractionManager.isCurrentlyBreaking
(BlockPos pos) void
DataQueryHandler.queryBlockNbt
(BlockPos pos, Consumer<NbtCompound> callback) boolean
ClientPlayerInteractionManager.updateBlockBreakingProgress
(BlockPos pos, Direction direction) private boolean
ClientPlayerEntity.wouldCollideAt
(BlockPos pos) -
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
ParticleManager.addBlockBreakingParticles
(BlockPos pos, Direction direction) void
ParticleManager.addBlockBreakParticles
(BlockPos pos, BlockState state) Constructors in net.minecraft.client.particle with parameters of type BlockPosModifierConstructorDescriptionBlockDustParticle
(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, BlockState state, BlockPos blockPos) -
Uses of BlockPos in net.minecraft.client.render
Fields in net.minecraft.client.render declared as BlockPosFields in net.minecraft.client.render with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Map<BlockPos,
SoundInstance> WorldRenderer.playingSongs
Methods in net.minecraft.client.render that return BlockPosMethods in net.minecraft.client.render with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
WorldRenderer.drawBlockOutline
(MatrixStack matrices, VertexConsumer vertexConsumer, Entity entity, double cameraX, double cameraY, double cameraZ, BlockPos pos, BlockState state) private ChunkBuilder.BuiltChunk
WorldRenderer.getAdjacentChunk
(BlockPos pos, ChunkBuilder.BuiltChunk chunk, Direction direction) static int
WorldRenderer.getLightmapCoordinates
(BlockRenderView world, BlockState state, BlockPos pos) static int
WorldRenderer.getLightmapCoordinates
(BlockRenderView world, BlockPos pos) protected ChunkBuilder.BuiltChunk
BuiltChunkStorage.getRenderedChunk
(BlockPos pos) private boolean
WorldRenderer.isOutsideViewDistance
(BlockPos pos, ChunkBuilder.BuiltChunk chunk) boolean
WorldRenderer.isRenderingReady
(BlockPos pos) void
WorldRenderer.playSong
(@Nullable SoundEvent song, BlockPos songPosition) void
WorldRenderer.processGlobalEvent
(int eventId, BlockPos pos, int data) void
WorldRenderer.processWorldEvent
(int eventId, BlockPos pos, int data) void
WorldRenderer.scheduleBlockRerenderIfNeeded
(BlockPos pos, BlockState old, BlockState updated) private void
WorldRenderer.scheduleSectionRender
(BlockPos pos, boolean important) void
WorldRenderer.setBlockBreakingInfo
(int entityId, BlockPos pos, int stage) void
WorldRenderer.updateBlock
(BlockView world, BlockPos pos, BlockState oldState, BlockState newState, int flags) private void
WorldRenderer.updateEntitiesForSong
(World world, BlockPos pos, boolean playing) Constructors in net.minecraft.client.render with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.client.render.block
Methods in net.minecraft.client.render.block with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
BlockModelRenderer.AmbientOcclusionCalculator.apply
(BlockRenderView world, BlockState state, BlockPos pos, Direction direction, float[] box, BitSet flags, boolean shaded) private float
FluidRenderer.calculateFluidHeight
(BlockRenderView world, Fluid fluid, float originHeight, float northSouthHeight, float eastWestHeight, BlockPos pos) float
BlockModelRenderer.BrightnessCache.getFloat
(BlockState state, BlockRenderView blockView, BlockPos pos) private float
FluidRenderer.getFluidHeight
(BlockRenderView world, Fluid fluid, BlockPos pos) private float
FluidRenderer.getFluidHeight
(BlockRenderView world, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) int
BlockModelRenderer.BrightnessCache.getInt
(BlockState state, BlockRenderView world, BlockPos pos) private int
FluidRenderer.getLight
(BlockRenderView world, BlockPos pos) private void
BlockModelRenderer.getQuadDimensions
(BlockRenderView world, BlockState state, BlockPos pos, int[] vertexData, Direction face, @org.jetbrains.annotations.Nullable float[] box, BitSet flags) private static boolean
FluidRenderer.isOppositeSideCovered
(BlockView world, BlockPos pos, BlockState state, Direction direction) private static boolean
FluidRenderer.isSideCovered
(BlockView world, BlockPos pos, Direction direction, float maxDeviation, BlockState state) private static boolean
FluidRenderer.isSideCovered
(BlockView world, Direction direction, float height, BlockPos pos, BlockState state) void
BlockModelRenderer.render
(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) void
FluidRenderer.render
(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) void
BlockRenderManager.renderBlock
(BlockState state, BlockPos pos, BlockRenderView world, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random) void
BlockRenderManager.renderDamage
(BlockState state, BlockPos pos, BlockRenderView world, MatrixStack matrices, VertexConsumer vertexConsumer) void
BlockModelRenderer.renderFlat
(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) void
BlockRenderManager.renderFluid
(BlockPos pos, BlockRenderView world, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) private void
BlockModelRenderer.renderQuad
(BlockRenderView world, BlockState state, BlockPos pos, VertexConsumer vertexConsumer, MatrixStack.Entry matrixEntry, BakedQuad quad, float brightness0, float brightness1, float brightness2, float brightness3, int light0, int light1, int light2, int light3, int overlay) private void
BlockModelRenderer.renderQuadsFlat
(BlockRenderView world, BlockState state, BlockPos pos, int light, int overlay, boolean useWorldLight, MatrixStack matrices, VertexConsumer vertexConsumer, List<BakedQuad> quads, BitSet flags) private void
BlockModelRenderer.renderQuadsSmooth
(BlockRenderView world, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, List<BakedQuad> quads, float[] box, BitSet flags, BlockModelRenderer.AmbientOcclusionCalculator ambientOcclusionCalculator, int overlay) void
BlockModelRenderer.renderSmooth
(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) static boolean
FluidRenderer.shouldRenderSide
(BlockRenderView world, BlockPos pos, FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) -
Uses of BlockPos in net.minecraft.client.render.block.entity
Methods in net.minecraft.client.render.block.entity with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
StructureBlockBlockEntityRenderer.renderInvisibleBlocks
(StructureBlockBlockEntity entity, VertexConsumer vertices, BlockPos pos, MatrixStack matrices) private void
PistonBlockEntityRenderer.renderModel
(BlockPos pos, BlockState state, MatrixStack matrices, VertexConsumerProvider vertexConsumers, World world, boolean cull, int overlay) -
Uses of BlockPos in net.minecraft.client.render.chunk
Fields in net.minecraft.client.render.chunk with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Map<BlockPos,
BlockEntity> RenderedChunk.blockEntities
Methods in net.minecraft.client.render.chunk that return BlockPosModifier and TypeMethodDescriptionChunkBuilder.BuiltChunk.getNeighborPosition
(Direction direction) ChunkBuilder.BuiltChunk.getOrigin()
Methods in net.minecraft.client.render.chunk with parameters of type BlockPosModifier and TypeMethodDescriptionChunkRendererRegion.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.RenderedChunk.getBlockEntity
(BlockPos pos) ChunkRendererRegion.getBlockState
(BlockPos pos) Returns the block state atpos
.RenderedChunk.getBlockState
(BlockPos pos) int
ChunkRendererRegion.getColor
(BlockPos pos, ColorResolver colorResolver) ChunkRendererRegion.getFluidState
(BlockPos pos) Returns the fluid state atpos
.private boolean
ChunkBuilder.BuiltChunk.isChunkNonEmpty
(BlockPos pos) private static boolean
ChunkRendererRegionBuilder.isEmptyBetween
(BlockPos startPos, BlockPos endPos, int offsetX, int offsetZ, ChunkRendererRegionBuilder.ClientChunk[][] chunks) void
ChunkOcclusionDataBuilder.markClosed
(BlockPos pos) private static int
-
Uses of BlockPos in net.minecraft.client.render.debug
Fields in net.minecraft.client.render.debug declared as BlockPosModifier and TypeFieldDescriptionBeeDebugRenderer.Bee.flower
BeeDebugRenderer.Bee.hive
final BlockPos
BeeDebugRenderer.Hive.pos
final BlockPos
GoalSelectorDebugRenderer.GoalSelector.pos
final BlockPos
VillageDebugRenderer.PointOfInterest.pos
Fields in net.minecraft.client.render.debug with type parameters of type BlockPosModifier and TypeFieldDescriptionBeeDebugRenderer.Bee.blacklist
private final Map<BlockPos,
BeeDebugRenderer.Hive> BeeDebugRenderer.hives
private final Map<BlockPos,
GameTestDebugRenderer.Marker> GameTestDebugRenderer.markers
NeighborUpdateDebugRenderer.neighborUpdates
VillageDebugRenderer.Brain.pointsOfInterest
private final Map<BlockPos,
VillageDebugRenderer.PointOfInterest> VillageDebugRenderer.pointsOfInterest
WorldGenAttemptDebugRenderer.positions
VillageDebugRenderer.Brain.potentialJobSites
private Collection<BlockPos>
RaidCenterDebugRenderer.raidCenters
Methods in net.minecraft.client.render.debug that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBeeDebugRenderer.getBeesByHive()
BeeDebugRenderer.getBlacklistingBees()
VillageDebugRenderer.getGhostPointsOfInterest()
Methods in net.minecraft.client.render.debug with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
WorldGenAttemptDebugRenderer.addBox
(BlockPos pos, float size, float red, float green, float blue, float alpha) void
void
NeighborUpdateDebugRenderer.addNeighborUpdate
(long time, BlockPos pos) private static void
BeeDebugRenderer.drawBox
(BlockPos pos, float expand, float red, float green, float blue, float alpha) static void
static void
DebugRenderer.drawBox
(BlockPos pos1, BlockPos pos2, float red, float green, float blue, float alpha) private void
VillageDebugRenderer.drawGhostPointOfInterest
(BlockPos pos, List<String> brains) private static void
private void
BeeDebugRenderer.drawHiveBees
(BlockPos pos, List<String> bees) private static void
VillageDebugRenderer.drawPointOfInterest
(BlockPos pos) private static void
RaidCenterDebugRenderer.drawRaidCenter
(BlockPos pos) private static void
BeeDebugRenderer.drawString
(String string, BlockPos pos, int line, int color) private static void
RaidCenterDebugRenderer.drawString
(String string, BlockPos pos, int color) private static void
VillageDebugRenderer.drawString
(String string, BlockPos pos, int offsetY, int color) private Collection<UUID>
BeeDebugRenderer.getBeesForHive
(BlockPos hivePos) private Collection<UUID>
VillageDebugRenderer.getBrainsContainingPointOfInterest
(BlockPos pointOfInterest) private Collection<UUID>
VillageDebugRenderer.getBrainsContainingPotentialJobSite
(BlockPos potentialJobSite) private static float
PathfindingDebugRenderer.getManhattanDistance
(BlockPos pos, double x, double y, double z) private String
BeeDebugRenderer.getPositionString
(BeeDebugRenderer.Bee bee, BlockPos pos) boolean
(package private) boolean
VillageDebugRenderer.Brain.isPointOfInterest
(BlockPos pos) (package private) boolean
VillageDebugRenderer.Brain.isPotentialJobSite
(BlockPos pos) void
VillageDebugRenderer.removePointOfInterest
(BlockPos pos) private void
GameTestDebugRenderer.renderMarker
(BlockPos pos, GameTestDebugRenderer.Marker marker) void
VillageDebugRenderer.setFreeTicketCount
(BlockPos pos, int freeTicketCount) Method parameters in net.minecraft.client.render.debug with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
RaidCenterDebugRenderer.setRaidCenters
(Collection<BlockPos> raidCenters) Constructors in net.minecraft.client.render.debug with parameters of type BlockPosModifierConstructorDescriptionBee
(UUID uuid, int entityId, Position position, @Nullable Path path, @Nullable BlockPos hive, @Nullable BlockPos flower, int travelTicks) GoalSelector
(BlockPos pos, int int2, String name, boolean bool) PointOfInterest
(BlockPos pos, String string, int freeTicketCount) -
Uses of BlockPos in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type BlockPosModifier and TypeMethodDescriptionprotected int
AllayEntityRenderer.getBlockLight
(AllayEntity allayEntity, BlockPos blockPos) protected int
BlazeEntityRenderer.getBlockLight
(BlazeEntity blazeEntity, BlockPos blockPos) protected int
DragonFireballEntityRenderer.getBlockLight
(DragonFireballEntity dragonFireballEntity, BlockPos blockPos) protected int
EntityRenderer.getBlockLight
(T entity, BlockPos pos) protected int
ExperienceOrbEntityRenderer.getBlockLight
(ExperienceOrbEntity experienceOrbEntity, BlockPos blockPos) protected int
FlyingItemEntityRenderer.getBlockLight
(T entity, BlockPos pos) protected int
GlowSquidEntityRenderer.getBlockLight
(GlowSquidEntity glowSquidEntity, BlockPos blockPos) protected int
ItemFrameEntityRenderer.getBlockLight
(T t, BlockPos blockPos) protected int
MagmaCubeEntityRenderer.getBlockLight
(MagmaCubeEntity magmaCubeEntity, BlockPos blockPos) protected int
ShulkerBulletEntityRenderer.getBlockLight
(ShulkerBulletEntity shulkerBulletEntity, BlockPos blockPos) protected int
VexEntityRenderer.getBlockLight
(VexEntity vexEntity, BlockPos blockPos) protected int
WitherEntityRenderer.getBlockLight
(WitherEntity witherEntity, BlockPos blockPos) protected int
WitherSkullEntityRenderer.getBlockLight
(WitherSkullEntity witherSkullEntity, BlockPos blockPos) protected int
EntityRenderer.getSkyLight
(T entity, BlockPos pos) private static void
EntityRenderDispatcher.renderShadowPart
(MatrixStack.Entry entry, VertexConsumer vertices, WorldView world, BlockPos pos, double x, double y, double z, float radius, float opacity) -
Uses of BlockPos in net.minecraft.client.sound
Constructors in net.minecraft.client.sound with parameters of type BlockPosModifierConstructorDescriptionPositionedSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Random random, BlockPos pos) -
Uses of BlockPos in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
PunchTreeTutorialStepHandler.onBlockBreaking
(ClientWorld client, BlockPos pos, BlockState state, float progress) void
TutorialManager.onBlockBreaking
(ClientWorld world, BlockPos pos, BlockState state, float progress) default void
TutorialStepHandler.onBlockBreaking
(ClientWorld client, BlockPos pos, BlockState state, float progress) -
Uses of BlockPos in net.minecraft.client.util
Methods in net.minecraft.client.util with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
ParticleUtil.spawnParticle
(Direction.Axis axis, World world, BlockPos pos, double variance, ParticleEffect effect, UniformIntProvider range) static void
ParticleUtil.spawnParticle
(World world, BlockPos pos, ParticleEffect effect, IntProvider count) static void
ParticleUtil.spawnParticle
(World world, BlockPos pos, Direction direction, ParticleEffect effect, Vec3d velocity, double offsetMultiplier) static void
ParticleUtil.spawnParticles
(World world, BlockPos pos, ParticleEffect effect, IntProvider count, Direction direction, Supplier<Vec3d> velocity, double offsetMultiplier) -
Uses of BlockPos in net.minecraft.client.world
Fields in net.minecraft.client.world with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final ToIntFunction<BlockPos>
BiomeColorCache.colorFactory
Methods in net.minecraft.client.world with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ClientWorld.addBlockBreakParticles
(BlockPos pos, BlockState state) private void
ClientWorld.addParticle
(BlockPos pos, BlockState state, ParticleEffect parameters, boolean bool) private void
ClientWorld.addParticle
(BlockPos pos, ParticleEffect parameters, VoxelShape shape, double y) int
ClientWorld.calculateColor
(BlockPos pos, ColorResolver colorResolver) int
BiomeColorCache.getBiomeColor
(BlockPos pos) int
ClientWorld.getColor
(BlockPos pos, ColorResolver colorResolver) void
ClientWorld.handleBlockUpdate
(BlockPos pos, BlockState state, int flags) void
ClientWorld.playSound
(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) void
ClientWorld.processPendingUpdate
(BlockPos pos, BlockState state, Vec3d playerPos) void
ClientWorld.scheduleBlockRerenderIfNeeded
(BlockPos pos, BlockState old, BlockState updated) void
ClientWorld.setBlockBreakingInfo
(int entityId, BlockPos pos, int progress) boolean
ClientWorld.setBlockState
(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.void
ClientWorld.Properties.setSpawnPos
(BlockPos pos, float angle) void
ClientWorld.setSpawnPos
(BlockPos pos, float angle) void
ClientWorld.syncGlobalEvent
(int eventId, BlockPos pos, int data) void
ClientWorld.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) void
ClientWorld.updateListeners
(BlockPos pos, BlockState oldState, BlockState newState, int flags) Constructor parameters in net.minecraft.client.world with type arguments of type BlockPos -
Uses of BlockPos in net.minecraft.command
Fields in net.minecraft.command declared as BlockPosConstructors in net.minecraft.command with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return BlockPosModifier and TypeMethodDescriptionstatic BlockPos
BlockPosArgumentType.getBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static BlockPos
BlockPosArgumentType.getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) default BlockPos
PosArgument.toAbsoluteBlockPos
(ServerCommandSource source) Methods in net.minecraft.command.argument with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
BlockStateArgument.setBlockState
(ServerWorld world, BlockPos pos, int flags) boolean
BlockStateArgument.test
(ServerWorld world, BlockPos pos) -
Uses of BlockPos in net.minecraft.enchantment
Methods in net.minecraft.enchantment with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
FrostWalkerEnchantment.freezeWater
(LivingEntity entity, World world, BlockPos blockPos, int level) -
Uses of BlockPos in net.minecraft.entity
Fields in net.minecraft.entity declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
Entity.blockPos
private BlockPos
LivingEntity.lastBlockPos
protected BlockPos
Entity.lastNetherPortalPosition
Fields in net.minecraft.entity with type parameters of type BlockPosModifier and TypeFieldDescriptionprotected static final TrackedData<BlockPos>
FallingBlockEntity.BLOCK_POS
LivingEntity.climbingPos
private static final TrackedData<Optional<BlockPos>>
LivingEntity.SLEEPING_POSITION
Methods in net.minecraft.entity that return BlockPosModifier and TypeMethodDescriptionprivate BlockPos
LightningEntity.getAffectedBlockPos()
Entity.getBlockPos()
FallingBlockEntity.getFallingBlockPos()
Entity.getLandingPos()
Deprecated.private BlockPos
Entity.getPosWithYOffset
(float offset) Entity.getSteppingPos()
Returns the stepping position.protected BlockPos
Entity.getVelocityAffectingPos()
Methods in net.minecraft.entity that return types with arguments of type BlockPosModifier and TypeMethodDescriptionLightningEntity.cleanOxidationAround
(World world, BlockPos pos) LivingEntity.getClimbingPos()
LivingEntity.getSleepingPosition()
Methods in net.minecraft.entity with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
LivingEntity.applyMovementEffects
(BlockPos pos) private boolean
LivingEntity.canEnterTrapdoor
(BlockPos pos, BlockState state) boolean
Entity.canExplosionDestroyBlock
(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosion
from this entity can destroystate
.boolean
Entity.canModifyAt
(World world, BlockPos pos) Returns whether the entity can modify the world atpos
.static <T extends Entity>
booleanSpawnRestriction.canSpawn
(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) boolean
LargeEntitySpawnHelper.Requirements.canSpawnOn
(ServerWorld world, BlockPos pos, BlockState state, BlockPos abovePos, BlockState aboveState) private static void
LightningEntity.cleanOxidation
(World world, BlockPos pos) LightningEntity.cleanOxidationAround
(World world, BlockPos pos) private static void
LightningEntity.cleanOxidationAround
(World world, BlockPos pos, BlockPos.Mutable mutablePos, int count) boolean
Entity.collidesWithStateAtPos
(BlockPos pos, BlockState state) Returns whether the entity collides with the blockstate
atpos
.EntityType.create
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) protected void
Entity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected void
LivingEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.Dismounting.findRespawnPos
(EntityType<?> entityType, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) static double
Dismounting.getCeilingHeight
(BlockPos pos, int maxDistance, Function<BlockPos, VoxelShape> collisionShapeGetter) static VoxelShape
Dismounting.getCollisionShape
(BlockView world, BlockPos pos) float
Entity.getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity.protected static double
EntityType.getOriginY
(WorldView world, BlockPos pos, boolean invertY, Box boundingBox) protected Optional<BlockLocating.Rectangle>
Entity.getPortalRect
(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder) Returns the portal rect atdestPos
.void
EyeOfEnderEntity.initTargetPos
(BlockPos pos) Sets where the eye will fly towards.void
FallingBlockEntity.onDestroyedOnLanding
(Block block, BlockPos pos) protected void
Entity.playStepSound
(BlockPos pos, BlockState state) void
Entity.refreshPositionAndAngles
(BlockPos pos, float yaw, float pitch) Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.void
FallingBlockEntity.setFallingBlockPos
(BlockPos pos) void
Entity.setInNetherPortal
(BlockPos pos) void
LivingEntity.setNearbySongPlaying
(BlockPos songPosition, boolean playing) private void
LivingEntity.setPositionInBed
(BlockPos pos) void
LivingEntity.setSleepingPosition
(BlockPos pos) void
EntityType.spawn
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) static FallingBlockEntity
FallingBlockEntity.spawnFromBlock
(World world, BlockPos pos, BlockState state) Spawns a falling block entity atpos
from the blockstate
.EntityType.spawnFromItemStack
(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) boolean
SpawnRestriction.SpawnPredicate.test
(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) LargeEntitySpawnHelper.trySpawnAt
(EntityType<T> entityType, SpawnReason reason, ServerWorld world, BlockPos pos, int tries, int horizontalRange, int verticalRange, LargeEntitySpawnHelper.Requirements requirements) Method parameters in net.minecraft.entity with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic double
Dismounting.getCeilingHeight
(BlockPos pos, int maxDistance, Function<BlockPos, VoxelShape> collisionShapeGetter) -
Uses of BlockPos in net.minecraft.entity.ai
Methods in net.minecraft.entity.ai that return BlockPosModifier and TypeMethodDescriptionstatic BlockPos
Creates a fuzzy offset position within the given horizontal and vertical ranges.FuzzyPositions.localFuzz
(Random random, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double angleRange) Tries to create a fuzzy offset position from the direction and the angle range given.static BlockPos
FuzzyPositions.towardTarget
(PathAwareEntity entity, int horizontalRange, Random random, BlockPos fuzz) FuzzyTargeting.towardTarget
(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos relativeInRangePos) Paths to a random reachable position approaching an entity's chosenposition target
.NoPenaltySolidTargeting.tryMake
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double rangeAngle, boolean posTargetInRange) NoPenaltyTargeting.tryMake
(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos fuzz) static BlockPos
Returns theextraAbove + 1
th closest position higher than the inputpos
that does not fulfillcondition
, or a position with y set tomaxY
.static BlockPos
Returns the closest position higher than the inputpos
that does not fulfillcondition
, or a position with y set tomaxY
.FuzzyTargeting.validate
(PathAwareEntity entity, BlockPos pos) Checks whether a given position is a valid pathable target.Methods in net.minecraft.entity.ai with parameters of type BlockPosModifier and TypeMethodDescriptionstatic boolean
NavigationConditions.hasPathfindingPenalty
(PathAwareEntity entity, BlockPos pos) static boolean
NavigationConditions.isHeightInvalid
(BlockPos pos, PathAwareEntity entity) static boolean
NavigationConditions.isInvalidPosition
(EntityNavigation navigation, BlockPos pos) static boolean
NavigationConditions.isPositionTargetOutOfWalkRange
(boolean posTargetInRange, PathAwareEntity entity, BlockPos pos) static boolean
NavigationConditions.isSolidAt
(PathAwareEntity entity, BlockPos pos) static boolean
NavigationConditions.isWaterAt
(PathAwareEntity entity, BlockPos pos) static BlockPos
FuzzyPositions.towardTarget
(PathAwareEntity entity, int horizontalRange, Random random, BlockPos fuzz) FuzzyTargeting.towardTarget
(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos relativeInRangePos) Paths to a random reachable position approaching an entity's chosenposition target
.NoPenaltyTargeting.tryMake
(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos fuzz) static BlockPos
Returns theextraAbove + 1
th closest position higher than the inputpos
that does not fulfillcondition
, or a position with y set tomaxY
.static BlockPos
Returns the closest position higher than the inputpos
that does not fulfillcondition
, or a position with y set tomaxY
.FuzzyTargeting.validate
(PathAwareEntity entity, BlockPos pos) Checks whether a given position is a valid pathable target.Method parameters in net.minecraft.entity.ai with type arguments of type BlockPosModifier and TypeMethodDescriptionFuzzyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, ToDoubleFunction<BlockPos> scorer) Paths to a random reachable position with positive path-finding favorability computed by a given function.FuzzyPositions.guessBest
(Supplier<BlockPos> factory, ToDoubleFunction<BlockPos> scorer) Returns thebottom center
of a highest scoring position, as determined byscorer
, out of 10 tries on positions obtained fromfactory
.FuzzyPositions.guessBest
(Supplier<BlockPos> factory, ToDoubleFunction<BlockPos> scorer) Returns thebottom center
of a highest scoring position, as determined byscorer
, out of 10 tries on positions obtained fromfactory
.FuzzyPositions.guessBestPathTarget
(PathAwareEntity entity, Supplier<BlockPos> factory) CallsFuzzyPositions.guessBest(Supplier, ToDoubleFunction)
with theentity
's path finding favor as thescorer
.static BlockPos
Returns theextraAbove + 1
th closest position higher than the inputpos
that does not fulfillcondition
, or a position with y set tomaxY
.static BlockPos
Returns the closest position higher than the inputpos
that does not fulfillcondition
, or a position with y set tomaxY
. -
Uses of BlockPos in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain declared as BlockPosFields in net.minecraft.entity.ai.brain with type parameters of type BlockPosModifier and TypeFieldDescriptionstatic 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
Methods in net.minecraft.entity.ai.brain that return BlockPosModifier and TypeMethodDescriptionBlockPosLookTarget.getBlockPos()
EntityLookTarget.getBlockPos()
LookTarget.getBlockPos()
Constructors in net.minecraft.entity.ai.brain with parameters of type BlockPosModifierConstructorDescriptionBlockPosLookTarget
(BlockPos blockPos) WalkTarget
(BlockPos pos, float speed, int completionRange) -
Uses of BlockPos in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor that return types with arguments of type BlockPosModifier and TypeMethodDescriptionHoglinSpecificSensor.findNearestWarpedFungus
(ServerWorld world, HoglinEntity hoglin) PiglinSpecificSensor.findPiglinRepellent
(ServerWorld world, LivingEntity entity) Methods in net.minecraft.entity.ai.brain.sensor with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static boolean
PiglinSpecificSensor.isPiglinRepellent
(ServerWorld world, BlockPos pos) -
Uses of BlockPos in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as BlockPosModifier and TypeFieldDescriptionJumpInBedTask.bedPos
FarmerVillagerTask.currentTarget
private final BlockPos
PrepareRamTask.Ram.end
WanderAroundTask.lookTargetPos
private final BlockPos
LongJumpTask.Target.pos
private final BlockPos
PrepareRamTask.Ram.start
Fields in net.minecraft.entity.ai.brain.task with type parameters of type BlockPosModifier and TypeFieldDescriptionHideInHomeTask.homePosition
private final MemoryModuleType<BlockPos>
GoToCelebrateTask.memoryModuleType
BoneMealTask.pos
FarmerVillagerTask.targetPositions
Methods in net.minecraft.entity.ai.brain.task that return BlockPosModifier and TypeMethodDescriptionFarmerVillagerTask.chooseRandomTarget
(ServerWorld world) private static BlockPos
private BlockPos
GoToCelebrateTask.getCelebrateLocation
(MobEntity entity) PrepareRamTask.Ram.getEnd()
LongJumpTask.Target.getPos()
PrepareRamTask.Ram.getStart()
Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBoneMealTask.findBoneMealPos
(ServerWorld world, VillagerEntity entity) WalkTask.findClosestWater
(BlockView world, Entity entity) PrepareRamTask.findRamStart
(PathAwareEntity entity, LivingEntity target) JumpInBedTask.getNearestBed
(MobEntity mob) VillagerBreedTask.getReachableHome
(ServerWorld world, VillagerEntity villager) static GoToRememberedPositionTask<BlockPos>
GoToRememberedPositionTask.toBlock
(MemoryModuleType<BlockPos> memoryType, float speed, int range, boolean requiresWalkTarget) Methods in net.minecraft.entity.ai.brain.task with parameters of type BlockPosModifier and TypeMethodDescriptionprivate Vec3d
PrepareRamTask.calculateRamTarget
(BlockPos start, BlockPos end) private boolean
BoneMealTask.canBoneMeal
(BlockPos pos, ServerWorld world) protected boolean
BiasedLongJumpTask.canJumpTo
(ServerWorld world, E entity, BlockPos pos) protected boolean
LongJumpTask.canJumpTo
(ServerWorld world, E entity, BlockPos pos) private boolean
PrepareRamTask.canReach
(PathAwareEntity entity, BlockPos target) private boolean
VillagerBreedTask.canReachHome
(VillagerEntity villager, BlockPos pos, RegistryEntry<PointOfInterestType> poiType) private boolean
TakeJobSiteTask.canReachJobSite
(VillagerEntity villager, BlockPos pos, PointOfInterestType poiType) private boolean
TakeJobSiteTask.canUseJobSite
(RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager, BlockPos pos) private void
TakeJobSiteTask.claimSite
(ServerWorld world, VillagerEntity previousOwner, VillagerEntity newOwner, BlockPos pos, boolean jobSitePresent) private static BlockPos
private boolean
ForgetCompletedPointOfInterestTask.hasCompletedPointOfInterest
(ServerWorld world, BlockPos pos) private static boolean
OpenDoorsTask.hasOtherMobReachedDoor
(ServerWorld world, LivingEntity entity, BlockPos pos) private static boolean
OpenDoorsTask.hasReached
(ServerWorld world, LivingEntity entity, BlockPos pos) private boolean
JumpInBedTask.isBedAt
(ServerWorld world, BlockPos pos) private boolean
ForgetCompletedPointOfInterestTask.isBedOccupiedByOthers
(ServerWorld world, BlockPos pos, LivingEntity entity) private boolean
BiasedLongJumpTask.isFluidStateAndBelowEmpty
(ServerWorld world, BlockPos pos) static boolean
SeekSkyTask.isSkyVisible
(ServerWorld world, LivingEntity entity, BlockPos pos) private boolean
FarmerVillagerTask.isSuitableTarget
(BlockPos pos, ServerWorld world) private void
OpenDoorsTask.rememberToCloseDoor
(ServerWorld world, LivingEntity entity, BlockPos pos) private void
VillagerBreedTask.setChildHome
(ServerWorld world, VillagerEntity child, BlockPos pos) private void
JumpInBedTask.setWalkTarget
(MobEntity mob, BlockPos pos) private void
FarmerWorkTask.syncComposterEvent
(ServerWorld world, BlockState oldState, BlockPos pos, BlockState newState) static void
LookTargetUtil.walkTowards
(LivingEntity entity, BlockPos target, float speed, int completionRange) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type BlockPosModifier and TypeMethodDescriptionFindPointOfInterestTask.findPathToPoi
(MobEntity entity, Set<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>, BlockPos>> pois) static GoToRememberedPositionTask<BlockPos>
GoToRememberedPositionTask.toBlock
(MemoryModuleType<BlockPos> memoryType, float speed, int range, boolean requiresWalkTarget) Constructors in net.minecraft.entity.ai.brain.task with parameters of type BlockPosConstructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type BlockPosModifierConstructorDescriptionGoToCelebrateTask
(MemoryModuleType<BlockPos> memoryModuleType, int completionRange, float speed) -
Uses of BlockPos in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as BlockPosModifier and TypeFieldDescriptionprotected BlockPos
DoorInteractGoal.doorPos
private BlockPos
MoveThroughVillageGoal.target
protected BlockPos
MoveToTargetPosGoal.targetPos
GoToVillageGoal.targetPosition
Fields in net.minecraft.entity.ai.goal with type parameters of type BlockPosMethods in net.minecraft.entity.ai.goal that return BlockPosModifier and TypeMethodDescriptionIronGolemWanderAroundGoal.findRandomPosInChunk
(ChunkSectionPos pos) protected BlockPos
MoveToTargetPosGoal.getTargetPos()
EscapeDangerGoal.locateClosestWater
(BlockView world, Entity entity, int rangeX) StepAndDestroyBlockGoal.tweakToProperPos
(BlockPos pos, BlockView world) Methods in net.minecraft.entity.ai.goal with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
FollowOwnerGoal.canTeleportTo
(BlockPos pos) private boolean
DolphinJumpGoal.isAirAbove
(BlockPos pos, int offsetX, int offsetZ, int multiplier) private boolean
protected boolean
CatSitOnBlockGoal.isTargetPos
(WorldView world, BlockPos pos) protected boolean
GoToBedAndSleepGoal.isTargetPos
(WorldView world, BlockPos pos) protected abstract boolean
MoveToTargetPosGoal.isTargetPos
(WorldView world, BlockPos pos) protected boolean
StepAndDestroyBlockGoal.isTargetPos
(WorldView world, BlockPos pos) private boolean
void
StepAndDestroyBlockGoal.onDestroyBlock
(World world, BlockPos pos) private boolean
MoveThroughVillageGoal.shouldVisit
(BlockPos pos) void
StepAndDestroyBlockGoal.tickStepping
(WorldAccess world, BlockPos pos) StepAndDestroyBlockGoal.tweakToProperPos
(BlockPos pos, BlockView world) -
Uses of BlockPos in net.minecraft.entity.ai.pathing
Fields in net.minecraft.entity.ai.pathing declared as BlockPosModifier and TypeFieldDescriptionEntityNavigation.currentTarget
private final BlockPos
Path.target
SpiderNavigation.targetPos
Methods in net.minecraft.entity.ai.pathing that return BlockPosModifier and TypeMethodDescriptionPathNode.getBlockPos()
Path.getCurrentNodePos()
Path.getNodePos
(int index) Path.getTarget()
EntityNavigation.getTargetPos()
Methods in net.minecraft.entity.ai.pathing with parameters of type BlockPosModifier and TypeMethodDescriptionprotected PathNodeType
LandPathNodeMaker.adjustNodeType
(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type) private boolean
LandPathNodeMaker.canPathThrough
(BlockPos pos) private Path
PathNodeNavigator.createPath
(PathNode endNode, BlockPos target, boolean reachesTarget) LandPathNodeMaker.findNearbyNodeTypes
(BlockView world, int x, int y, int z, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors, EnumSet<PathNodeType> nearbyTypes, PathNodeType type, BlockPos pos) Adds the node types in the box with the given size to the input EnumSet.EntityNavigation.findPathTo
(BlockPos target, int distance) EntityNavigation.findPathTo
(BlockPos target, int minDistance, int maxDistance) MobNavigation.findPathTo
(BlockPos target, int distance) SpiderNavigation.findPathTo
(BlockPos target, int distance) protected static PathNodeType
LandPathNodeMaker.getCommonNodeType
(BlockView world, BlockPos pos) float
PathNode.getDistance
(BlockPos pos) protected double
protected double
static double
float
PathNode.getManhattanDistance
(BlockPos pos) private PathNodeType
LandPathNodeMaker.getNodeType
(MobEntity entity, BlockPos pos) float
PathNode.getSquaredDistance
(BlockPos pos) boolean
BirdNavigation.isValidPosition
(BlockPos pos) boolean
EntityNavigation.isValidPosition
(BlockPos pos) boolean
SwimNavigation.isValidPosition
(BlockPos pos) boolean
EntityNavigation.shouldRecalculatePath
(BlockPos pos) Method parameters in net.minecraft.entity.ai.pathing with type arguments of type BlockPosModifier and TypeMethodDescriptionEntityNavigation.findPathTo
(Set<BlockPos> positions, int distance) EntityNavigation.findPathTo
(Set<BlockPos> positions, int range, boolean useHeadPos, int distance) EntityNavigation.findPathToAny
(Set<BlockPos> positions, int range, boolean useHeadPos, int distance, float followRange) EntityNavigation.findPathToAny
(Stream<BlockPos> positions, int distance) PathNodeNavigator.findPathToAny
(Profiler profiler, PathNode startNode, Map<TargetPathNode, BlockPos> positions, float followRange, int distance, float rangeMultiplier) PathNodeNavigator.findPathToAny
(ChunkCache world, MobEntity mob, Set<BlockPos> positions, float followRange, int distance, float rangeMultiplier) Constructors in net.minecraft.entity.ai.pathing with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.entity.boss.dragon
Fields in net.minecraft.entity.boss.dragon declared as BlockPosMethods in net.minecraft.entity.boss.dragon with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
EnderDragonEntity.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source) private void
EnderDragonFight.generateEndGateway
(BlockPos pos) abstract void
EnderDragonSpawnState.run
(ServerWorld world, EnderDragonFight fight, List<EndCrystalEntity> crystals, int tick, BlockPos pos) -
Uses of BlockPos in net.minecraft.entity.boss.dragon.phase
Methods in net.minecraft.entity.boss.dragon.phase with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
AbstractPhase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) void
HoldingPatternPhase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) void
Phase.crystalDestroyed
(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player) -
Uses of BlockPos in net.minecraft.entity.data
Fields in net.minecraft.entity.data with type parameters of type BlockPosModifier and TypeFieldDescriptionstatic final TrackedDataHandler<BlockPos>
TrackedDataHandlerRegistry.BLOCK_POS
static final TrackedDataHandler<Optional<BlockPos>>
TrackedDataHandlerRegistry.OPTIONAL_BLOCK_POS
-
Uses of BlockPos in net.minecraft.entity.decoration
Fields in net.minecraft.entity.decoration declared as BlockPosFields in net.minecraft.entity.decoration with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate static final TrackedData<Optional<BlockPos>>
EndCrystalEntity.BEAM_TARGET
Methods in net.minecraft.entity.decoration that return BlockPosModifier and TypeMethodDescriptionEndCrystalEntity.getBeamTarget()
AbstractDecorationEntity.getDecorationBlockPos()
Methods in net.minecraft.entity.decoration with parameters of type BlockPosModifier and TypeMethodDescriptionstatic LeashKnotEntity
LeashKnotEntity.getOrCreate
(World world, BlockPos pos) void
EndCrystalEntity.setBeamTarget
(@Nullable BlockPos beamTarget) Constructors in net.minecraft.entity.decoration with parameters of type BlockPosModifierConstructorDescriptionprotected
AbstractDecorationEntity
(EntityType<? extends AbstractDecorationEntity> type, World world, BlockPos pos) GlowItemFrameEntity
(World world, BlockPos pos, Direction facing) ItemFrameEntity
(EntityType<? extends ItemFrameEntity> type, World world, BlockPos pos, Direction facing) ItemFrameEntity
(World world, BlockPos pos, Direction facing) LeashKnotEntity
(World world, BlockPos pos) -
Uses of BlockPos in net.minecraft.entity.decoration.painting
Methods in net.minecraft.entity.decoration.painting with parameters of type BlockPosModifier and TypeMethodDescriptionstatic Optional<PaintingEntity>
PaintingEntity.placePainting
(World world, BlockPos pos, Direction facing) Constructors in net.minecraft.entity.decoration.painting with parameters of type BlockPosModifierConstructorDescriptionprivate
PaintingEntity
(World world, BlockPos pos) PaintingEntity
(World world, BlockPos pos, Direction direction, RegistryEntry<PaintingVariant> variant) -
Uses of BlockPos in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob declared as BlockPosModifier and TypeFieldDescriptionVexEntity.bounds
(package private) BlockPos
PhantomEntity.circlingCenter
PatrolEntity.patrolTarget
private BlockPos
MobEntity.positionTarget
ShulkerEntity.prevAttachedBlock
Methods in net.minecraft.entity.mob that return BlockPosModifier and TypeMethodDescriptionVexEntity.getBounds()
PatrolEntity.getPatrolTarget()
Returns the position this patrol entity is walking to.MobEntity.getPositionTarget()
Methods in net.minecraft.entity.mob that return types with arguments of type BlockPosModifier and TypeMethodDescriptionMobEntity.getPotentialEscapePositions()
Returns the list of positions that the entity should try to pathfind to when escaping.private static GoToRememberedPositionTask<BlockPos>
PiglinBrain.makeGoToSoulFireTask()
Methods in net.minecraft.entity.mob with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
WardenEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
WardenEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.protected PathNodeType
RavagerEntity.PathNodeMaker.adjustNodeType
(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type) static boolean
MagmaCubeEntity.canMagmaCubeSpawn
(EntityType<MagmaCubeEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
MobEntity.canMobSpawn
(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) private boolean
EndermanEntity.PlaceBlockGoal.canPlaceOn
(World world, BlockPos posAbove, BlockState carriedState, BlockState stateAbove, BlockState state, BlockPos pos) static boolean
DrownedEntity.canSpawn
(EntityType<DrownedEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
EndermiteEntity.canSpawn
(EntityType<EndermiteEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
GhastEntity.canSpawn
(EntityType<GhastEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
GuardianEntity.canSpawn
(EntityType<? extends GuardianEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HoglinEntity.canSpawn
(EntityType<HoglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HuskEntity.canSpawn
(EntityType<HuskEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
PatrolEntity.canSpawn
(EntityType<? extends PatrolEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
PiglinEntity.canSpawn
(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
SilverfishEntity.canSpawn
(EntityType<SilverfishEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
SlimeEntity.canSpawn
(EntityType<SlimeEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
StrayEntity.canSpawn
(EntityType<StrayEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
WaterCreatureEntity.canSpawn
(EntityType<? extends WaterCreatureEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
ZombifiedPiglinEntity.canSpawn
(EntityType<ZombifiedPiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HostileEntity.canSpawnIgnoreLightLevel
(EntityType<? extends HostileEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HostileEntity.canSpawnInDark
(EntityType<? extends HostileEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) (package private) boolean
protected void
FlyingEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.ShulkerEntity.findAttachSide
(BlockPos pos) float
GiantEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
GuardianEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
HoglinEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
HostileEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
PathAwareEntity.getPathfindingFavor
(BlockPos pos) float
PathAwareEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
PillagerEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
SilverfishEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
WardenEntity.getPathfindingFavor
(BlockPos pos, WorldView world) private boolean
ShulkerEntity.isInvalidPosition
(BlockPos pos) boolean
MobEntity.isInWalkTargetRange
(BlockPos pos) static boolean
HostileEntity.isSpawnDark
(ServerWorldAccess world, BlockPos pos, Random random) protected boolean
DrownedEntity.LeaveWaterGoal.isTargetPos
(WorldView world, BlockPos pos) private static boolean
DrownedEntity.isValidSpawnDepth
(WorldAccess world, BlockPos pos) (package private) static boolean
HoglinBrain.isWarpedFungusAround
(HoglinEntity hoglin, BlockPos pos) static void
WardenBrain.lookAtDisturbance
(WardenEntity warden, BlockPos pos) void
ZombieEntity.DestroyEggGoal.onDestroyBlock
(World world, BlockPos pos) protected void
AbstractSkeletonEntity.playStepSound
(BlockPos pos, BlockState state) protected void
EndermiteEntity.playStepSound
(BlockPos pos, BlockState state) protected void
HoglinEntity.playStepSound
(BlockPos pos, BlockState state) protected void
PiglinBruteEntity.playStepSound
(BlockPos pos, BlockState state) protected void
PiglinEntity.playStepSound
(BlockPos pos, BlockState state) protected void
RavagerEntity.playStepSound
(BlockPos pos, BlockState state) protected void
SilverfishEntity.playStepSound
(BlockPos pos, BlockState state) protected void
SpiderEntity.playStepSound
(BlockPos pos, BlockState state) protected void
WardenEntity.playStepSound
(BlockPos pos, BlockState state) protected void
ZoglinEntity.playStepSound
(BlockPos pos, BlockState state) protected void
ZombieEntity.playStepSound
(BlockPos pos, BlockState state) void
void
PatrolEntity.setPatrolTarget
(BlockPos targetPos) void
MobEntity.setPositionTarget
(BlockPos target, int range) void
ZombieEntity.DestroyEggGoal.tickStepping
(WorldAccess world, BlockPos pos) -
Uses of BlockPos in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive declared as BlockPosModifier and TypeFieldDescriptionCatEntity.SleepWithOwnerGoal.bedPos
BeeEntity.flowerPos
BatEntity.hangingPosition
BeeEntity.hivePos
AllayEntity.jukeboxPos
ParrotEntity.songSource
WanderingTraderEntity.wanderTarget
Fields in net.minecraft.entity.passive with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate static final TrackedData<BlockPos>
TurtleEntity.HOME_POS
BeeEntity.MoveToHiveGoal.possibleHives
private static final TrackedData<BlockPos>
TurtleEntity.TRAVEL_POS
private static final TrackedData<BlockPos>
DolphinEntity.TREASURE_POS
Methods in net.minecraft.entity.passive that return BlockPosModifier and TypeMethodDescriptionBeeEntity.getFlowerPos()
BeeEntity.getHivePos()
(package private) BlockPos
TurtleEntity.getHomePos()
StriderEntity.GoBackToLavaGoal.getTargetPos()
(package private) BlockPos
TurtleEntity.getTravelPos()
DolphinEntity.getTreasurePos()
WanderingTraderEntity.getWanderTarget()
Methods in net.minecraft.entity.passive that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBeeEntity.PollinateGoal.findFlower
(Predicate<BlockState> predicate, double searchDistance) BeeEntity.PollinateGoal.getFlower()
BeeEntity.FindHiveGoal.getNearbyFreeHives()
BeeEntity.getPossibleHives()
AllayEntity.getPotentialEscapePositions()
Returns the list of positions that the entity should try to pathfind to when escaping.Methods in net.minecraft.entity.passive with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
AllayEntity.VibrationListenerCallback.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, Entity entity, Entity sourceEntity, float distance) Accepts a game event after delay.boolean
AllayEntity.VibrationListenerCallback.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.private void
BeeEntity.MoveToHiveGoal.addPossibleHive
(BlockPos pos) static boolean
AxolotlEntity.canSpawn
(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
BatEntity.canSpawn
(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
FoxEntity.canSpawn
(EntityType<FoxEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
FrogEntity.canSpawn
(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
GlowSquidEntity.canSpawn
(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
GoatEntity.canSpawn
(EntityType<? extends AnimalEntity> entityType, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
MooshroomEntity.canSpawn
(EntityType<MooshroomEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
OcelotEntity.canSpawn
(EntityType<OcelotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
ParrotEntity.canSpawn
(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
PolarBearEntity.canSpawn
(EntityType<PolarBearEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
RabbitEntity.canSpawn
(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
StriderEntity.canSpawn
(EntityType<StriderEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
TurtleEntity.canSpawn
(EntityType<TurtleEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
WolfEntity.canSpawn
(EntityType<WolfEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
TropicalFishEntity.canTropicalFishSpawn
(EntityType<TropicalFishEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) private boolean
BeeEntity.doesHiveHaveSpace
(BlockPos pos) protected void
AllayEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected void
BatEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected void
BeeEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected void
ParrotEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.protected void
StriderEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.float
AnimalEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
AxolotlEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
BeeEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
MooshroomEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
StriderEntity.getPathfindingFavor
(BlockPos pos, WorldView world) float
TurtleEntity.getPathfindingFavor
(BlockPos pos, WorldView world) private boolean
BeeEntity.MoveToHiveGoal.isCloseEnough
(BlockPos pos) (package private) boolean
protected static boolean
AnimalEntity.isLightLevelValidForNaturalSpawn
(BlockRenderView world, BlockPos pos) (package private) boolean
BeeEntity.MoveToHiveGoal.isPossibleHive
(BlockPos pos) protected boolean
FoxEntity.EatBerriesGoal.isTargetPos
(WorldView world, BlockPos pos) protected boolean
RabbitEntity.EatCarrotCropGoal.isTargetPos
(WorldView world, BlockPos pos) protected boolean
StriderEntity.GoBackToLavaGoal.isTargetPos
(WorldView world, BlockPos pos) protected boolean
TurtleEntity.LayEggGoal.isTargetPos
(WorldView world, BlockPos pos) protected boolean
TurtleEntity.WanderInWaterGoal.isTargetPos
(WorldView world, BlockPos pos) (package private) boolean
private boolean
WanderingTraderEntity.WanderToTargetGoal.isTooFarFrom
(BlockPos pos, double proximityDistance) static boolean
AnimalEntity.isValidNaturalSpawn
(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) boolean
AxolotlSwimNavigation.isValidPosition
(BlockPos pos) boolean
StriderEntity.Navigation.isValidPosition
(BlockPos pos) boolean
TurtleEntity.TurtleSwimNavigation.isValidPosition
(BlockPos pos) (package private) boolean
BeeEntity.isWithinDistance
(BlockPos pos, int distance) protected void
AbstractHorseEntity.playStepSound
(BlockPos pos, BlockState state) protected void
AllayEntity.playStepSound
(BlockPos pos, BlockState state) protected void
BeeEntity.playStepSound
(BlockPos pos, BlockState state) protected void
ChickenEntity.playStepSound
(BlockPos pos, BlockState state) protected void
CowEntity.playStepSound
(BlockPos pos, BlockState state) protected void
FishEntity.playStepSound
(BlockPos pos, BlockState state) protected void
FrogEntity.playStepSound
(BlockPos pos, BlockState state) protected void
GoatEntity.playStepSound
(BlockPos pos, BlockState state) protected void
IronGolemEntity.playStepSound
(BlockPos pos, BlockState state) protected void
LlamaEntity.playStepSound
(BlockPos pos, BlockState state) protected void
PandaEntity.playStepSound
(BlockPos pos, BlockState state) protected void
ParrotEntity.playStepSound
(BlockPos pos, BlockState state) protected void
PigEntity.playStepSound
(BlockPos pos, BlockState state) protected void
PolarBearEntity.playStepSound
(BlockPos pos, BlockState state) protected void
SheepEntity.playStepSound
(BlockPos pos, BlockState state) protected void
StriderEntity.playStepSound
(BlockPos pos, BlockState state) protected void
TurtleEntity.playStepSound
(BlockPos pos, BlockState state) protected void
WolfEntity.playStepSound
(BlockPos pos, BlockState state) static void
AllayBrain.rememberNoteBlock
(LivingEntity allay, BlockPos pos) void
BeeEntity.setFlowerPos
(BlockPos flowerPos) void
TurtleEntity.setHomePos
(BlockPos pos) void
ParrotEntity.setNearbySongPlaying
(BlockPos songPosition, boolean playing) (package private) void
TurtleEntity.setTravelPos
(BlockPos pos) void
DolphinEntity.setTreasurePos
(BlockPos treasurePos) void
WanderingTraderEntity.setWanderTarget
(@Nullable BlockPos wanderTarget) void
(package private) void
BeeEntity.startMovingTo
(BlockPos pos) private boolean
BeeEntity.MoveToHiveGoal.startMovingToFar
(BlockPos pos) void
AllayEntity.updateJukeboxPos
(BlockPos jukeboxPos, boolean playing) -
Uses of BlockPos in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
PlayerEntity.canPlaceOn
(BlockPos pos, Direction facing, ItemStack stack) protected boolean
PlayerEntity.doesNotSuffocate
(BlockPos pos) PlayerEntity.findRespawnPosition
(ServerWorld world, BlockPos pos, float angle, boolean forced, boolean alive) Finds the precise respawn position from aBlockPos
in a world.boolean
PlayerEntity.isBlockBreakingRestricted
(World world, BlockPos pos, GameMode gameMode) com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,
Unit> Tries to start sleeping on a block.Constructors in net.minecraft.entity.player with parameters of type BlockPosModifierConstructorDescriptionPlayerEntity
(World world, BlockPos pos, float yaw, com.mojang.authlib.GameProfile gameProfile, @Nullable PlayerPublicKey publicKey) -
Uses of BlockPos in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
ProjectileEntity.canModifyAt
(World world, BlockPos pos) Returns whether the entity can modify the world atpos
.float
WitherSkullEntity.getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity.private FishingBobberEntity.PositionType
FishingBobberEntity.getPositionType
(BlockPos pos) private FishingBobberEntity.PositionType
FishingBobberEntity.getPositionType
(BlockPos start, BlockPos end) private boolean
FishingBobberEntity.isOpenOrWaterAround
(BlockPos pos) private void
FishingBobberEntity.tickFishingLogic
(BlockPos pos) -
Uses of BlockPos in net.minecraft.entity.projectile.thrown
Methods in net.minecraft.entity.projectile.thrown with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.entity.raid
Fields in net.minecraft.entity.raid declared as BlockPosFields in net.minecraft.entity.raid with type parameters of type BlockPosMethods in net.minecraft.entity.raid with parameters of type BlockPosModifier and TypeMethodDescriptionprivate boolean
RaiderEntity.AttackHomeGoal.canLootHome
(BlockPos pos) -
Uses of BlockPos in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle declared as BlockPosMethods in net.minecraft.entity.vehicle with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
TntMinecartEntity.canExplosionDestroyBlock
(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosion
from this entity can destroystate
.protected void
BoatEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.float
TntMinecartEntity.getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity.protected void
AbstractMinecartEntity.moveOnRail
(BlockPos pos, BlockState state) protected void
FurnaceMinecartEntity.moveOnRail
(BlockPos pos, BlockState state) private boolean
AbstractMinecartEntity.willHitBlockAt
(BlockPos pos) -
Uses of BlockPos in net.minecraft.fluid
Methods in net.minecraft.fluid with parameters of type BlockPosModifier and TypeMethodDescriptionprotected abstract void
FlowableFluid.beforeBreakingBlock
(WorldAccess world, BlockPos pos, BlockState state) protected void
LavaFluid.beforeBreakingBlock
(WorldAccess world, BlockPos pos, BlockState state) protected void
WaterFluid.beforeBreakingBlock
(WorldAccess world, BlockPos pos, BlockState state) boolean
EmptyFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
FluidState.canBeReplacedWith
(BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
LavaFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
WaterFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) private boolean
FlowableFluid.canFill
(BlockView world, BlockPos pos, BlockState state, Fluid fluid) protected boolean
FlowableFluid.canFlow
(BlockView world, BlockPos fluidPos, BlockState fluidBlockState, Direction flowDirection, BlockPos flowTo, BlockState flowToBlockState, FluidState fluidState, Fluid fluid) private boolean
FlowableFluid.canFlowThrough
(BlockView world, Fluid fluid, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState) private boolean
LavaFluid.canLightFire
(WorldView world, BlockPos pos) protected void
FlowableFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) protected void
LavaFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) float
EmptyFluid.getHeight
(FluidState state, BlockView world, BlockPos pos) float
FlowableFluid.getHeight
(FluidState state, BlockView world, BlockPos pos) abstract float
Fluid.getHeight
(FluidState state, BlockView world, BlockPos pos) float
protected int
FlowableFluid.getNextTickDelay
(World world, BlockPos pos, FluidState oldState, FluidState newState) int
LavaFluid.getNextTickDelay
(World world, BlockPos pos, FluidState oldState, FluidState newState) EmptyFluid.getShape
(FluidState state, BlockView world, BlockPos pos) FlowableFluid.getShape
(FluidState state, BlockView world, BlockPos pos) abstract VoxelShape
Fluid.getShape
(FluidState state, BlockView world, BlockPos pos) protected Map<Direction,
FluidState> FlowableFluid.getSpread
(WorldView world, BlockPos pos, BlockState state) protected FluidState
FlowableFluid.getUpdatedState
(WorldView world, BlockPos pos, BlockState state) EmptyFluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) FlowableFluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) protected abstract Vec3d
Fluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) FluidState.getVelocity
(BlockView world, BlockPos pos) private boolean
LavaFluid.hasBurnableBlock
(WorldView world, BlockPos pos) private static boolean
FlowableFluid.isFluidAboveEqual
(FluidState state, BlockView world, BlockPos pos) private boolean
FlowableFluid.method_15736
(BlockView world, Fluid fluid, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState) private int
FlowableFluid.method_15740
(WorldView world, BlockPos pos) protected int
FlowableFluid.method_15742
(WorldView world, BlockPos blockPos, int int2, Direction direction, BlockState blockState, BlockPos blockPos2, Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> short2ObjectMap, Short2BooleanMap short2BooleanMap) private void
FlowableFluid.method_15744
(WorldAccess world, BlockPos pos, FluidState fluidState, BlockState blockState) private static short
FlowableFluid.method_15747
(BlockPos blockPos, BlockPos blockPos2) protected boolean
FlowableFluid.method_15749
(BlockView world, BlockPos pos, Direction direction) boolean
FluidState.method_15756
(BlockView world, BlockPos pos) protected void
Fluid.onRandomTick
(World world, BlockPos pos, FluidState state, Random random) void
FluidState.onRandomTick
(World world, BlockPos pos, Random random) void
LavaFluid.onRandomTick
(World world, BlockPos pos, FluidState state, Random random) void
FlowableFluid.onScheduledTick
(World world, BlockPos pos, FluidState state) protected void
Fluid.onScheduledTick
(World world, BlockPos pos, FluidState state) void
FluidState.onScheduledTick
(World world, BlockPos pos) private void
LavaFluid.playExtinguishEvent
(WorldAccess world, BlockPos pos) protected void
Fluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) void
FluidState.randomDisplayTick
(World world, BlockPos pos, Random random) void
LavaFluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) void
WaterFluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) private boolean
FlowableFluid.receivesFlow
(Direction face, BlockView world, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState) protected void
FlowableFluid.tryFlow
(WorldAccess world, BlockPos fluidPos, FluidState state) -
Uses of BlockPos in net.minecraft.item
Fields in net.minecraft.item declared as BlockPosMethods in net.minecraft.item that return BlockPosModifier and TypeMethodDescriptionAutomaticItemPlacementContext.getBlockPos()
ItemPlacementContext.getBlockPos()
ItemUsageContext.getBlockPos()
Methods in net.minecraft.item with parameters of type BlockPosModifier and TypeMethodDescriptionstatic ActionResult
LeadItem.attachHeldMobsToBlock
(PlayerEntity player, World world, BlockPos pos) boolean
DebugStickItem.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.boolean
Item.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.boolean
SwordItem.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.boolean
TridentItem.canMine
(BlockState state, World world, BlockPos pos, PlayerEntity miner) Returns whether a player can break a block while holding the item.protected boolean
DecorationItem.canPlaceOn
(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) protected boolean
ItemFrameItem.canPlaceOn
(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) static void
BoneMealItem.createParticles
(WorldAccess world, BlockPos pos, int count) private BlockState
FilledMapItem.getFluidStateIfVisible
(World world, BlockState state, BlockPos pos) static ItemPlacementContext
ItemPlacementContext.offset
(ItemPlacementContext context, BlockPos pos, Direction side) void
void
EntityBucketItem.onEmptied
(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) default void
FluidModificationItem.onEmptied
(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) boolean
BucketItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) boolean
FluidModificationItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) boolean
PowderSnowBucketItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) private BlockState
BlockItem.placeFromNbt
(BlockPos pos, World world, ItemStack stack, BlockState state) protected void
BucketItem.playEmptyingSound
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos) protected void
EntityBucketItem.playEmptyingSound
(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos) private void
FireChargeItem.playUseSound
(World world, BlockPos pos) boolean
Item.postMine
(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.void
ItemStack.postMine
(World world, BlockState state, BlockPos pos, PlayerEntity miner) boolean
MiningToolItem.postMine
(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.boolean
ShearsItem.postMine
(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.boolean
SwordItem.postMine
(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.boolean
TridentItem.postMine
(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.protected boolean
BlockItem.postPlacement
(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) protected boolean
SignItem.postPlacement
(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) private void
EntityBucketItem.spawnEntity
(ServerWorld world, ItemStack stack, BlockPos pos) private boolean
DebugStickItem.use
(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack) static boolean
BoneMealItem.useOnFertilizable
(ItemStack stack, World world, BlockPos pos) static boolean
BoneMealItem.useOnGround
(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing) private void
CompassItem.writeNbt
(RegistryKey<World> worldKey, BlockPos pos, NbtCompound nbt) static boolean
BlockItem.writeNbtToBlockEntity
(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack) Constructors in net.minecraft.item with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.item.map
Fields in net.minecraft.item.map declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
MapBannerMarker.pos
private final BlockPos
MapFrameMarker.pos
Methods in net.minecraft.item.map that return BlockPosMethods in net.minecraft.item.map with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
MapState.addBanner
(WorldAccess world, BlockPos pos) static void
MapState.addDecorationsNbt
(ItemStack stack, BlockPos pos, String id, MapIcon.Type type) static @Nullable MapBannerMarker
MapBannerMarker.fromWorldBlock
(BlockView blockView, BlockPos blockPos) static String
void
MapState.removeFrame
(BlockPos pos, int id) Constructors in net.minecraft.item.map with parameters of type BlockPosModifierConstructorDescriptionMapBannerMarker
(BlockPos pos, DyeColor dyeColor, @Nullable Text name) MapFrameMarker
(BlockPos pos, int rotation, int entityId) -
Uses of BlockPos in net.minecraft.loot.condition
Fields in net.minecraft.loot.condition declared as BlockPosModifier and TypeFieldDescription(package private) final BlockPos
LocationCheckLootCondition.offset
Methods in net.minecraft.loot.condition with parameters of type BlockPosModifier and TypeMethodDescriptionstatic LootCondition.Builder
LocationCheckLootCondition.builder
(LocationPredicate.Builder predicateBuilder, BlockPos pos) Constructors in net.minecraft.loot.condition with parameters of type BlockPosModifierConstructorDescription(package private)
LocationCheckLootCondition
(LocationPredicate predicate, BlockPos offset) -
Uses of BlockPos in net.minecraft.nbt
Methods in net.minecraft.nbt that return BlockPosModifier and TypeMethodDescriptionstatic BlockPos
NbtHelper.toBlockPos
(NbtCompound nbt) Returns the block position from thenbt
.Methods in net.minecraft.nbt with parameters of type BlockPosModifier and TypeMethodDescriptionstatic NbtCompound
NbtHelper.fromBlockPos
(BlockPos pos) Returns the serialized block position. -
Uses of BlockPos in net.minecraft.network
Methods in net.minecraft.network that return BlockPosModifier and TypeMethodDescriptionPacketByteBuf.readBlockPos()
Reads a block position from this buf.Methods in net.minecraft.network with parameters of type BlockPosModifier and TypeMethodDescriptionPacketByteBuf.writeBlockPos
(BlockPos pos) Writes a block position to this buf. -
Uses of BlockPos in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
UpdateStructureBlockC2SPacket.offset
private final BlockPos
JigsawGeneratingC2SPacket.pos
private final BlockPos
PlayerActionC2SPacket.pos
private final BlockPos
QueryBlockNbtC2SPacket.pos
private final BlockPos
UpdateCommandBlockC2SPacket.pos
private final BlockPos
UpdateJigsawC2SPacket.pos
private final BlockPos
UpdateSignC2SPacket.pos
private final BlockPos
UpdateStructureBlockC2SPacket.pos
Methods in net.minecraft.network.packet.c2s.play that return BlockPosModifier and TypeMethodDescriptionUpdateCommandBlockC2SPacket.getBlockPos()
UpdateStructureBlockC2SPacket.getOffset()
JigsawGeneratingC2SPacket.getPos()
PlayerActionC2SPacket.getPos()
QueryBlockNbtC2SPacket.getPos()
UpdateJigsawC2SPacket.getPos()
UpdateSignC2SPacket.getPos()
UpdateStructureBlockC2SPacket.getPos()
Constructors in net.minecraft.network.packet.c2s.play with parameters of type BlockPosModifierConstructorDescriptionJigsawGeneratingC2SPacket
(BlockPos pos, int maxDepth, boolean keepJigsaws) PlayerActionC2SPacket
(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction) PlayerActionC2SPacket
(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction, int sequence) QueryBlockNbtC2SPacket
(int transactionId, BlockPos pos) UpdateCommandBlockC2SPacket
(BlockPos pos, String command, CommandBlockBlockEntity.Type type, boolean trackOutput, boolean conditional, boolean alwaysActive) UpdateJigsawC2SPacket
(BlockPos pos, Identifier name, Identifier target, Identifier pool, String finalState, JigsawBlockEntity.Joint jointType) UpdateStructureBlockC2SPacket
(BlockPos pos, StructureBlockBlockEntity.Action action, StructureBlockMode mode, String templateName, BlockPos offset, Vec3i size, BlockMirror mirror, BlockRotation rotation, String metadata, boolean ignoreEntities, boolean showAir, boolean showBoundingBox, float integrity, long seed) -
Uses of BlockPos in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
BlockBreakingProgressS2CPacket.pos
private final BlockPos
BlockEntityUpdateS2CPacket.pos
private final BlockPos
BlockEventS2CPacket.pos
private final BlockPos
BlockUpdateS2CPacket.pos
private final BlockPos
PlayerSpawnPositionS2CPacket.pos
private final BlockPos
SignEditorOpenS2CPacket.pos
private final BlockPos
WorldEventS2CPacket.pos
Fields in net.minecraft.network.packet.s2c.play with type parameters of type BlockPosMethods in net.minecraft.network.packet.s2c.play that return BlockPosModifier and TypeMethodDescriptionBlockBreakingProgressS2CPacket.getPos()
BlockEntityUpdateS2CPacket.getPos()
BlockEventS2CPacket.getPos()
BlockUpdateS2CPacket.getPos()
PlayerSpawnPositionS2CPacket.getPos()
SignEditorOpenS2CPacket.getPos()
WorldEventS2CPacket.getPos()
Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type BlockPosMethods in net.minecraft.network.packet.s2c.play with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ChunkData.BlockEntityVisitor.accept
(BlockPos pos, BlockEntityType<?> type, @Nullable NbtCompound nbt) Method parameters in net.minecraft.network.packet.s2c.play with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
ChunkDeltaUpdateS2CPacket.visitUpdates
(BiConsumer<BlockPos, BlockState> biConsumer) Calls the given consumer for each pair of block position and block state contained in this packet.Constructors in net.minecraft.network.packet.s2c.play with parameters of type BlockPosModifierConstructorDescriptionBlockBreakingProgressS2CPacket
(int entityId, BlockPos pos, int progress) private
BlockEntityUpdateS2CPacket
(BlockPos pos, BlockEntityType<?> blockEntityType, NbtCompound nbt) BlockEventS2CPacket
(BlockPos pos, Block block, int type, int data) BlockUpdateS2CPacket
(BlockPos pos, BlockState state) BlockUpdateS2CPacket
(BlockView world, BlockPos pos) EntitySpawnS2CPacket
(Entity entity, int entityTypeId, BlockPos pos) PlayerSpawnPositionS2CPacket
(BlockPos pos, float angle) WorldEventS2CPacket
(int eventId, BlockPos pos, int data, boolean global) Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type BlockPosModifierConstructorDescriptionExplosionS2CPacket
(double x, double y, double z, float radius, List<BlockPos> affectedBlocks, @Nullable Vec3d playerVelocity) -
Uses of BlockPos in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
BlockPredicate.test
(ServerWorld world, BlockPos pos) boolean
FluidPredicate.test
(ServerWorld world, BlockPos pos) boolean
LightPredicate.test
(ServerWorld world, BlockPos pos) -
Uses of BlockPos in net.minecraft.screen
Methods in net.minecraft.screen with parameters of type BlockPosModifier and TypeMethodDescriptionstatic ScreenHandlerContext
Returns an active screen handler context.Method parameters in net.minecraft.screen with type arguments of type BlockPosModifier and TypeMethodDescription<T> Optional<T>
ScreenHandlerContext.get
(BiFunction<World, BlockPos, T> getter) Gets an optional value from this context's world and position with aBiFunction
getter.default <T> T
ScreenHandlerContext.get
(BiFunction<World, BlockPos, T> getter, T defaultValue) Gets a value from this context's world and position with aBiFunction
getter.default void
ScreenHandlerContext.run
(BiConsumer<World, BlockPos> function) Runs aBiConsumer
with this context's world and position if this context is active. -
Uses of BlockPos in net.minecraft.server
Methods in net.minecraft.server with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
MinecraftServer.isSpawnProtected
(ServerWorld world, BlockPos pos, PlayerEntity player) -
Uses of BlockPos in net.minecraft.server.command
Fields in net.minecraft.server.command declared as BlockPosMethods in net.minecraft.server.command with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static int
CloneCommand.execute
(ServerCommandSource source, BlockPos begin, BlockPos end, BlockPos destination, Predicate<CachedBlockPosition> filter, CloneCommand.Mode mode) private static int
DebugMobSpawningCommand.execute
(ServerCommandSource source, SpawnGroup group, BlockPos pos) private static int
DebugPathCommand.execute
(ServerCommandSource source, BlockPos pos) private static int
SetBlockCommand.execute
(ServerCommandSource source, BlockPos pos, BlockStateArgument block, SetBlockCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> condition) private static int
SetWorldSpawnCommand.execute
(ServerCommandSource source, BlockPos pos, float angle) private static int
SpawnPointCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, BlockPos pos, float angle) private static int
LootCommand.executeBlock
(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static int
ItemCommand.executeBlockCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommand.executeBlockCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommand.executeBlockCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockModify
(ServerCommandSource source, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockReplace
(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack) private static int
ItemCommand.executeEntityCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommand.executeEntityCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
LootCommand.executeFish
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static int
LootCommand.executeInsert
(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static int
LootCommand.executeMine
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor) static int
PlaceCommand.executePlaceFeature
(ServerCommandSource source, RegistryEntry<ConfiguredFeature<?, ?>> feature, BlockPos pos) static int
PlaceCommand.executePlaceJigsaw
(ServerCommandSource source, RegistryEntry<StructurePool> structurePool, Identifier id, int maxDepth, BlockPos pos) static int
PlaceCommand.executePlaceStructure
(ServerCommandSource source, RegistryEntry<Structure> structure, BlockPos pos) static int
PlaceCommand.executePlaceTemplate
(ServerCommandSource source, Identifier id, BlockPos pos, BlockRotation rotation, BlockMirror mirror, float integrity, int seed) SetBlockCommand.Filter.filter
(BlockBox box, BlockPos pos, BlockStateArgument block, ServerWorld world) private static Inventory
LootCommand.getBlockInventory
(ServerCommandSource source, BlockPos pos) private static Inventory
ItemCommand.getInventoryAtPos
(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception) private static ItemStack
ItemCommand.getStackInSlotFromInventoryAt
(ServerCommandSource source, BlockPos pos, int slotId) private static void
TestCommand.run
(ServerWorld world, BlockPos pos, @Nullable TestSet tests) static int
LocateCommand.sendCoordinates
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<?> structure, BlockPos currentPos, com.mojang.datafixers.util.Pair<BlockPos, ? extends RegistryEntry<?>> structurePosAndEntry, String successMessage, boolean bool) private static OptionalInt
ExecuteCommand.testBlocksCondition
(ServerWorld world, BlockPos start, BlockPos end, BlockPos destination, boolean masked) Method parameters in net.minecraft.server.command with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic int
LocateCommand.sendCoordinates
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<?> structure, BlockPos currentPos, com.mojang.datafixers.util.Pair<BlockPos, ? extends RegistryEntry<?>> structurePosAndEntry, String successMessage, boolean bool) Constructors in net.minecraft.server.command with parameters of type BlockPosModifierConstructorDescriptionBlockInfo
(BlockPos pos, BlockState state, @Nullable NbtCompound blockEntityNbt) -
Uses of BlockPos in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
MinecraftDedicatedServer.isSpawnProtected
(ServerWorld world, BlockPos pos, PlayerEntity player) -
Uses of BlockPos in net.minecraft.server.network
Fields in net.minecraft.server.network declared as BlockPosModifier and TypeFieldDescriptionprivate BlockPos
ServerPlayerInteractionManager.failedMiningPos
private BlockPos
ServerPlayerInteractionManager.miningPos
ServerPlayerEntity.spawnPointPosition
Methods in net.minecraft.server.network that return BlockPosModifier and TypeMethodDescriptionSpawnLocating.findOverworldSpawn
(ServerWorld world, int x, int z) SpawnLocating.findServerSpawnPoint
(ServerWorld world, ChunkPos chunkPos) ServerPlayerEntity.getSpawnPointPosition()
Methods in net.minecraft.server.network with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
DebugInfoSender.addGameTestMarker
(ServerWorld world, BlockPos pos, String message, int color, int duration) protected void
ServerPlayerEntity.applyMovementEffects
(BlockPos pos) boolean
ServerPlayerEntity.canModifyAt
(World world, BlockPos pos) Returns whether the entity can modify the world atpos
.private float
ServerPlayerInteractionManager.continueMining
(BlockState state, BlockPos pos, int failedStartMiningTime) private void
ServerPlayerEntity.createEndSpawnPlatform
(ServerWorld world, BlockPos centerPos) protected void
ServerPlayerEntity.fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.void
ServerPlayerInteractionManager.finishMining
(BlockPos pos, int sequence, String reason) protected Optional<BlockLocating.Rectangle>
ServerPlayerEntity.getPortalRect
(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder) Returns the portal rect atdestPos
.private boolean
ServerPlayerEntity.isBedObstructed
(BlockPos pos, Direction direction) private boolean
ServerPlayerEntity.isBedTooFarAway
(BlockPos pos) private boolean
ServerPlayerEntity.isBedTooFarAway
(BlockPos pos, Direction direction) private void
ServerPlayerInteractionManager.method_41250
(BlockPos pos, boolean success, int sequence, String reason) void
DemoServerPlayerInteractionManager.processBlockBreakingAction
(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight, int sequence) void
ServerPlayerInteractionManager.processBlockBreakingAction
(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight, int sequence) static void
DebugInfoSender.sendBeehiveDebugData
(World world, BlockPos pos, BlockState state, BeehiveBlockEntity blockEntity) static void
DebugInfoSender.sendNeighborUpdate
(World world, BlockPos pos) private static void
DebugInfoSender.sendPoi
(ServerWorld world, BlockPos pos) static void
DebugInfoSender.sendPoiAddition
(ServerWorld world, BlockPos pos) static void
DebugInfoSender.sendPointOfInterest
(ServerWorld world, BlockPos pos) static void
DebugInfoSender.sendPoiRemoval
(ServerWorld world, BlockPos pos) void
ServerPlayerEntity.setSpawnPoint
(RegistryKey<World> dimension, @Nullable BlockPos pos, float angle, boolean forced, boolean sendMessage) Sets the player's spawn point.void
boolean
ServerPlayerInteractionManager.tryBreakBlock
(BlockPos pos) com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,
Unit> Tries to start sleeping on a block. -
Uses of BlockPos in net.minecraft.server.world
Fields in net.minecraft.server.world declared as BlockPosModifier and TypeFieldDescriptionstatic final BlockPos
ServerWorld.END_SPAWN_POS
private final BlockPos
BlockEvent.pos
The field for thepos
record component.Fields in net.minecraft.server.world with type parameters of type BlockPosModifier and TypeFieldDescriptionstatic final ChunkTicketType<BlockPos>
ChunkTicketType.PORTAL
Used by a nether portal to load chunks in the other dimension.Methods in net.minecraft.server.world that return BlockPosModifier and TypeMethodDescriptionprotected BlockPos
ServerWorld.getLightningPos
(BlockPos pos) ServerWorld.locateStructure
(TagKey<Structure> structureTag, BlockPos pos, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.BlockEvent.pos()
Returns the value of thepos
record component.Methods in net.minecraft.server.world that return types with arguments of type BlockPosModifier and TypeMethodDescriptionServerWorld.getLightningRodPos
(BlockPos pos) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> ServerWorld.locateBiome
(Predicate<RegistryEntry<Biome>> predicate, BlockPos pos, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval) Methods in net.minecraft.server.world with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ServerLightingProvider.addLightSource
(BlockPos pos, int level) void
ServerWorld.addSyncedBlockEvent
(BlockPos pos, Block block, int type, int data) boolean
ServerWorld.canPlayerModifyAt
(PlayerEntity player, BlockPos pos) Returns whetherplayer
can modify blocks atpos
.void
ServerLightingProvider.checkBlock
(BlockPos pos) protected BlockPos
ServerWorld.getLightningPos
(BlockPos pos) ServerWorld.getLightningRodPos
(BlockPos pos) Returns the raid occurring within 96 block radius, ornull
if there is none.boolean
Returnstrue
if a raid exists within 96 block radius ofpos
.boolean
ServerWorld.isNearOccupiedPointOfInterest
(BlockPos pos) boolean
ServerWorld.isNearOccupiedPointOfInterest
(BlockPos pos, int maxDistance) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> ServerWorld.locateBiome
(Predicate<RegistryEntry<Biome>> predicate, BlockPos pos, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval) ServerWorld.locateStructure
(TagKey<Structure> structureTag, BlockPos pos, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.void
ChunkHolder.markForBlockUpdate
(BlockPos pos) void
ServerChunkManager.markForUpdate
(BlockPos pos) void
ServerWorld.onBlockChanged
(BlockPos pos, BlockState oldBlock, BlockState newBlock) Called when a block state changed.private void
ChunkHolder.sendBlockEntityUpdatePacket
(World world, BlockPos pos) void
ServerWorld.setBlockBreakingInfo
(int entityId, BlockPos pos, int progress) void
ServerWorld.setSpawnPos
(BlockPos pos, float angle) Sets the world spawn point.boolean
ServerEntityManager.shouldTick
(BlockPos pos) boolean
ServerWorld.shouldTick
(BlockPos pos) boolean
ServerWorld.shouldTickEntity
(BlockPos pos) Returns whether to tick entities atpos
.void
ServerWorld.syncGlobalEvent
(int eventId, BlockPos pos, int data) void
ServerWorld.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) private void
private void
private void
ChunkHolder.tryUpdateBlockEntityAt
(World world, BlockPos pos, BlockState state) void
ServerWorld.updateListeners
(BlockPos pos, BlockState oldState, BlockState newState, int flags) void
ServerWorld.updateNeighbor
(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
ServerWorld.updateNeighbor
(BlockPos pos, Block sourceBlock, BlockPos sourcePos) Triggers a neighbor update originating fromsourcePos
atpos
.void
ServerWorld.updateNeighbors
(BlockPos pos, Block block) void
ServerWorld.updateNeighborsAlways
(BlockPos pos, Block sourceBlock) Emits a neighbor update to all 6 neighboring blocks ofpos
.void
ServerWorld.updateNeighborsExcept
(BlockPos pos, Block sourceBlock, Direction direction) Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction.Constructors in net.minecraft.server.world with parameters of type BlockPosModifierConstructorDescriptionBlockEvent
(BlockPos pos, Block block, int type, int data) Creates an instance of aBlockEvent
record class. -
Uses of BlockPos in net.minecraft.structure
Fields in net.minecraft.structure declared as BlockPosModifier and TypeFieldDescriptionfinal BlockPos
StructureTemplate.StructureEntityInfo.blockPos
(package private) static final BlockPos
ShipwreckGenerator.DEFAULT_POSITION
protected BlockPos
PoolStructurePiece.pos
protected BlockPos
SimpleStructurePiece.pos
final BlockPos
StructureTemplate.StructureBlockInfo.pos
private BlockPos
StructurePlacementData.position
WoodlandMansionGenerator.GenerationPiece.position
Fields in net.minecraft.structure with type parameters of type BlockPosModifier and TypeFieldDescription(package private) static final List<Pair<BlockRotation,
BlockPos>> EndCityGenerator.FAT_TOWER_BRIDGE_ATTACHMENTS
(package private) static final Map<Identifier,
BlockPos> IglooGenerator.OFFSETS
(package private) static final Map<Identifier,
BlockPos> IglooGenerator.OFFSETS_FROM_TOP
(package private) static final List<Pair<BlockRotation,
BlockPos>> EndCityGenerator.SMALL_TOWER_BRIDGE_ATTACHMENTS
Methods in net.minecraft.structure that return BlockPosModifier and TypeMethodDescriptionstatic BlockPos
StructureTemplate.applyTransformedOffset
(BlockPos pos, BlockMirror mirror, BlockRotation rotation, int offsetX, int offsetZ) StrongholdGenerator.Start.getCenter()
StructurePiece.getCenter()
PoolStructurePiece.getPos()
StructurePlacementData.getPosition()
private static BlockPos
IglooGenerator.Piece.getPosOffset
(Identifier identifier, BlockPos pos, int yOffset) SimpleStructurePiece.method_41625()
StructureTemplate.offsetByTransformedSize
(BlockPos pos, BlockMirror mirror, BlockRotation rotation) static BlockPos
StructureTemplate.transform
(StructurePlacementData placementData, BlockPos pos) static BlockPos
StructureTemplate.transformAround
(BlockPos pos, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) StructureTemplate.transformBox
(StructurePlacementData placementData1, BlockPos pos1, StructurePlacementData placementData2, BlockPos pos2) Methods in net.minecraft.structure that return types with arguments of type BlockPosModifier and TypeMethodDescriptionOceanRuinGenerator.getRoomPositions
(Random random, BlockPos pos) Methods in net.minecraft.structure with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
WoodlandMansionGenerator.LayoutGenerator.addBigRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction connectedRoomDirection, Direction entranceDirection, WoodlandMansionGenerator.RoomPool pool) private void
WoodlandMansionGenerator.LayoutGenerator.addBigSecretRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, WoodlandMansionGenerator.RoomPool pool) protected boolean
StructurePiece.addChest
(ServerWorldAccess world, BlockBox boundingBox, Random random, BlockPos pos, Identifier lootTableId, @Nullable BlockState block) private void
StructureTemplate.addEntitiesFromWorld
(World world, BlockPos firstCorner, BlockPos secondCorner) private void
WoodlandMansionGenerator.LayoutGenerator.addMediumRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction connectedRoomDirection, Direction entranceDirection, WoodlandMansionGenerator.RoomPool pool, boolean staircase) static void
ShipwreckGenerator.addParts
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, boolean bool) static void
EndCityGenerator.addPieces
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, List<StructurePiece> pieces, Random random) static void
IglooGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random) static void
NetherFossilGenerator.addPieces
(StructureTemplateManager manager, StructurePiecesHolder holder, Random random, BlockPos pos) static void
OceanRuinGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure oceanRuinStructure) static void
WoodlandMansionGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, List<WoodlandMansionGenerator.Piece> pieces, Random random) private void
WoodlandMansionGenerator.LayoutGenerator.addRoof
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, WoodlandMansionGenerator.FlagMatrix layout, @Nullable WoodlandMansionGenerator.FlagMatrix nextFloorLayout) private void
WoodlandMansionGenerator.LayoutGenerator.addSmallRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction direction, WoodlandMansionGenerator.RoomPool pool) static BlockPos
StructureTemplate.applyTransformedOffset
(BlockPos pos, BlockMirror mirror, BlockRotation rotation, int offsetX, int offsetZ) StructureTemplate.calculateBoundingBox
(StructurePlacementData placementData, BlockPos pos) StructureTemplate.calculateBoundingBox
(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror) private boolean
RuinedPortalStructurePiece.canFillNetherrack
(WorldAccess world, BlockPos pos) boolean
boolean
EndCityGenerator.Part.create
(StructureTemplateManager manager, int depth, EndCityGenerator.Piece root, BlockPos pos, List<StructurePiece> pieces, Random random) protected static BlockBox
StructureTemplate.createBox
(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror, Vec3i dimensions) (package private) static boolean
EndCityGenerator.createPart
(StructureTemplateManager manager, EndCityGenerator.Part piece, int depth, EndCityGenerator.Piece parent, BlockPos pos, List<StructurePiece> pieces, Random random) (package private) static EndCityGenerator.Piece
EndCityGenerator.createPiece
(StructureTemplateManager structureTemplateManager, EndCityGenerator.Piece lastPiece, BlockPos relativePosition, String template, BlockRotation rotation, boolean ignoreAir) private static StructurePlacementData
RuinedPortalStructurePiece.createPlacementData
(BlockMirror mirror, BlockRotation rotation, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, BlockPos pos, RuinedPortalStructurePiece.Properties properties) void
BuriedTreasureGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
DesertTempleGenerator.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
IglooGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
JungleTempleGenerator.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftStairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.Bridge.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeEnd.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgePlatform.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeSmallCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeStairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorBalcony.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorExit.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorLeftTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorNetherWartsRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorRightTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorStairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.SmallCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFossilGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.Base.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.CoreRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.DoubleXRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.DoubleXYRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.DoubleYRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.DoubleYZRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.DoubleZRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.Entry.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.Penthouse.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.SimpleRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.SimpleRoomTop.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.WingRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanRuinGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
PoolStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, BlockPos pivot, boolean keepJigsaws) void
PoolStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
RuinedPortalStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
ShipwreckGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
SimpleStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.ChestCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.Corridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.FiveWayCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.LeftTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.Library.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.PortalRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.PrisonHall.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.RightTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.SmallCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.SpiralStaircase.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.SquareRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.Stairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) abstract void
StructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
SwampHutGenerator.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
WoodlandMansionGenerator.LayoutGenerator.generate
(BlockPos pos, BlockRotation rotation, List<WoodlandMansionGenerator.Piece> pieces, WoodlandMansionGenerator.MansionParameters parameters) private void
RuinedPortalStructurePiece.generateOvergrownLeaves
(Random random, WorldAccess world, BlockPos pos) private void
RuinedPortalStructurePiece.generateVines
(Random random, WorldAccess world, BlockPos pos) StructureTemplate.getInfosForBlock
(BlockPos pos, StructurePlacementData placementData, Block block) StructureTemplate.getInfosForBlock
(BlockPos pos, StructurePlacementData placementData, Block block, boolean transformed) private static BlockPos
IglooGenerator.Piece.getPosOffset
(Identifier identifier, BlockPos pos, int yOffset) StructurePlacementData.getRandomBlockInfos
(List<StructureTemplate.PalettedBlockInfoList> list, @Nullable BlockPos pos) OceanRuinGenerator.getRoomPositions
(Random random, BlockPos pos) protected void
EndCityGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
IglooGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
NetherFossilGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
OceanRuinGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
RuinedPortalStructurePiece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
ShipwreckGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected abstract void
SimpleStructurePiece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
WoodlandMansionGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) private boolean
MineshaftGenerator.MineshaftCorridor.isUpsideSolidFullSquare
(WorldView world, BlockPos pos, BlockState state) private static void
OceanRuinGenerator.method_14822
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure oceanRuinStructure, boolean large, float integrity) private static void
OceanRuinGenerator.method_14825
(StructureTemplateManager manager, Random random, BlockRotation rotation, BlockPos pos, OceanRuinStructure oceanRuinStructure, StructurePiecesHolder structurePiecesHolder) private int
OceanRuinGenerator.Piece.method_14829
(BlockPos start, BlockView world, BlockPos end) StructureTemplate.offsetByTransformedSize
(BlockPos pos, BlockMirror mirror, BlockRotation rotation) static BlockState
StructurePiece.orientateChest
(BlockView world, BlockPos pos, BlockState state) boolean
StructureTemplate.place
(ServerWorldAccess world, BlockPos pos, BlockPos pivot, StructurePlacementData placementData, Random random, int flags) private void
RuinedPortalStructurePiece.placeNetherrackBottom
(Random random, WorldAccess world, BlockPos pos) StructureTemplate.process
(WorldAccess world, BlockPos pos, BlockPos pivot, StructurePlacementData placementData, List<StructureTemplate.StructureBlockInfo> infos) void
StructureTemplate.saveFromWorld
(World world, BlockPos start, Vec3i dimensions, boolean includeEntities, @Nullable Block ignoredBlock) StructurePlacementData.setPosition
(BlockPos position) private boolean
MineshaftGenerator.MineshaftCorridor.sideCoversSmallSquare
(WorldView world, BlockPos pos, BlockState state) private void
StructureTemplate.spawnEntities
(ServerWorldAccess world, BlockPos pos, BlockMirror mirror, BlockRotation rotation, BlockPos pivot, @Nullable BlockBox area, boolean initializeMobs) static BlockPos
StructureTemplate.transform
(StructurePlacementData placementData, BlockPos pos) static BlockPos
StructureTemplate.transformAround
(BlockPos pos, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) static Vec3d
StructureTemplate.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) StructureTemplate.transformBox
(StructurePlacementData placementData1, BlockPos pos1, StructurePlacementData placementData2, BlockPos pos2) private void
RuinedPortalStructurePiece.updateNetherracks
(Random random, WorldAccess world, BlockPos pos) Constructors in net.minecraft.structure with parameters of type BlockPosModifierConstructorDescriptionPiece
(StructureTemplateManager manager, String template, BlockPos pos, BlockRotation rotation, boolean includeAir) Piece
(StructureTemplateManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, int yOffset) Piece
(StructureTemplateManager manager, Identifier template, BlockPos pos, BlockRotation rotation) Piece
(StructureTemplateManager structureTemplateManager, Identifier template, BlockPos pos, BlockRotation rotation, float integrity, OceanRuinStructure.BiomeTemperature biomeType, boolean large) Piece
(StructureTemplateManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, boolean grounded) Piece
(StructureTemplateManager manager, String template, BlockPos pos, BlockRotation rotation) Piece
(StructureTemplateManager manager, String template, BlockPos pos, BlockRotation rotation, BlockMirror mirror) PoolStructurePiece
(StructureTemplateManager structureTemplateManager, StructurePoolElement poolElement, BlockPos pos, int groundLevelDelta, BlockRotation rotation, BlockBox boundingBox) RuinedPortalStructurePiece
(StructureTemplateManager manager, BlockPos pos, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, RuinedPortalStructurePiece.Properties properties, Identifier id, StructureTemplate template, BlockRotation rotation, BlockMirror mirror, BlockPos blockPos) SimpleStructurePiece
(StructurePieceType type, int length, StructureTemplateManager structureTemplateManager, Identifier id, String template, StructurePlacementData placementData, BlockPos pos) StructureBlockInfo
(BlockPos pos, BlockState state, @Nullable NbtCompound nbt) StructureEntityInfo
(Vec3d pos, BlockPos blockPos, NbtCompound nbt) -
Uses of BlockPos in net.minecraft.structure.pool
Methods in net.minecraft.structure.pool that return types with arguments of type BlockPosModifier and TypeMethodDescriptionStructurePoolBasedGenerator.findStartingJigsawPos
(StructurePoolElement pool, Identifier id, BlockPos pos, BlockRotation rotation, StructureTemplateManager structureManager, ChunkRandom random) Methods in net.minecraft.structure.pool with parameters of type BlockPosModifier and TypeMethodDescriptionStructurePoolBasedGenerator.findStartingJigsawPos
(StructurePoolElement pool, Identifier id, BlockPos pos, BlockRotation rotation, StructureTemplateManager structureManager, ChunkRandom random) boolean
EmptyPoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
FeaturePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
ListPoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
SinglePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) static boolean
StructurePoolBasedGenerator.generate
(ServerWorld world, RegistryEntry<StructurePool> structurePool, Identifier id, int int2, BlockPos pos, boolean keepJigsaws) static Optional<Structure.StructurePosition>
StructurePoolBasedGenerator.generate
(Structure.Context context, RegistryEntry<StructurePool> structurePool, Optional<Identifier> id, int size, BlockPos pos, boolean useExpansionHack, Optional<Heightmap.Type> projectStartToHeightmap, int maxDistanceFromCenter) abstract boolean
StructurePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) EmptyPoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) FeaturePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) ListPoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) SinglePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) abstract BlockBox
StructurePoolElement.getBoundingBox
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation) SinglePoolElement.getDataStructureBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, boolean mirroredAndRotated) EmptyPoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) FeaturePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) ListPoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) SinglePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) abstract List<StructureTemplate.StructureBlockInfo>
StructurePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) void
StructurePoolElement.method_16756
(WorldAccess world, StructureTemplate.StructureBlockInfo structureBlockInfo, BlockPos pos, BlockRotation rotation, Random random, BlockBox box) -
Uses of BlockPos in net.minecraft.structure.processor
Methods in net.minecraft.structure.processor with parameters of type BlockPosModifier and TypeMethodDescriptionBlackstoneReplacementStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) BlockAgeStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) BlockIgnoreStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) BlockRotStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) GravityStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) JigsawReplacementStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) LavaSubmergedBlockStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) NopStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) ProtectedBlocksStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) RuleStructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) abstract StructureTemplate.StructureBlockInfo
StructureProcessor.process
(WorldView world, BlockPos pos, BlockPos pivot, StructureTemplate.StructureBlockInfo originalBlockInfo, StructureTemplate.StructureBlockInfo currentBlockInfo, StructurePlacementData data) boolean
StructureProcessorRule.test
(BlockState input, BlockState location, BlockPos blockPos, BlockPos blockPos2, BlockPos pivot, Random random) -
Uses of BlockPos in net.minecraft.structure.rule
Methods in net.minecraft.structure.rule with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.test
Fields in net.minecraft.test declared as BlockPosModifier and TypeFieldDescriptionGameTestState.pos
private final BlockPos
PositionedException.pos
private final BlockPos
StructureTestListener.pos
private final BlockPos
TestRunner.pos
private final BlockPos
TestServer.pos
private final BlockPos
PositionedException.relativePos
Methods in net.minecraft.test that return BlockPosModifier and TypeMethodDescriptionStructureTestUtil.findNearestStructureBlock
(BlockPos pos, int radius, ServerWorld world) TestContext.getAbsolutePos
(BlockPos pos) GameTestState.getPos()
PositionedException.getPos()
PositionedException.getRelativePos()
TestContext.getRelativePos
(BlockPos pos) Methods in net.minecraft.test that return types with arguments of type BlockPosModifier and TypeMethodDescriptionprivate Map<GameTestState,
BlockPos> TestRunner.alignTestStructures
(Collection<GameTestState> gameTests) StructureTestUtil.findContainingStructureBlock
(BlockPos pos, int radius, ServerWorld world) static Collection<BlockPos>
StructureTestUtil.findStructureBlocks
(BlockPos pos, int radius, ServerWorld world) Methods in net.minecraft.test with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static void
StructureTestListener.addGameTestMarker
(ServerWorld world, BlockPos pos, String message) void
TestContext.checkBlock
(BlockPos pos, Predicate<Block> predicate, String errorMessage) void
TestContext.checkBlock
(BlockPos pos, Predicate<Block> predicate, Supplier<String> errorMessageSupplier) <T extends Comparable<T>>
voidTestContext.checkBlockProperty
(BlockPos pos, Property<T> property, Predicate<T> predicate, String errorMessage) void
TestContext.checkBlockState
(BlockPos pos, Predicate<BlockState> predicate, Supplier<String> errorMessageSupplier) static void
TestUtil.clearTests
(ServerWorld world, BlockPos pos, TestManager testManager, int radius) static TestServer
TestServer.create
(Thread thread, LevelStorage.Session session, ResourcePackManager resourcePackManager, Collection<GameTestBatch> batches, BlockPos pos) static StructureBlockBlockEntity
StructureTestUtil.createStructureTemplate
(String templateName, BlockPos pos, BlockRotation rotation, int int2, ServerWorld world, boolean bool) static void
StructureTestUtil.createTestArea
(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world) void
TestContext.dontExpectBlock
(Block block, BlockPos pos) void
TestContext.dontExpectEntityAt
(EntityType<?> type, BlockPos pos) void
TestContext.dontExpectEntityAtEnd
(EntityType<?> type, BlockPos pos) void
TestContext.dontExpectItemAt
(Item item, BlockPos pos, double radius) void
TestContext.expectBlock
(Block block, BlockPos pos) void
TestContext.expectBlockAtEnd
(Block block, BlockPos pos) <T extends Comparable<T>>
voidTestContext.expectBlockProperty
(BlockPos pos, Property<T> property, T value) void
TestContext.expectContainerWith
(long delay, BlockPos pos, Item item) void
TestContext.expectContainerWith
(BlockPos pos, Item item) void
TestContext.expectEmptyContainer
(long delay, BlockPos pos) void
TestContext.expectEmptyContainer
(BlockPos pos) void
TestContext.expectEntitiesAround
(EntityType<?> type, BlockPos pos, int amount, double radius) void
TestContext.expectEntityAround
(EntityType<?> type, BlockPos pos, double radius) void
TestContext.expectEntityAt
(Entity entity, BlockPos pos) void
TestContext.expectEntityAt
(EntityType<?> type, BlockPos pos) void
TestContext.expectEntityAtEnd
(EntityType<?> type, BlockPos pos) <E extends Entity,
T>
voidTestContext.expectEntityWithData
(BlockPos pos, EntityType<E> type, Function<? super E, T> entityDataGetter, T data) <E extends Entity,
T>
voidTestContext.expectEntityWithDataEnd
(BlockPos pos, EntityType<E> type, Function<E, T> entityDataGetter, T data) void
TestContext.expectItemAt
(Item item, BlockPos pos, double radius) void
TestContext.expectItemsAt
(Item item, BlockPos pos, double radius, int amount) void
TestContext.expectSameStates
(BlockBox checkedBlockBox, BlockPos correctStatePos) void
TestContext.expectSameStates
(BlockPos checkedPos, BlockPos correctStatePos) StructureTestUtil.findContainingStructureBlock
(BlockPos pos, int radius, ServerWorld world) StructureTestUtil.findNearestStructureBlock
(BlockPos pos, int radius, ServerWorld world) static Collection<BlockPos>
StructureTestUtil.findStructureBlocks
(BlockPos pos, int radius, ServerWorld world) private static void
StructureTestUtil.forceLoadNearbyChunks
(BlockPos pos, ServerWorld world) void
TestContext.forceRandomTick
(BlockPos pos) TestContext.getAbsolutePos
(BlockPos pos) TestContext.getBlockEntity
(BlockPos pos) TestContext.getBlockState
(BlockPos pos) TestContext.getEntitiesAround
(EntityType<T> type, BlockPos pos, double radius) TestContext.getRelativePos
(BlockPos pos) static BlockBox
StructureTestUtil.getStructureBlockBox
(BlockPos pos, Vec3i relativePos, BlockRotation rotation) void
private static boolean
StructureTestUtil.isInStructureBounds
(BlockPos structureBlockPos, BlockPos pos, ServerWorld world) static void
StructureTestUtil.placeStartButton
(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world) private static StructureBlockBlockEntity
StructureTestUtil.placeStructureTemplate
(String name, BlockPos pos, BlockRotation rotation, ServerWorld world, boolean bool) void
TestContext.pushButton
(BlockPos pos) void
TestContext.putAndRemoveRedstoneBlock
(BlockPos pos, long delay) void
TestContext.removeBlock
(BlockPos pos) private static void
StructureTestUtil.resetBlock
(int altitude, BlockPos pos, ServerWorld world) static Collection<GameTestState>
TestUtil.runTestBatches
(Collection<GameTestBatch> batches, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) static Collection<GameTestState>
TestUtil.runTestFunctions
(Collection<TestFunction> testFunctions, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) void
TestContext.setBlockState
(BlockPos pos, Block block) void
TestContext.setBlockState
(BlockPos pos, BlockState state) (package private) void
<E extends Entity>
ETestContext.spawnEntity
(EntityType<E> type, BlockPos pos) <E extends MobEntity>
ETestContext.spawnMob
(EntityType<E> type, BlockPos pos) TestContext.startMovingTowards
(MobEntity entity, BlockPos pos, float speed) static void
TestUtil.startTest
(GameTestState test, BlockPos pos, TestManager testManager) void
TestContext.throwPositionedException
(String message, BlockPos pos) void
TestContext.toggleLever
(BlockPos pos) void
Method parameters in net.minecraft.test with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
TestContext.forEachRelativePos
(Consumer<BlockPos> posConsumer) Constructors in net.minecraft.test with parameters of type BlockPosModifierConstructorDescriptionPositionedException
(String message, BlockPos pos, BlockPos relativePos, long tick) StructureTestListener
(GameTestState test, TestManager testManager, BlockPos pos) TestRunner
(Collection<GameTestBatch> batches, BlockPos pos, BlockRotation rotation, ServerWorld world, TestManager testManager, int sizeZ) private
TestServer
(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Collection<GameTestBatch> batches, BlockPos pos) -
Uses of BlockPos in net.minecraft.util
Methods in net.minecraft.util with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.util.crash
Methods in net.minecraft.util.crash with parameters of type BlockPosModifier and TypeMethodDescriptionstatic void
CrashReportSection.addBlockInfo
(CrashReportSection element, HeightLimitView world, BlockPos pos, @Nullable BlockState state) static String
CrashReportSection.createPositionString
(HeightLimitView world, BlockPos pos) -
Uses of BlockPos in net.minecraft.util.hit
Fields in net.minecraft.util.hit declared as BlockPosMethods in net.minecraft.util.hit that return BlockPosMethods in net.minecraft.util.hit with parameters of type BlockPosModifier and TypeMethodDescriptionstatic BlockHitResult
BlockHitResult.createMissed
(Vec3d pos, Direction side, BlockPos blockPos) BlockHitResult.withBlockPos
(BlockPos blockPos) Constructors in net.minecraft.util.hit with parameters of type BlockPosModifierConstructorDescriptionprivate
BlockHitResult
(boolean missed, Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) -
Uses of BlockPos in net.minecraft.util.math
Subclasses of BlockPos in net.minecraft.util.mathFields in net.minecraft.util.math declared as BlockPosModifier and TypeFieldDescriptionstatic final BlockPos
BlockPos.ORIGIN
The block position which x, y, and z values are all zero.private final BlockPos
BlockPointerImpl.pos
private final BlockPos
GlobalPos.pos
private final BlockPos
GravityField.Point.pos
Fields in net.minecraft.util.math with type parameters of type BlockPosModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockPos>
BlockPos.CODEC
Methods in net.minecraft.util.math that return BlockPosModifier and TypeMethodDescriptionBlockPos.add
(double double2, double double3, double double4) BlockPos.add
(int int2, int int3, int int4) BlockPos.Mutable.add
(double double2, double double3, double double4) BlockPos.Mutable.add
(int int2, int int3, int int4) BlockPos.crossProduct
(Vec3i pos) BlockPos.down()
BlockPos.down
(int int2) BlockPos.east()
BlockPos.east
(int distance) static BlockPos
BlockPos.fromLong
(long packedPos) ChunkPos.getBlockPos
(int offsetX, int y, int offsetZ) BlockBox.getCenter()
ChunkPos.getCenterAtY
(int y) ChunkSectionPos.getCenterPos()
ChunkSectionPos.getMinPos()
BlockPointer.getPos()
BlockPointerImpl.getPos()
GlobalPos.getPos()
ChunkPos.getStartPos()
BlockPos.multiply
(int int2) BlockPos.Mutable.multiply
(int int2) BlockPos.north()
BlockPos.north
(int distance) BlockPos.Mutable.offset
(Direction.Axis axis, int int2) BlockPos.offset
(Direction.Axis axis, int int2) BlockPos.Mutable.rotate
(BlockRotation rotation) BlockPos.rotate
(BlockRotation rotation) BlockPos.south()
BlockPos.south
(int distance) BlockPos.Mutable.toImmutable()
Returns an immutable block position with the same x, y, and z as this position.BlockPos.toImmutable()
Returns an immutable block position with the same x, y, and z as this position.ChunkSectionPos.unpackBlockPos
(short packedLocalPos) Gets the world position of the given local position within this chunk section.BlockPos.up()
BlockPos.up
(int distance) BlockPos.west()
BlockPos.west
(int distance) BlockPos.withY
(int y) Methods in net.minecraft.util.math that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBlockPos.findClosest
(BlockPos pos, int horizontalRange, int verticalRange, Predicate<BlockPos> condition) BlockPos.iterate
(int startX, int startY, int startZ, int endX, int endY, int endZ) BlockPos.iterateOutwards
(BlockPos center, int rangeX, int rangeY, int rangeZ) Iterates block positions around thecenter
.BlockPos.iterateRandomly
(Random random, int count, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Iterates throughcount
random block positions in the given area.BlockPos.iterateRandomly
(Random random, int count, BlockPos around, int range) Iterates throughcount
random block positions in a given range around the given position.BlockPos.stream
(int startX, int startY, int startZ, int endX, int endY, int endZ) ChunkSectionPos.streamBlocks()
BlockPos.streamOutwards
(BlockPos center, int maxX, int maxY, int maxZ) Methods in net.minecraft.util.math with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
Adds a point to the gravity field.double
Calculate the gravity on a potential point atpos
withmass
.static GlobalPos
GlobalPos.create
(RegistryKey<World> dimension, BlockPos pos) Deprecated.BlockPos.findClosest
(BlockPos pos, int horizontalRange, int verticalRange, Predicate<BlockPos> condition) static void
ChunkSectionPos.forEachChunkSectionAround
(BlockPos pos, LongConsumer consumer) static ChunkSectionPos
Direction.fromVector
(BlockPos pos) double
GravityField.Point.getGravityFactor
(BlockPos pos) static Iterable<BlockPos.Mutable>
BlockPos.iterateInSquare
(BlockPos center, int radius, Direction firstDirection, Direction secondDirection) Iterates block positions around thecenter
in a square of (2 * radius + 1
) by (2 * radius + 1
).BlockPos.iterateOutwards
(BlockPos center, int rangeX, int rangeY, int rangeZ) Iterates block positions around thecenter
.BlockPos.iterateRandomly
(Random random, int count, BlockPos around, int range) Iterates throughcount
random block positions in a given range around the given position.Creates a box that is translated byblockPos.getX()
,blockPos.getY()
,blockPos.getZ()
on each axis from this box.static short
Returns the local position of the given block position relative to its respective chunk section, packed into a short.static @Nullable BlockHitResult
BlockPos.streamOutwards
(BlockPos center, int maxX, int maxY, int maxZ) static long
static long
Method parameters in net.minecraft.util.math with type arguments of type BlockPosModifier and TypeMethodDescriptionBlockBox.encompassPositions
(Iterable<BlockPos> positions) BlockPos.findClosest
(BlockPos pos, int horizontalRange, int verticalRange, Predicate<BlockPos> condition) void
BlockBox.forEachVertex
(Consumer<BlockPos> consumer) Constructors in net.minecraft.util.math with parameters of type BlockPosModifierConstructorDescriptionCreates a box enclosing onlypos
.BlockPointerImpl
(ServerWorld world, BlockPos pos) Creates a box that only contains the given block position.Creates a box of the given positions as corners.private
GlobalPos
(RegistryKey<World> dimension, BlockPos pos) -
Uses of BlockPos in net.minecraft.util.math.random
Methods in net.minecraft.util.math.random with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.util.shape
Methods in net.minecraft.util.shape with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.village
Methods in net.minecraft.village with parameters of type BlockPosModifier and TypeMethodDescriptionZombieSiegeManager.getSpawnVector
(ServerWorld world, BlockPos pos) -
Uses of BlockPos in net.minecraft.village.raid
Fields in net.minecraft.village.raid declared as BlockPosFields in net.minecraft.village.raid with type parameters of type BlockPosModifier and TypeFieldDescriptionMethods in net.minecraft.village.raid that return BlockPosModifier and TypeMethodDescriptionRaid.getCenter()
Raid.getRavagerSpawnLocation
(int proximity, int tries) Methods in net.minecraft.village.raid that return types with arguments of type BlockPosMethods in net.minecraft.village.raid with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
Raid.addRaider
(int wave, RaiderEntity raider, @Nullable BlockPos pos, boolean existing) private Raid
RaidManager.getOrCreateRaid
(ServerWorld world, BlockPos pos) private void
Raid.playRaidHorn
(BlockPos pos) private void
private void
Raid.spawnNextWave
(BlockPos pos) Constructors in net.minecraft.village.raid with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world
Fields in net.minecraft.world declared as BlockPosModifier and TypeFieldDescriptionSpawnHelper.Info.cachedPos
final BlockPos
BlockLocating.Rectangle.lowerLeft
Methods in net.minecraft.world that return BlockPosModifier and TypeMethodDescriptionprivate static BlockPos
SpawnHelper.getEntitySpawnPos
(WorldView world, EntityType<?> entityType, int x, int z) WanderingTraderManager.getNearbySpawnPos
(WorldView world, BlockPos pos, int range) World.getRandomPosInChunk
(int x, int y, int z, int int2) private static BlockPos
SpawnHelper.getRandomPosInChunkSection
(World world, WorldChunk chunk) World.getSpawnPos()
default BlockPos
RegistryWorldView.getTopPosition
(Heightmap.Type heightmap, BlockPos pos) Returns the position of the topmost block in the column containingpos
usingheightmap
heightmap.TestableWorld.getTopPosition
(Heightmap.Type heightmap, BlockPos pos) default BlockPos
WorldView.getTopPosition
(Heightmap.Type heightmap, BlockPos pos) Returns the position of the topmost block in the column containingpos
usingheightmap
heightmap.Methods in net.minecraft.world that return types with arguments of type BlockPosModifier and TypeMethodDescriptionBlockLocating.findColumnEnd
(BlockView world, BlockPos pos, Block intermediateBlock, Direction direction, Block endBlock) Finds an end to a block column starting frompos
extending indirection
.Methods in net.minecraft.world with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
World.addBlockBreakParticles
(BlockPos pos, BlockState state) void
World.addSyncedBlockEvent
(BlockPos pos, Block block, int type, int data) boolean
ChunkRegion.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.default boolean
ModifiableWorld.breakBlock
(BlockPos pos, boolean drop) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.default boolean
ModifiableWorld.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.boolean
ModifiableWorld.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.boolean
World.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.default boolean
CollisionView.canPlace
(BlockState state, BlockPos pos, ShapeContext context) boolean
World.canPlayerModifyAt
(PlayerEntity player, BlockPos pos) Returns whetherplayer
can modify blocks atpos
.boolean
World.canSetBlock
(BlockPos pos) static boolean
SpawnHelper.canSpawn
(SpawnRestriction.Location location, WorldView world, BlockPos pos, @Nullable EntityType<?> entityType) void
MobSpawnerLogic.clientTick
(World world, BlockPos pos) private static boolean
SpawnHelper.containsSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry, BlockPos pos) default void
WorldAccess.createAndScheduleBlockTick
(BlockPos pos, Block block, int delay) default void
WorldAccess.createAndScheduleBlockTick
(BlockPos pos, Block block, int delay, TickPriority priority) default void
WorldAccess.createAndScheduleFluidTick
(BlockPos pos, Fluid fluid, int delay) default void
WorldAccess.createAndScheduleFluidTick
(BlockPos pos, Fluid fluid, int delay, TickPriority priority) private <T> OrderedTick<T>
WorldAccess.createOrderedTick
(BlockPos pos, T type, int delay) private <T> OrderedTick<T>
WorldAccess.createOrderedTick
(BlockPos pos, T type, int delay, TickPriority priority) PortalForcer.createPortal
(BlockPos pos, Direction.Axis axis) private boolean
WanderingTraderManager.doesNotSuffocateAt
(BlockView world, BlockPos pos) default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) default void
WorldAccess.emitGameEvent
(GameEvent event, BlockPos pos, GameEvent.Emitter emitter) BlockLocating.findColumnEnd
(BlockView world, BlockPos pos, Block intermediateBlock, Direction direction, Block endBlock) Finds an end to a block column starting frompos
extending indirection
.RaycastContext.ShapeProvider.get
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) RaycastContext.ShapeType.get
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) default int
BlockRenderView.getBaseLightLevel
(BlockPos pos, int ambientDarkness) default RegistryEntry<Biome>
(package private) static Biome
SpawnHelper.getBiomeDirectly
(BlockPos pos, Chunk chunk) BlockView.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.default <T extends BlockEntity>
Optional<T>BlockView.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) ChunkRegion.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.EmptyBlockView.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.default <T extends BlockEntity>
Optional<T>RegistryWorldView.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) <T extends BlockEntity>
Optional<T>TestableWorld.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) World.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.RaycastContext.getBlockShape
(BlockState state, BlockView world, BlockPos pos) BlockView.getBlockState
(BlockPos pos) Returns the block state atpos
.ChunkRegion.getBlockState
(BlockPos pos) Returns the block state atpos
.ChunkSectionCache.getBlockState
(BlockPos pos) EmptyBlockView.getBlockState
(BlockPos pos) Returns the block state atpos
.World.getBlockState
(BlockPos pos) Returns the block state atpos
.default float
WorldView.getBrightness
(BlockPos pos) Deprecated.default Chunk
Returns the chunk that containspos
.int
BlockRenderView.getColor
(BlockPos pos, ColorResolver colorResolver) default int
WorldView.getColor
(BlockPos pos, ColorResolver colorResolver) default double
BlockView.getDismountHeight
(BlockPos pos) int
World.getEmittedRedstonePower
(BlockPos pos, Direction direction) RaycastContext.getFluidShape
(FluidState state, BlockView world, BlockPos pos) BlockView.getFluidState
(BlockPos pos) Returns the fluid state atpos
.ChunkRegion.getFluidState
(BlockPos pos) Returns the fluid state atpos
.EmptyBlockView.getFluidState
(BlockPos pos) Returns the fluid state atpos
.World.getFluidState
(BlockPos pos) Returns the fluid state atpos
.static BlockLocating.Rectangle
BlockLocating.getLargestRectangle
(BlockPos center, Direction.Axis primaryAxis, int primaryMaxBlocks, Direction.Axis secondaryAxis, int secondaryMaxBlocks, Predicate<BlockPos> predicate) Gets the largest rectangle of blocks along two axes for which all blocks meet a predicate.default int
BlockRenderView.getLightLevel
(LightType type, BlockPos pos) default int
WorldView.getLightLevel
(BlockPos pos) default int
WorldView.getLightLevel
(BlockPos pos, int ambientDarkness) ChunkRegion.getLocalDifficulty
(BlockPos pos) World.getLocalDifficulty
(BlockPos pos) WorldAccess.getLocalDifficulty
(BlockPos pos) default int
BlockView.getLuminance
(BlockPos pos) WanderingTraderManager.getNearbySpawnPos
(WorldView world, BlockPos pos, int range) default float
WorldView.getPhototaxisFavor
(BlockPos pos) PortalForcer.getPortalRect
(BlockPos pos, boolean destIsNether, WorldBorder worldBorder) int
World.getReceivedRedstonePower
(BlockPos pos) int
World.getReceivedStrongRedstonePower
(BlockPos pos) ChunkSectionCache.getSection
(BlockPos pos) private static Pool<SpawnSettings.SpawnEntry>
SpawnHelper.getSpawnEntries
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, @Nullable RegistryEntry<Biome> biomeEntry) default int
WorldView.getStrongRedstonePower
(BlockPos pos, Direction direction) default BlockPos
RegistryWorldView.getTopPosition
(Heightmap.Type heightmap, BlockPos pos) Returns the position of the topmost block in the column containingpos
usingheightmap
heightmap.TestableWorld.getTopPosition
(Heightmap.Type heightmap, BlockPos pos) default BlockPos
WorldView.getTopPosition
(Heightmap.Type heightmap, BlockPos pos) Returns the position of the topmost block in the column containingpos
usingheightmap
heightmap.World.getWorldChunk
(BlockPos pos) Returns the chunk that containspos
.boolean
World.hasHighHumidity
(BlockPos pos) Returns whether the biome atpos
has high humidity.boolean
Returns whether it can rain atpos
.default boolean
default boolean
WorldView.isChunkLoaded
(BlockPos pos) Deprecated.static boolean
SpawnHelper.isClearForSpawn
(BlockView blockView, BlockPos pos, BlockState state, FluidState fluidState, EntityType<?> entityType) boolean
World.isDirectionSolid
(BlockPos pos, Entity entity, Direction direction) boolean
World.isEmittingRedstonePower
(BlockPos pos, Direction direction) boolean
World.isInBuildLimit
(BlockPos pos) Returns whether the position is inside the build limit.default boolean
HeightLimitView.isOutOfHeightLimit
(BlockPos pos) Checks ifpos
is out of the height limit of this view.private boolean
MobSpawnerLogic.isPlayerInRange
(World world, BlockPos pos) boolean
World.isReceivingRedstonePower
(BlockPos pos) default boolean
WorldView.isRegionLoaded
(BlockPos min, BlockPos max) Deprecated.default boolean
BlockRenderView.isSkyVisible
(BlockPos pos) Returns if the sky is visible atpos
.default boolean
WorldView.isSkyVisibleAllowingSea
(BlockPos pos) Returns whether the sky is visible atpos
.boolean
World.isTopSolid
(BlockPos pos, Entity entity) static boolean
Returns whether the position is valid.boolean
ChunkRegion.isValidForSetBlock
(BlockPos pos) Returnstrue
if the given position is an accessible position for thesetBlockState
function.default boolean
StructureWorldAccess.isValidForSetBlock
(BlockPos pos) Returnstrue
if the given position is an accessible position for thesetBlockState
function.private static boolean
World.isValidHorizontally
(BlockPos pos) private boolean
PortalForcer.isValidPortalPos
(BlockPos pos, BlockPos.Mutable temp, Direction portalDirection, int distanceOrthogonalToPortal) default boolean
private void
ChunkRegion.markBlockForPostProcessing
(BlockPos pos) void
void
World.onBlockChanged
(BlockPos pos, BlockState oldBlock, BlockState newBlock) Called when a block state changed.private static Optional<SpawnSettings.SpawnEntry>
SpawnHelper.pickRandomSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos) void
ChunkRegion.playSound
(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) void
World.playSound
(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) void
WorldAccess.playSound
(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) default @Nullable BlockHitResult
BlockView.raycastBlock
(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state) void
MobSpawnerLogic.readNbt
(@Nullable World world, BlockPos pos, NbtCompound nbt) boolean
ChunkRegion.removeBlock
(BlockPos pos, boolean move) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.boolean
ModifiableWorld.removeBlock
(BlockPos pos, boolean move) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.boolean
World.removeBlock
(BlockPos pos, boolean move) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.void
World.removeBlockEntity
(BlockPos pos) void
World.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) default void
WorldAccess.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
World.scheduleBlockRerenderIfNeeded
(BlockPos pos, BlockState old, BlockState updated) abstract void
MobSpawnerLogic.sendStatus
(World world, BlockPos pos, int status) void
MobSpawnerLogic.serverTick
(ServerWorld world, BlockPos pos) abstract void
World.setBlockBreakingInfo
(int entityId, BlockPos pos, int progress) boolean
ChunkRegion.setBlockState
(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.default boolean
ModifiableWorld.setBlockState
(BlockPos pos, BlockState state, int flags) Updates the block state at a position, calling appropriate callbacks.boolean
ModifiableWorld.setBlockState
(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.boolean
World.setBlockState
(BlockPos pos, BlockState state) boolean
World.setBlockState
(BlockPos pos, BlockState state, int flags) Updates the block state at a position, calling appropriate callbacks.boolean
World.setBlockState
(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.void
MobSpawnerLogic.setSpawnEntry
(@Nullable World world, BlockPos pos, MobSpawnerEntry spawnEntry) default void
MutableWorldProperties.setSpawnPos
(BlockPos pos, float angle) boolean
World.shouldTickBlockPos
(BlockPos pos) static boolean
SpawnHelper.shouldUseNetherFortressSpawns
(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor) static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, BlockPos pos) static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, Chunk chunk, BlockPos pos, SpawnHelper.Checker checker, SpawnHelper.Runner runner) void
World.syncGlobalEvent
(int eventId, BlockPos pos, int data) void
ChunkRegion.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) default void
WorldAccess.syncWorldEvent
(int eventId, BlockPos pos, int data) void
WorldAccess.syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) boolean
SpawnHelper.Checker.test
(EntityType<?> type, BlockPos pos, Chunk chunk) private boolean
SpawnHelper.Info.test
(EntityType<?> type, BlockPos pos, Chunk chunk) boolean
ChunkRegion.testBlockState
(BlockPos pos, Predicate<BlockState> state) boolean
TestableWorld.testBlockState
(BlockPos pos, Predicate<BlockState> state) boolean
World.testBlockState
(BlockPos pos, Predicate<BlockState> state) boolean
ChunkRegion.testFluidState
(BlockPos pos, Predicate<FluidState> state) boolean
TestableWorld.testFluidState
(BlockPos pos, Predicate<FluidState> state) boolean
World.testFluidState
(BlockPos pos, Predicate<FluidState> state) void
World.updateComparators
(BlockPos pos, Block block) abstract void
World.updateListeners
(BlockPos pos, BlockState oldState, BlockState newState, int flags) void
World.updateNeighbor
(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
World.updateNeighbor
(BlockPos pos, Block sourceBlock, BlockPos sourcePos) Triggers a neighbor update originating fromsourcePos
atpos
.default void
WorldAccess.updateNeighbors
(BlockPos pos, Block block) void
World.updateNeighborsAlways
(BlockPos pos, Block sourceBlock) Emits a neighbor update to all 6 neighboring blocks ofpos
.void
World.updateNeighborsExcept
(BlockPos pos, Block sourceBlock, Direction direction) Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction.private void
MobSpawnerLogic.updateSpawns
(World world, BlockPos pos) Method parameters in net.minecraft.world with type arguments of type BlockPosModifier and TypeMethodDescriptionstatic BlockLocating.Rectangle
BlockLocating.getLargestRectangle
(BlockPos center, Direction.Axis primaryAxis, int primaryMaxBlocks, Direction.Axis secondaryAxis, int secondaryMaxBlocks, Predicate<BlockPos> predicate) Gets the largest rectangle of blocks along two axes for which all blocks meet a predicate.private static int
BlockLocating.moveWhile
(Predicate<BlockPos> predicate, BlockPos.Mutable pos, Direction direction, int max) static <T,
C> T BlockView.raycast
(Vec3d start, Vec3d end, C context, BiFunction<C, BlockPos, T> blockHitFactory, Function<C, T> missFactory) Constructors in net.minecraft.world with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.biome
Methods in net.minecraft.world.biome with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
boolean
boolean
Biome.canSetSnow
(WorldView world, BlockPos pos) private float
Biome.computeTemperature
(BlockPos pos) boolean
Biome.doesNotSnow
(BlockPos pos) abstract float
Biome.TemperatureModifier.getModifiedTemperature
(BlockPos pos, float temperature) private float
Biome.getTemperature
(BlockPos blockPos) Deprecated.boolean
boolean
boolean
Biome.shouldGenerateLowerFrozenOceanSurface
(BlockPos pos) -
Uses of BlockPos in net.minecraft.world.biome.source
Methods in net.minecraft.world.biome.source that return types with arguments of type BlockPosModifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> BiomeSource.locateBiome
(int x, int y, int z, int radius, int blockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, Random random, boolean bool, MultiNoiseUtil.MultiNoiseSampler noiseSampler) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> BiomeSource.locateBiome
(int x, int y, int z, int radius, Predicate<RegistryEntry<Biome>> predicate, Random random, MultiNoiseUtil.MultiNoiseSampler noiseSampler) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> BiomeSource.locateBiome
(BlockPos origin, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, MultiNoiseUtil.MultiNoiseSampler noiseSampler, WorldView world) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> FixedBiomeSource.locateBiome
(int x, int y, int z, int radius, int blockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, Random random, boolean bool, MultiNoiseUtil.MultiNoiseSampler noiseSampler) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> FixedBiomeSource.locateBiome
(BlockPos origin, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, MultiNoiseUtil.MultiNoiseSampler noiseSampler, WorldView world) Methods in net.minecraft.world.biome.source with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
BiomeSource.addDebugInfo
(List<String> info, BlockPos pos, MultiNoiseUtil.MultiNoiseSampler noiseSampler) void
MultiNoiseBiomeSource.addDebugInfo
(List<String> info, BlockPos pos, MultiNoiseUtil.MultiNoiseSampler noiseSampler) BiomeAccess.getBiomeForNoiseGen
(BlockPos pos) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> BiomeSource.locateBiome
(BlockPos origin, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, MultiNoiseUtil.MultiNoiseSampler noiseSampler, WorldView world) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> FixedBiomeSource.locateBiome
(BlockPos origin, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, MultiNoiseUtil.MultiNoiseSampler noiseSampler, WorldView world) -
Uses of BlockPos in net.minecraft.world.biome.source.util
Fields in net.minecraft.world.biome.source.util declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
MultiNoiseUtil.FittestPositionFinder.Result.location
The field for thelocation
record component.Methods in net.minecraft.world.biome.source.util that return BlockPosModifier and TypeMethodDescriptionMultiNoiseUtil.MultiNoiseSampler.findBestSpawnPosition()
static BlockPos
MultiNoiseUtil.findFittestPosition
(List<MultiNoiseUtil.NoiseHypercube> noises, MultiNoiseUtil.MultiNoiseSampler sampler) MultiNoiseUtil.FittestPositionFinder.Result.location()
Returns the value of thelocation
record component.Constructors in net.minecraft.world.biome.source.util with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.block
Fields in net.minecraft.world.block declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
ChainRestrictedNeighborUpdater.StateReplacementEntry.neighborPos
The field for theneighborPos
record component.private final BlockPos
ChainRestrictedNeighborUpdater.SimpleEntry.pos
The field for thepos
record component.private final BlockPos
ChainRestrictedNeighborUpdater.SixWayEntry.pos
private final BlockPos
ChainRestrictedNeighborUpdater.StatefulEntry.pos
The field for thepos
record component.private final BlockPos
ChainRestrictedNeighborUpdater.StateReplacementEntry.pos
The field for thepos
record component.private final BlockPos
ChainRestrictedNeighborUpdater.SimpleEntry.sourcePos
The field for thesourcePos
record component.private final BlockPos
ChainRestrictedNeighborUpdater.StatefulEntry.sourcePos
The field for thesourcePos
record component.Methods in net.minecraft.world.block that return BlockPosModifier and TypeMethodDescriptionChainRestrictedNeighborUpdater.StateReplacementEntry.neighborPos()
Returns the value of theneighborPos
record component.ChainRestrictedNeighborUpdater.SimpleEntry.pos()
Returns the value of thepos
record component.ChainRestrictedNeighborUpdater.StatefulEntry.pos()
Returns the value of thepos
record component.ChainRestrictedNeighborUpdater.StateReplacementEntry.pos()
Returns the value of thepos
record component.ChainRestrictedNeighborUpdater.SimpleEntry.sourcePos()
Returns the value of thesourcePos
record component.ChainRestrictedNeighborUpdater.StatefulEntry.sourcePos()
Returns the value of thesourcePos
record component.Methods in net.minecraft.world.block with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
ChainRestrictedNeighborUpdater.enqueue
(BlockPos pos, ChainRestrictedNeighborUpdater.Entry entry) void
ChainRestrictedNeighborUpdater.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
NeighborUpdater.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) static void
NeighborUpdater.replaceWithStateForNeighborUpdate
(WorldAccess world, Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
SimpleNeighborUpdater.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) static void
NeighborUpdater.tryNeighborUpdate
(World world, BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
ChainRestrictedNeighborUpdater.updateNeighbor
(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
ChainRestrictedNeighborUpdater.updateNeighbor
(BlockPos pos, Block sourceBlock, BlockPos sourcePos) void
NeighborUpdater.updateNeighbor
(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
NeighborUpdater.updateNeighbor
(BlockPos pos, Block sourceBlock, BlockPos sourcePos) void
SimpleNeighborUpdater.updateNeighbor
(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
SimpleNeighborUpdater.updateNeighbor
(BlockPos pos, Block sourceBlock, BlockPos sourcePos) void
ChainRestrictedNeighborUpdater.updateNeighbors
(BlockPos pos, Block sourceBlock, @Nullable Direction except) default void
NeighborUpdater.updateNeighbors
(BlockPos pos, Block sourceBlock, @Nullable Direction except) Constructors in net.minecraft.world.block with parameters of type BlockPosModifierConstructorDescription(package private)
SimpleEntry
(BlockPos blockPos, Block block, BlockPos blockPos2) (package private)
SixWayEntry
(BlockPos pos, Block sourceBlock, @Nullable Direction except) (package private)
StatefulEntry
(BlockState blockState, BlockPos blockPos, Block block, BlockPos blockPos2, boolean bool) (package private)
StateReplacementEntry
(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2) -
Uses of BlockPos in net.minecraft.world.border
Methods in net.minecraft.world.border that return BlockPosMethods in net.minecraft.world.border with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.chunk
Fields in net.minecraft.world.chunk with type parameters of type BlockPosModifier and TypeFieldDescriptionprotected final Map<BlockPos,
BlockEntity> Chunk.blockEntities
protected final Map<BlockPos,
NbtCompound> Chunk.blockEntityNbts
private final Map<BlockPos,
WorldChunk.WrappedBlockEntityTickInvoker> WorldChunk.blockEntityTickers
ProtoChunk.lightSources
Methods in net.minecraft.world.chunk that return BlockPosModifier and TypeMethodDescriptionBlockEntityTickInvoker.getPos()
WorldChunk.DirectBlockEntityTickInvoker.getPos()
WorldChunk.WrappedBlockEntityTickInvoker.getPos()
static BlockPos
ProtoChunk.joinBlockPos
(short sectionRel, int sectionY, ChunkPos chunkPos) Methods in net.minecraft.world.chunk that return types with arguments of type BlockPosModifier and TypeMethodDescriptionProtoChunk.getBlockEntities()
WorldChunk.getBlockEntities()
ProtoChunk.getBlockEntityNbts()
Chunk.getBlockEntityPositions()
Chunk.getLightSourcesStream()
ProtoChunk.getLightSourcesStream()
ReadOnlyChunk.getLightSourcesStream()
WorldChunk.getLightSourcesStream()
Methods in net.minecraft.world.chunk with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ProtoChunk.addLightSource
(BlockPos pos) private static BlockState
UpgradeData.applyAdjacentBlock
(BlockState oldState, Direction dir, WorldAccess world, BlockPos currentPos, BlockPos otherPos) (package private) boolean
WorldChunk.canTickBlockEntity
(BlockPos pos) private @Nullable BlockEntity
WorldChunk.createBlockEntity
(BlockPos pos) ChunkCache.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.EmptyChunk.getBlockEntity
(BlockPos pos, WorldChunk.CreationType creationType) ProtoChunk.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.ReadOnlyChunk.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.WorldChunk.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.WorldChunk.getBlockEntity
(BlockPos pos, WorldChunk.CreationType creationType) Chunk.getBlockEntityNbt
(BlockPos pos) ReadOnlyChunk.getBlockEntityNbt
(BlockPos pos) ChunkCache.getBlockState
(BlockPos pos) Returns the block state atpos
.EmptyChunk.getBlockState
(BlockPos pos) Returns the block state atpos
.ProtoChunk.getBlockState
(BlockPos pos) Returns the block state atpos
.ReadOnlyChunk.getBlockState
(BlockPos pos) Returns the block state atpos
.WorldChunk.getBlockState
(BlockPos pos) Returns the block state atpos
.private Chunk
ChunkCache.getFluidState
(BlockPos pos) Returns the fluid state atpos
.EmptyChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
.ProtoChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
.ReadOnlyChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
.WorldChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
.int
EmptyChunk.getLuminance
(BlockPos pos) abstract @Nullable NbtCompound
Chunk.getPackedBlockEntityNbt
(BlockPos pos) ProtoChunk.getPackedBlockEntityNbt
(BlockPos pos) ReadOnlyChunk.getPackedBlockEntityNbt
(BlockPos pos) WorldChunk.getPackedBlockEntityNbt
(BlockPos pos) static short
ProtoChunk.getPackedSectionRelative
(BlockPos pos) UpgradeData.Logic.getUpdatedState
(BlockState oldState, Direction direction, BlockState otherState, WorldAccess world, BlockPos currentPos, BlockPos otherPos) private @Nullable BlockEntity
WorldChunk.loadBlockEntity
(BlockPos pos, NbtCompound nbt) void
Chunk.markBlockForPostProcessing
(BlockPos pos) void
ProtoChunk.markBlockForPostProcessing
(BlockPos pos) void
ReadOnlyChunk.markBlockForPostProcessing
(BlockPos pos) abstract void
Chunk.removeBlockEntity
(BlockPos pos) void
EmptyChunk.removeBlockEntity
(BlockPos pos) void
ProtoChunk.removeBlockEntity
(BlockPos pos) void
ReadOnlyChunk.removeBlockEntity
(BlockPos pos) void
WorldChunk.removeBlockEntity
(BlockPos pos) private void
WorldChunk.removeBlockEntityTicker
(BlockPos pos) abstract @Nullable BlockState
Chunk.setBlockState
(BlockPos pos, BlockState state, boolean moved) EmptyChunk.setBlockState
(BlockPos pos, BlockState state, boolean moved) ProtoChunk.setBlockState
(BlockPos pos, BlockState state, boolean moved) ReadOnlyChunk.setBlockState
(BlockPos pos, BlockState state, boolean moved) WorldChunk.setBlockState
(BlockPos pos, BlockState state, boolean moved) Constructors in net.minecraft.world.chunk with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.chunk.light
Methods in net.minecraft.world.chunk.light with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
ChunkBlockLightProvider.addLightSource
(BlockPos pos, int level) void
ChunkLightingView.Empty.addLightSource
(BlockPos pos, int level) void
ChunkLightProvider.addLightSource
(BlockPos pos, int level) void
LightingProvider.addLightSource
(BlockPos pos, int level) void
LightingView.addLightSource
(BlockPos pos, int level) void
ChunkLightingView.Empty.checkBlock
(BlockPos pos) void
ChunkLightProvider.checkBlock
(BlockPos pos) void
LightingProvider.checkBlock
(BlockPos pos) void
LightingView.checkBlock
(BlockPos pos) int
int
ChunkLightingView.Empty.getLightLevel
(BlockPos pos) int
ChunkLightingView.getLightLevel
(BlockPos pos) int
ChunkLightProvider.getLightLevel
(BlockPos pos) static int
ChunkLightProvider.getRealisticOpacity
(BlockView world, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int opacity2) default void
LightingView.setSectionStatus
(BlockPos pos, boolean notReady) -
Uses of BlockPos in net.minecraft.world.dimension
Fields in net.minecraft.world.dimension declared as BlockPosMethods in net.minecraft.world.dimension that return BlockPosMethods in net.minecraft.world.dimension with parameters of type BlockPosModifier and TypeMethodDescriptionAreaHelper.getLowerCorner
(BlockPos pos) static Optional<AreaHelper>
AreaHelper.getNewPortal
(WorldAccess world, BlockPos pos, Direction.Axis axis) static Optional<AreaHelper>
AreaHelper.getOrEmpty
(WorldAccess world, BlockPos pos, Predicate<AreaHelper> validator, Direction.Axis axis) private int
Constructors in net.minecraft.world.dimension with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return BlockPos -
Uses of BlockPos in net.minecraft.world.event
Fields in net.minecraft.world.event declared as BlockPosConstructors in net.minecraft.world.event with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.event.listener
Methods in net.minecraft.world.event.listener with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
VibrationListener.Callback.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
VibrationListener.Callback.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event. -
Uses of BlockPos in net.minecraft.world.explosion
Fields in net.minecraft.world.explosion with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final ObjectArrayList<BlockPos>
Explosion.affectedBlocks
Methods in net.minecraft.world.explosion that return types with arguments of type BlockPosMethods in net.minecraft.world.explosion with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
EntityExplosionBehavior.canDestroyBlock
(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float power) boolean
ExplosionBehavior.canDestroyBlock
(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float power) EntityExplosionBehavior.getBlastResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState) ExplosionBehavior.getBlastResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState) private static void
Explosion.tryMergeStack
(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos) Method parameters in net.minecraft.world.explosion with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate static void
Explosion.tryMergeStack
(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos) Constructor parameters in net.minecraft.world.explosion with type arguments of type BlockPosModifierConstructorDescriptionExplosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks) Explosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks) -
Uses of BlockPos in net.minecraft.world.gen
Methods in net.minecraft.world.gen with parameters of type BlockPosModifier and TypeMethodDescriptionStructureAccessor.getStructureAt
(BlockPos pos, Structure structure) StructureAccessor.getStructureContaining
(BlockPos pos, TagKey<Structure> structureTag) StructureAccessor.getStructureContaining
(BlockPos pos, RegistryKey<Structure> structure) StructureAccessor.getStructureContaining
(BlockPos pos, Structure structure) Returns a structure that contains the givenpos
.StructureAccessor.getStructureReferences
(BlockPos pos) boolean
StructureAccessor.hasStructureReferences
(BlockPos pos) boolean
StructureAccessor.structureContains
(BlockPos pos, StructureStart structureStart) -
Uses of BlockPos in net.minecraft.world.gen.blockpredicate
Methods in net.minecraft.world.gen.blockpredicate with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
AllOfBlockPredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) boolean
AlwaysTrueBlockPredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) boolean
AnyOfBlockPredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) boolean
HasSturdyFacePredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) boolean
InsideWorldBoundsBlockPredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) boolean
NotBlockPredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) final boolean
OffsetPredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) boolean
WouldSurviveBlockPredicate.test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) -
Uses of BlockPos in net.minecraft.world.gen.carver
Methods in net.minecraft.world.gen.carver that return types with arguments of type BlockPosMethods in net.minecraft.world.gen.carver with parameters of type BlockPosModifier and TypeMethodDescriptionCarverContext.applyMaterialRule
(Function<BlockPos, RegistryEntry<Biome>> posToBiome, Chunk chunk, BlockPos pos, boolean hasFluid) Deprecated.private @Nullable BlockState
Carver.getState
(CarverContext context, C config, BlockPos pos, AquiferSampler sampler) Method parameters in net.minecraft.world.gen.carver with type arguments of type BlockPosModifier and TypeMethodDescriptionCarverContext.applyMaterialRule
(Function<BlockPos, RegistryEntry<Biome>> posToBiome, Chunk chunk, BlockPos pos, boolean hasFluid) Deprecated.abstract boolean
Carver.carve
(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) boolean
CaveCarver.carve
(CarverContext carverContext, CaveCarverConfig caveCarverConfig, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> function, Random random, AquiferSampler aquiferSampler, ChunkPos chunkPos, CarvingMask carvingMask) boolean
ConfiguredCarver.carve
(CarverContext context, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) boolean
RavineCarver.carve
(CarverContext carverContext, RavineCarverConfig ravineCarverConfig, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> function, Random random, AquiferSampler aquiferSampler, ChunkPos chunkPos, CarvingMask carvingMask) protected boolean
Carver.carveAtPoint
(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, CarvingMask mask, BlockPos.Mutable mutable, BlockPos.Mutable mutable2, AquiferSampler aquiferSampler, MutableBoolean mutableBoolean) protected boolean
NetherCaveCarver.carveAtPoint
(CarverContext carverContext, CaveCarverConfig caveCarverConfig, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> function, CarvingMask carvingMask, BlockPos.Mutable mutable, BlockPos.Mutable mutable2, AquiferSampler aquiferSampler, MutableBoolean mutableBoolean) protected void
CaveCarver.carveCave
(CarverContext context, CaveCarverConfig config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, AquiferSampler aquiferSampler, double double2, double double3, double double4, float float2, double double5, CarvingMask mask, Carver.SkipPredicate skipPredicate) private void
RavineCarver.carveRavine
(CarverContext context, RavineCarverConfig config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, long seed, AquiferSampler aquiferSampler, double x, double y, double z, float width, float yaw, float pitch, int branchStartIndex, int branchCount, double yawPitchRatio, CarvingMask mask) protected boolean
Carver.carveRegion
(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, AquiferSampler aquiferSampler, double double2, double double3, double double4, double double5, double double6, CarvingMask mask, Carver.SkipPredicate skipPredicate) protected void
CaveCarver.carveTunnels
(CarverContext context, CaveCarverConfig config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, long seed, AquiferSampler aquiferSampler, double x, double y, double z, double horizontalScale, double verticalScale, float width, float yaw, float pitch, int branchStartIndex, int branchCount, double yawPitchRatio, CarvingMask mask, Carver.SkipPredicate skipPredicate) -
Uses of BlockPos in net.minecraft.world.gen.chunk
Methods in net.minecraft.world.gen.chunk that return types with arguments of type BlockPosModifier and TypeMethodDescriptionprivate @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateConcentricRingsStructure
(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateRandomSpreadStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, int centerChunkX, int centerChunkZ, int radius, boolean skipReferencedStructures, long seed, RandomSpreadStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, boolean skipReferencedStructures, StructurePlacement placement, ChunkPos pos) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateStructure
(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.Methods in net.minecraft.world.gen.chunk with parameters of type BlockPosModifier and TypeMethodDescriptionabstract void
ChunkGenerator.getDebugHudText
(List<String> text, NoiseConfig noiseConfig, BlockPos pos) void
DebugChunkGenerator.getDebugHudText
(List<String> text, NoiseConfig noiseConfig, BlockPos pos) void
FlatChunkGenerator.getDebugHudText
(List<String> text, NoiseConfig noiseConfig, BlockPos pos) void
NoiseChunkGenerator.getDebugHudText
(List<String> text, NoiseConfig noiseConfig, BlockPos pos) ChunkGenerator.getEntitySpawnList
(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) private static boolean
BlendingData.isCollidableAndNotTreeAt
(Chunk chunk, BlockPos pos) private @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateConcentricRingsStructure
(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Structure>> ChunkGenerator.locateStructure
(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.private static void
Blender.tickLeavesAndFluids
(Chunk chunk, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.gen.chunk.placement
Methods in net.minecraft.world.gen.chunk.placement that return BlockPos -
Uses of BlockPos in net.minecraft.world.gen.feature
Fields in net.minecraft.world.gen.feature declared as BlockPosModifier and TypeFieldDescriptionEndSpikeFeatureConfig.crystalBeamTarget
static final BlockPos
EndPortalFeature.ORIGIN
private BlockPos
LargeDripstoneFeature.DripstoneGenerator.pos
private static final BlockPos
VoidStartPlatformFeature.START_BLOCK
Fields in net.minecraft.world.gen.feature with type parameters of type BlockPosMethods in net.minecraft.world.gen.feature that return BlockPosModifier and TypeMethodDescriptionEndSpikeFeatureConfig.getPos()
(package private) BlockPos
BasaltColumnsFeature.moveDownToGround
(WorldAccess world, int seaLevel, BlockPos.Mutable mutablePos, int distance) ReplaceBlobsFeature.moveDownToTarget
(WorldAccess world, BlockPos.Mutable mutablePos, Block target) BasaltColumnsFeature.moveUpToAir
(WorldAccess world, BlockPos.Mutable mutablePos, int distance) Methods in net.minecraft.world.gen.feature that return types with arguments of type BlockPosModifier and TypeMethodDescriptionEndGatewayFeatureConfig.getExitPos()
VegetationPatchFeature.placeGroundAndGetPositions
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ) WaterloggedVegetationPatchFeature.placeGroundAndGetPositions
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ) Methods in net.minecraft.world.gen.feature with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
BlockPileFeature.addPileBlock
(WorldAccess world, BlockPos pos, Random random, BlockPileFeatureConfig config) protected boolean
HugeMushroomFeature.canGenerate
(WorldAccess world, BlockPos pos, int height, BlockPos.Mutable mutablePos, HugeMushroomFeatureConfig config) private boolean
SculkPatchFeature.canGenerate
(WorldAccess world, BlockPos pos) private boolean
BlockPileFeature.canPlace
(WorldAccess world, BlockPos pos, Random random) private static boolean
DeltaFeature.canPlace
(WorldAccess world, BlockPos pos, DeltaFeatureConfig config) static boolean
TreeFeature.canReplace
(TestableWorld world, BlockPos pos) private boolean
DripstoneClusterFeature.canWaterSpawn
(StructureWorldAccess world, BlockPos pos) private void
IcebergFeature.clearSnowAbove
(WorldAccess world, BlockPos pos) static EndGatewayFeatureConfig
EndGatewayFeatureConfig.createConfig
(BlockPos exitPortalPosition, boolean exitsAtSpawn) private static LargeDripstoneFeature.DripstoneGenerator
LargeDripstoneFeature.createGenerator
(BlockPos pos, boolean isStalagmite, Random random, int scale, FloatProvider bluntness, FloatProvider heightScale) boolean
ConfiguredFeature.generate
(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) private void
DripstoneClusterFeature.generate
(StructureWorldAccess world, Random random, BlockPos pos, int localX, int localZ, float wetness, double dripstoneChance, int height, float density, DripstoneClusterFeatureConfig config) static boolean
MultifaceGrowthFeature.generate
(StructureWorldAccess world, BlockPos pos, BlockState state, MultifaceGrowthFeatureConfig config, Random random, List<Direction> directions) private boolean
PlacedFeature.generate
(FeaturePlacementContext context, Random random, BlockPos pos) boolean
PlacedFeature.generate
(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) Generates a configured feature at the positions obtained by applying placement modifiers to the given position.boolean
RandomFeatureEntry.generate
(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) private boolean
TreeFeature.generate
(StructureWorldAccess world, Random random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootPlacerReplacer, BiConsumer<BlockPos, BlockState> trunkPlacerReplacer, BiConsumer<BlockPos, BlockState> foliagePlacerReplacer, TreeFeatureConfig config) protected void
HugeBrownMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected abstract void
HugeMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected void
HugeRedMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected boolean
CoralClawFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected abstract boolean
CoralFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected boolean
CoralMushroomFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected boolean
CoralTreeFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected boolean
CoralFeature.generateCoralPiece
(WorldAccess world, Random random, BlockPos pos, BlockState state) private static void
SmallDripstoneFeature.generateDripstoneBlocks
(WorldAccess world, Random random, BlockPos pos, SmallDripstoneFeatureConfig config) private static void
RootSystemFeature.generateHangingRoots
(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, BlockPos pos, BlockPos.Mutable mutablePos) private void
HugeFungusFeature.generateHat
(WorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos pos, int hatHeight, boolean thickStem) boolean
Feature.generateIfValid
(FC config, StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) private void
WeepingVinesFeature.generateNetherWartBlocksInArea
(WorldAccess world, Random random, BlockPos pos) private static void
RootSystemFeature.generateRootsColumn
(BlockPos pos, int maxY, StructureWorldAccess world, RootSystemFeatureConfig config, Random random) private void
HugeFungusFeature.generateStem
(WorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos pos, int stemHeight, boolean thickStem) protected void
HugeMushroomFeature.generateStem
(WorldAccess world, Random random, BlockPos pos, HugeMushroomFeatureConfig config, int height, BlockPos.Mutable mutablePos) private static boolean
RootSystemFeature.generateTreeAndRoots
(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos.Mutable mutablePos, BlockPos pos) boolean
PlacedFeature.generateUnregistered
(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) protected boolean
VegetationPatchFeature.generateVegetationFeature
(StructureWorldAccess world, VegetationPatchFeatureConfig config, ChunkGenerator generator, Random random, BlockPos pos) protected boolean
WaterloggedVegetationPatchFeature.generateVegetationFeature
(StructureWorldAccess world, VegetationPatchFeatureConfig config, ChunkGenerator generator, Random random, BlockPos pos) private static void
HugeFungusFeature.generateVines
(BlockPos pos, WorldAccess world, Random random) private void
WeepingVinesFeature.generateVinesInArea
(WorldAccess world, Random random, BlockPos pos) FeaturePlacementContext.getBlockState
(BlockPos pos) SmallDripstoneFeature.getDirection
(WorldAccess world, BlockPos pos, Random random) private double
IcebergFeature.getDistance
(int x, int z, BlockPos pos, int divisor1, int divisor2, double randomSine) private static OptionalInt
UnderwaterMagmaFeature.getFloorHeight
(StructureWorldAccess world, BlockPos pos, UnderwaterMagmaFeatureConfig config) private int
TreeFeature.getTopPosition
(TestableWorld world, int height, BlockPos pos, TreeFeatureConfig config) private static boolean
RootSystemFeature.hasSpaceForTree
(StructureWorldAccess world, RootSystemFeatureConfig config, BlockPos pos) private boolean
IcebergFeature.isAirBelow
(BlockView world, BlockPos pos) private static boolean
BasaltColumnsFeature.isAirOrLavaOcean
(WorldAccess world, int seaLevel, BlockPos pos) static boolean
TreeFeature.isAirOrLeaves
(TestableWorld world, BlockPos pos) static boolean
Feature.isExposedToAir
(Function<BlockPos, BlockState> posToState, BlockPos pos) boolean
private boolean
private static boolean
TwistingVinesFeature.isNotSuitable
(WorldAccess world, BlockPos pos) private static boolean
HugeFungusFeature.isReplaceable
(WorldAccess world, BlockPos pos, boolean replacePlants) private static boolean
TreeFeature.isReplaceablePlant
(TestableWorld world, BlockPos pos) static boolean
Feature.isSoil
(TestableWorld world, BlockPos pos) private static boolean
WaterloggedVegetationPatchFeature.isSolidBlockAroundPos
(StructureWorldAccess world, Set<BlockPos> positions, BlockPos pos, BlockPos.Mutable mutablePos) private static boolean
WaterloggedVegetationPatchFeature.isSolidBlockSide
(StructureWorldAccess world, BlockPos pos, BlockPos.Mutable mutablePos, Direction direction) private boolean
DripstoneClusterFeature.isStoneOrWater
(WorldAccess world, BlockPos pos) private boolean
UnderwaterMagmaFeature.isValidPosition
(StructureWorldAccess world, BlockPos pos) private static boolean
TreeFeature.isVine
(TestableWorld world, BlockPos pos) static boolean
TreeFeature.isWater
(TestableWorld world, BlockPos pos) private boolean
UnderwaterMagmaFeature.isWaterOrAir
(WorldAccess world, BlockPos pos) protected void
Feature.markBlocksAboveForPostProcessing
(StructureWorldAccess world, BlockPos pos) private void
IcebergFeature.method_13415
(int int2, int y, BlockPos pos, WorldAccess world, boolean placeWater, double double2, BlockPos blockPos, int int3, int int4) private void
IcebergFeature.method_13418
(WorldAccess world, BlockPos pos, int int2, int height, boolean bool, int int3) private double
IcebergFeature.method_13421
(int x, int z, BlockPos pos, int int2, Random random) private void
IcebergFeature.method_13428
(Random random, WorldAccess world, int int2, int int3, BlockPos pos, boolean bool, int int4, double double2, int int5) (package private) BlockPos
private void
IcebergFeature.placeAt
(WorldAccess world, Random random, BlockPos pos, int height, int offsetX, int offsetY, int offsetZ, int int2, int int3, boolean bool, int int4, double randomSine, boolean placeSnow, BlockState state) private boolean
BasaltColumnsFeature.placeBasaltColumn
(WorldAccess world, int seaLevel, BlockPos pos, int height, int reach) private void
IcebergFeature.placeBlockOrSnow
(BlockPos pos, WorldAccess world, Random random, int heightRemaining, int height, boolean lessSnow, boolean placeSnow, BlockState state) private void
DripstoneClusterFeature.placeDripstoneBlocks
(StructureWorldAccess world, BlockPos pos, int height, Direction direction) VegetationPatchFeature.placeGroundAndGetPositions
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ) WaterloggedVegetationPatchFeature.placeGroundAndGetPositions
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ) private void
HugeFungusFeature.placeWithOptionalVines
(WorldAccess world, Random random, BlockPos pos, BlockState state, boolean vines) protected void
Feature.setBlockState
(ModifiableWorld world, BlockPos pos, BlockState state) protected void
TreeFeature.setBlockState
(ModifiableWorld world, BlockPos pos, BlockState state) protected void
Feature.setBlockStateIf
(StructureWorldAccess world, BlockPos pos, BlockState state, Predicate<BlockState> predicate) private static void
TreeFeature.setBlockStateWithoutUpdatingNeighbors
(ModifiableWorld world, BlockPos pos, BlockState state) private void
ScatteredOreFeature.setPos
(BlockPos.Mutable mutable, Random random, BlockPos origin, int spread) private boolean
BasaltPillarFeature.stopOrPlaceBasalt
(WorldAccess world, Random random, BlockPos pos) static boolean
Feature.testAdjacentStates
(Function<BlockPos, BlockState> posToState, BlockPos pos, Predicate<BlockState> predicate) private void
LargeDripstoneFeature.testGeneration
(StructureWorldAccess world, BlockPos pos, CaveSurface.Bounded surface, LargeDripstoneFeature.WindModifier wind) private void
BasaltPillarFeature.tryPlaceBasalt
(WorldAccess world, Random random, BlockPos pos) Method parameters in net.minecraft.world.gen.feature with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate boolean
TreeFeature.generate
(StructureWorldAccess world, Random random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootPlacerReplacer, BiConsumer<BlockPos, BlockState> trunkPlacerReplacer, BiConsumer<BlockPos, BlockState> foliagePlacerReplacer, TreeFeatureConfig config) protected void
VegetationPatchFeature.generateVegetation
(FeatureContext<VegetationPatchFeatureConfig> context, StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, Set<BlockPos> positions, int radiusX, int radiusZ) static boolean
Feature.isExposedToAir
(Function<BlockPos, BlockState> posToState, BlockPos pos) private static boolean
WaterloggedVegetationPatchFeature.isSolidBlockAroundPos
(StructureWorldAccess world, Set<BlockPos> positions, BlockPos pos, BlockPos.Mutable mutablePos) private static VoxelSet
TreeFeature.placeLogsAndLeaves
(WorldAccess world, BlockBox box, Set<BlockPos> trunkPositions, Set<BlockPos> decorationPositions, Set<BlockPos> set) static boolean
OreFeature.shouldPlace
(BlockState state, Function<BlockPos, BlockState> posToState, Random random, OreFeatureConfig config, OreFeatureConfig.Target target, BlockPos.Mutable pos) static boolean
Feature.testAdjacentStates
(Function<BlockPos, BlockState> posToState, BlockPos pos, Predicate<BlockState> predicate) Constructors in net.minecraft.world.gen.feature with parameters of type BlockPosModifierConstructorDescription(package private)
DripstoneGenerator
(BlockPos pos, boolean isStalagmite, int scale, double bluntness, double heightScale) EndSpikeFeatureConfig
(boolean crystalInvulnerable, List<EndSpikeFeature.Spike> spikes, @Nullable BlockPos crystalBeamTarget) Constructor parameters in net.minecraft.world.gen.feature with type arguments of type BlockPosModifierConstructorDescriptionprivate
EndGatewayFeatureConfig
(Optional<BlockPos> exitPos, boolean exact) private
EndSpikeFeatureConfig
(boolean crystalInvulnerable, List<EndSpikeFeature.Spike> spikes, Optional<BlockPos> crystalBeamTarget) -
Uses of BlockPos in net.minecraft.world.gen.feature.util
Fields in net.minecraft.world.gen.feature.util declared as BlockPosMethods in net.minecraft.world.gen.feature.util that return BlockPosMethods in net.minecraft.world.gen.feature.util with parameters of type BlockPosModifier and TypeMethodDescriptionprotected static boolean
DripstoneHelper.canGenerate
(WorldAccess world, BlockPos pos) protected static boolean
DripstoneHelper.canGenerateBase
(StructureWorldAccess world, BlockPos pos, int height) protected static boolean
DripstoneHelper.canGenerateOrLava
(WorldAccess world, BlockPos pos) static Optional<CaveSurface>
CaveSurface.create
(TestableWorld world, BlockPos pos, int height, Predicate<BlockState> canGenerate, Predicate<BlockState> canReplace) protected static boolean
DripstoneHelper.generateDripstoneBlock
(WorldAccess world, BlockPos pos) protected static void
DripstoneHelper.generatePointedDripstone
(WorldAccess world, BlockPos pos, Direction direction, int height, boolean merge) Constructors in net.minecraft.world.gen.feature.util with parameters of type BlockPosModifierConstructorDescriptionFeatureContext
(Optional<ConfiguredFeature<?, ?>> feature, StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos origin, FC config) -
Uses of BlockPos in net.minecraft.world.gen.foliage
Fields in net.minecraft.world.gen.foliage declared as BlockPosMethods in net.minecraft.world.gen.foliage that return BlockPosMethods in net.minecraft.world.gen.foliage with parameters of type BlockPosModifier and TypeMethodDescriptionprotected void
FoliagePlacer.generateSquare
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk) Generates a square of leaves with the given radius.protected static void
FoliagePlacer.placeFoliageBlock
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, BlockPos pos) Method parameters in net.minecraft.world.gen.foliage with type arguments of type BlockPosModifier and TypeMethodDescriptionprotected void
AcaciaFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
BlobFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
BushFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
DarkOakFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.void
FoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius) protected abstract void
FoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
JungleFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
LargeOakFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
MegaPineFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
PineFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
RandomSpreadFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
SpruceFoliagePlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
FoliagePlacer.generateSquare
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk) Generates a square of leaves with the given radius.protected static void
FoliagePlacer.placeFoliageBlock
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, BlockPos pos) Constructors in net.minecraft.world.gen.foliage with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.gen.placementmodifier
Methods in net.minecraft.world.gen.placementmodifier that return types with arguments of type BlockPosModifier and TypeMethodDescriptionAbstractConditionalPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.AbstractCountPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.CarvingMaskPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.CountMultilayerPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Deprecated.Applies this placement modifier to the given position.EnvironmentScanPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.HeightmapPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.HeightRangePlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.PlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.RandomOffsetPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.SquarePlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.Methods in net.minecraft.world.gen.placementmodifier with parameters of type BlockPosModifier and TypeMethodDescriptionprotected abstract int
protected int
protected int
protected int
AbstractConditionalPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.AbstractCountPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.CarvingMaskPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.CountMultilayerPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Deprecated.Applies this placement modifier to the given position.EnvironmentScanPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.HeightmapPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.HeightRangePlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.PlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.RandomOffsetPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.SquarePlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.protected abstract boolean
AbstractConditionalPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
BiomePlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
BlockFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
RarityFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
SurfaceThresholdFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
SurfaceWaterDepthFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) -
Uses of BlockPos in net.minecraft.world.gen.root
Methods in net.minecraft.world.gen.root that return BlockPosMethods in net.minecraft.world.gen.root that return types with arguments of type BlockPosModifier and TypeMethodDescriptionMangroveRootPlacer.getOffshootPositions
(BlockPos pos, Direction direction, Random random, BlockPos origin) Methods in net.minecraft.world.gen.root with parameters of type BlockPosModifier and TypeMethodDescriptionprotected BlockState
RootPlacer.applyWaterlogging
(TestableWorld world, BlockPos pos, BlockState state) private boolean
MangroveRootPlacer.canGrow
(TestableWorld world, Random random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) protected boolean
MangroveRootPlacer.canGrowThrough
(TestableWorld world, BlockPos pos) protected boolean
RootPlacer.canGrowThrough
(TestableWorld world, BlockPos pos) boolean
MangroveRootPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) abstract boolean
RootPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) MangroveRootPlacer.getOffshootPositions
(BlockPos pos, Direction direction, Random random, BlockPos origin) protected void
MangroveRootPlacer.placeRoots
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected void
RootPlacer.placeRoots
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) RootPlacer.trunkOffset
(BlockPos pos, Random random) Method parameters in net.minecraft.world.gen.root with type arguments of type BlockPosModifier and TypeMethodDescriptionprivate boolean
MangroveRootPlacer.canGrow
(TestableWorld world, Random random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) boolean
MangroveRootPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) abstract boolean
RootPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) protected void
MangroveRootPlacer.placeRoots
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected void
RootPlacer.placeRoots
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) -
Uses of BlockPos in net.minecraft.world.gen.stateprovider
Methods in net.minecraft.world.gen.stateprovider with parameters of type BlockPosModifier and TypeMethodDescriptionabstract BlockState
BlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.DualNoiseBlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.NoiseBlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.NoiseThresholdBlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.PillarBlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.PredicatedStateProvider.getBlockState
(StructureWorldAccess world, Random random, BlockPos pos) RandomizedIntBlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.SimpleBlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.WeightedBlockStateProvider.getBlockState
(Random random, BlockPos pos) Returns a provided block state.protected double
AbstractNoiseBlockStateProvider.getNoiseValue
(BlockPos pos, double scale) protected double
DualNoiseBlockStateProvider.getSlowNoiseValue
(BlockPos pos) protected BlockState
NoiseBlockStateProvider.getStateFromList
(List<BlockState> states, BlockPos pos, double scale) -
Uses of BlockPos in net.minecraft.world.gen.structure
Fields in net.minecraft.world.gen.structure declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
Structure.StructurePosition.position
The field for theposition
record component.Methods in net.minecraft.world.gen.structure that return BlockPosModifier and TypeMethodDescriptionprotected BlockPos
Structure.getShiftedPos
(Structure.Context context, BlockRotation rotation) Deprecated.Structure.StructurePosition.position()
Returns the value of theposition
record component.Methods in net.minecraft.world.gen.structure with parameters of type BlockPosModifier and TypeMethodDescriptionprivate void
EndCityStructure.addPieces
(StructurePiecesCollector collector, BlockPos pos, BlockRotation rotation, Structure.Context context) private void
WoodlandMansionStructure.addPieces
(StructurePiecesCollector collector, Structure.Context context, BlockPos pos, BlockRotation rotation) private static boolean
RuinedPortalStructure.isColdAt
(BlockPos pos, RegistryEntry<Biome> biome) Constructors in net.minecraft.world.gen.structure with parameters of type BlockPosModifierConstructorDescriptionStructurePosition
(BlockPos blockPos, com.mojang.datafixers.util.Either<Consumer<StructurePiecesCollector>, StructurePiecesCollector> either) StructurePosition
(BlockPos pos, Consumer<StructurePiecesCollector> generator) -
Uses of BlockPos in net.minecraft.world.gen.surfacebuilder
Fields in net.minecraft.world.gen.surfacebuilder with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Function<BlockPos,
RegistryEntry<Biome>> MaterialRules.MaterialRuleContext.posToBiome
Methods in net.minecraft.world.gen.surfacebuilder with parameters of type BlockPosModifier and TypeMethodDescriptionSurfaceBuilder.applyMaterialRule
(MaterialRules.MaterialRule rule, CarverContext context, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, BlockPos pos, boolean hasFluid) Deprecated.Method parameters in net.minecraft.world.gen.surfacebuilder with type arguments of type BlockPosModifier and TypeMethodDescriptionSurfaceBuilder.applyMaterialRule
(MaterialRules.MaterialRule rule, CarverContext context, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, BlockPos pos, boolean hasFluid) Deprecated.Constructor parameters in net.minecraft.world.gen.surfacebuilder with type arguments of type BlockPosModifierConstructorDescriptionprotected
MaterialRuleContext
(SurfaceBuilder surfaceBuilder, NoiseConfig noiseConfig, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Registry<Biome> registry, HeightContext heightContext) -
Uses of BlockPos in net.minecraft.world.gen.treedecorator
Fields in net.minecraft.world.gen.treedecorator with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final ObjectArrayList<BlockPos>
TreeDecorator.Generator.leavesPositions
private final ObjectArrayList<BlockPos>
TreeDecorator.Generator.logPositions
private final BiConsumer<BlockPos,
BlockState> TreeDecorator.Generator.replacer
private final ObjectArrayList<BlockPos>
TreeDecorator.Generator.rootPositions
Methods in net.minecraft.world.gen.treedecorator that return types with arguments of type BlockPosModifier and TypeMethodDescriptionTreeDecorator.Generator.getLeavesPositions()
TreeDecorator.Generator.getLogPositions()
TreeDecorator.Generator.getRootPositions()
Methods in net.minecraft.world.gen.treedecorator with parameters of type BlockPosModifier and TypeMethodDescriptionboolean
private boolean
AttachedToLeavesTreeDecorator.meetsRequiredEmptyBlocks
(TreeDecorator.Generator generator, BlockPos pos, Direction direction) private static void
LeavesVineTreeDecorator.placeVines
(BlockPos pos, BooleanProperty faceProperty, TreeDecorator.Generator generator) Places a vine at a given position and then up to 4 more vines going downwards.void
TreeDecorator.Generator.replace
(BlockPos pos, BlockState state) void
TreeDecorator.Generator.replaceWithVine
(BlockPos pos, BooleanProperty faceProperty) private void
AlterGroundTreeDecorator.setArea
(TreeDecorator.Generator generator, BlockPos origin) private void
AlterGroundTreeDecorator.setColumn
(TreeDecorator.Generator generator, BlockPos origin) Constructor parameters in net.minecraft.world.gen.treedecorator with type arguments of type BlockPosModifierConstructorDescriptionGenerator
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, Set<BlockPos> logPositions, Set<BlockPos> leavesPositions, Set<BlockPos> rootPositions) Generator
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, Set<BlockPos> logPositions, Set<BlockPos> leavesPositions, Set<BlockPos> rootPositions) -
Uses of BlockPos in net.minecraft.world.gen.trunk
Methods in net.minecraft.world.gen.trunk with parameters of type BlockPosModifier and TypeMethodDescriptionprivate static boolean
TrunkPlacer.canGenerate
(TestableWorld world, BlockPos pos) protected boolean
TrunkPlacer.canReplace
(TestableWorld world, BlockPos pos) protected boolean
UpwardsBranchingTrunkPlacer.canReplace
(TestableWorld world, BlockPos pos) boolean
TrunkPlacer.canReplaceOrIsLog
(TestableWorld world, BlockPos pos) BendingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundDarkOakTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundForkingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundGiantTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundLargeOakTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundMegaJungleTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundStraightTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundabstract List<FoliagePlacer.TreeNode>
TrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundUpwardsBranchingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundprotected boolean
TrunkPlacer.getAndSetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected boolean
TrunkPlacer.getAndSetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config, Function<BlockState, BlockState> function) private Direction.Axis
LargeOakTrunkPlacer.getLogAxis
(BlockPos branchStart, BlockPos branchEnd) private int
LargeOakTrunkPlacer.getLongestSide
(BlockPos offset) private void
LargeOakTrunkPlacer.makeBranches
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer.BranchPosition> branchPositions, TreeFeatureConfig config) private boolean
LargeOakTrunkPlacer.makeOrCheckBranch
(TestableWorld testableWorld, BiConsumer<BlockPos, BlockState> biConsumer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config) private void
GiantTrunkPlacer.setLog
(TestableWorld testableWorld, BiConsumer<BlockPos, BlockState> biConsumer, Random random, BlockPos.Mutable mutable, TreeFeatureConfig treeFeatureConfig, BlockPos blockPos, int int2, int int3, int int4) protected static void
TrunkPlacer.setToDirt
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) Method parameters in net.minecraft.world.gen.trunk with type arguments of type BlockPosModifier and TypeMethodDescriptionBendingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundDarkOakTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundForkingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundGiantTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundLargeOakTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundMegaJungleTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundStraightTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundabstract List<FoliagePlacer.TreeNode>
TrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundUpwardsBranchingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundprivate void
UpwardsBranchingTrunkPlacer.generateExtraBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, TreeFeatureConfig config, List<FoliagePlacer.TreeNode> nodes, BlockPos.Mutable pos, int yOffset, Direction direction, int length, int steps) protected boolean
TrunkPlacer.getAndSetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected boolean
TrunkPlacer.getAndSetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config, Function<BlockState, BlockState> function) private void
LargeOakTrunkPlacer.makeBranches
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer.BranchPosition> branchPositions, TreeFeatureConfig config) private boolean
LargeOakTrunkPlacer.makeOrCheckBranch
(TestableWorld testableWorld, BiConsumer<BlockPos, BlockState> biConsumer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config) private void
GiantTrunkPlacer.setLog
(TestableWorld testableWorld, BiConsumer<BlockPos, BlockState> biConsumer, Random random, BlockPos.Mutable mutable, TreeFeatureConfig treeFeatureConfig, BlockPos blockPos, int int2, int int3, int int4) protected static void
TrunkPlacer.setToDirt
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected void
TrunkPlacer.trySetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos.Mutable pos, TreeFeatureConfig config) Constructors in net.minecraft.world.gen.trunk with parameters of type BlockPos -
Uses of BlockPos in net.minecraft.world.level
Methods in net.minecraft.world.level with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
LevelProperties.setSpawnPos
(BlockPos pos, float angle) void
UnmodifiableLevelProperties.setSpawnPos
(BlockPos pos, float angle) -
Uses of BlockPos in net.minecraft.world.poi
Fields in net.minecraft.world.poi declared as BlockPosMethods in net.minecraft.world.poi that return BlockPosMethods in net.minecraft.world.poi that return types with arguments of type BlockPosModifier and TypeMethodDescriptionPointOfInterestStorage.getNearestPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getNearestPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Optional<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getNearestTypeAndPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BiPredicate<RegistryEntry<PointOfInterestType>, BlockPos> biPredicate, BlockPos pos, int radius) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage.OccupationStatus occupationStatus, BlockPos pos, int radius, Random random) PointOfInterestStorage.getPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getSortedTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Methods in net.minecraft.world.poi with parameters of type BlockPosModifier and TypeMethodDescriptionvoid
PointOfInterestSet.add
(BlockPos pos, RegistryEntry<PointOfInterestType> type) void
PointOfInterestStorage.add
(BlockPos pos, RegistryEntry<PointOfInterestType> type) long
PointOfInterestStorage.count
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) private Optional<PointOfInterest>
int
PointOfInterestSet.getFreeTickets
(BlockPos pos) Deprecated.int
PointOfInterestStorage.getFreeTickets
(BlockPos pos) Deprecated.PointOfInterestStorage.getInCircle
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getInSquare
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getNearestPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getNearestPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Optional<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getNearestTypeAndPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BiPredicate<RegistryEntry<PointOfInterestType>, BlockPos> biPredicate, BlockPos pos, int radius) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage.OccupationStatus occupationStatus, BlockPos pos, int radius, Random random) PointOfInterestStorage.getPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getSortedTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) boolean
PointOfInterestStorage.hasTypeAt
(RegistryKey<PointOfInterestType> type, BlockPos pos) void
PointOfInterestStorage.preloadChunks
(WorldView world, BlockPos pos, int radius) Preloads chunks in a square area with the given radius.boolean
PointOfInterestSet.releaseTicket
(BlockPos pos) boolean
PointOfInterestStorage.releaseTicket
(BlockPos pos) void
void
boolean
PointOfInterestSet.test
(BlockPos pos, Predicate<RegistryEntry<PointOfInterestType>> predicate) boolean
PointOfInterestStorage.test
(BlockPos pos, Predicate<RegistryEntry<PointOfInterestType>> predicate) Method parameters in net.minecraft.world.poi with type arguments of type BlockPosModifier and TypeMethodDescriptionPointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BiPredicate<RegistryEntry<PointOfInterestType>, BlockPos> biPredicate, BlockPos pos, int radius) private void
PointOfInterestStorage.scanAndPopulate
(ChunkSection chunkSection, ChunkSectionPos sectionPos, BiConsumer<BlockPos, RegistryEntry<PointOfInterestType>> populator) void
PointOfInterestSet.updatePointsOfInterest
(Consumer<BiConsumer<BlockPos, RegistryEntry<PointOfInterestType>>> updater) Constructors in net.minecraft.world.poi with parameters of type BlockPosModifierConstructorDescriptionprivate
PointOfInterest
(BlockPos pos, RegistryEntry<PointOfInterestType> type, int freeTickets, Runnable updateListener) PointOfInterest
(BlockPos pos, RegistryEntry<PointOfInterestType> type, Runnable updateListener) -
Uses of BlockPos in net.minecraft.world.spawner
Methods in net.minecraft.world.spawner with parameters of type BlockPosModifier and TypeMethodDescriptionprivate int
CatSpawner.spawn
(BlockPos pos, ServerWorld world) Spawns a cat.private int
CatSpawner.spawnInHouse
(ServerWorld world, BlockPos pos) Tries to spawn cats in villages.private int
CatSpawner.spawnInSwampHut
(ServerWorld world, BlockPos pos) Tries to spawn cats in swamp huts.private boolean
PatrolSpawner.spawnPillager
(ServerWorld world, BlockPos pos, Random random, boolean captain) -
Uses of BlockPos in net.minecraft.world.tick
Fields in net.minecraft.world.tick declared as BlockPosModifier and TypeFieldDescriptionprivate final BlockPos
OrderedTick.pos
The field for thepos
record component.private final BlockPos
Tick.pos
The field for thepos
record component.Fields in net.minecraft.world.tick with type parameters of type BlockPosModifier and TypeFieldDescriptionprivate final Function<BlockPos,
BasicTickScheduler<T>> MultiTickScheduler.mapper
Methods in net.minecraft.world.tick that return BlockPosModifier and TypeMethodDescriptionOrderedTick.pos()
Returns the value of thepos
record component.Tick.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.tick with parameters of type BlockPosModifier and TypeMethodDescriptionstatic <T> OrderedTick<T>
static <T> Tick<T>
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
private static NbtCompound
Tick.toNbt
(String type, BlockPos pos, int delay, TickPriority priority) Method parameters in net.minecraft.world.tick with type arguments of type BlockPosModifier and TypeMethodDescriptionvoid
WorldTickScheduler.tick
(long time, int maxTicks, BiConsumer<BlockPos, T> ticker) private void
WorldTickScheduler.tick
(BiConsumer<BlockPos, T> ticker) Constructors in net.minecraft.world.tick with parameters of type BlockPosModifierConstructorDescriptionOrderedTick
(T type, BlockPos pos, long triggerTick, long subTickOrder) OrderedTick
(T t, BlockPos blockPos, long long2, TickPriority tickPriority, long long3) Tick
(T t, BlockPos blockPos, int int2, TickPriority tickPriority) Constructor parameters in net.minecraft.world.tick with type arguments of type BlockPosModifierConstructorDescriptionMultiTickScheduler
(Function<BlockPos, BasicTickScheduler<T>> mapper)
AbstractBlock.AbstractBlockState.calcBlockBreakingDelta(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos)
instead.