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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) boolean
Mob.checkSpawnRules
(LevelAccessor pLevel, EntitySpawnReason pSpawnReason) boolean
PathfinderMob.checkSpawnRules
(LevelAccessor pLevel, EntitySpawnReason 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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandomSource) -
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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Fox.checkFoxSpawnRules
(EntityType<Fox> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
MushroomCow.checkMushroomSpawnRules
(EntityType<MushroomCow> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Ocelot.checkOcelotSpawnRules
(EntityType<Ocelot> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Parrot.checkParrotSpawnRules
(EntityType<Parrot> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
PolarBear.checkPolarBearSpawnRules
(EntityType<PolarBear> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Rabbit.checkRabbitSpawnRules
(EntityType<Rabbit> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
AgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules
(EntityType<? extends AgeableWaterCreature> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
WaterAnimal.checkSurfaceWaterAnimalSpawnRules
(EntityType<? extends WaterAnimal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
TropicalFish.checkTropicalFishSpawnRules
(EntityType<TropicalFish> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Turtle.checkTurtleSpawnRules
(EntityType<Turtle> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Camel.checkCamelSpawnRules
(EntityType<Camel> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
ZombieHorse.checkZombieHorseSpawnRules
(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic boolean
Wolf.checkWolfSpawnRules
(EntityType<Wolf> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Endermite.checkEndermiteSpawnRules
(EntityType<Endermite> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Ghast.checkGhastSpawnRules
(EntityType<Ghast> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Guardian.checkGuardianSpawnRules
(EntityType<? extends Guardian> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
PatrollingMonster.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollingMonster> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandomSource) static boolean
Silverfish.checkSilverfishSpawnRules
(EntityType<Silverfish> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Slime.checkSlimeSpawnRules
(EntityType<Slime> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Strider.checkStriderSpawnRules
(EntityType<Strider> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
ZombifiedPiglin.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglin> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, 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
(LivingEntity pEntity, LevelAccessor pLevel, BlockPos pPos) protected void
MobBucketItem.playEmptySound
(LivingEntity pEntity, 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, Property<Direction> 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) 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
CreakingHeartBlock.isSurroundedByLogs
(LevelAccessor pLevel, BlockPos pPos) 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
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) BubbleColumnBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) BucketPickup.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) LiquidBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) PowderSnowBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(LivingEntity pOwner, 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) static void
MossyCarpetBlock.placeAt
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, 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
DriedGhastBlock.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 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) 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) 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, Property<Direction> 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) -
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) -
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) private boolean
FallenTreeFeature.isOverSolidGround
(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 boolean
FallenTreeFeature.mayPlaceOn
(LevelAccessor pLevel, BlockPos pPos) 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) protected void
AbstractHugeMushroomFeature.placeMushroomBlock
(LevelAccessor pLevel, BlockPos.MutableBlockPos pMutablePos, BlockState pState) 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
Methods in net.minecraft.world.level.portal with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoid
PortalShape.createPortalBlocks
(LevelAccessor pLevel) static 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) -
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, BlockPos pPos, BlockPos pNeighborPos, BlockState pNeighborState, int pFlags, int pRecursionLeft) -
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) MapItemSavedData.calculateDecorationLocationAndType
(Holder<MapDecorationType> pDecorationType, LevelAccessor pLevel, double pYRot, float pX, float pZ) private byte
MapItemSavedData.calculateRotation
(LevelAccessor pLevel, double pYRot) private com.mojang.datafixers.util.Pair
<Holder<MapDecorationType>, Byte> MapItemSavedData.playerDecorationTypeAndRotation
(Holder<MapDecorationType> p_360887_, LevelAccessor p_362947_, double p_365360_, float p_361112_, float p_361088_) 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.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, WeightedList<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, SerializableChunkData data) ChunkEvent
(T 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, WeightedList<MobSpawnSettings.SpawnerData> oldList) Save
(ChunkAccess chunk, LevelAccessor world, SerializableChunkData 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)