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 p_316553_, BlockPos p_316882_, int p_316412_, ParticleOptions p_316308_) static void
ParticleUtils.spawnParticles
(LevelAccessor p_316549_, BlockPos p_316335_, int p_316207_, double p_316351_, double p_316421_, boolean p_316563_, ParticleOptions p_316241_) static void
ParticleUtils.spawnSmashAttackParticles
(LevelAccessor p_338535_, BlockPos p_338284_, int p_338684_) -
Uses of LevelAccessor in net.minecraft.world
Methods in net.minecraft.world with parameters of type LevelAccessorModifier and TypeMethodDescriptionWorldlyContainerHolder.getContainer
(BlockState p_19242_, LevelAccessor p_19243_, BlockPos p_19244_) -
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> p_217058_, LevelAccessor p_217059_, EntitySpawnReason p_365247_, BlockPos p_217061_, RandomSource p_217062_) boolean
Mob.checkSpawnRules
(LevelAccessor p_21431_, EntitySpawnReason p_360512_) boolean
PathfinderMob.checkSpawnRules
(LevelAccessor p_21686_, EntitySpawnReason p_361803_) -
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 p_25847_, BlockPos p_25848_) -
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> p_218099_, LevelAccessor p_218100_, EntitySpawnReason p_362198_, BlockPos p_218102_, RandomSource p_218103_) -
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> p_218105_, LevelAccessor p_218106_, EntitySpawnReason p_360742_, BlockPos p_218108_, RandomSource p_218109_) static boolean
Fox.checkFoxSpawnRules
(EntityType<Fox> p_218176_, LevelAccessor p_218177_, EntitySpawnReason p_365199_, BlockPos p_218179_, RandomSource p_218180_) static boolean
MushroomCow.checkMushroomSpawnRules
(EntityType<MushroomCow> p_218201_, LevelAccessor p_218202_, EntitySpawnReason p_360426_, BlockPos p_218204_, RandomSource p_218205_) static boolean
Ocelot.checkOcelotSpawnRules
(EntityType<Ocelot> p_218207_, LevelAccessor p_218208_, EntitySpawnReason p_364328_, BlockPos p_218210_, RandomSource p_218211_) static boolean
Parrot.checkParrotSpawnRules
(EntityType<Parrot> p_218242_, LevelAccessor p_218243_, EntitySpawnReason p_360625_, BlockPos p_218245_, RandomSource p_218246_) static boolean
PolarBear.checkPolarBearSpawnRules
(EntityType<PolarBear> p_218250_, LevelAccessor p_218251_, EntitySpawnReason p_361507_, BlockPos p_218253_, RandomSource p_218254_) static boolean
Rabbit.checkRabbitSpawnRules
(EntityType<Rabbit> p_218256_, LevelAccessor p_218257_, EntitySpawnReason p_365476_, BlockPos p_218259_, RandomSource p_218260_) static boolean
AgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules
(EntityType<? extends AgeableWaterCreature> p_361277_, LevelAccessor p_360404_, EntitySpawnReason p_361898_, BlockPos p_362596_, RandomSource p_363955_) static boolean
WaterAnimal.checkSurfaceWaterAnimalSpawnRules
(EntityType<? extends WaterAnimal> p_218283_, LevelAccessor p_218284_, EntitySpawnReason p_362406_, BlockPos p_218286_, RandomSource p_218287_) static boolean
TropicalFish.checkTropicalFishSpawnRules
(EntityType<TropicalFish> p_218267_, LevelAccessor p_218268_, EntitySpawnReason p_362646_, BlockPos p_218270_, RandomSource p_218271_) static boolean
Turtle.checkTurtleSpawnRules
(EntityType<Turtle> p_218277_, LevelAccessor p_218278_, EntitySpawnReason p_362837_, BlockPos p_218280_, RandomSource p_218281_) private static Rabbit.Variant
Rabbit.getRandomRabbitVariant
(LevelAccessor p_262699_, BlockPos p_262700_) -
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> p_320958_, LevelAccessor p_320908_, EntitySpawnReason p_365317_, BlockPos p_320500_, RandomSource p_319883_) -
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> p_404860_, LevelAccessor p_405773_, EntitySpawnReason p_405385_, BlockPos p_405008_, RandomSource p_405825_) -
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> p_218512_, LevelAccessor p_218513_, EntitySpawnReason p_365223_, BlockPos p_218515_, RandomSource p_218516_) -
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> p_218753_, LevelAccessor p_218754_, EntitySpawnReason p_363232_, BlockPos p_218756_, RandomSource p_218757_) -
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> p_312143_, LevelAccessor p_312574_, EntitySpawnReason p_364141_, BlockPos p_312362_, RandomSource p_312555_) static boolean
ZombieHorse.checkZombieHorseSpawnRules
(EntityType<? extends Animal> p_312450_, LevelAccessor p_312340_, EntitySpawnReason p_364610_, BlockPos p_311838_, RandomSource p_312514_) -
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> p_406300_, LevelAccessor p_406219_, EntitySpawnReason p_406228_, BlockPos p_406222_, RandomSource p_406373_) -
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> p_219020_, LevelAccessor p_219021_, EntitySpawnReason p_361640_, BlockPos p_219023_, RandomSource p_219024_) static boolean
Endermite.checkEndermiteSpawnRules
(EntityType<Endermite> p_218969_, LevelAccessor p_218970_, EntitySpawnReason p_363979_, BlockPos p_218972_, RandomSource p_218973_) static boolean
Ghast.checkGhastSpawnRules
(EntityType<Ghast> p_218985_, LevelAccessor p_218986_, EntitySpawnReason p_360741_, BlockPos p_218988_, RandomSource p_218989_) static boolean
Guardian.checkGuardianSpawnRules
(EntityType<? extends Guardian> p_218991_, LevelAccessor p_218992_, EntitySpawnReason p_363756_, BlockPos p_218994_, RandomSource p_218995_) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> p_219003_, LevelAccessor p_219004_, EntitySpawnReason p_361982_, BlockPos p_219006_, RandomSource p_219007_) static boolean
PatrollingMonster.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollingMonster> p_219026_, LevelAccessor p_219027_, EntitySpawnReason p_361513_, BlockPos p_219029_, RandomSource p_219030_) static boolean
Silverfish.checkSilverfishSpawnRules
(EntityType<Silverfish> p_219077_, LevelAccessor p_219078_, EntitySpawnReason p_362159_, BlockPos p_219080_, RandomSource p_219081_) static boolean
Slime.checkSlimeSpawnRules
(EntityType<Slime> p_219113_, LevelAccessor p_219114_, EntitySpawnReason p_363569_, BlockPos p_219116_, RandomSource p_219117_) static boolean
Strider.checkStriderSpawnRules
(EntityType<Strider> p_219129_, LevelAccessor p_219130_, EntitySpawnReason p_365524_, BlockPos p_219132_, RandomSource p_219133_) static boolean
ZombifiedPiglin.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglin> p_219174_, LevelAccessor p_219175_, EntitySpawnReason p_365119_, BlockPos p_219177_, RandomSource p_219178_) private static boolean
Drowned.isDeepEnoughToSpawn
(LevelAccessor p_32367_, BlockPos p_32368_) void
Zombie.ZombieAttackTurtleEggGoal.playDestroyProgressSound
(LevelAccessor p_34351_, BlockPos p_34352_) -
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> p_219182_, LevelAccessor p_219183_, EntitySpawnReason p_364885_, BlockPos p_219185_, RandomSource p_219186_) -
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> p_219198_, LevelAccessor p_219199_, EntitySpawnReason p_364762_, BlockPos p_219201_, RandomSource p_219202_) -
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 p_40639_, BlockPos p_40640_, int p_40641_) private boolean
DebugStickItem.handleInteraction
(Player p_150803_, BlockState p_150804_, LevelAccessor p_150805_, BlockPos p_150806_, boolean p_150807_, ItemStack p_150808_) void
JukeboxSongPlayer.play
(LevelAccessor p_350839_, Holder<JukeboxSong> p_350771_) protected void
BucketItem.playEmptySound
(LivingEntity p_394061_, LevelAccessor p_40697_, BlockPos p_40698_) protected void
MobBucketItem.playEmptySound
(LivingEntity p_394554_, LevelAccessor p_151152_, BlockPos p_151153_) private static void
JukeboxSongPlayer.spawnMusicParticles
(LevelAccessor p_350908_, BlockPos p_350387_) void
JukeboxSongPlayer.stop
(LevelAccessor p_350694_, BlockState p_350611_) void
JukeboxSongPlayer.tick
(LevelAccessor p_350845_, BlockState p_350953_) -
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 p_249675_, WorldOptions p_248820_, StructureCheck p_249103_) -
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 p_270464_, BlockState p_270603_, LevelAccessor p_270151_, BlockPos p_270547_, ItemStack p_270354_) private boolean
SculkVeinBlock.attemptPlaceSculk
(SculkSpreader p_222376_, LevelAccessor p_222377_, BlockPos p_222378_, RandomSource p_222379_) default boolean
SculkBehaviour.attemptSpreadVein
(LevelAccessor p_222034_, BlockPos p_222035_, BlockState p_222036_, Collection<Direction> p_222037_, boolean p_222038_) int
SculkBehaviour.attemptUseCharge
(SculkSpreader.ChargeCursor p_222039_, LevelAccessor p_222040_, BlockPos p_222041_, RandomSource p_222042_, SculkSpreader p_222043_, boolean p_222044_) int
SculkBlock.attemptUseCharge
(SculkSpreader.ChargeCursor p_222073_, LevelAccessor p_222074_, BlockPos p_222075_, RandomSource p_222076_, SculkSpreader p_222077_, boolean p_222078_) int
SculkVeinBlock.attemptUseCharge
(SculkSpreader.ChargeCursor p_222369_, LevelAccessor p_222370_, BlockPos p_222371_, RandomSource p_222372_, SculkSpreader p_222373_, boolean p_222374_) private static boolean
SculkBlock.canPlaceGrowth
(LevelAccessor p_222065_, BlockPos p_222066_) static <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour
(BlockEntityType<S> p_52823_, Function<BlockState, DoubleBlockCombiner.BlockType> p_52824_, Function<BlockState, Direction> p_52825_, Property<Direction> p_374310_, BlockState p_52827_, LevelAccessor p_52828_, BlockPos p_52829_, BiPredicate<LevelAccessor, BlockPos> p_52830_) private static void
PointedDripstoneBlock.createDripstone
(LevelAccessor p_154088_, BlockPos p_154089_, Direction p_154090_, DripstoneThickness p_154091_) private static void
PointedDripstoneBlock.createMergedTips
(BlockState p_154231_, LevelAccessor p_154232_, BlockPos p_154233_) default boolean
SculkBehaviour.depositCharge
(LevelAccessor p_222031_, BlockPos p_222032_, RandomSource p_222033_) void
Block.destroy
(LevelAccessor p_49860_, BlockPos p_49861_, BlockState p_49862_) static void
CampfireBlock.dowse
(Entity p_152750_, LevelAccessor p_152751_, BlockPos p_152752_, BlockState p_152753_) static void
Block.dropResources
(BlockState p_49893_, LevelAccessor p_49894_, BlockPos p_49895_, BlockEntity p_49896_) protected static InteractionResult
CakeBlock.eat
(LevelAccessor p_51186_, BlockPos p_51187_, BlockState p_51188_, Player p_51189_) (package private) static BlockState
ComposterBlock.empty
(Entity p_270236_, BlockState p_270873_, LevelAccessor p_270963_, BlockPos p_270211_) static void
AbstractCandleBlock.extinguish
(Player p_151900_, BlockState p_151901_, LevelAccessor p_151902_, BlockPos p_151903_) PointedDripstoneBlock.findBlockVertical
(LevelAccessor p_202007_, BlockPos p_202008_, Direction.AxisDirection p_202009_, BiPredicate<BlockPos, BlockState> p_202010_, Predicate<BlockState> p_202011_, int p_202012_) private static BlockPos
PointedDripstoneBlock.findTip
(BlockState p_154131_, LevelAccessor p_154132_, BlockPos p_154133_, int p_154134_, boolean p_154135_) private void
LiquidBlock.fizz
(LevelAccessor p_54701_, BlockPos p_54702_) static void
ChorusFlowerBlock.generatePlant
(LevelAccessor p_220963_, BlockPos p_220964_, RandomSource p_220965_, int p_220966_) ComposterBlock.getContainer
(BlockState p_51956_, LevelAccessor p_51957_, BlockPos p_51958_) 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 p_222068_, BlockPos p_222069_, RandomSource p_222070_, boolean p_222071_) private static BlockPos
SculkSpreader.ChargeCursor.getValidMovementPos
(LevelAccessor p_222308_, BlockPos p_222309_, RandomSource p_222310_) private static void
ChorusFlowerBlock.growTreeRecursive
(LevelAccessor p_220968_, BlockPos p_220969_, RandomSource p_220970_, BlockPos p_220971_, int p_220972_, int p_220973_) static boolean
SculkVeinBlock.hasSubstrateAccess
(LevelAccessor p_222355_, BlockState p_222356_, BlockPos p_222357_) private static boolean
ChestBlock.isCatSittingOnChest
(LevelAccessor p_51564_, BlockPos p_51565_) static boolean
ChestBlock.isChestBlockedAt
(LevelAccessor p_51509_, BlockPos p_51510_) private static boolean
SculkSpreader.ChargeCursor.isMovementUnobstructed
(LevelAccessor p_222318_, BlockPos p_222319_, BlockPos p_222320_) private static boolean
CreakingHeartBlock.isSurroundedByLogs
(LevelAccessor p_379444_, BlockPos p_380241_) private static boolean
SculkSpreader.ChargeCursor.isUnobstructed
(LevelAccessor p_222322_, BlockPos p_222323_, Direction p_222324_) private static void
LeverBlock.makeParticle
(BlockState p_54658_, LevelAccessor p_54659_, BlockPos p_54660_, float p_54661_) default void
SculkBehaviour.onDischarged
(LevelAccessor p_222026_, BlockState p_222027_, BlockPos p_222028_, RandomSource p_222029_) void
SculkVeinBlock.onDischarged
(LevelAccessor p_222359_, BlockState p_222360_, BlockPos p_222361_, RandomSource p_222362_) BarrierBlock.pickupBlock
(LivingEntity p_393874_, LevelAccessor p_295817_, BlockPos p_295857_, BlockState p_294189_) BubbleColumnBlock.pickupBlock
(LivingEntity p_394411_, LevelAccessor p_152712_, BlockPos p_152713_, BlockState p_152714_) BucketPickup.pickupBlock
(LivingEntity p_394251_, LevelAccessor p_152719_, BlockPos p_152720_, BlockState p_152721_) LiquidBlock.pickupBlock
(LivingEntity p_393591_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) PowderSnowBlock.pickupBlock
(LivingEntity p_394634_, LevelAccessor p_154281_, BlockPos p_154282_, BlockState p_154283_) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(LivingEntity p_394370_, LevelAccessor p_154560_, BlockPos p_154561_, BlockState p_154562_) protected static boolean
BigDripleafBlock.place
(LevelAccessor p_152242_, BlockPos p_152243_, FluidState p_152244_, Direction p_152245_) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor p_152350_, BlockPos p_152351_, FluidState p_152352_, Direction p_152353_) static void
DoublePlantBlock.placeAt
(LevelAccessor p_153174_, BlockState p_153175_, BlockPos p_153176_, int p_153177_) static void
MossyCarpetBlock.placeAt
(LevelAccessor p_379453_, BlockPos p_380271_, RandomSource p_379424_, int p_380167_) default boolean
MultifaceSpreader.SpreadConfig.placeBlock
(LevelAccessor p_221702_, MultifaceSpreader.SpreadPos p_221703_, BlockState p_221704_, boolean p_221705_) boolean
CampfireBlock.placeLiquid
(LevelAccessor p_51257_, BlockPos p_51258_, BlockState p_51259_, FluidState p_51260_) boolean
CandleBlock.placeLiquid
(LevelAccessor p_152805_, BlockPos p_152806_, BlockState p_152807_, FluidState p_152808_) boolean
KelpBlock.placeLiquid
(LevelAccessor p_54309_, BlockPos p_54310_, BlockState p_54311_, FluidState p_54312_) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor p_54330_, BlockPos p_54331_, BlockState p_54332_, FluidState p_54333_) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor p_54770_, BlockPos p_54771_, BlockState p_54772_, FluidState p_54773_) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor p_56306_, BlockPos p_56307_, BlockState p_56308_, FluidState p_56309_) boolean
SlabBlock.placeLiquid
(LevelAccessor p_56368_, BlockPos p_56369_, BlockState p_56370_, FluidState p_56371_) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor p_220793_, RandomSource p_220794_, BlockPos p_220795_, Direction p_220796_) protected void
ButtonBlock.playSound
(Player p_51068_, LevelAccessor p_51069_, BlockPos p_51070_, boolean p_51071_) protected static void
LeverBlock.playSound
(Player p_346119_, LevelAccessor p_346020_, BlockPos p_345585_, BlockState p_346002_) static BlockState
Block.pushEntitiesUp
(BlockState p_49898_, BlockState p_49899_, LevelAccessor p_238252_, BlockPos p_49901_) static boolean
SculkVeinBlock.regrow
(LevelAccessor p_222364_, BlockPos p_222365_, BlockState p_222366_, Collection<Direction> p_222367_) private static void
AbstractCandleBlock.setLit
(LevelAccessor p_151919_, BlockState p_151920_, BlockPos p_151921_, boolean p_151922_) private static void
TargetBlock.setOutputPower
(LevelAccessor p_57386_, BlockState p_57387_, int p_57388_, BlockPos p_57389_, int p_57390_) private boolean
SculkSpreader.ChargeCursor.shouldUpdate
(LevelAccessor p_222326_, BlockPos p_222327_, boolean p_222328_) long
MultifaceSpreader.spreadAll
(BlockState p_221658_, LevelAccessor p_221659_, BlockPos p_221660_, boolean p_221661_) private long
MultifaceSpreader.spreadFromFaceTowardAllDirections
(BlockState p_221645_, LevelAccessor p_221646_, BlockPos p_221647_, Direction p_221648_, boolean p_221649_) MultifaceSpreader.spreadFromFaceTowardDirection
(BlockState p_221638_, LevelAccessor p_221639_, BlockPos p_221640_, Direction p_221641_, Direction p_221642_, boolean p_221643_) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState p_221631_, LevelAccessor p_221632_, BlockPos p_221633_, Direction p_221634_, RandomSource p_221635_, boolean p_221636_) MultifaceSpreader.spreadFromRandomFaceTowardRandomDirection
(BlockState p_221620_, LevelAccessor p_221621_, BlockPos p_221622_, RandomSource p_221623_) MultifaceSpreader.spreadToFace
(LevelAccessor p_221594_, MultifaceSpreader.SpreadPos p_221595_, boolean p_221596_) void
SculkSpreader.ChargeCursor.update
(LevelAccessor p_222312_, BlockPos p_222313_, RandomSource p_222314_, SculkSpreader p_222315_, boolean p_222316_) static void
BubbleColumnBlock.updateColumn
(LevelAccessor p_152708_, BlockPos p_152709_, BlockState p_152710_) static void
BubbleColumnBlock.updateColumn
(LevelAccessor p_152703_, BlockPos p_152704_, BlockState p_152705_, BlockState p_152706_) void
SculkSpreader.updateCursors
(LevelAccessor p_222256_, BlockPos p_222257_, RandomSource p_222258_, boolean p_222259_) private static BlockState
LeavesBlock.updateDistance
(BlockState p_54436_, LevelAccessor p_54437_, BlockPos p_54438_) static BlockState
Block.updateFromNeighbourShapes
(BlockState p_49932_, LevelAccessor p_49933_, BlockPos p_49934_) protected void
RedStoneWireBlock.updateIndirectNeighbourShapes
(BlockState p_55579_, LevelAccessor p_55580_, BlockPos p_55581_, int p_55582_, int p_55583_) static void
Block.updateOrDestroy
(BlockState p_49903_, BlockState p_49904_, LevelAccessor p_49905_, BlockPos p_49906_, int p_49907_) static void
Block.updateOrDestroy
(BlockState p_49909_, BlockState p_49910_, LevelAccessor p_49911_, BlockPos p_49912_, int p_49913_, int p_49914_) private static int
TargetBlock.updateRedstoneOutput
(LevelAccessor p_57392_, BlockState p_57393_, BlockHitResult p_57394_, Entity p_57395_) 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> p_52823_, Function<BlockState, DoubleBlockCombiner.BlockType> p_52824_, Function<BlockState, Direction> p_52825_, Property<Direction> p_374310_, BlockState p_52827_, LevelAccessor p_52828_, BlockPos p_52829_, BiPredicate<LevelAccessor, BlockPos> p_52830_) Constructors in net.minecraft.world.level.block with parameters of type LevelAccessorModifierConstructorDescriptionInputContainer
(BlockState p_52022_, LevelAccessor p_52023_, BlockPos p_52024_) OutputContainer
(BlockState p_52042_, LevelAccessor p_52043_, BlockPos p_52044_, ItemStack p_52045_) -
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 p_304555_, BlockPos p_304465_) -
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 p_60061_, BlockPos p_60062_, BlockState p_60063_) 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 p_60759_, BlockPos p_60760_, int p_60761_) void
BlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes
(LevelAccessor p_60763_, BlockPos p_60764_, int p_60765_, int p_60766_) protected void
BlockBehaviour.updateIndirectNeighbourShapes
(BlockState p_60520_, LevelAccessor p_60521_, BlockPos p_60522_, int p_60523_, int p_60524_) final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor p_60702_, BlockPos p_60703_, int p_60704_) final void
BlockBehaviour.BlockStateBase.updateNeighbourShapes
(LevelAccessor p_60706_, BlockPos p_60707_, int p_60708_, int p_60709_) -
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 p_63351_) UpgradeData.BlockFixer.updateShape
(BlockState p_63352_, Direction p_63353_, BlockState p_63354_, LevelAccessor p_63355_, BlockPos p_63356_, BlockPos p_63357_) private static BlockState
UpgradeData.updateState
(BlockState p_63336_, Direction p_63337_, LevelAccessor p_63338_, BlockPos p_63339_, BlockPos p_63340_) 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 p_159583_, BlockPos p_159584_) private static boolean
BasaltColumnsFeature.canPlaceAt
(LevelAccessor p_65155_, int p_65156_, BlockPos.MutableBlockPos p_65157_) private boolean
SculkPatchFeature.canSpreadFrom
(LevelAccessor p_225239_, BlockPos p_225240_) private void
IcebergFeature.carve
(int p_66036_, int p_66037_, BlockPos p_66038_, LevelAccessor p_66039_, boolean p_66040_, double p_66041_, BlockPos p_66042_, int p_66043_, int p_66044_) private static void
PointedDripstoneFeature.createPatchOfDripstoneBlocks
(LevelAccessor p_225194_, RandomSource p_225195_, BlockPos p_225196_, PointedDripstoneConfiguration p_225197_) private static BlockPos
BasaltColumnsFeature.findAir
(LevelAccessor p_65174_, BlockPos.MutableBlockPos p_65175_, int p_65176_) private static boolean
TwistingVinesFeature.findFirstAirBlockAboveGround
(LevelAccessor p_67294_, BlockPos.MutableBlockPos p_67295_) private static BlockPos
BasaltColumnsFeature.findSurface
(LevelAccessor p_65159_, int p_65160_, BlockPos.MutableBlockPos p_65161_, int p_65162_) private static BlockPos
ReplaceBlobsFeature.findTarget
(LevelAccessor p_66635_, BlockPos.MutableBlockPos p_66636_, Block p_66637_) private void
IcebergFeature.generateCutOut
(RandomSource p_225100_, LevelAccessor p_225101_, int p_225102_, int p_225103_, BlockPos p_225104_, boolean p_225105_, int p_225106_, double p_225107_, int p_225108_) private void
IcebergFeature.generateIcebergBlock
(LevelAccessor p_225110_, RandomSource p_225111_, BlockPos p_225112_, int p_225113_, int p_225114_, int p_225115_, int p_225116_, int p_225117_, int p_225118_, boolean p_225119_, int p_225120_, double p_225121_, boolean p_225122_, BlockState p_225123_) PointedDripstoneFeature.getTipDirection
(LevelAccessor p_225199_, BlockPos p_225200_, RandomSource p_225201_) protected static void
DripstoneUtils.growPointedDripstone
(LevelAccessor p_190848_, BlockPos p_190849_, Direction p_190850_, int p_190851_, boolean p_190852_) private static boolean
BasaltColumnsFeature.isAirOrLavaOcean
(LevelAccessor p_65164_, int p_65165_, BlockPos p_65166_) private static boolean
DeltaFeature.isClear
(LevelAccessor p_65552_, BlockPos p_65553_, DeltaFeatureConfiguration p_65554_) protected static boolean
DripstoneUtils.isEmptyOrWater
(LevelAccessor p_159629_, BlockPos p_159630_) protected static boolean
DripstoneUtils.isEmptyOrWaterOrLava
(LevelAccessor p_159660_, BlockPos p_159661_) private static boolean
TwistingVinesFeature.isInvalidPlacementLocation
(LevelAccessor p_67297_, BlockPos p_67298_) private boolean
FallenTreeFeature.isOverSolidGround
(LevelAccessor p_410076_, BlockPos p_409697_) protected boolean
AbstractHugeMushroomFeature.isValidPosition
(LevelAccessor p_65099_, BlockPos p_65100_, int p_65101_, BlockPos.MutableBlockPos p_65102_, HugeMushroomFeatureConfiguration p_65103_) private boolean
UnderwaterMagmaFeature.isWaterOrAir
(LevelAccessor p_160562_, BlockPos p_160563_) protected abstract void
AbstractHugeMushroomFeature.makeCap
(LevelAccessor p_224923_, RandomSource p_224924_, BlockPos p_224925_, int p_224926_, BlockPos.MutableBlockPos p_224927_, HugeMushroomFeatureConfiguration p_224928_) 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 p_224945_, BlockPos p_224946_, RandomSource p_224947_) private boolean
FallenTreeFeature.mayPlaceOn
(LevelAccessor p_409861_, BlockPos p_410049_) private void
BasaltPillarFeature.placeBaseHangOff
(LevelAccessor p_224937_, RandomSource p_224938_, BlockPos p_224939_) private boolean
BasaltColumnsFeature.placeColumn
(LevelAccessor p_65168_, int p_65169_, BlockPos p_65170_, int p_65171_, int p_65172_) protected boolean
CoralFeature.placeCoralBlock
(LevelAccessor p_224974_, RandomSource p_224975_, BlockPos p_224976_, BlockState p_224977_) protected static boolean
DripstoneUtils.placeDripstoneBlockIfPossible
(LevelAccessor p_190854_, BlockPos p_190855_) protected boolean
CoralClawFeature.placeFeature
(LevelAccessor p_224959_, RandomSource p_224960_, BlockPos p_224961_, BlockState p_224962_) protected abstract boolean
CoralFeature.placeFeature
(LevelAccessor p_224966_, RandomSource p_224967_, BlockPos p_224968_, BlockState p_224969_) 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 p_224941_, RandomSource p_224942_, BlockPos p_224943_) private void
HugeFungusFeature.placeHatBlock
(LevelAccessor p_225050_, RandomSource p_225051_, HugeFungusConfiguration p_225052_, BlockPos.MutableBlockPos p_225053_, float p_225054_, float p_225055_, float p_225056_) private void
HugeFungusFeature.placeHatDropBlock
(LevelAccessor p_225065_, RandomSource p_225066_, BlockPos p_225067_, BlockState p_225068_, boolean p_225069_) protected void
AbstractHugeMushroomFeature.placeMushroomBlock
(LevelAccessor p_393531_, BlockPos.MutableBlockPos p_393804_, BlockState p_393845_) private void
WeepingVinesFeature.placeRoofNetherWart
(LevelAccessor p_225360_, RandomSource p_225361_, BlockPos p_225362_) private void
WeepingVinesFeature.placeRoofWeepingVines
(LevelAccessor p_225364_, RandomSource p_225365_, BlockPos p_225366_) protected void
AbstractHugeMushroomFeature.placeTrunk
(LevelAccessor p_224930_, RandomSource p_224931_, BlockPos p_224932_, HugeMushroomFeatureConfiguration p_224933_, int p_224934_, BlockPos.MutableBlockPos p_224935_) static void
TwistingVinesFeature.placeWeepingVinesColumn
(LevelAccessor p_225301_, RandomSource p_225302_, BlockPos.MutableBlockPos p_225303_, int p_225304_, int p_225305_, int p_225306_) static void
WeepingVinesFeature.placeWeepingVinesColumn
(LevelAccessor p_225353_, RandomSource p_225354_, BlockPos.MutableBlockPos p_225355_, int p_225356_, int p_225357_, int p_225358_) private void
IcebergFeature.removeFloatingSnowLayer
(LevelAccessor p_66049_, BlockPos p_66050_) private void
IcebergFeature.setIcebergBlock
(BlockPos p_225125_, LevelAccessor p_225126_, RandomSource p_225127_, int p_225128_, int p_225129_, boolean p_225130_, boolean p_225131_, BlockState p_225132_) private void
IcebergFeature.smooth
(LevelAccessor p_66052_, BlockPos p_66053_, int p_66054_, int p_66055_, boolean p_66056_, int p_66057_) private void
BlockPileFeature.tryPlaceBlock
(LevelAccessor p_224949_, BlockPos p_224950_, RandomSource p_224951_, BlockPileConfiguration p_224952_) private static void
HugeFungusFeature.tryPlaceWeepingVines
(BlockPos p_225071_, LevelAccessor p_225072_, RandomSource p_225073_) private static DiscreteVoxelShape
TreeFeature.updateLeaves
(LevelAccessor p_225252_, BoundingBox p_225253_, Set<BlockPos> p_225254_, Set<BlockPos> p_225255_, Set<BlockPos> p_225256_) -
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 p_72804_, BoundingBox p_72805_, int p_72806_) protected boolean
ScatteredFeaturePiece.updateHeightPositionToLowestGroundHeight
(LevelAccessor p_192468_, int p_192469_) -
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 p_227330_, StructureTemplate.StructureBlockInfo p_227331_, BlockPos p_227332_, Rotation p_227333_, RandomSource p_227334_, BoundingBox p_227335_) -
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 p_229190_, LevelAccessor p_229191_, BlockPos p_229192_) private void
RuinedPortalPiece.addNetherrackDripColumnsBelowPortal
(RandomSource p_229118_, LevelAccessor p_229119_) private boolean
RuinedPortalPiece.canBlockBeReplacedByNetherrackOrMagma
(LevelAccessor p_229134_, BlockPos p_229135_) private static int
RuinedPortalPiece.getSurfaceY
(LevelAccessor p_229129_, int p_229130_, int p_229131_, RuinedPortalPiece.VerticalPlacement p_229132_) protected boolean
MineshaftPieces.MineShaftPiece.isInInvalidLocation
(LevelAccessor p_227882_, BoundingBox p_227883_) private void
RuinedPortalPiece.maybeAddLeavesAbove
(RandomSource p_229182_, LevelAccessor p_229183_, BlockPos p_229184_) private void
RuinedPortalPiece.maybeAddVines
(RandomSource p_229121_, LevelAccessor p_229122_, BlockPos p_229123_) private void
RuinedPortalPiece.placeNetherrackOrMagma
(RandomSource p_229194_, LevelAccessor p_229195_, BlockPos p_229196_) private void
RuinedPortalPiece.spreadNetherrack
(RandomSource p_229179_, LevelAccessor p_229180_) -
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 p_74511_, int p_74512_, DiscreteVoxelShape p_74513_, int p_74514_, int p_74515_, int p_74516_) static void
StructureTemplate.updateShapeAtEdge
(LevelAccessor p_333926_, int p_333789_, DiscreteVoxelShape p_333845_, BlockPos p_333731_) -
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 p_76002_, BlockPos p_76003_, BlockState p_76004_) protected void
LavaFluid.beforeDestroyingBlock
(LevelAccessor p_76216_, BlockPos p_76217_, BlockState p_76218_) protected void
WaterFluid.beforeDestroyingBlock
(LevelAccessor p_76450_, BlockPos p_76451_, BlockState p_76452_) private void
LavaFluid.fizz
(LevelAccessor p_76213_, BlockPos p_76214_) protected void
FlowingFluid.spreadTo
(LevelAccessor p_76005_, BlockPos p_76006_, BlockState p_76007_, Direction p_76008_, FluidState p_76009_) protected void
LavaFluid.spreadTo
(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_) -
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 p_374419_) static Optional
<PortalShape> PortalShape.findEmptyPortalShape
(LevelAccessor p_77709_, BlockPos p_77710_, Direction.Axis p_77711_) static Optional
<PortalShape> PortalShape.findPortalShape
(LevelAccessor p_77713_, BlockPos p_77714_, Predicate<PortalShape> p_77715_, Direction.Axis p_77716_) -
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 p_230771_, Direction p_230772_, BlockPos p_230774_, BlockPos p_230775_, BlockState p_230773_, int p_230776_, int p_230777_) -
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> p_335830_, LevelAccessor p_77939_, String p_77940_, double p_77941_, double p_77942_, double p_77943_, Component p_77944_) MapItemSavedData.calculateDecorationLocationAndType
(Holder<MapDecorationType> p_365179_, LevelAccessor p_360672_, double p_363717_, float p_364134_, float p_362797_) private byte
MapItemSavedData.calculateRotation
(LevelAccessor p_361827_, double p_363879_) 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 p_77935_, BlockPos p_77936_) -
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)