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 voidParticleUtils.spawnParticleInBlock(LevelAccessor level, BlockPos pos, int count, ParticleOptions particle) static voidParticleUtils.spawnParticles(LevelAccessor level, BlockPos pos, int count, double xzSpread, double ySpread, boolean allowInAir, ParticleOptions particle) static voidParticleUtils.spawnSmashAttackParticles(LevelAccessor level, BlockPos pos, int power) -
Uses of LevelAccessor in net.minecraft.world
Methods in net.minecraft.world with parameters of type LevelAccessorModifier and TypeMethodDescriptionWorldlyContainerHolder.getContainer(BlockState state, LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanMob.checkMobSpawnRules(EntityType<? extends Mob> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) booleanMob.checkSpawnRules(LevelAccessor level, EntitySpawnReason spawnReason) booleanPathfinderMob.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 TypeMethodDescriptionvoidRemoveBlockGoal.playDestroyProgressSound(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanBat.checkBatSpawnRules(EntityType<Bat> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource randomSource) -
Uses of LevelAccessor in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanAnimal.checkAnimalSpawnRules(EntityType<? extends Animal> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanFox.checkFoxSpawnRules(EntityType<Fox> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMushroomCow.checkMushroomSpawnRules(EntityType<MushroomCow> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanOcelot.checkOcelotSpawnRules(EntityType<Ocelot> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanParrot.checkParrotSpawnRules(EntityType<Parrot> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanPolarBear.checkPolarBearSpawnRules(EntityType<PolarBear> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanRabbit.checkRabbitSpawnRules(EntityType<Rabbit> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanAgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules(EntityType<? extends AgeableWaterCreature> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanWaterAnimal.checkSurfaceWaterAnimalSpawnRules(EntityType<? extends WaterAnimal> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanTropicalFish.checkTropicalFishSpawnRules(EntityType<TropicalFish> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanTurtle.checkTurtleSpawnRules(EntityType<Turtle> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) private static Rabbit.VariantRabbit.getRandomRabbitVariant(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanArmadillo.checkArmadilloSpawnRules(EntityType<Armadillo> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
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 booleanCamel.checkCamelSpawnRules(EntityType<Camel> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanFrog.checkFrogSpawnRules(EntityType<? extends Animal> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanGoat.checkGoatSpawnRules(EntityType<? extends Animal> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanSkeletonHorse.checkSkeletonHorseSpawnRules(EntityType<? extends Animal> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanZombieHorse.checkZombieHorseSpawnRules(EntityType<? extends Animal> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
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 booleanWolf.checkWolfSpawnRules(EntityType<Wolf> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanMonster.checkAnyLightMonsterSpawnRules(EntityType<? extends Monster> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanEndermite.checkEndermiteSpawnRules(EntityType<Endermite> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanGhast.checkGhastSpawnRules(EntityType<Ghast> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanGuardian.checkGuardianSpawnRules(EntityType<? extends Guardian> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMagmaCube.checkMagmaCubeSpawnRules(EntityType<MagmaCube> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanPatrollingMonster.checkPatrollingMonsterSpawnRules(EntityType<? extends PatrollingMonster> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource randomSource) static booleanSilverfish.checkSilverfishSpawnRules(EntityType<Silverfish> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanSlime.checkSlimeSpawnRules(EntityType<Slime> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanStrider.checkStriderSpawnRules(EntityType<Strider> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanZombifiedPiglin.checkZombifiedPiglinSpawnRules(EntityType<ZombifiedPiglin> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) private static booleanDrowned.isDeepEnoughToSpawn(LevelAccessor level, BlockPos pos) voidZombie.ZombieAttackTurtleEggGoal.playDestroyProgressSound(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanHoglin.checkHoglinSpawnRules(EntityType<Hoglin> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic booleanPiglin.checkPiglinSpawnRules(EntityType<Piglin> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LevelAccessor in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic voidBoneMealItem.addGrowthParticles(LevelAccessor level, BlockPos pos, int data) private booleanDebugStickItem.handleInteraction(Player player, BlockState stateClicked, LevelAccessor accessor, BlockPos pos, boolean shouldCycleState, ItemStack debugStack) voidJukeboxSongPlayer.play(LevelAccessor level, Holder<JukeboxSong> song) protected voidBucketItem.playEmptySound(LivingEntity entity, LevelAccessor level, BlockPos pos) protected voidMobBucketItem.playEmptySound(LivingEntity p_394554_, LevelAccessor p_151152_, BlockPos p_151153_) private static voidJukeboxSongPlayer.spawnMusicParticles(LevelAccessor level, BlockPos pos) voidJukeboxSongPlayer.stop(LevelAccessor level, BlockState state) voidJukeboxSongPlayer.tick(LevelAccessor level, BlockState state) -
Uses of LevelAccessor in net.minecraft.world.level
Subinterfaces of LevelAccessor in net.minecraft.world.levelClasses in net.minecraft.world.level that implement LevelAccessorFields in net.minecraft.world.level declared as LevelAccessorConstructors in net.minecraft.world.level with parameters of type LevelAccessorModifierConstructorDescriptionStructureManager(LevelAccessor level, WorldOptions worldOptions, StructureCheck structureCheck) -
Uses of LevelAccessor in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as LevelAccessorModifier and TypeFieldDescriptionprivate final LevelAccessorComposterBlock.InputContainer.levelprivate final LevelAccessorComposterBlock.OutputContainer.levelMethods in net.minecraft.world.level.block with parameters of type LevelAccessorModifier and TypeMethodDescription(package private) static BlockStateComposterBlock.addItem(Entity entity, BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) private booleanSculkVeinBlock.attemptPlaceSculk(SculkSpreader spreader, LevelAccessor level, BlockPos pos, RandomSource random) default booleanSculkBehaviour.attemptSpreadVein(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions, boolean markForPostprocessing) intSculkBehaviour.attemptUseCharge(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) intSculkBlock.attemptUseCharge(SculkSpreader.ChargeCursor p_222073_, LevelAccessor p_222074_, BlockPos p_222075_, RandomSource p_222076_, SculkSpreader p_222077_, boolean p_222078_) intSculkVeinBlock.attemptUseCharge(SculkSpreader.ChargeCursor p_222369_, LevelAccessor p_222370_, BlockPos p_222371_, RandomSource p_222372_, SculkSpreader p_222373_, boolean p_222374_) private static booleanSculkBlock.canPlaceGrowth(LevelAccessor level, BlockPos pos) static <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> doubleBlockTypeGetter, Function<BlockState, Direction> directionGetter, Property<Direction> directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) private static voidPointedDripstoneBlock.createDripstone(LevelAccessor level, BlockPos pos, Direction direction, DripstoneThickness thickness) private static voidPointedDripstoneBlock.createMergedTips(BlockState state, LevelAccessor level, BlockPos pos) default booleanSculkBehaviour.depositCharge(LevelAccessor level, BlockPos pos, RandomSource random) voidBlock.destroy(LevelAccessor level, BlockPos pos, BlockState state) Called after this block has been removed by a player.static voidCampfireBlock.dowse(Entity entity, LevelAccessor level, BlockPos pos, BlockState state) static voidBlock.dropResources(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity) protected static InteractionResultCakeBlock.eat(LevelAccessor level, BlockPos pos, BlockState state, Player player) (package private) static BlockStateComposterBlock.empty(Entity entity, BlockState state, LevelAccessor level, BlockPos pos) static voidAbstractCandleBlock.extinguish(Player player, BlockState state, LevelAccessor level, BlockPos pos) PointedDripstoneBlock.findBlockVertical(LevelAccessor level, BlockPos pos, Direction.AxisDirection axis, BiPredicate<BlockPos, BlockState> positionalStatePredicate, Predicate<BlockState> statePredicate, int maxIterations) private static BlockPosPointedDripstoneBlock.findTip(BlockState state, LevelAccessor level, BlockPos pos, int maxIterations, boolean isTipMerge) private voidLiquidBlock.fizz(LevelAccessor level, BlockPos pos) static voidChorusFlowerBlock.generatePlant(LevelAccessor level, BlockPos pos, RandomSource random, int maxHorizontalDistance) ComposterBlock.getContainer(BlockState state, LevelAccessor level, BlockPos pos) intDropExperienceBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intRedStoneOreBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkCatalystBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkSensorBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkShriekerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSpawnerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) private BlockStateSculkBlock.getRandomGrowthState(LevelAccessor level, BlockPos pos, RandomSource random, boolean isWorldGeneration) private static BlockPosSculkSpreader.ChargeCursor.getValidMovementPos(LevelAccessor level, BlockPos pos, RandomSource random) private static voidChorusFlowerBlock.growTreeRecursive(LevelAccessor level, BlockPos branchPos, RandomSource random, BlockPos originalBranchPos, int maxHorizontalDistance, int iterations) static booleanSculkVeinBlock.hasSubstrateAccess(LevelAccessor level, BlockState state, BlockPos pos) private static booleanChestBlock.isCatSittingOnChest(LevelAccessor level, BlockPos pos) static booleanChestBlock.isChestBlockedAt(LevelAccessor level, BlockPos pos) private static booleanSculkSpreader.ChargeCursor.isMovementUnobstructed(LevelAccessor level, BlockPos fromPos, BlockPos toPos) private static booleanCreakingHeartBlock.isSurroundedByLogs(LevelAccessor level, BlockPos pos) private static booleanSculkSpreader.ChargeCursor.isUnobstructed(LevelAccessor level, BlockPos pos, Direction direction) private static voidLeverBlock.makeParticle(BlockState state, LevelAccessor level, BlockPos pos, float alpha) default voidSculkBehaviour.onDischarged(LevelAccessor level, BlockState state, BlockPos pos, RandomSource random) voidSculkVeinBlock.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 owner, LevelAccessor level, BlockPos pos, BlockState state) 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 ItemStackSimpleWaterloggedBlock.pickupBlock(LivingEntity p_394370_, LevelAccessor p_154560_, BlockPos p_154561_, BlockState p_154562_) protected static booleanBigDripleafBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) protected static booleanBigDripleafStemBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) static voidDoublePlantBlock.placeAt(LevelAccessor level, BlockState state, BlockPos pos, int flags) static voidMossyCarpetBlock.placeAt(LevelAccessor level, BlockPos pos, RandomSource random, int flags) default booleanMultifaceSpreader.SpreadConfig.placeBlock(LevelAccessor level, MultifaceSpreader.SpreadPos pos, BlockState state, boolean markForPostprocessing) booleanCampfireBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanCandleBlock.placeLiquid(LevelAccessor p_152805_, BlockPos p_152806_, BlockState p_152807_, FluidState p_152808_) booleanKelpBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanKelpPlantBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanLiquidBlockContainer.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanSeagrassBlock.placeLiquid(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default booleanSimpleWaterloggedBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanSlabBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanTallSeagrassBlock.placeLiquid(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) static voidBigDripleafBlock.placeWithRandomHeight(LevelAccessor level, RandomSource random, BlockPos pos, Direction direction) protected voidButtonBlock.playSound(Player player, LevelAccessor level, BlockPos pos, boolean hitByArrow) protected static voidLeverBlock.playSound(Player player, LevelAccessor level, BlockPos pos, BlockState state) static BlockStateBlock.pushEntitiesUp(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos) static booleanSculkVeinBlock.regrow(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions) private static voidAbstractCandleBlock.setLit(LevelAccessor level, BlockState state, BlockPos pos, boolean lit) private static voidTargetBlock.setOutputPower(LevelAccessor level, BlockState state, int power, BlockPos pos, int waitTime) private booleanSculkSpreader.ChargeCursor.shouldUpdate(LevelAccessor level, BlockPos pos, boolean isWorldGeneration) longMultifaceSpreader.spreadAll(BlockState state, LevelAccessor level, BlockPos pos, boolean markForPostprocessing) private longMultifaceSpreader.spreadFromFaceTowardAllDirections(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardDirection(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, Direction face, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardRandomDirection(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, RandomSource random, boolean markForPostprocessing) MultifaceSpreader.spreadFromRandomFaceTowardRandomDirection(BlockState state, LevelAccessor level, BlockPos pos, RandomSource random) MultifaceSpreader.spreadToFace(LevelAccessor level, MultifaceSpreader.SpreadPos pos, boolean markForPostprocessing) voidSculkSpreader.ChargeCursor.update(LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) static voidBubbleColumnBlock.updateColumn(LevelAccessor level, BlockPos pos, BlockState state) static voidBubbleColumnBlock.updateColumn(LevelAccessor level, BlockPos pos, BlockState fluid, BlockState state) voidSculkSpreader.updateCursors(LevelAccessor level, BlockPos pos, RandomSource random, boolean shouldConvertBlocks) private static BlockStateLeavesBlock.updateDistance(BlockState state, LevelAccessor level, BlockPos pos) static BlockStateBlock.updateFromNeighbourShapes(BlockState currentState, LevelAccessor level, BlockPos pos) With the provided block state, performs neighbor checks for all neighboring blocks to get an "adjusted" blockstate for placement in the world, if the current state is not valid.protected voidRedStoneWireBlock.updateIndirectNeighbourShapes(BlockState state, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) static voidBlock.updateOrDestroy(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos, int flags) Replaces oldState with newState, possibly playing effects and creating drops.static voidBlock.updateOrDestroy(BlockState oldState, BlockState newState, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) private static intTargetBlock.updateRedstoneOutput(LevelAccessor level, BlockState state, BlockHitResult hit, Entity projectile) Method parameters in net.minecraft.world.level.block with type arguments of type LevelAccessorModifier and TypeMethodDescriptionstatic <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> doubleBlockTypeGetter, Function<BlockState, Direction> directionGetter, Property<Direction> directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) Constructors in net.minecraft.world.level.block with parameters of type LevelAccessorModifierConstructorDescriptionInputContainer(BlockState state, LevelAccessor level, BlockPos pos) OutputContainer(BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) -
Uses of LevelAccessor in net.minecraft.world.level.block.grower
Methods in net.minecraft.world.level.block.grower with parameters of type LevelAccessorModifier and TypeMethodDescriptionprivate booleanTreeGrower.hasFlowers(LevelAccessor level, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoidMovingPistonBlock.destroy(LevelAccessor level, BlockPos pos, BlockState state) 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 voidBlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes(LevelAccessor level, BlockPos pos, int flags) voidBlockBehaviour.BlockStateBase.updateIndirectNeighbourShapes(LevelAccessor level, BlockPos pos, int flags, int recursionLeft) protected voidBlockBehaviour.updateIndirectNeighbourShapes(BlockState state, LevelAccessor level, BlockPos pos, int flags, int recursionLeft) Updates the shapes of indirect neighbors of this block.final voidBlockBehaviour.BlockStateBase.updateNeighbourShapes(LevelAccessor level, BlockPos pos, int flags) final voidBlockBehaviour.BlockStateBase.updateNeighbourShapes(LevelAccessor level, BlockPos pos, int flags, int recursionLeft) -
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 voidUpgradeData.BlockFixer.processChunk(LevelAccessor level) UpgradeData.BlockFixer.updateShape(BlockState state, Direction direction, BlockState offsetState, LevelAccessor level, BlockPos pos, BlockPos offsetPos) private static BlockStateUpgradeData.updateState(BlockState state, Direction direction, LevelAccessor level, BlockPos pos, BlockPos offsetPos) Constructors in net.minecraft.world.level.chunk with parameters of type LevelAccessor -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.feature
Methods in net.minecraft.world.level.levelgen.feature with parameters of type LevelAccessorModifier and TypeMethodDescriptionprivate booleanDripstoneClusterFeature.canBeAdjacentToWater(LevelAccessor level, BlockPos pos) private static booleanBasaltColumnsFeature.canPlaceAt(LevelAccessor level, int seaLevel, BlockPos.MutableBlockPos pos) private booleanSculkPatchFeature.canSpreadFrom(LevelAccessor level, BlockPos pos) private voidIcebergFeature.carve(int radius, int localY, BlockPos pos, LevelAccessor level, boolean placeWater, double perpendicularAngle, BlockPos ellipseOrigin, int majorRadius, int minorRadius) private static voidPointedDripstoneFeature.createPatchOfDripstoneBlocks(LevelAccessor level, RandomSource random, BlockPos pos, PointedDripstoneConfiguration config) private static BlockPosBasaltColumnsFeature.findAir(LevelAccessor level, BlockPos.MutableBlockPos pos, int distance) private static booleanTwistingVinesFeature.findFirstAirBlockAboveGround(LevelAccessor level, BlockPos.MutableBlockPos pos) private static BlockPosBasaltColumnsFeature.findSurface(LevelAccessor level, int seaLevel, BlockPos.MutableBlockPos pos, int distance) private static BlockPosReplaceBlobsFeature.findTarget(LevelAccessor level, BlockPos.MutableBlockPos topPos, Block block) private voidIcebergFeature.generateCutOut(RandomSource random, LevelAccessor level, int majorAxis, int height, BlockPos pos, boolean elliptical, int ellipseRadius, double angle, int minorAxis) private voidIcebergFeature.generateIcebergBlock(LevelAccessor level, RandomSource random, BlockPos pos, int height, int localX, int localY, int localZ, int radius, int majorRadius, boolean elliptical, int minorRadius, double angle, boolean placeSnow, BlockState state) PointedDripstoneFeature.getTipDirection(LevelAccessor level, BlockPos pos, RandomSource random) protected static voidDripstoneUtils.growPointedDripstone(LevelAccessor level, BlockPos pos, Direction direction, int height, boolean mergeTip) private static booleanBasaltColumnsFeature.isAirOrLavaOcean(LevelAccessor level, int seaLevel, BlockPos pos) private static booleanDeltaFeature.isClear(LevelAccessor level, BlockPos pos, DeltaFeatureConfiguration config) protected static booleanDripstoneUtils.isEmptyOrWater(LevelAccessor level, BlockPos pos) protected static booleanDripstoneUtils.isEmptyOrWaterOrLava(LevelAccessor level, BlockPos pos) private static booleanTwistingVinesFeature.isInvalidPlacementLocation(LevelAccessor level, BlockPos pos) private booleanFallenTreeFeature.isOverSolidGround(LevelAccessor level, BlockPos pos) protected booleanAbstractHugeMushroomFeature.isValidPosition(LevelAccessor level, BlockPos pos, int maxHeight, BlockPos.MutableBlockPos mutablePos, HugeMushroomFeatureConfiguration config) private booleanUnderwaterMagmaFeature.isWaterOrAir(LevelAccessor level, BlockPos pos) protected abstract voidAbstractHugeMushroomFeature.makeCap(LevelAccessor level, RandomSource random, BlockPos pos, int treeHeight, BlockPos.MutableBlockPos mutablePos, HugeMushroomFeatureConfiguration config) protected voidHugeBrownMushroomFeature.makeCap(LevelAccessor p_225043_, RandomSource p_225044_, BlockPos p_225045_, int p_225046_, BlockPos.MutableBlockPos p_225047_, HugeMushroomFeatureConfiguration p_225048_) protected voidHugeRedMushroomFeature.makeCap(LevelAccessor p_225082_, RandomSource p_225083_, BlockPos p_225084_, int p_225085_, BlockPos.MutableBlockPos p_225086_, HugeMushroomFeatureConfiguration p_225087_) private booleanBlockPileFeature.mayPlaceOn(LevelAccessor level, BlockPos pos, RandomSource random) private booleanFallenTreeFeature.mayPlaceOn(LevelAccessor level, BlockPos pos) private voidBasaltPillarFeature.placeBaseHangOff(LevelAccessor level, RandomSource random, BlockPos pos) private booleanBasaltColumnsFeature.placeColumn(LevelAccessor level, int seaLevel, BlockPos pos, int distance, int reach) protected booleanCoralFeature.placeCoralBlock(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) protected static booleanDripstoneUtils.placeDripstoneBlockIfPossible(LevelAccessor level, BlockPos pos) protected booleanCoralClawFeature.placeFeature(LevelAccessor p_224959_, RandomSource p_224960_, BlockPos p_224961_, BlockState p_224962_) protected abstract booleanCoralFeature.placeFeature(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) protected booleanCoralMushroomFeature.placeFeature(LevelAccessor p_224982_, RandomSource p_224983_, BlockPos p_224984_, BlockState p_224985_) protected booleanCoralTreeFeature.placeFeature(LevelAccessor p_224987_, RandomSource p_224988_, BlockPos p_224989_, BlockState p_224990_) private booleanBasaltPillarFeature.placeHangOff(LevelAccessor level, RandomSource random, BlockPos pos) private voidHugeFungusFeature.placeHatBlock(LevelAccessor level, RandomSource random, HugeFungusConfiguration config, BlockPos.MutableBlockPos pos, float decorationChance, float hatChance, float weepingVineChance) private voidHugeFungusFeature.placeHatDropBlock(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state, boolean weepingVines) protected voidAbstractHugeMushroomFeature.placeMushroomBlock(LevelAccessor level, BlockPos.MutableBlockPos mutablePos, BlockState state) private voidWeepingVinesFeature.placeRoofNetherWart(LevelAccessor level, RandomSource random, BlockPos pos) private voidWeepingVinesFeature.placeRoofWeepingVines(LevelAccessor level, RandomSource random, BlockPos pos) protected voidAbstractHugeMushroomFeature.placeTrunk(LevelAccessor level, RandomSource random, BlockPos pos, HugeMushroomFeatureConfiguration config, int maxHeight, BlockPos.MutableBlockPos mutablePos) static voidTwistingVinesFeature.placeWeepingVinesColumn(LevelAccessor level, RandomSource random, BlockPos.MutableBlockPos pos, int length, int minAge, int maxAge) static voidWeepingVinesFeature.placeWeepingVinesColumn(LevelAccessor level, RandomSource random, BlockPos.MutableBlockPos pos, int height, int minAge, int maxAge) private voidIcebergFeature.removeFloatingSnowLayer(LevelAccessor level, BlockPos pos) private voidIcebergFeature.setIcebergBlock(BlockPos pos, LevelAccessor level, RandomSource random, int heightRemaining, int height, boolean elliptical, boolean placeSnow, BlockState state) private voidIcebergFeature.smooth(LevelAccessor level, BlockPos pos, int majorRadius, int height, boolean elliptical, int minorRadius) Smooths out an iceberg by removing blocks which either have air below, or non-iceberg blocks on three or more horizontal sides, with air.private voidBlockPileFeature.tryPlaceBlock(LevelAccessor level, BlockPos pos, RandomSource random, BlockPileConfiguration config) private static voidHugeFungusFeature.tryPlaceWeepingVines(BlockPos pos, LevelAccessor level, RandomSource random) private static DiscreteVoxelShapeTreeFeature.updateLeaves(LevelAccessor level, BoundingBox box, Set<BlockPos> rootPositions, Set<BlockPos> trunkPositions, Set<BlockPos> foliagePositions) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure
Methods in net.minecraft.world.level.levelgen.structure with parameters of type LevelAccessorModifier and TypeMethodDescriptionprotected booleanScatteredFeaturePiece.updateAverageGroundHeight(LevelAccessor level, BoundingBox bounds, int height) protected booleanScatteredFeaturePiece.updateHeightPositionToLowestGroundHeight(LevelAccessor level, int height) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure.pools
Methods in net.minecraft.world.level.levelgen.structure.pools with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoidStructurePoolElement.handleDataMarker(LevelAccessor level, StructureTemplate.StructureBlockInfo blockInfo, BlockPos pos, Rotation rotation, RandomSource random, BoundingBox box) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure.structures
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type LevelAccessorModifier and TypeMethodDescriptionprivate voidRuinedPortalPiece.addNetherrackDripColumn(RandomSource random, LevelAccessor level, BlockPos pos) private voidRuinedPortalPiece.addNetherrackDripColumnsBelowPortal(RandomSource random, LevelAccessor level) private booleanRuinedPortalPiece.canBlockBeReplacedByNetherrackOrMagma(LevelAccessor level, BlockPos pos) private static intRuinedPortalPiece.getSurfaceY(LevelAccessor level, int x, int z, RuinedPortalPiece.VerticalPlacement verticalPlacement) protected booleanMineshaftPieces.MineShaftPiece.isInInvalidLocation(LevelAccessor level, BoundingBox boundingBox) private voidRuinedPortalPiece.maybeAddLeavesAbove(RandomSource random, LevelAccessor level, BlockPos pos) private voidRuinedPortalPiece.maybeAddVines(RandomSource random, LevelAccessor level, BlockPos pos) private voidRuinedPortalPiece.placeNetherrackOrMagma(RandomSource random, LevelAccessor level, BlockPos pos) private voidRuinedPortalPiece.spreadNetherrack(RandomSource random, LevelAccessor level) -
Uses of LevelAccessor in net.minecraft.world.level.levelgen.structure.templatesystem
Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type LevelAccessorModifier and TypeMethodDescriptionStructureTemplate.processEntityInfos(StructureTemplate template, LevelAccessor p_215387_0_, BlockPos p_215387_1_, StructurePlaceSettings p_215387_2_, List<StructureTemplate.StructureEntityInfo> p_215387_3_) static voidStructureTemplate.updateShapeAtEdge(LevelAccessor level, int flags, DiscreteVoxelShape shape, int x, int y, int z) static voidStructureTemplate.updateShapeAtEdge(LevelAccessor level, int flags, DiscreteVoxelShape shape, BlockPos pos) -
Uses of LevelAccessor in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material with parameters of type LevelAccessorModifier and TypeMethodDescriptionprotected abstract voidFlowingFluid.beforeDestroyingBlock(LevelAccessor level, BlockPos pos, BlockState state) protected voidLavaFluid.beforeDestroyingBlock(LevelAccessor level, BlockPos pos, BlockState state) protected voidWaterFluid.beforeDestroyingBlock(LevelAccessor level, BlockPos pos, BlockState state) private voidLavaFluid.fizz(LevelAccessor level, BlockPos pos) protected voidFlowingFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) protected voidLavaFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) -
Uses of LevelAccessor in net.minecraft.world.level.portal
Methods in net.minecraft.world.level.portal with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoidPortalShape.createPortalBlocks(LevelAccessor level) static Optional<PortalShape> PortalShape.findEmptyPortalShape(LevelAccessor level, BlockPos bottomLeft, Direction.Axis axis) static Optional<PortalShape> PortalShape.findPortalShape(LevelAccessor level, BlockPos bottomLeft, Predicate<PortalShape> predicate, Direction.Axis axis) -
Uses of LevelAccessor in net.minecraft.world.level.redstone
Methods in net.minecraft.world.level.redstone with parameters of type LevelAccessorModifier and TypeMethodDescriptionstatic voidNeighborUpdater.executeShapeUpdate(LevelAccessor level, Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int recursionLeft) -
Uses of LevelAccessor in net.minecraft.world.level.saveddata.maps
Methods in net.minecraft.world.level.saveddata.maps with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoidMapItemSavedData.addDecoration(Holder<MapDecorationType> decorationType, LevelAccessor level, String id, double x, double z, double yRot, Component displayName) MapItemSavedData.calculateDecorationLocationAndType(Holder<MapDecorationType> decorationType, LevelAccessor level, double yRot, float x, float z) private byteMapItemSavedData.calculateRotation(LevelAccessor level, double yRot) private com.mojang.datafixers.util.Pair<Holder<MapDecorationType>, Byte> MapItemSavedData.playerDecorationTypeAndRotation(Holder<MapDecorationType> decorationType, LevelAccessor level, double yRot, float x, float z) booleanMapItemSavedData.toggleBanner(LevelAccessor accessor, BlockPos pos) -
Uses of LevelAccessor in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type LevelAccessorModifier and TypeMethodDescriptionvoidSpecialPlantable.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 intIBlockExtension.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 intIBlockStateExtension.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 BlockStateIBlockExtension.rotate(BlockState state, LevelAccessor level, BlockPos pos, Rotation direction) default BlockStateIBlockStateExtension.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 LevelAccessorBlockSnapshot.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 BlockSnapshotBlockSnapshot.create(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos) Creates a new snapshot with the default block flags (and Block#UPDATE_CLIENTS.static BlockSnapshotBlockSnapshot.create(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, int flag) Creates a new snapshot of the data at the given position.private static @Nullable CompoundTagBlockSnapshot.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.booleanBlockSnapshot.restoreBlockEntity(LevelAccessor level, BlockPos pos) Loads the storedBlockEntitydata if one exists at the given position.booleanBlockSnapshot.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 LevelAccessorModifierConstructorDescriptionprivateBlockSnapshot(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 BlockGrowFeatureEventEventHooks.fireBlockGrowFeature(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> holder) Fires theBlockGrowFeatureEventand returns the event object.static BlockStateEventHooks.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 LevelAccessorBlockEvent.levelprivate final LevelAccessorLevelEvent.levelMethods 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 voidBaseFlowingFluid.beforeDestroyingBlock(LevelAccessor worldIn, BlockPos pos, BlockState state)