Uses of Interface
net.minecraft.world.level.LevelAccessor
Packages that use LevelAccessor
Package
Description
-
Uses of LevelAccessor in net.minecraft.client.multiplayer
Classes in net.minecraft.client.multiplayer that implement LevelAccessor -
Uses of LevelAccessor in net.minecraft.server.level
Classes in net.minecraft.server.level that implement LevelAccessor -
Uses of LevelAccessor in net.minecraft.util
Methods in net.minecraft.util with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic void
ParticleUtils.spawnParticleInBlock
(LevelAccessor level, BlockPos pos, int count, ParticleOptions particle) static void
ParticleUtils.spawnParticles
(LevelAccessor level, BlockPos pos, int count, double xzSpread, double ySpread, boolean allowInAir, ParticleOptions particle) static void
ParticleUtils.spawnSmashAttackParticles
(LevelAccessor level, BlockPos pos, int power) -
Uses of LevelAccessor in net.minecraft.world
Methods in net.minecraft.world with parameters of type LevelAccessorModifier and TypeMethodDescriptionWorldlyContainerHolder.getContainer
(BlockState state, LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Mob.checkMobSpawnRules
(EntityType<? extends Mob> type, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) boolean
Mob.checkSpawnRules
(LevelAccessor level, MobSpawnType reason) boolean
PathfinderMob.checkSpawnRules
(LevelAccessor level, MobSpawnType spawnReason) -
Uses of LevelAccessor in net.minecraft.world.entity.ai.goal
Methods in net.minecraft.world.entity.ai.goal with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoid
RemoveBlockGoal.playDestroyProgressSound
(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Bat.checkBatSpawnRules
(EntityType<Bat> bat, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Animal.checkAnimalSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Fox.checkFoxSpawnRules
(EntityType<Fox> fox, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
MushroomCow.checkMushroomSpawnRules
(EntityType<MushroomCow> mushroomCow, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource randomSource) static boolean
Ocelot.checkOcelotSpawnRules
(EntityType<Ocelot> ocelot, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Parrot.checkParrotSpawnRules
(EntityType<Parrot> parrot, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
PolarBear.checkPolarBearSpawnRules
(EntityType<PolarBear> polarBear, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Rabbit.checkRabbitSpawnRules
(EntityType<Rabbit> rabbit, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
WaterAnimal.checkSurfaceWaterAnimalSpawnRules
(EntityType<? extends WaterAnimal> waterAnimal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
TropicalFish.checkTropicalFishSpawnRules
(EntityType<TropicalFish> tropicalFish, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Turtle.checkTurtleSpawnRules
(EntityType<Turtle> turtle, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Wolf.checkWolfSpawnRules
(EntityType<Wolf> wolf, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) private static Rabbit.Variant
Rabbit.getRandomRabbitVariant
(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Armadillo.checkArmadilloSpawnRules
(EntityType<Armadillo> entityType, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Frog.checkFrogSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Goat.checkGoatSpawnRules
(EntityType<? extends Animal> goat, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
SkeletonHorse.checkSkeletonHorseSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
ZombieHorse.checkZombieHorseSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Monster.checkAnyLightMonsterSpawnRules
(EntityType<? extends Monster> type, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) Static predicate for determining whether a monster can spawn at the provided location.static boolean
Endermite.checkEndermiteSpawnRules
(EntityType<Endermite> endermite, LevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Ghast.checkGhastSpawnRules
(EntityType<Ghast> ghast, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Guardian.checkGuardianSpawnRules
(EntityType<? extends Guardian> guardian, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> magmaCube, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
PatrollingMonster.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollingMonster> patrollingMonster, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Silverfish.checkSilverfishSpawnRules
(EntityType<Silverfish> silverfish, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Slime.checkSlimeSpawnRules
(EntityType<Slime> slime, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Strider.checkStriderSpawnRules
(EntityType<Strider> strider, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
ZombifiedPiglin.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglin> zombifiedPiglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) private static boolean
Drowned.isDeepEnoughToSpawn
(LevelAccessor level, BlockPos pos) void
Zombie.ZombieAttackTurtleEggGoal.playDestroyProgressSound
(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Hoglin.checkHoglinSpawnRules
(EntityType<Hoglin> hoglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Piglin.checkPiglinSpawnRules
(EntityType<Piglin> piglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic void
BoneMealItem.addGrowthParticles
(LevelAccessor level, BlockPos pos, int data) private boolean
DebugStickItem.handleInteraction
(Player player, BlockState stateClicked, LevelAccessor accessor, BlockPos pos, boolean shouldCycleState, ItemStack debugStack) void
JukeboxSongPlayer.play
(LevelAccessor level, Holder<JukeboxSong> song) protected void
BucketItem.playEmptySound
(Player player, LevelAccessor level, BlockPos pos) protected void
MobBucketItem.playEmptySound
(Player player, LevelAccessor level, BlockPos pos) private static void
JukeboxSongPlayer.spawnMusicParticles
(LevelAccessor level, BlockPos pos) void
JukeboxSongPlayer.stop
(LevelAccessor level, BlockState state) void
JukeboxSongPlayer.tick
(LevelAccessor level, BlockState state) -
Uses of LevelAccessor in net.minecraft.world.level
Subinterfaces of LevelAccessor in net.minecraft.world.levelClasses in net.minecraft.world.level that implement LevelAccessorFields in net.minecraft.world.level declared as LevelAccessorConstructors in net.minecraft.world.level with parameters of type LevelAccessorModifierConstructorDescriptionStructureManager
(LevelAccessor level, WorldOptions worldOptions, StructureCheck structureCheck) -
Uses of LevelAccessor in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as LevelAccessorModifier and TypeFieldDescriptionprivate final LevelAccessor
ComposterBlock.InputContainer.level
private final LevelAccessor
ComposterBlock.OutputContainer.level
Methods in net.minecraft.world.level.block with parameters of type LevelAccessorModifier and TypeMethodDescription(package private) static BlockState
ComposterBlock.addItem
(Entity entity, BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) private boolean
SculkVeinBlock.attemptPlaceSculk
(SculkSpreader spreader, LevelAccessor level, BlockPos pos, RandomSource random) default boolean
SculkBehaviour.attemptSpreadVein
(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions, boolean markForPostprocessing) int
SculkBehaviour.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) int
SculkBlock.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) int
SculkVeinBlock.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) private static boolean
SculkBlock.canPlaceGrowth
(LevelAccessor level, BlockPos pos) static <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> doubleBlockTypeGetter, Function<BlockState, Direction> directionGetter, DirectionProperty directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) private static void
PointedDripstoneBlock.createDripstone
(LevelAccessor level, BlockPos pos, Direction direction, DripstoneThickness thickness) private static void
PointedDripstoneBlock.createMergedTips
(BlockState state, LevelAccessor level, BlockPos pos) default boolean
SculkBehaviour.depositCharge
(LevelAccessor level, BlockPos pos, RandomSource random) void
Block.destroy
(LevelAccessor level, BlockPos pos, BlockState state) Called after this block has been removed by a player.static void
CampfireBlock.dowse
(Entity entity, LevelAccessor level, BlockPos pos, BlockState state) static void
Block.dropResources
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity) protected static InteractionResult
CakeBlock.eat
(LevelAccessor level, BlockPos pos, BlockState state, Player player) (package private) static BlockState
ComposterBlock.empty
(Entity entity, BlockState state, LevelAccessor level, BlockPos pos) static void
AbstractCandleBlock.extinguish
(Player player, BlockState state, LevelAccessor level, BlockPos pos) PointedDripstoneBlock.findBlockVertical
(LevelAccessor level, BlockPos pos, Direction.AxisDirection axis, BiPredicate<BlockPos, BlockState> positionalStatePredicate, Predicate<BlockState> statePredicate, int maxIterations) private static BlockPos
PointedDripstoneBlock.findTip
(BlockState state, LevelAccessor level, BlockPos pos, int maxIterations, boolean isTipMerge) private void
LiquidBlock.fizz
(LevelAccessor level, BlockPos pos) static void
ChorusFlowerBlock.generatePlant
(LevelAccessor level, BlockPos pos, RandomSource random, int maxHorizontalDistance) ComposterBlock.getContainer
(BlockState state, LevelAccessor level, BlockPos pos) int
DropExperienceBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
RedStoneOreBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkCatalystBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkSensorBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkShriekerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SpawnerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) private BlockState
SculkBlock.getRandomGrowthState
(LevelAccessor level, BlockPos pos, RandomSource random, boolean isWorldGeneration) GrowingPlantBlock.getStateForPlacement
(LevelAccessor level) GrowingPlantHeadBlock.getStateForPlacement
(LevelAccessor level) private BlockState
FireBlock.getStateWithAge
(LevelAccessor level, BlockPos pos, int age) private static BlockPos
SculkSpreader.ChargeCursor.getValidMovementPos
(LevelAccessor level, BlockPos pos, RandomSource random) private static void
ChorusFlowerBlock.growTreeRecursive
(LevelAccessor level, BlockPos branchPos, RandomSource random, BlockPos originalBranchPos, int maxHorizontalDistance, int iterations) static boolean
SculkVeinBlock.hasSubstrateAccess
(LevelAccessor level, BlockState state, BlockPos pos) private static boolean
ChestBlock.isCatSittingOnChest
(LevelAccessor level, BlockPos pos) static boolean
ChestBlock.isChestBlockedAt
(LevelAccessor level, BlockPos pos) private static boolean
SculkSpreader.ChargeCursor.isMovementUnobstructed
(LevelAccessor level, BlockPos fromPos, BlockPos toPos) private static boolean
SculkSpreader.ChargeCursor.isUnobstructed
(LevelAccessor level, BlockPos pos, Direction direction) private static void
LeverBlock.makeParticle
(BlockState state, LevelAccessor level, BlockPos pos, float alpha) default void
SculkBehaviour.onDischarged
(LevelAccessor level, BlockState state, BlockPos pos, RandomSource random) void
SculkVeinBlock.onDischarged
(LevelAccessor level, BlockState state, BlockPos pos, RandomSource random) BarrierBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) BubbleColumnBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) BucketPickup.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) LiquidBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) PowderSnowBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(Player player, LevelAccessor level, BlockPos pos, BlockState state) protected static boolean
BigDripleafBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) static void
DoublePlantBlock.placeAt
(LevelAccessor level, BlockState state, BlockPos pos, int flags) default boolean
MultifaceSpreader.SpreadConfig.placeBlock
(LevelAccessor level, MultifaceSpreader.SpreadPos pos, BlockState state, boolean markForPostprocessing) boolean
CampfireBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
CandleBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
SlabBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor level, RandomSource random, BlockPos pos, Direction direction) protected void
ButtonBlock.playSound
(Player player, LevelAccessor level, BlockPos pos, boolean hitByArrow) protected static void
LeverBlock.playSound
(Player player, LevelAccessor level, BlockPos pos, BlockState state) static BlockState
Block.pushEntitiesUp
(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos) static boolean
SculkVeinBlock.regrow
(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions) private BlockState
NoteBlock.setInstrument
(LevelAccessor level, BlockPos pos, BlockState state) private static void
AbstractCandleBlock.setLit
(LevelAccessor level, BlockState state, BlockPos pos, boolean lit) private static void
TargetBlock.setOutputPower
(LevelAccessor level, BlockState state, int power, BlockPos pos, int waitTime) private boolean
SculkSpreader.ChargeCursor.shouldUpdate
(LevelAccessor level, BlockPos pos, boolean isWorldGeneration) long
MultifaceSpreader.spreadAll
(BlockState state, LevelAccessor level, BlockPos pos, boolean markForPostprocessing) private long
MultifaceSpreader.spreadFromFaceTowardAllDirections
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardDirection
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, Direction face, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, RandomSource random, boolean markForPostprocessing) MultifaceSpreader.spreadFromRandomFaceTowardRandomDirection
(BlockState state, LevelAccessor level, BlockPos pos, RandomSource random) MultifaceSpreader.spreadToFace
(LevelAccessor level, MultifaceSpreader.SpreadPos pos, boolean markForPostprocessing) private void
ObserverBlock.startSignal
(LevelAccessor level, BlockPos pos) protected void
BaseCoralPlantTypeBlock.tryScheduleDieTick
(BlockState state, LevelAccessor level, BlockPos pos) void
SculkSpreader.ChargeCursor.update
(LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) static void
BubbleColumnBlock.updateColumn
(LevelAccessor level, BlockPos pos, BlockState state) static void
BubbleColumnBlock.updateColumn
(LevelAccessor level, BlockPos pos, BlockState fluid, BlockState state) void
SculkSpreader.updateCursors
(LevelAccessor level, BlockPos pos, RandomSource random, boolean shouldConvertBlocks) private static BlockState
LeavesBlock.updateDistance
(BlockState state, LevelAccessor level, BlockPos pos) static BlockState
Block.updateFromNeighbourShapes
(BlockState currentState, LevelAccessor level, BlockPos pos) With the provided block state, performs neighbor checks for all neighboring blocks to get an "adjusted" blockstate for placement in the world, if the current state is not valid.protected void
RedStoneWireBlock.updateIndirectNeighbourShapes
(BlockState state, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) Updates the shapes of indirect neighbors of this block.static void
Block.updateOrDestroy
(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos, int flags) Replaces oldState with newState, possibly playing effects and creating drops.static void
Block.updateOrDestroy
(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) private static int
TargetBlock.updateRedstoneOutput
(LevelAccessor level, BlockState state, BlockHitResult hit, Entity projectile) protected BlockState
AmethystClusterBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
AttachedStemBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
BambooSaplingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BambooStalkBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BannerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BarrierBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralPlantTypeBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralWallFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BasePressurePlateBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseRailBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseTorchBlock.updateShape
(BlockState p_304418_, Direction p_304475_, BlockState p_304669_, LevelAccessor p_304637_, BlockPos p_304633_, BlockPos p_304603_) protected BlockState
BedBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BeehiveBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BellBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafStemBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.BrushableBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BubbleColumnBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BushBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CactusBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CakeBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CampfireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleCakeBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CarpetBlock.updateShape
(BlockState p_152926_, Direction p_152927_, BlockState p_152928_, LevelAccessor p_152929_, BlockPos p_152930_, BlockPos p_152931_) protected BlockState
CeilingHangingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
ChainBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChestBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor facing and neighbor state, returning a new state.protected BlockState
ChorusFlowerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChorusPlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CocoaBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.ComparatorBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ConcretePowderBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
ConduitBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralPlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralWallFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
DecoratedPotBlock.updateShape
(BlockState p_276307_, Direction p_276322_, BlockState p_276280_, LevelAccessor p_276320_, BlockPos p_276270_, BlockPos p_276312_) protected BlockState
DirtPathBlock.updateShape
(BlockState p_153152_, Direction p_153153_, BlockState p_153154_, LevelAccessor p_153155_, BlockPos p_153156_, BlockPos p_153157_) protected BlockState
DoorBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
DoublePlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
EnderChestBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FaceAttachedHorizontalDirectionalBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FallingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FarmBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceGateBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FlowerPotBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FrogspawnBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GlowLichenBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantBodyBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantHeadBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
HangingRootsBlock.updateShape
(BlockState p_153351_, Direction p_153352_, BlockState p_153353_, LevelAccessor p_153354_, BlockPos p_153355_, BlockPos p_153356_) protected BlockState
HeavyCoreBlock.updateShape
(BlockState p_338756_, Direction p_338189_, BlockState p_338723_, LevelAccessor p_338514_, BlockPos p_338346_, BlockPos p_338401_) protected BlockState
HugeMushroomBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
IronBarsBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LadderBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LanternBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LeavesBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightningRodBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LiquidBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MagmaBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MangrovePropaguleBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MangroveRootsBlock.updateShape
(BlockState p_221514_, Direction p_221515_, BlockState p_221516_, LevelAccessor p_221517_, BlockPos p_221518_, BlockPos p_221519_) protected BlockState
MultifaceBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NetherPortalBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NoteBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ObserverBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.PitcherCropBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
PointedDripstoneBlock.updateShape
(BlockState state, Direction p_direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedstoneWallTorchBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedStoneWireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RepeaterBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ScaffoldingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkSensorBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkShriekerBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkVeinBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SeagrassBlock.updateShape
(BlockState p_154530_, Direction p_154531_, BlockState p_154532_, LevelAccessor p_154533_, BlockPos p_154534_, BlockPos p_154535_) protected BlockState
SeaPickleBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SlabBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SmallDripleafBlock.updateShape
(BlockState p_154625_, Direction p_154626_, BlockState p_154627_, LevelAccessor p_154628_, BlockPos p_154629_, BlockPos p_154630_) protected BlockState
SnowLayerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SnowyDirtBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulFireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulSandBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SporeBlossomBlock.updateShape
(BlockState p_154713_, Direction p_154714_, BlockState p_154715_, LevelAccessor p_154716_, BlockPos p_154717_, BlockPos p_154718_) protected BlockState
StairBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
StandingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SugarCaneBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TrapDoorBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireHookBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
VineBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBannerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallHangingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallTorchBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WaterloggedTransparentBlock.updateShape
(BlockState p_313906_, Direction p_313739_, BlockState p_313829_, LevelAccessor p_313692_, BlockPos p_313842_, BlockPos p_313843_) Method parameters in net.minecraft.world.level.block with type arguments of type LevelAccessorModifier and TypeMethodDescriptionstatic <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> doubleBlockTypeGetter, Function<BlockState, Direction> directionGetter, DirectionProperty directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) Constructors in net.minecraft.world.level.block with parameters of type LevelAccessorModifierConstructorDescriptionInputContainer
(BlockState state, LevelAccessor level, BlockPos pos) OutputContainer
(BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) -
Uses of LevelAccessor in net.minecraft.world.level.block.grower
Methods in net.minecraft.world.level.block.grower with parameters of type LevelAccessorModifier and TypeMethodDescriptionprivate boolean
TreeGrower.hasFlowers
(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoid
MovingPistonBlock.destroy
(LevelAccessor level, BlockPos pos, BlockState state) Called after this block has been removed by a player.PistonBaseBlock.rotate
(BlockState state, LevelAccessor world, BlockPos pos, Rotation direction) protected BlockState
PistonHeadBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state. -
Uses of LevelAccessor in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type LevelAccessorModifier and TypeMethodDescriptionfinal void
BlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags) void
BlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags, int recursionLeft) protected void
BlockBehaviour.updateIndirectNeighbourShapes
(BlockState state, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) Updates the shapes of indirect neighbors of this block.final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags) final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor level, BlockPos pos, int flags, int recursionLeft) BlockBehaviour.BlockStateBase.updateShape
(Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) protected BlockState
BlockBehaviour.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state. -
Uses of LevelAccessor in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk declared as LevelAccessorMethods in net.minecraft.world.level.chunk with parameters of type LevelAccessorModifier and TypeMethodDescriptiondefault void
UpgradeData.BlockFixer.processChunk
(LevelAccessor level) UpgradeData.BlockFixer.updateShape
(BlockState state, Direction direction, BlockState offsetState, LevelAccessor level, BlockPos pos, BlockPos offsetPos) private static BlockState
UpgradeData.updateState
(BlockState state, Direction direction, LevelAccessor level, BlockPos pos, BlockPos offsetPos) Constructors in net.minecraft.world.level.chunk with parameters of type LevelAccessor -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.feature
Methods in net.minecraft.world.level.levelgen.feature with parameters of type LevelAccessorModifier and TypeMethodDescriptionprivate boolean
DripstoneClusterFeature.canBeAdjacentToWater
(LevelAccessor level, BlockPos pos) private static boolean
BasaltColumnsFeature.canPlaceAt
(LevelAccessor level, int seaLevel, BlockPos.MutableBlockPos pos) private boolean
SculkPatchFeature.canSpreadFrom
(LevelAccessor level, BlockPos pos) private void
IcebergFeature.carve
(int radius, int localY, BlockPos pos, LevelAccessor level, boolean placeWater, double perpendicularAngle, BlockPos ellipseOrigin, int majorRadius, int minorRadius) private static void
PointedDripstoneFeature.createPatchOfDripstoneBlocks
(LevelAccessor level, RandomSource random, BlockPos pos, PointedDripstoneConfiguration config) private static BlockPos
BasaltColumnsFeature.findAir
(LevelAccessor level, BlockPos.MutableBlockPos pos, int distance) private static boolean
TwistingVinesFeature.findFirstAirBlockAboveGround
(LevelAccessor level, BlockPos.MutableBlockPos pos) private static BlockPos
BasaltColumnsFeature.findSurface
(LevelAccessor level, int seaLevel, BlockPos.MutableBlockPos pos, int distance) private static BlockPos
ReplaceBlobsFeature.findTarget
(LevelAccessor level, BlockPos.MutableBlockPos topPos, Block block) private void
IcebergFeature.generateCutOut
(RandomSource random, LevelAccessor level, int majorAxis, int height, BlockPos pos, boolean elliptical, int ellipseRadius, double angle, int minorAxis) private void
IcebergFeature.generateIcebergBlock
(LevelAccessor level, RandomSource random, BlockPos pos, int height, int localX, int localY, int localZ, int radius, int majorRadius, boolean elliptical, int minorRadius, double angle, boolean placeSnow, BlockState state) PointedDripstoneFeature.getTipDirection
(LevelAccessor level, BlockPos pos, RandomSource random) protected static void
DripstoneUtils.growPointedDripstone
(LevelAccessor level, BlockPos pos, Direction direction, int height, boolean mergeTip) private static boolean
BasaltColumnsFeature.isAirOrLavaOcean
(LevelAccessor level, int seaLevel, BlockPos pos) private static boolean
DeltaFeature.isClear
(LevelAccessor level, BlockPos pos, DeltaFeatureConfiguration config) protected static boolean
DripstoneUtils.isEmptyOrWater
(LevelAccessor level, BlockPos pos) protected static boolean
DripstoneUtils.isEmptyOrWaterOrLava
(LevelAccessor level, BlockPos pos) private static boolean
TwistingVinesFeature.isInvalidPlacementLocation
(LevelAccessor level, BlockPos pos) protected boolean
AbstractHugeMushroomFeature.isValidPosition
(LevelAccessor level, BlockPos pos, int maxHeight, BlockPos.MutableBlockPos mutablePos, HugeMushroomFeatureConfiguration config) private boolean
UnderwaterMagmaFeature.isWaterOrAir
(LevelAccessor level, BlockPos pos) protected abstract void
AbstractHugeMushroomFeature.makeCap
(LevelAccessor level, RandomSource random, BlockPos pos, int treeHeight, BlockPos.MutableBlockPos mutablePos, HugeMushroomFeatureConfiguration config) protected void
HugeBrownMushroomFeature.makeCap
(LevelAccessor p_225043_, RandomSource p_225044_, BlockPos p_225045_, int p_225046_, BlockPos.MutableBlockPos p_225047_, HugeMushroomFeatureConfiguration p_225048_) protected void
HugeRedMushroomFeature.makeCap
(LevelAccessor p_225082_, RandomSource p_225083_, BlockPos p_225084_, int p_225085_, BlockPos.MutableBlockPos p_225086_, HugeMushroomFeatureConfiguration p_225087_) private boolean
BlockPileFeature.mayPlaceOn
(LevelAccessor level, BlockPos pos, RandomSource random) private void
BasaltPillarFeature.placeBaseHangOff
(LevelAccessor level, RandomSource random, BlockPos pos) private boolean
BasaltColumnsFeature.placeColumn
(LevelAccessor level, int seaLevel, BlockPos pos, int distance, int reach) protected boolean
CoralFeature.placeCoralBlock
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) protected static boolean
DripstoneUtils.placeDripstoneBlockIfPossible
(LevelAccessor level, BlockPos pos) protected boolean
CoralClawFeature.placeFeature
(LevelAccessor p_224959_, RandomSource p_224960_, BlockPos p_224961_, BlockState p_224962_) protected abstract boolean
CoralFeature.placeFeature
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) protected boolean
CoralMushroomFeature.placeFeature
(LevelAccessor p_224982_, RandomSource p_224983_, BlockPos p_224984_, BlockState p_224985_) protected boolean
CoralTreeFeature.placeFeature
(LevelAccessor p_224987_, RandomSource p_224988_, BlockPos p_224989_, BlockState p_224990_) private boolean
BasaltPillarFeature.placeHangOff
(LevelAccessor level, RandomSource random, BlockPos pos) private void
HugeFungusFeature.placeHatBlock
(LevelAccessor level, RandomSource random, HugeFungusConfiguration config, BlockPos.MutableBlockPos pos, float decorationChance, float hatChance, float weepingVineChance) private void
HugeFungusFeature.placeHatDropBlock
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state, boolean weepingVines) private void
WeepingVinesFeature.placeRoofNetherWart
(LevelAccessor level, RandomSource random, BlockPos pos) private void
WeepingVinesFeature.placeRoofWeepingVines
(LevelAccessor level, RandomSource random, BlockPos pos) protected void
AbstractHugeMushroomFeature.placeTrunk
(LevelAccessor level, RandomSource random, BlockPos pos, HugeMushroomFeatureConfiguration config, int maxHeight, BlockPos.MutableBlockPos mutablePos) static void
TwistingVinesFeature.placeWeepingVinesColumn
(LevelAccessor level, RandomSource random, BlockPos.MutableBlockPos pos, int length, int minAge, int maxAge) static void
WeepingVinesFeature.placeWeepingVinesColumn
(LevelAccessor level, RandomSource random, BlockPos.MutableBlockPos pos, int height, int minAge, int maxAge) private void
IcebergFeature.removeFloatingSnowLayer
(LevelAccessor level, BlockPos pos) private void
IcebergFeature.setIcebergBlock
(BlockPos pos, LevelAccessor level, RandomSource random, int heightRemaining, int height, boolean elliptical, boolean placeSnow, BlockState state) private void
IcebergFeature.smooth
(LevelAccessor level, BlockPos pos, int majorRadius, int height, boolean elliptical, int minorRadius) Smooths out an iceberg by removing blocks which either have air below, or non-iceberg blocks on three or more horizontal sides, with air.private void
BlockPileFeature.tryPlaceBlock
(LevelAccessor level, BlockPos pos, RandomSource random, BlockPileConfiguration config) private static void
HugeFungusFeature.tryPlaceWeepingVines
(BlockPos pos, LevelAccessor level, RandomSource random) private static DiscreteVoxelShape
TreeFeature.updateLeaves
(LevelAccessor level, BoundingBox box, Set<BlockPos> rootPositions, Set<BlockPos> trunkPositions, Set<BlockPos> foliagePositions) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure
Methods in net.minecraft.world.level.levelgen.structure with parameters of type LevelAccessorModifier and TypeMethodDescriptionprotected boolean
ScatteredFeaturePiece.updateAverageGroundHeight
(LevelAccessor level, BoundingBox bounds, int height) protected boolean
ScatteredFeaturePiece.updateHeightPositionToLowestGroundHeight
(LevelAccessor level, int height) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure.pools
Methods in net.minecraft.world.level.levelgen.structure.pools with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoid
StructurePoolElement.handleDataMarker
(LevelAccessor level, StructureTemplate.StructureBlockInfo blockInfo, BlockPos pos, Rotation rotation, RandomSource random, BoundingBox box) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure.structures
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type LevelAccessorModifier and TypeMethodDescriptionprivate void
RuinedPortalPiece.addNetherrackDripColumn
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.addNetherrackDripColumnsBelowPortal
(RandomSource random, LevelAccessor level) private boolean
RuinedPortalPiece.canBlockBeReplacedByNetherrackOrMagma
(LevelAccessor level, BlockPos pos) private static int
RuinedPortalPiece.getSurfaceY
(LevelAccessor level, int x, int z, RuinedPortalPiece.VerticalPlacement verticalPlacement) protected boolean
MineshaftPieces.MineShaftPiece.isInInvalidLocation
(LevelAccessor level, BoundingBox boundingBox) private void
RuinedPortalPiece.maybeAddLeavesAbove
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.maybeAddVines
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.placeNetherrackOrMagma
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.spreadNetherrack
(RandomSource random, LevelAccessor level) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure.templatesystem
Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type LevelAccessorModifier and TypeMethodDescriptionStructureTemplate.processEntityInfos
(StructureTemplate template, LevelAccessor p_215387_0_, BlockPos p_215387_1_, StructurePlaceSettings p_215387_2_, List<StructureTemplate.StructureEntityInfo> p_215387_3_) static void
StructureTemplate.updateShapeAtEdge
(LevelAccessor level, int flags, DiscreteVoxelShape shape, int x, int y, int z) static void
StructureTemplate.updateShapeAtEdge
(LevelAccessor level, int flags, DiscreteVoxelShape shape, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material with parameters of type LevelAccessorModifier and TypeMethodDescriptionprotected abstract void
FlowingFluid.beforeDestroyingBlock
(LevelAccessor level, BlockPos pos, BlockState state) protected void
LavaFluid.beforeDestroyingBlock
(LevelAccessor level, BlockPos pos, BlockState state) protected void
WaterFluid.beforeDestroyingBlock
(LevelAccessor level, BlockPos pos, BlockState state) private void
LavaFluid.fizz
(LevelAccessor level, BlockPos pos) protected void
FlowingFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) protected void
LavaFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) -
Uses of LevelAccessor in net.minecraft.world.level.portal
Fields in net.minecraft.world.level.portal declared as LevelAccessorMethods in net.minecraft.world.level.portal with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic Optional
<PortalShape> PortalShape.findEmptyPortalShape
(LevelAccessor level, BlockPos bottomLeft, Direction.Axis axis) static Optional
<PortalShape> PortalShape.findPortalShape
(LevelAccessor level, BlockPos bottomLeft, Predicate<PortalShape> predicate, Direction.Axis axis) Constructors in net.minecraft.world.level.portal with parameters of type LevelAccessorModifierConstructorDescriptionPortalShape
(LevelAccessor level, BlockPos bottomLeft, Direction.Axis axis) -
Uses of LevelAccessor in net.minecraft.world.level.redstone
Methods in net.minecraft.world.level.redstone with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic void
NeighborUpdater.executeShapeUpdate
(LevelAccessor level, Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) -
Uses of LevelAccessor in net.minecraft.world.level.saveddata.maps
Methods in net.minecraft.world.level.saveddata.maps with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoid
MapItemSavedData.addDecoration
(Holder<MapDecorationType> decorationType, LevelAccessor level, String id, double x, double z, double yRot, Component displayName) boolean
MapItemSavedData.toggleBanner
(LevelAccessor accessor, BlockPos pos) -
Uses of LevelAccessor in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoid
SpecialPlantable.spawnPlantAtPosition
(ItemStack itemStack, LevelAccessor level, BlockPos pos, @Nullable Direction direction) Spawns the plant with the given direction attachment point at location. -
Uses of LevelAccessor in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type LevelAccessorModifier and TypeMethodDescriptiondefault int
IBlockExtension.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default int
IBlockStateExtension.getExpDrop
(LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default BlockState
IBlockExtension.rotate
(BlockState state, LevelAccessor level, BlockPos pos, Rotation direction) default BlockState
IBlockStateExtension.rotate
(LevelAccessor level, BlockPos pos, Rotation direction) -
Uses of LevelAccessor in net.neoforged.neoforge.common.util
Fields in net.neoforged.neoforge.common.util with type parameters of type LevelAccessorMethods in net.neoforged.neoforge.common.util that return LevelAccessorModifier and TypeMethodDescription@Nullable LevelAccessor
BlockSnapshot.getLevel()
Returns the stored level, attempting to resolve it from the current server if it has gone out of scope.Methods in net.neoforged.neoforge.common.util with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos) Creates a new snapshot with the default block flags (and Block#UPDATE_CLIENTS
.static BlockSnapshot
BlockSnapshot.create
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, int flag) Creates a new snapshot of the data at the given position.private static @Nullable CompoundTag
BlockSnapshot.getBlockEntityTag
(LevelAccessor level, BlockPos pos) Checks for a block entity at a given position, and saves it to NBT with full metadata if it exists.boolean
BlockSnapshot.restoreBlockEntity
(LevelAccessor level, BlockPos pos) Loads the storedBlockEntity
data if one exists at the given position.boolean
BlockSnapshot.restoreToLocation
(LevelAccessor level, BlockPos pos, int flags) Restores this block snapshot to the target level and position with the specified flags.Constructors in net.neoforged.neoforge.common.util with parameters of type LevelAccessorModifierConstructorDescriptionprivate
BlockSnapshot
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, BlockState state, @Nullable CompoundTag nbt, int flags) -
Uses of LevelAccessor in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic BlockGrowFeatureEvent
EventHooks.fireBlockGrowFeature
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> holder) Fires theBlockGrowFeatureEvent
and returns the event object.static BlockState
EventHooks.fireFluidPlaceBlockEvent
(LevelAccessor level, BlockPos pos, BlockPos liquidPos, BlockState state) EventHooks.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) static Optional
<PortalShape> EventHooks.onTrySpawnPortal
(LevelAccessor level, BlockPos pos, Optional<PortalShape> size) -
Uses of LevelAccessor in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as LevelAccessorModifier and TypeFieldDescriptionprivate final LevelAccessor
BlockEvent.level
private final LevelAccessor
LevelEvent.level
Methods in net.neoforged.neoforge.event.level that return LevelAccessorModifier and TypeMethodDescriptionBlockEvent.getLevel()
LevelEvent.getLevel()
Returns the level this event is affecting.Constructors in net.neoforged.neoforge.event.level with parameters of type LevelAccessorModifierConstructorDescriptionBlockEvent
(LevelAccessor level, BlockPos pos, BlockState state) BlockGrowFeatureEvent
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> feature) ChunkDataEvent
(ChunkAccess chunk, LevelAccessor world, CompoundTag data) ChunkEvent
(ChunkAccess chunk, LevelAccessor level) CreateSpawnPosition
(LevelAccessor level, ServerLevelData settings) FluidPlaceBlockEvent
(LevelAccessor level, BlockPos pos, BlockPos liquidPos, BlockState state) LevelEvent
(LevelAccessor level) Load
(LevelAccessor level) PortalSpawnEvent
(LevelAccessor level, BlockPos pos, BlockState state, PortalShape size) PotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) Save
(ChunkAccess chunk, LevelAccessor world, CompoundTag data) Save
(LevelAccessor level) Unload
(LevelAccessor level) -
Uses of LevelAccessor in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type LevelAccessorModifier and TypeMethodDescriptionprotected void
BaseFlowingFluid.beforeDestroyingBlock
(LevelAccessor worldIn, BlockPos pos, BlockState state)