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 pLevel, BlockPos pPos, int pCount, ParticleOptions pParticle) static void
ParticleUtils.spawnParticles
(LevelAccessor pLevel, BlockPos pPos, int pCount, double pXzSpread, double pYSpread, boolean pAllowInAir, ParticleOptions pParticle) static void
ParticleUtils.spawnSmashAttackParticles
(LevelAccessor pLevel, BlockPos pPos, int pPower) -
Uses of LevelAccessor in net.minecraft.world
Methods in net.minecraft.world with parameters of type LevelAccessorModifier and TypeMethodDescriptionWorldlyContainerHolder.getContainer
(BlockState pState, LevelAccessor pLevel, BlockPos pPos) -
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> pType, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) boolean
Mob.checkSpawnRules
(LevelAccessor pLevel, MobSpawnType pReason) boolean
PathfinderMob.checkSpawnRules
(LevelAccessor pLevel, MobSpawnType pSpawnReason) -
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 pLevel, BlockPos pPos) -
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> pBat, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
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> pAnimal, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Fox.checkFoxSpawnRules
(EntityType<Fox> pFox, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
MushroomCow.checkMushroomSpawnRules
(EntityType<MushroomCow> pMushroomCow, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandomSource) static boolean
Ocelot.checkOcelotSpawnRules
(EntityType<Ocelot> pOcelot, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Parrot.checkParrotSpawnRules
(EntityType<Parrot> pParrot, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
PolarBear.checkPolarBearSpawnRules
(EntityType<PolarBear> pPolarBear, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Rabbit.checkRabbitSpawnRules
(EntityType<Rabbit> pRabbit, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
WaterAnimal.checkSurfaceWaterAnimalSpawnRules
(EntityType<? extends WaterAnimal> pWaterAnimal, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
TropicalFish.checkTropicalFishSpawnRules
(EntityType<TropicalFish> pTropicalFish, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Turtle.checkTurtleSpawnRules
(EntityType<Turtle> pTurtle, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Wolf.checkWolfSpawnRules
(EntityType<Wolf> pWolf, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) private static Rabbit.Variant
Rabbit.getRandomRabbitVariant
(LevelAccessor pLevel, BlockPos pPos) -
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> pEntityType, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
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> pAnimal, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
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> pGoat, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
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> pAnimal, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
ZombieHorse.checkZombieHorseSpawnRules
(EntityType<? extends Animal> pAnimal, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
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> pType, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) Static predicate for determining whether a monster can spawn at the provided location.static boolean
Endermite.checkEndermiteSpawnRules
(EntityType<Endermite> pEndermite, LevelAccessor pServerLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Ghast.checkGhastSpawnRules
(EntityType<Ghast> pGhast, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Guardian.checkGuardianSpawnRules
(EntityType<? extends Guardian> pGuardian, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> pMagmaCube, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
PatrollingMonster.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollingMonster> pPatrollingMonster, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Silverfish.checkSilverfishSpawnRules
(EntityType<Silverfish> pSilverfish, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Slime.checkSlimeSpawnRules
(EntityType<Slime> pSlime, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
Strider.checkStriderSpawnRules
(EntityType<Strider> pStrider, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static boolean
ZombifiedPiglin.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglin> pZombifiedPiglin, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) private static boolean
Drowned.isDeepEnoughToSpawn
(LevelAccessor pLevel, BlockPos pPos) void
Zombie.ZombieAttackTurtleEggGoal.playDestroyProgressSound
(LevelAccessor pLevel, BlockPos pPos) -
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> pHoglin, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
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> pPiglin, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
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 pLevel, BlockPos pPos, int pData) private boolean
DebugStickItem.handleInteraction
(Player pPlayer, BlockState pStateClicked, LevelAccessor pAccessor, BlockPos pPos, boolean pShouldCycleState, ItemStack pDebugStack) void
JukeboxSongPlayer.play
(LevelAccessor pLevel, Holder<JukeboxSong> pSong) protected void
BucketItem.playEmptySound
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos) protected void
MobBucketItem.playEmptySound
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos) private static void
JukeboxSongPlayer.spawnMusicParticles
(LevelAccessor pLevel, BlockPos pPos) void
JukeboxSongPlayer.stop
(LevelAccessor pLevel, BlockState pState) void
JukeboxSongPlayer.tick
(LevelAccessor pLevel, BlockState pState) -
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 pLevel, WorldOptions pWorldOptions, StructureCheck pStructureCheck) -
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 pEntity, BlockState pState, LevelAccessor pLevel, BlockPos pPos, ItemStack pStack) private boolean
SculkVeinBlock.attemptPlaceSculk
(SculkSpreader pSpreader, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) default boolean
SculkBehaviour.attemptSpreadVein
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Collection<Direction> pDirections, boolean pMarkForPostprocessing) int
SculkBehaviour.attemptUseCharge
(SculkSpreader.ChargeCursor pCursor, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) int
SculkBlock.attemptUseCharge
(SculkSpreader.ChargeCursor pCursor, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) int
SculkVeinBlock.attemptUseCharge
(SculkSpreader.ChargeCursor pCursor, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) private static boolean
SculkBlock.canPlaceGrowth
(LevelAccessor pLevel, BlockPos pPos) static <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour
(BlockEntityType<S> pBlockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> pDoubleBlockTypeGetter, Function<BlockState, Direction> pDirectionGetter, DirectionProperty pDirectionProperty, BlockState pState, LevelAccessor pLevel, BlockPos pPos, BiPredicate<LevelAccessor, BlockPos> pBlockedChestTest) private static void
PointedDripstoneBlock.createDripstone
(LevelAccessor pLevel, BlockPos pPos, Direction pDirection, DripstoneThickness pThickness) private static void
PointedDripstoneBlock.createMergedTips
(BlockState pState, LevelAccessor pLevel, BlockPos pPos) default boolean
SculkBehaviour.depositCharge
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) void
Block.destroy
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) Called after this block has been removed by a player.static void
CampfireBlock.dowse
(Entity pEntity, LevelAccessor pLevel, BlockPos pPos, BlockState pState) static void
Block.dropResources
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, BlockEntity pBlockEntity) protected static InteractionResult
CakeBlock.eat
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Player pPlayer) (package private) static BlockState
ComposterBlock.empty
(Entity pEntity, BlockState pState, LevelAccessor pLevel, BlockPos pPos) static void
AbstractCandleBlock.extinguish
(Player pPlayer, BlockState pState, LevelAccessor pLevel, BlockPos pPos) PointedDripstoneBlock.findBlockVertical
(LevelAccessor pLevel, BlockPos pPos, Direction.AxisDirection pAxis, BiPredicate<BlockPos, BlockState> pPositionalStatePredicate, Predicate<BlockState> pStatePredicate, int pMaxIterations) private static BlockPos
PointedDripstoneBlock.findTip
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, int pMaxIterations, boolean pIsTipMerge) private void
LiquidBlock.fizz
(LevelAccessor pLevel, BlockPos pPos) static void
ChorusFlowerBlock.generatePlant
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, int pMaxHorizontalDistance) ComposterBlock.getContainer
(BlockState pState, LevelAccessor pLevel, BlockPos pPos) 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 pLevel, BlockPos pPos, RandomSource pRandom, boolean pIsWorldGeneration) GrowingPlantBlock.getStateForPlacement
(LevelAccessor pLevel) GrowingPlantHeadBlock.getStateForPlacement
(LevelAccessor pLevel) private BlockState
FireBlock.getStateWithAge
(LevelAccessor pLevel, BlockPos pPos, int pAge) private static BlockPos
SculkSpreader.ChargeCursor.getValidMovementPos
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) private static void
ChorusFlowerBlock.growTreeRecursive
(LevelAccessor pLevel, BlockPos pBranchPos, RandomSource pRandom, BlockPos pOriginalBranchPos, int pMaxHorizontalDistance, int pIterations) static boolean
SculkVeinBlock.hasSubstrateAccess
(LevelAccessor pLevel, BlockState pState, BlockPos pPos) private static boolean
ChestBlock.isCatSittingOnChest
(LevelAccessor pLevel, BlockPos pPos) static boolean
ChestBlock.isChestBlockedAt
(LevelAccessor p_51509_, BlockPos p_51510_) private static boolean
SculkSpreader.ChargeCursor.isMovementUnobstructed
(LevelAccessor pLevel, BlockPos pFromPos, BlockPos pToPos) private static boolean
SculkSpreader.ChargeCursor.isUnobstructed
(LevelAccessor pLevel, BlockPos pPos, Direction pDirection) private static void
LeverBlock.makeParticle
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, float pAlpha) default void
SculkBehaviour.onDischarged
(LevelAccessor pLevel, BlockState pState, BlockPos pPos, RandomSource pRandom) void
SculkVeinBlock.onDischarged
(LevelAccessor pLevel, BlockState pState, BlockPos pPos, RandomSource pRandom) BarrierBlock.pickupBlock
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) BubbleColumnBlock.pickupBlock
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) BucketPickup.pickupBlock
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) LiquidBlock.pickupBlock
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) PowderSnowBlock.pickupBlock
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) protected static boolean
BigDripleafBlock.place
(LevelAccessor pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) static void
DoublePlantBlock.placeAt
(LevelAccessor pLevel, BlockState pState, BlockPos pPos, int pFlags) default boolean
MultifaceSpreader.SpreadConfig.placeBlock
(LevelAccessor pLevel, MultifaceSpreader.SpreadPos pPos, BlockState pState, boolean pMarkForPostprocessing) boolean
CampfireBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
CandleBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
KelpBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
SlabBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, Direction pDirection) protected void
ButtonBlock.playSound
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, boolean pHitByArrow) protected static void
LeverBlock.playSound
(Player pPlayer, LevelAccessor pLevel, BlockPos pPos, BlockState pState) static BlockState
Block.pushEntitiesUp
(BlockState pOldState, BlockState pNewState, LevelAccessor pLevel, BlockPos pPos) static boolean
SculkVeinBlock.regrow
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Collection<Direction> pDirections) private BlockState
NoteBlock.setInstrument
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) private static void
AbstractCandleBlock.setLit
(LevelAccessor pLevel, BlockState pState, BlockPos pPos, boolean pLit) private static void
TargetBlock.setOutputPower
(LevelAccessor pLevel, BlockState pState, int pPower, BlockPos pPos, int pWaitTime) private boolean
SculkSpreader.ChargeCursor.shouldUpdate
(LevelAccessor pLevel, BlockPos pPos, boolean pIsWorldGeneration) long
MultifaceSpreader.spreadAll
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, boolean pMarkForPostprocessing) private long
MultifaceSpreader.spreadFromFaceTowardAllDirections
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, Direction pSpreadDirection, boolean pMarkForPostprocessing) MultifaceSpreader.spreadFromFaceTowardDirection
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, Direction pSpreadDirection, Direction pFace, boolean pMarkForPostprocessing) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, Direction pSpreadDirection, RandomSource pRandom, boolean pMarkForPostprocessing) MultifaceSpreader.spreadFromRandomFaceTowardRandomDirection
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) MultifaceSpreader.spreadToFace
(LevelAccessor pLevel, MultifaceSpreader.SpreadPos pPos, boolean pMarkForPostprocessing) private void
ObserverBlock.startSignal
(LevelAccessor pLevel, BlockPos pPos) protected void
BaseCoralPlantTypeBlock.tryScheduleDieTick
(BlockState pState, LevelAccessor pLevel, BlockPos pPos) void
SculkSpreader.ChargeCursor.update
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) static void
BubbleColumnBlock.updateColumn
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) static void
BubbleColumnBlock.updateColumn
(LevelAccessor pLevel, BlockPos pPos, BlockState pFluid, BlockState pState) void
SculkSpreader.updateCursors
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, boolean pShouldConvertBlocks) private static BlockState
LeavesBlock.updateDistance
(BlockState pState, LevelAccessor pLevel, BlockPos pPos) static BlockState
Block.updateFromNeighbourShapes
(BlockState pCurrentState, LevelAccessor pLevel, BlockPos pPos) 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 pState, LevelAccessor pLevel, BlockPos pPos, int pFlags, int pRecursionLeft) Updates the shapes of indirect neighbors of this block.static void
Block.updateOrDestroy
(BlockState pOldState, BlockState pNewState, LevelAccessor pLevel, BlockPos pPos, int pFlags) Replaces oldState with newState, possibly playing effects and creating drops.static void
Block.updateOrDestroy
(BlockState pOldState, BlockState pNewState, LevelAccessor pLevel, BlockPos pPos, int pFlags, int pRecursionLeft) private static int
TargetBlock.updateRedstoneOutput
(LevelAccessor pLevel, BlockState pState, BlockHitResult pHit, Entity pProjectile) protected BlockState
AmethystClusterBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
AttachedStemBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) protected BlockState
BambooSaplingBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BambooStalkBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BannerBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BarrierBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralPlantTypeBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralWallFanBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BasePressurePlateBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseRailBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BeehiveBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BellBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafStemBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.BrushableBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BubbleColumnBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BushBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CactusBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CakeBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CampfireBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleCakeBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) protected BlockState
ChainBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChestBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor facing and neighbor state, returning a new state.protected BlockState
ChorusFlowerBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChorusPlantBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CocoaBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.ComparatorBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ConcretePowderBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) protected BlockState
ConduitBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralFanBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralPlantBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralWallFanBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
DoublePlantBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
EnderChestBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FaceAttachedHorizontalDirectionalBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FallingBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FarmBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceGateBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FireBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FlowerPotBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FrogspawnBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GlowLichenBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantBodyBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantHeadBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
IronBarsBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LadderBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LanternBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LeavesBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightningRodBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LiquidBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MagmaBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MangrovePropaguleBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 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 pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NetherPortalBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NoteBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ObserverBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.PitcherCropBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
PointedDripstoneBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedstoneWallTorchBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedStoneWireBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RepeaterBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ScaffoldingBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkSensorBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkShriekerBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkVeinBlock.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SignBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SlabBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SnowyDirtBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulFireBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulSandBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
StandingSignBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SugarCaneBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TrapDoorBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireHookBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
VineBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBannerBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallHangingSignBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallSignBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallTorchBlock.updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 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> pBlockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> pDoubleBlockTypeGetter, Function<BlockState, Direction> pDirectionGetter, DirectionProperty pDirectionProperty, BlockState pState, LevelAccessor pLevel, BlockPos pPos, BiPredicate<LevelAccessor, BlockPos> pBlockedChestTest) Constructors in net.minecraft.world.level.block with parameters of type LevelAccessorModifierConstructorDescriptionInputContainer
(BlockState pState, LevelAccessor pLevel, BlockPos pPos) OutputContainer
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, ItemStack pStack) -
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 pLevel, BlockPos pPos) -
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 pLevel, BlockPos pPos, BlockState pState) 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 pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 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 pLevel, BlockPos pPos, int pFlags) void
BlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes
(LevelAccessor pLevel, BlockPos pPos, int pFlags, int pRecursionLeft) protected void
BlockBehaviour.updateIndirectNeighbourShapes
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, int pFlags, int pRecursionLeft) Updates the shapes of indirect neighbors of this block.final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor pLevel, BlockPos pPos, int pFlags) final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor pLevel, BlockPos pPos, int pFlags, int pRecursionLeft) BlockBehaviour.BlockStateBase.updateShape
(Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) protected BlockState
BlockBehaviour.updateShape
(BlockState pState, Direction pDirection, BlockState pNeighborState, LevelAccessor pLevel, BlockPos pPos, BlockPos pNeighborPos) 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 pLevel) UpgradeData.BlockFixer.updateShape
(BlockState pState, Direction pDirection, BlockState pOffsetState, LevelAccessor pLevel, BlockPos pPos, BlockPos pOffsetPos) private static BlockState
UpgradeData.updateState
(BlockState pState, Direction pDirection, LevelAccessor pLevel, BlockPos pPos, BlockPos pOffsetPos) 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 pLevel, BlockPos pPos) private static boolean
BasaltColumnsFeature.canPlaceAt
(LevelAccessor pLevel, int pSeaLevel, BlockPos.MutableBlockPos pPos) private boolean
SculkPatchFeature.canSpreadFrom
(LevelAccessor pLevel, BlockPos pPos) private void
IcebergFeature.carve
(int pRadius, int pLocalY, BlockPos pPos, LevelAccessor pLevel, boolean pPlaceWater, double pPerpendicularAngle, BlockPos pEllipseOrigin, int pMajorRadius, int pMinorRadius) private static void
PointedDripstoneFeature.createPatchOfDripstoneBlocks
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, PointedDripstoneConfiguration pConfig) private static BlockPos
BasaltColumnsFeature.findAir
(LevelAccessor pLevel, BlockPos.MutableBlockPos pPos, int pDistance) private static boolean
TwistingVinesFeature.findFirstAirBlockAboveGround
(LevelAccessor pLevel, BlockPos.MutableBlockPos pPos) private static BlockPos
BasaltColumnsFeature.findSurface
(LevelAccessor pLevel, int pSeaLevel, BlockPos.MutableBlockPos pPos, int pDistance) private static BlockPos
ReplaceBlobsFeature.findTarget
(LevelAccessor pLevel, BlockPos.MutableBlockPos pTopPos, Block pBlock) private void
IcebergFeature.generateCutOut
(RandomSource pRandom, LevelAccessor pLevel, int pMajorAxis, int pHeight, BlockPos pPos, boolean pElliptical, int pEllipseRadius, double pAngle, int pMinorAxis) private void
IcebergFeature.generateIcebergBlock
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, int pHeight, int pLocalX, int pLocalY, int pLocalZ, int pRadius, int pMajorRadius, boolean pElliptical, int pMinorRadius, double pAngle, boolean pPlaceSnow, BlockState pState) PointedDripstoneFeature.getTipDirection
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) protected static void
DripstoneUtils.growPointedDripstone
(LevelAccessor pLevel, BlockPos pPos, Direction pDirection, int pHeight, boolean pMergeTip) private static boolean
BasaltColumnsFeature.isAirOrLavaOcean
(LevelAccessor pLevel, int pSeaLevel, BlockPos pPos) private static boolean
DeltaFeature.isClear
(LevelAccessor pLevel, BlockPos pPos, DeltaFeatureConfiguration pConfig) protected static boolean
DripstoneUtils.isEmptyOrWater
(LevelAccessor pLevel, BlockPos pPos) protected static boolean
DripstoneUtils.isEmptyOrWaterOrLava
(LevelAccessor pLevel, BlockPos pPos) private static boolean
TwistingVinesFeature.isInvalidPlacementLocation
(LevelAccessor pLevel, BlockPos pPos) protected boolean
AbstractHugeMushroomFeature.isValidPosition
(LevelAccessor pLevel, BlockPos pPos, int pMaxHeight, BlockPos.MutableBlockPos pMutablePos, HugeMushroomFeatureConfiguration pConfig) private boolean
UnderwaterMagmaFeature.isWaterOrAir
(LevelAccessor pLevel, BlockPos pPos) protected abstract void
AbstractHugeMushroomFeature.makeCap
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, int pTreeHeight, BlockPos.MutableBlockPos pMutablePos, HugeMushroomFeatureConfiguration pConfig) 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 pLevel, BlockPos pPos, RandomSource pRandom) private void
BasaltPillarFeature.placeBaseHangOff
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos) private boolean
BasaltColumnsFeature.placeColumn
(LevelAccessor pLevel, int pSeaLevel, BlockPos pPos, int pDistance, int pReach) protected boolean
CoralFeature.placeCoralBlock
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState) protected static boolean
DripstoneUtils.placeDripstoneBlockIfPossible
(LevelAccessor pLevel, BlockPos pPos) protected boolean
CoralClawFeature.placeFeature
(LevelAccessor p_224959_, RandomSource p_224960_, BlockPos p_224961_, BlockState p_224962_) protected abstract boolean
CoralFeature.placeFeature
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState) 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 pLevel, RandomSource pRandom, BlockPos pPos) private void
HugeFungusFeature.placeHatBlock
(LevelAccessor pLevel, RandomSource pRandom, HugeFungusConfiguration pConfig, BlockPos.MutableBlockPos pPos, float pDecorationChance, float pHatChance, float pWeepingVineChance) private void
HugeFungusFeature.placeHatDropBlock
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState, boolean pWeepingVines) private void
WeepingVinesFeature.placeRoofNetherWart
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos) private void
WeepingVinesFeature.placeRoofWeepingVines
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos) protected void
AbstractHugeMushroomFeature.placeTrunk
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, HugeMushroomFeatureConfiguration pConfig, int pMaxHeight, BlockPos.MutableBlockPos pMutablePos) static void
TwistingVinesFeature.placeWeepingVinesColumn
(LevelAccessor pLevel, RandomSource pRandom, BlockPos.MutableBlockPos pPos, int pLength, int pMinAge, int pMaxAge) static void
WeepingVinesFeature.placeWeepingVinesColumn
(LevelAccessor pLevel, RandomSource pRandom, BlockPos.MutableBlockPos pPos, int pHeight, int pMinAge, int pMaxAge) private void
IcebergFeature.removeFloatingSnowLayer
(LevelAccessor pLevel, BlockPos pPos) private void
IcebergFeature.setIcebergBlock
(BlockPos pPos, LevelAccessor pLevel, RandomSource pRandom, int pHeightRemaining, int pHeight, boolean pElliptical, boolean pPlaceSnow, BlockState pState) private void
IcebergFeature.smooth
(LevelAccessor pLevel, BlockPos pPos, int pMajorRadius, int pHeight, boolean pElliptical, int pMinorRadius) 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 pLevel, BlockPos pPos, RandomSource pRandom, BlockPileConfiguration pConfig) private static void
HugeFungusFeature.tryPlaceWeepingVines
(BlockPos pPos, LevelAccessor pLevel, RandomSource pRandom) private static DiscreteVoxelShape
TreeFeature.updateLeaves
(LevelAccessor pLevel, BoundingBox pBox, Set<BlockPos> pRootPositions, Set<BlockPos> pTrunkPositions, Set<BlockPos> pFoliagePositions) -
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 pLevel, BoundingBox pBounds, int pHeight) protected boolean
ScatteredFeaturePiece.updateHeightPositionToLowestGroundHeight
(LevelAccessor pLevel, int pHeight) -
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 pLevel, StructureTemplate.StructureBlockInfo pBlockInfo, BlockPos pPos, Rotation pRotation, RandomSource pRandom, BoundingBox pBox) -
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 pRandom, LevelAccessor pLevel, BlockPos pPos) private void
RuinedPortalPiece.addNetherrackDripColumnsBelowPortal
(RandomSource pRandom, LevelAccessor pLevel) private boolean
RuinedPortalPiece.canBlockBeReplacedByNetherrackOrMagma
(LevelAccessor pLevel, BlockPos pPos) private static int
RuinedPortalPiece.getSurfaceY
(LevelAccessor pLevel, int pX, int pZ, RuinedPortalPiece.VerticalPlacement pVerticalPlacement) protected boolean
MineshaftPieces.MineShaftPiece.isInInvalidLocation
(LevelAccessor pLevel, BoundingBox pBoundingBox) private void
RuinedPortalPiece.maybeAddLeavesAbove
(RandomSource pRandom, LevelAccessor pLevel, BlockPos pPos) private void
RuinedPortalPiece.maybeAddVines
(RandomSource pRandom, LevelAccessor pLevel, BlockPos pPos) private void
RuinedPortalPiece.placeNetherrackOrMagma
(RandomSource pRandom, LevelAccessor pLevel, BlockPos pPos) private void
RuinedPortalPiece.spreadNetherrack
(RandomSource pRandom, LevelAccessor pLevel) -
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 pLevel, int pFlags, DiscreteVoxelShape pShape, int pX, int pY, int pZ) static void
StructureTemplate.updateShapeAtEdge
(LevelAccessor pLevel, int pFlags, DiscreteVoxelShape pShape, BlockPos pPos) -
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 pLevel, BlockPos pPos, BlockState pState) protected void
LavaFluid.beforeDestroyingBlock
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) protected void
WaterFluid.beforeDestroyingBlock
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) private void
LavaFluid.fizz
(LevelAccessor pLevel, BlockPos pPos) protected void
FlowingFluid.spreadTo
(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) protected void
LavaFluid.spreadTo
(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) -
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 pLevel, BlockPos pBottomLeft, Direction.Axis pAxis) static Optional
<PortalShape> PortalShape.findPortalShape
(LevelAccessor pLevel, BlockPos pBottomLeft, Predicate<PortalShape> pPredicate, Direction.Axis pAxis) Constructors in net.minecraft.world.level.portal with parameters of type LevelAccessorModifierConstructorDescriptionPortalShape
(LevelAccessor pLevel, BlockPos pBottomLeft, Direction.Axis pAxis) -
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 pLevel, Direction pDirection, BlockState pState, BlockPos pPos, BlockPos pNeighborPos, int pFlags, int pRecursionLevel) -
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> pDecorationType, LevelAccessor pLevel, String pId, double pX, double pZ, double pYRot, Component pDisplayName) boolean
MapItemSavedData.toggleBanner
(LevelAccessor pAccessor, BlockPos pPos) -
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.debug.block
Methods in net.neoforged.neoforge.debug.block with parameters of type LevelAccessorModifier and TypeMethodDescriptionprotected BlockState
BlockTests.CustomBubbleColumnSustainingBlock.updateShape
(BlockState currentBlockState, Direction direction, BlockState sideBlockState, LevelAccessor levelAccessor, BlockPos currentBlockPos, BlockPos sideBlockPos) -
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) -
Uses of LevelAccessor in net.neoforged.neoforge.oldtest.fluid
Methods in net.neoforged.neoforge.oldtest.fluid with parameters of type LevelAccessorModifier and TypeMethodDescriptionNewFluidTest.FluidloggableBlock.pickupBlock
(@Nullable Player player, LevelAccessor worldIn, BlockPos pos, BlockState state) boolean
NewFluidTest.FluidloggableBlock.placeLiquid
(LevelAccessor worldIn, BlockPos pos, BlockState state, FluidState fluidStateIn)