Uses of Interface
net.minecraft.util.RandomSource
Packages that use RandomSource
Package
Description
Extension interfaces for
client
-only classes.-
Uses of RandomSource in net.minecraft
Methods in net.minecraft with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic int
Util.getRandom
(int[] pSelections, RandomSource pRandom) static <T> T
Util.getRandom
(List<T> pSelections, RandomSource pRandom) static <T> T
Util.getRandom
(T[] pSelections, RandomSource pRandom) static <T> Optional
<T> Util.getRandomSafe
(List<T> pSelections, RandomSource pRandom) static <T> void
Util.shuffle
(List<T> pList, RandomSource pRandom) static <T> List
<T> Util.shuffledCopy
(it.unimi.dsi.fastutil.objects.ObjectArrayList<T> pList, RandomSource pRandom) static <T> List
<T> Util.shuffledCopy
(T[] pArray, RandomSource pRandom) static it.unimi.dsi.fastutil.ints.IntArrayList
Util.toShuffledList
(IntStream pStream, RandomSource pRandom) static <T> List
<T> Util.toShuffledList
(Stream<T> pStream, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.client.gui
Fields in net.minecraft.client.gui declared as RandomSourceModifier and TypeFieldDescriptionfinal RandomSource
Font.random
private final RandomSource
Gui.random
-
Uses of RandomSource in net.minecraft.client.gui.font
Fields in net.minecraft.client.gui.font declared as RandomSource -
Uses of RandomSource in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
EnchantmentNames.random
private final RandomSource
EnchantmentScreen.random
A Random instance for use with the enchantment gui -
Uses of RandomSource in net.minecraft.client.model
Methods in net.minecraft.client.model with parameters of type RandomSource -
Uses of RandomSource in net.minecraft.client.model.geom
Methods in net.minecraft.client.model.geom with parameters of type RandomSource -
Uses of RandomSource in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
ClientPacketListener.random
Just an ordinary random number generator, used to randomize audio pitch of item/orb pickup and randomize both particlespawn offset and velocityMethods in net.minecraft.client.multiplayer with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
ClientLevel.doAnimateTick
(int pPosX, int pPosY, int pPosZ, int pRange, RandomSource pRandom, Block pBlock, BlockPos.MutableBlockPos pBlockPos) -
Uses of RandomSource in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as RandomSourceModifier and TypeFieldDescriptionprotected final RandomSource
Particle.random
private final RandomSource
ParticleEngine.random
(package private) static final RandomSource
GlowParticle.RANDOM
private static final RandomSource
SpellParticle.RANDOM
Methods in net.minecraft.client.particle with parameters of type RandomSourceModifier and TypeMethodDescriptionParticleEngine.MutableSpriteSet.get
(RandomSource p_233889_) SpriteSet.get
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer declared as RandomSourceMethods in net.minecraft.client.renderer with parameters of type RandomSourceModifier and TypeMethodDescriptionWeatherEffectRenderer.createRainColumnInstance
(RandomSource pRandom, int pTicks, int pX, int pBottomY, int pTopY, int pZ, int pLightCoords, float pPartialTick) WeatherEffectRenderer.createSnowColumnInstance
(RandomSource pRandom, int pTicks, int pX, int pBottomY, int pTopY, int pZ, int pLightCoords, float pPartialTick) private void
LevelEventHandler.shootParticles
(int pDirection, BlockPos pPos, RandomSource pRandom, SimpleParticleType pParticleType) -
Uses of RandomSource in net.minecraft.client.renderer.block
Fields in net.minecraft.client.renderer.block declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
BlockRenderDispatcher.singleThreadRandom
-
Uses of RandomSource in net.minecraft.client.renderer.block.model
Methods in net.minecraft.client.renderer.block.model with parameters of type RandomSourceModifier and TypeMethodDescriptiondefault List
<BlockModelPart> BlockStateModel.collectParts
(RandomSource pRandom) Deprecated.void
BlockStateModel.collectParts
(RandomSource pRandom, List<BlockModelPart> pOutput) void
SingleVariant.collectParts
(RandomSource p_410554_, List<BlockModelPart> p_410007_) SingleVariant.createGeometryKey
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random) -
Uses of RandomSource in net.minecraft.client.renderer.block.model.multipart
Methods in net.minecraft.client.renderer.block.model.multipart with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
MultiPartModel.collectParts
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource p_410101_, List<BlockModelPart> p_410550_) MultiPartModel.createGeometryKey
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random) -
Uses of RandomSource in net.minecraft.client.renderer.blockentity
Fields in net.minecraft.client.renderer.blockentity declared as RandomSource -
Uses of RandomSource in net.minecraft.client.renderer.entity
Fields in net.minecraft.client.renderer.entity declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
EndermanRenderer.random
private final RandomSource
ItemEntityRenderer.random
private final RandomSource
OminousItemSpawnerRenderer.random
Methods in net.minecraft.client.renderer.entity with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic void
ItemEntityRenderer.renderMultipleFromCount
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, ItemClusterRenderState pRenderState, RandomSource pRandom) static void
ItemEntityRenderer.renderMultipleFromCount
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, ItemClusterRenderState pRenderState, RandomSource pRandom, AABB pBoundingBox) -
Uses of RandomSource in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type RandomSource -
Uses of RandomSource in net.minecraft.client.renderer.item.properties.numeric
Fields in net.minecraft.client.renderer.item.properties.numeric declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
CompassAngleState.random
private final RandomSource
Time.randomSource
Methods in net.minecraft.client.renderer.item.properties.numeric with parameters of type RandomSourceModifier and TypeMethodDescription(package private) abstract float
Time.TimeSource.get
(ClientLevel pLevel, ItemStack pStack, Entity pEntity, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.client.resources
Fields in net.minecraft.client.resources declared as RandomSource -
Uses of RandomSource in net.minecraft.client.resources.model
Methods in net.minecraft.client.resources.model with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
WeightedVariants.collectParts
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource p_409649_, List<BlockModelPart> p_410123_) WeightedVariants.createGeometryKey
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random) -
Uses of RandomSource in net.minecraft.client.resources.sounds
Fields in net.minecraft.client.resources.sounds declared as RandomSourceModifier and TypeFieldDescriptionprotected RandomSource
AbstractSoundInstance.random
private final RandomSource
BiomeAmbientSoundsHandler.random
Methods in net.minecraft.client.resources.sounds that return RandomSourceMethods in net.minecraft.client.resources.sounds with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic SimpleSoundInstance
SimpleSoundInstance.forAmbientMood
(SoundEvent pSoundEvent, RandomSource pRandom, double pX, double pY, double pZ) Sound.getSound
(RandomSource p_235143_) Constructors in net.minecraft.client.resources.sounds with parameters of type RandomSourceModifierConstructorDescriptionprotected
AbstractSoundInstance
(ResourceLocation pLocation, SoundSource pSource, RandomSource pRandom) protected
AbstractSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, RandomSource pRandom) protected
AbstractTickableSoundInstance
(SoundEvent p_235076_, SoundSource p_235077_, RandomSource p_235078_) SimpleSoundInstance
(ResourceLocation pLocation, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ, boolean pRelative) private
SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, BlockPos pEntity) -
Uses of RandomSource in net.minecraft.client.sounds
Fields in net.minecraft.client.sounds declared as RandomSourceMethods in net.minecraft.client.sounds with parameters of type RandomSourceModifier and TypeMethodDescriptionWeighedSoundEvents.getSound
(RandomSource p_235265_) Retrieves a randomly selected sound from the sound events based on their weights.Weighted.getSound
(RandomSource pRandomSource) Retrieves the sound associated with the element. -
Uses of RandomSource in net.minecraft.core
Methods in net.minecraft.core with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic Collection
<Direction> Direction.allShuffled
(RandomSource pRandom) DefaultedMappedRegistry.getRandom
(RandomSource p_260255_) static Direction.Axis
Direction.Axis.getRandom
(RandomSource pRandom) static Direction
Direction.getRandom
(RandomSource pRandom) MappedRegistry.getRandom
(RandomSource p_235716_) Registry.getRandom
(RandomSource pRandom) Direction.Plane.getRandomAxis
(RandomSource pRandom) Direction.Plane.getRandomDirection
(RandomSource pRandom) HolderSet.getRandomElement
(RandomSource pRandom) HolderSet.ListBacked.getRandomElement
(RandomSource p_235714_) Registry.getRandomElementOf
(TagKey<T> pKey, RandomSource pRandom) BlockPos.randomBetweenClosed
(RandomSource pRandom, int pAmount, int pMinX, int pMinY, int pMinZ, int pMaxX, int pMaxY, int pMaxZ) BlockPos.randomInCube
(RandomSource pRandom, int pAmount, BlockPos pCenter, int pRadius) Direction.Plane.shuffledCopy
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game that return RandomSourceMethods in net.minecraft.network.protocol.game with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static String
DebugEntityNameGenerator.getRandomString
(RandomSource pRandom, String[] pStrings) -
Uses of RandomSource in net.minecraft.server
Fields in net.minecraft.server declared as RandomSource -
Uses of RandomSource in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static SpreadPlayersCommand.Position[]
SpreadPlayersCommand.createInitialPositions
(RandomSource pRandom, int pCount, double pMinX, double pMinZ, double pMaxX, double pMaxZ) void
SpreadPlayersCommand.Position.randomize
(RandomSource pRandom, double pMinX, double pMinZ, double pMaxX, double pMaxZ) private static void
SpreadPlayersCommand.spreadPositions
(Vec2 pCenter, double pSpreadDistance, ServerLevel pLevel, RandomSource pRandom, double pMinX, double pMinZ, double pMaxX, double pMaxZ, int pMaxHeight, SpreadPlayersCommand.Position[] pPositions, boolean pRespectTeams) -
Uses of RandomSource in net.minecraft.server.level
Fields in net.minecraft.server.level declared as RandomSourceMethods in net.minecraft.server.level that return RandomSourceModifier and TypeMethodDescriptionWorldGenRegion.getRandom()
ServerLevel.getRandomSequence
(ResourceLocation pLocation) -
Uses of RandomSource in net.minecraft.util
Fields in net.minecraft.util declared as RandomSourceMethods in net.minecraft.util that return RandomSourceModifier and TypeMethodDescriptionstatic RandomSource
RandomSource.create()
static RandomSource
RandomSource.create
(long pSeed) static RandomSource
RandomSource.createNewThreadLocalInstance()
static RandomSource
RandomSource.createThreadSafe()
Deprecated.RandomSource.fork()
Methods in net.minecraft.util with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic UUID
Mth.createInsecureUUID
(RandomSource pRandom) private static Vec3
ParticleUtils.getRandomSpeedRanges
(RandomSource pRandom) static double
Mth.nextDouble
(RandomSource pRandom, double pMinimum, double pMaximum) static float
Mth.nextFloat
(RandomSource pRandom, float pMinimum, float pMaximum) static int
Mth.nextInt
(RandomSource pRandom, int pMinimum, int pMaximum) static float
Mth.normal
(RandomSource pRandom, float pMean, float pDeviation) Generates a value from a normal distribution with the given mean and deviation.static float
Mth.randomBetween
(RandomSource pRandom, float pMinInclusive, float pMaxExclusive) static int
Mth.randomBetweenInclusive
(RandomSource pRandom, int pMinInclusive, int pMaxInclusive) static void
ParticleUtils.spawnParticleBelow
(Level pLevel, BlockPos pPos, RandomSource pRandom, ParticleOptions pParticle) -
Uses of RandomSource in net.minecraft.util.random
Methods in net.minecraft.util.random with parameters of type RandomSourceModifier and TypeMethodDescriptionWeightedList.getRandom
(RandomSource pRandom) static <T> Optional
<T> WeightedRandom.getRandomItem
(RandomSource pRandom, List<T> pElements, int pTotalWeight, ToIntFunction<T> pWeightGetter) static <T> Optional
<T> WeightedRandom.getRandomItem
(RandomSource pRandom, List<T> pElements, ToIntFunction<T> pWeightGetter) WeightedList.getRandomOrThrow
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.util.valueproviders
Methods in net.minecraft.util.valueproviders with parameters of type RandomSourceModifier and TypeMethodDescriptionint
BiasedToBottomInt.sample
(RandomSource p_216832_) int
ClampedInt.sample
(RandomSource p_216834_) float
ClampedNormalFloat.sample
(RandomSource p_216836_) static float
ClampedNormalFloat.sample
(RandomSource pRandom, float pMean, float pDeviation, float pMin, float pMax) int
ClampedNormalInt.sample
(RandomSource p_216844_) static int
ClampedNormalInt.sample
(RandomSource pRandom, float pMean, float pDeviation, float pMinInclusive, float pMaxInclusive) float
ConstantFloat.sample
(RandomSource p_216852_) int
ConstantInt.sample
(RandomSource p_216854_) abstract int
IntProvider.sample
(RandomSource pRandom) float
MultipliedFloats.sample
(RandomSource p_216860_) float
SampledFloat.sample
(RandomSource pRandom) float
TrapezoidFloat.sample
(RandomSource p_216864_) float
UniformFloat.sample
(RandomSource p_216866_) int
UniformInt.sample
(RandomSource p_216868_) int
WeightedListInt.sample
(RandomSource p_216870_) -
Uses of RandomSource in net.minecraft.world
Classes in net.minecraft.world that implement RandomSourceModifier and TypeClassDescription(package private) class
Fields in net.minecraft.world declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
RandomSequences.DirtyMarkingRandomSource.random
Methods in net.minecraft.world that return RandomSourceModifier and TypeMethodDescriptionRandomSequences.DirtyMarkingRandomSource.fork()
RandomSequences.get
(ResourceLocation pLocation) RandomSequence.random()
Methods in net.minecraft.world with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic void
RandomizableContainer.setBlockEntityLootTable
(BlockGetter pLevel, RandomSource pRandom, BlockPos pPs, ResourceKey<LootTable> pLootTable) Constructors in net.minecraft.world with parameters of type RandomSource -
Uses of RandomSource in net.minecraft.world.effect
Fields in net.minecraft.world.effect with type parameters of type RandomSourceModifier and TypeFieldDescriptionprivate final ToIntFunction
<RandomSource> WeavingMobEffect.maxCobwebs
private final ToIntFunction
<RandomSource> InfestedMobEffect.spawnedCount
private final ToIntFunction
<RandomSource> OozingMobEffect.spawnedCount
Methods in net.minecraft.world.effect with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate void
WeavingMobEffect.spawnCobwebsRandomlyAround
(ServerLevel pLevel, RandomSource pRandom, BlockPos pPos) Constructor parameters in net.minecraft.world.effect with type arguments of type RandomSourceModifierConstructorDescriptionprotected
InfestedMobEffect
(MobEffectCategory pCategory, int pColor, float pChanceToSpawn, ToIntFunction<RandomSource> pSpawnedCount) protected
OozingMobEffect
(MobEffectCategory pCategory, int pColor, ToIntFunction<RandomSource> pSpawnedCount) protected
WeavingMobEffect
(MobEffectCategory pCategory, int pColor, ToIntFunction<RandomSource> pMaxCobwebs) -
Uses of RandomSource in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as RandomSourceMethods in net.minecraft.world.entity that return RandomSourceMethods in net.minecraft.world.entity with parameters of type RandomSourceModifier and TypeMethodDescriptionboolean
ItemBasedSteering.boost
(RandomSource pRandom) static boolean
GlowSquid.checkGlowSquidSpawnRules
(EntityType<? extends LivingEntity> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Mob.checkMobSpawnRules
(EntityType<? extends Mob> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules
(EntityType<T> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) protected void
Mob.enchantSpawnedArmor
(ServerLevelAccessor pLevel, RandomSource pRandom, EquipmentSlot pSlot, DifficultyInstance pDifficulty) private void
Mob.enchantSpawnedEquipment
(ServerLevelAccessor pLevel, EquipmentSlot pSlot, RandomSource pRandom, float pEnchantChance, DifficultyInstance pDifficulty) protected void
Mob.enchantSpawnedWeapon
(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Mob.populateDefaultEquipmentEnchantments
(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Mob.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) boolean
SpawnPlacements.SpawnPredicate.test
(EntityType<T> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
AcquirePoi.JitteredLinearRetry.random
private final RandomSource
ShufflingList.random
Methods in net.minecraft.world.entity.ai.behavior with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static int
GoToTargetLocation.getRandomOffset
(RandomSource pRandom) boolean
SetEntityLookTargetSometimes.Ticker.tickDownAndCheck
(RandomSource pRandom) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type RandomSourceModifierConstructorDescription(package private)
JitteredLinearRetry
(RandomSource pRandom, long pTimestamp) -
Uses of RandomSource in net.minecraft.world.entity.ai.gossip
Methods in net.minecraft.world.entity.ai.gossip with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate Collection
<GossipContainer.GossipEntry> GossipContainer.selectGossipsForTransfer
(RandomSource pRandom, int pAmount) void
GossipContainer.transferFrom
(GossipContainer pContainer, RandomSource pRandomSource, int pAmount) -
Uses of RandomSource in net.minecraft.world.entity.ai.sensing
Fields in net.minecraft.world.entity.ai.sensing declared as RandomSource -
Uses of RandomSource in net.minecraft.world.entity.ai.util
Methods in net.minecraft.world.entity.ai.util with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic BlockPos
RandomPos.generateRandomDirection
(RandomSource pRandom, int pHorizontalDistance, int pVerticalDistance) Gets a random position within a certain distance.static BlockPos
RandomPos.generateRandomDirectionWithinRadians
(RandomSource pRandom, int pMaxHorizontalDifference, int pYRange, int pY, double pX, double pZ, double pMaxAngleDelta) static BlockPos
RandomPos.generateRandomPosTowardDirection
(PathfinderMob pMob, int pRange, RandomSource pRandom, BlockPos pPos) -
Uses of RandomSource in net.minecraft.world.entity.ai.village.poi
Methods in net.minecraft.world.entity.ai.village.poi with parameters of type RandomSource -
Uses of RandomSource in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Bat.checkBatSpawnRules
(EntityType<Bat> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandomSource) -
Uses of RandomSource in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type RandomSourceModifier 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) static SoundEvent
Parrot.getAmbient
(Level pLevel, RandomSource pRandom) static float
Parrot.getPitch
(RandomSource pRandom) static Panda.Gene
Panda.Gene.getRandom
(RandomSource pRandom) protected void
Fox.populateDefaultEquipmentSlots
(RandomSource p_218171_, DifficultyInstance p_218172_) static Optional
<Holder.Reference<CatVariant>> CatVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) static Optional
<Holder.Reference<ChickenVariant>> ChickenVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pSpawnContext) static Optional
<Holder.Reference<CowVariant>> CowVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) static Optional
<Holder.Reference<PigVariant>> PigVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) -
Uses of RandomSource in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Armadillo.checkArmadilloSpawnRules
(EntityType<Armadillo> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Axolotl.checkAxolotlSpawnRules
(EntityType<? extends LivingEntity> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static Axolotl.Variant
Axolotl.Variant.getCommonSpawnVariant
(RandomSource pRandom) static Axolotl.Variant
Axolotl.Variant.getRareSpawnVariant
(RandomSource pRandom) private static Axolotl.Variant
Axolotl.Variant.getSpawnVariant
(RandomSource pRandom, boolean pCommon) Axolotl.AxolotlGroupData.getVariant
(RandomSource pRandom) private static boolean
Axolotl.useRareVariant
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Camel.checkCamelSpawnRules
(EntityType<Camel> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) protected static void
CamelAi.initMemories
(Camel pCamel, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Frog.checkFrogSpawnRules
(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) protected static void
FrogAi.initMemories
(Frog pFrog, RandomSource pRandom) static Optional
<Holder.Reference<FrogVariant>> FrogVariants.selectVariantToSpawn
(RandomSource pSource, RegistryAccess pRegistryAccess, SpawnContext pContext) -
Uses of RandomSource in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Goat.checkGoatSpawnRules
(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) protected static void
GoatAi.initMemories
(Goat pGoat, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type RandomSourceModifier 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) (package private) static double
AbstractHorse.createOffspringAttribute
(double pValue1, double pValue2, double pMin, double pMax, RandomSource pRandom) protected void
AbstractChestedHorse.randomizeAttributes
(RandomSource p_218803_) protected void
AbstractHorse.randomizeAttributes
(RandomSource pRandom) protected void
Horse.randomizeAttributes
(RandomSource p_218815_) protected void
SkeletonHorse.randomizeAttributes
(RandomSource p_218821_) protected void
ZombieHorse.randomizeAttributes
(RandomSource p_218823_) private void
Llama.setRandomStrength
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type RandomSourceModifier and TypeMethodDescriptionSheepColorSpawnRules.SheepColorProvider.get
(RandomSource pRandom) static DyeColor
SheepColorSpawnRules.getSheepColor
(Holder<Biome> pBiome, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Wolf.checkWolfSpawnRules
(EntityType<Wolf> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static Holder
<WolfSoundVariant> WolfSoundVariants.pickRandomSoundVariant
(RegistryAccess pRegistryAccess, RandomSource pRandom) static Optional
<? extends Holder<WolfVariant>> WolfVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) -
Uses of RandomSource in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Monster.checkAnyLightMonsterSpawnRules
(EntityType<? extends Monster> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Drowned.checkDrownedSpawnRules
(EntityType<Drowned> pEntityType, ServerLevelAccessor 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
Husk.checkHuskSpawnRules
(EntityType<Husk> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static boolean
Monster.checkMonsterSpawnRules
(EntityType<? extends Monster> pEntityType, ServerLevelAccessor 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
Stray.checkStraySpawnRules
(EntityType<Stray> pEntityType, ServerLevelAccessor 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) protected void
Pillager.enchantSpawnedWeapon
(ServerLevelAccessor p_348604_, RandomSource p_219056_, DifficultyInstance p_348571_) static boolean
Zombie.getSpawnAsBabyOdds
(RandomSource pRandom) static boolean
Monster.isDarkEnoughToSpawn
(ServerLevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) Static predicate for determining if the current light level and environmental conditions allow for a monster to spawn.protected void
WitherSkeleton.populateDefaultEquipmentEnchantments
(ServerLevelAccessor p_348580_, RandomSource p_219157_, DifficultyInstance p_219158_) protected void
AbstractSkeleton.populateDefaultEquipmentSlots
(RandomSource p_218949_, DifficultyInstance p_218950_) protected void
Drowned.populateDefaultEquipmentSlots
(RandomSource p_218953_, DifficultyInstance p_218954_) protected void
Pillager.populateDefaultEquipmentSlots
(RandomSource p_219059_, DifficultyInstance p_219060_) protected void
Vex.populateDefaultEquipmentSlots
(RandomSource p_219135_, DifficultyInstance p_219136_) protected void
Vindicator.populateDefaultEquipmentSlots
(RandomSource p_219149_, DifficultyInstance p_219150_) protected void
WitherSkeleton.populateDefaultEquipmentSlots
(RandomSource p_219154_, DifficultyInstance p_219155_) protected void
Zombie.populateDefaultEquipmentSlots
(RandomSource p_219165_, DifficultyInstance p_219166_) protected void
ZombifiedPiglin.populateDefaultEquipmentSlots
(RandomSource p_219171_, DifficultyInstance p_219172_) void
Spider.SpiderEffectsGroupData.setRandomEffect
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.monster.breeze
Methods in net.minecraft.world.entity.monster.breeze with parameters of type RandomSourceModifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector
(Breeze pBreeze, RandomSource pRandom, Vec3 pTarget) static Vec3
BreezeUtil.randomPointBehindTarget
(LivingEntity pTarget, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Hoglin.checkHoglinSpawnRules
(EntityType<Hoglin> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
Piglin.checkPiglinSpawnRules
(EntityType<Piglin> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) protected static void
PiglinAi.initMemories
(Piglin pPiglin, RandomSource pRandom) private void
Piglin.maybeWearArmor
(EquipmentSlot pSlot, ItemStack pStack, RandomSource pRandom) protected void
Piglin.populateDefaultEquipmentSlots
(RandomSource p_219189_, DifficultyInstance p_219190_) protected void
PiglinBrute.populateDefaultEquipmentSlots
(RandomSource p_219209_, DifficultyInstance p_219210_) -
Uses of RandomSource in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc declared as RandomSourceMethods in net.minecraft.world.entity.npc with parameters of type RandomSourceModifier and TypeMethodDescriptionVillagerTrades.DyedArmorForEmeralds.getOffer
(Entity p_219679_, RandomSource p_219680_) VillagerTrades.EmeraldForItems.getOffer
(Entity p_219682_, RandomSource p_219683_) VillagerTrades.EmeraldsForVillagerTypeItem.getOffer
(Entity p_219685_, RandomSource p_219686_) VillagerTrades.EnchantBookForEmeralds.getOffer
(Entity p_219688_, RandomSource p_219689_) VillagerTrades.EnchantedItemForEmeralds.getOffer
(Entity p_219691_, RandomSource p_219692_) VillagerTrades.FailureItemListing.getOffer
(Entity p_302036_, RandomSource p_301986_) VillagerTrades.ItemListing.getOffer
(Entity pTrader, RandomSource pRandom) VillagerTrades.ItemsAndEmeraldsToItems.getOffer
(Entity p_219696_, RandomSource p_219697_) VillagerTrades.ItemsForEmeralds.getOffer
(Entity p_219699_, RandomSource p_219700_) VillagerTrades.SuspiciousStewForEmerald.getOffer
(Entity p_219702_, RandomSource p_219703_) VillagerTrades.TippedArrowForItemsAndEmeralds.getOffer
(Entity p_219705_, RandomSource p_219706_) VillagerTrades.TreasureMapForEmeralds.getOffer
(Entity p_219708_, RandomSource p_219709_) VillagerTrades.TypeSpecificTrade.getOffer
(Entity p_296480_, RandomSource p_295729_) private static DyeItem
VillagerTrades.DyedArmorForEmeralds.getRandomDye
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as RandomSourceMethods in net.minecraft.world.entity.projectile with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
ProjectileDeflection.deflect
(Projectile pProjectile, Entity pEntity, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.entity.raid
Fields in net.minecraft.world.entity.raid declared as RandomSourceMethods in net.minecraft.world.entity.raid with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate int
Raid.getPotentialBonusSpawns
(Raid.RaiderType pRaiderType, RandomSource pRandom, int pWave, DifficultyInstance pDifficulty, boolean pShouldSpawnBonusGroup) -
Uses of RandomSource in net.minecraft.world.entity.variant
Methods in net.minecraft.world.entity.variant with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic <C,
T> Optional <T> PriorityProvider.pick
(Stream<T> pElements, Function<T, PriorityProvider<C, ?>> pEntryGetter, RandomSource pRandom, C pContext) -
Uses of RandomSource in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as RandomSource -
Uses of RandomSource in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static float
CrossbowItem.getRandomShotPitch
(boolean pIsHighPitched, RandomSource pRandom) private static float
CrossbowItem.getShotPitch
(RandomSource pRandom, int pIndex) -
Uses of RandomSource in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
Consumable.emitParticlesAndSounds
(RandomSource pRandom, LivingEntity pEntity, ItemStack pStack, int pAmount) -
Uses of RandomSource in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic ItemStack
EnchantmentHelper.enchantItem
(RandomSource pRandom, ItemStack pStack, int pLevel, Stream<Holder<Enchantment>> pPossibleEnchantments) static ItemStack
EnchantmentHelper.enchantItem
(RandomSource pRandom, ItemStack pStack, int pLevel, RegistryAccess pRegistryAccess, Optional<? extends HolderSet<Enchantment>> pPossibleEnchantments) static void
EnchantmentHelper.enchantItemFromProvider
(ItemStack pStack, RegistryAccess pRegistries, ResourceKey<EnchantmentProvider> pKey, DifficultyInstance pDifficulty, RandomSource pRandom) static int
EnchantmentHelper.getEnchantmentCost
(RandomSource pRandom, int pEnchantNum, int pPower, ItemStack pStack) Returns the enchantability of itemstack, using a separate calculation for each enchantNum (0, 1 or 2), cutting to the max enchantability power of the table, which is locked to a max of 15.void
Enchantment.modifyCrossbowChargeTime
(RandomSource pRandom, int pEnchantmentLevel, org.apache.commons.lang3.mutable.MutableFloat pValue) void
Enchantment.modifyTridentSpinAttackStrength
(RandomSource pRandom, int pEnchantmentLevel, org.apache.commons.lang3.mutable.MutableFloat pValue) void
Enchantment.modifyUnfilteredValue
(DataComponentType<EnchantmentValueEffect> pComponentType, RandomSource pRandom, int pEnchantmentLevel, org.apache.commons.lang3.mutable.MutableFloat pValue) static List
<EnchantmentInstance> EnchantmentHelper.selectEnchantment
(RandomSource pRandom, ItemStack pStack, int pLevel, Stream<Holder<Enchantment>> pPossibleEnchantments) -
Uses of RandomSource in net.minecraft.world.item.enchantment.effects
Methods in net.minecraft.world.item.enchantment.effects with parameters of type RandomSourceModifier and TypeMethodDescriptiondouble
SpawnParticlesEffect.PositionSource.getCoordinate
(double pPosition, double pCenter, float pSize, RandomSource pRandom) double
SpawnParticlesEffect.PositionSourceType.CoordinateSource.getCoordinate
(double pPosition, double pCenter, float pSize, RandomSource pRandom) double
SpawnParticlesEffect.PositionSourceType.getCoordinate
(double pPosition, double pCenter, float pSize, RandomSource pRandom) double
SpawnParticlesEffect.VelocitySource.getVelocity
(double pScale, RandomSource pRandom) float
AddValue.process
(int p_345014_, RandomSource p_345344_, float p_344931_) float
AllOf.ValueEffects.process
(int p_345324_, RandomSource p_345137_, float p_344866_) float
EnchantmentValueEffect.process
(int pEnchantmentLevel, RandomSource pRandom, float pValue) float
MultiplyValue.process
(int p_345451_, RandomSource p_346156_, float p_345036_) float
RemoveBinomial.process
(int p_345642_, RandomSource p_345903_, float p_345714_) float
SetValue.process
(int p_344906_, RandomSource p_345151_, float p_345190_) -
Uses of RandomSource in net.minecraft.world.item.enchantment.providers
Methods in net.minecraft.world.item.enchantment.providers with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
EnchantmentProvider.enchant
(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) void
EnchantmentsByCost.enchant
(ItemStack p_345483_, ItemEnchantments.Mutable p_346331_, RandomSource p_344794_, DifficultyInstance p_348577_) void
EnchantmentsByCostWithDifficulty.enchant
(ItemStack p_344777_, ItemEnchantments.Mutable p_344895_, RandomSource p_346012_, DifficultyInstance p_348635_) void
SingleEnchantment.enchant
(ItemStack p_346218_, ItemEnchantments.Mutable p_345570_, RandomSource p_345742_, DifficultyInstance p_348562_) -
Uses of RandomSource in net.minecraft.world.level
Fields in net.minecraft.world.level declared as RandomSourceModifier and TypeFieldDescriptionfinal RandomSource
Level.random
private final RandomSource
Level.threadSafeRandom
Deprecated.Methods in net.minecraft.world.level that return RandomSourceMethods in net.minecraft.world.level with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate SpawnData
BaseSpawner.getOrCreateNextSpawnData
(Level pLevel, RandomSource pRandom, BlockPos pPos) private static Optional
<MobSpawnSettings.SpawnerData> NaturalSpawner.getRandomSpawnMobAt
(ServerLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, MobCategory pCategory, RandomSource pRandom, BlockPos pPos) void
BaseSpawner.setEntityId
(EntityType<?> pType, Level pLevel, RandomSource pRandom, BlockPos pPos) void
Spawner.setEntityId
(EntityType<?> pEntityType, RandomSource pRandom) static void
NaturalSpawner.spawnMobsForChunkGeneration
(ServerLevelAccessor pLevelAccessor, Holder<Biome> pBiome, ChunkPos pChunkPos, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.biome
Methods in net.minecraft.world.level.biome with parameters of type RandomSourceModifier and TypeMethodDescriptionboolean
AmbientParticleSettings.canSpawn
(RandomSource pRandom) BiomeSource.findBiomeHorizontal
(int pX, int pY, int pZ, int pRadius, int pIncrement, Predicate<Holder<Biome>> pBiomePredicate, RandomSource pRandom, boolean pFindClosest, Climate.Sampler pSampler) BiomeSource.findBiomeHorizontal
(int pX, int pY, int pZ, int pRadius, Predicate<Holder<Biome>> pBiomePredicate, RandomSource pRandom, Climate.Sampler pSampler) FixedBiomeSource.findBiomeHorizontal
(int p_220640_, int p_220641_, int p_220642_, int p_220643_, int p_220644_, Predicate<Holder<Biome>> p_220645_, RandomSource p_220646_, boolean p_220647_, Climate.Sampler p_220648_) -
Uses of RandomSource in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static void
AbstractCandleBlock.addParticlesAndSound
(Level pLevel, Vec3 pOffset, RandomSource pRandom) void
SaplingBlock.advanceTree
(ServerLevel pLevel, BlockPos pPos, BlockState pState, RandomSource pRandom) void
AbstractCandleBlock.animateTick
(BlockState p_220697_, Level p_220698_, BlockPos p_220699_, RandomSource p_220700_) void
BaseFireBlock.animateTick
(BlockState p_220763_, Level p_220764_, BlockPos p_220765_, RandomSource p_220766_) void
BeehiveBlock.animateTick
(BlockState p_220773_, Level p_220774_, BlockPos p_220775_, RandomSource p_220776_) void
BlastFurnaceBlock.animateTick
(BlockState p_220818_, Level p_220819_, BlockPos p_220820_, RandomSource p_220821_) void
Block.animateTick
(BlockState pState, Level pLevel, BlockPos pPos, RandomSource pRandom) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BrewingStandBlock.animateTick
(BlockState p_220883_, Level p_220884_, BlockPos p_220885_, RandomSource p_220886_) void
BrushableBlock.animateTick
(BlockState p_277390_, Level p_277525_, BlockPos p_278107_, RandomSource p_277574_) void
BubbleColumnBlock.animateTick
(BlockState p_220893_, Level p_220894_, BlockPos p_220895_, RandomSource p_220896_) void
CampfireBlock.animateTick
(BlockState p_220918_, Level p_220919_, BlockPos p_220920_, RandomSource p_220921_) void
CreakingHeartBlock.animateTick
(BlockState p_379556_, Level p_379594_, BlockPos p_379297_, RandomSource p_379301_) void
CryingObsidianBlock.animateTick
(BlockState p_221055_, Level p_221056_, BlockPos p_221057_, RandomSource p_221058_) void
DryVegetationBlock.animateTick
(BlockState p_401875_, Level p_401809_, BlockPos p_401789_, RandomSource p_401918_) void
EnchantingTableBlock.animateTick
(BlockState p_341263_, Level p_341303_, BlockPos p_340983_, RandomSource p_341147_) void
EnderChestBlock.animateTick
(BlockState p_221117_, Level p_221118_, BlockPos p_221119_, RandomSource p_221120_) void
EndGatewayBlock.animateTick
(BlockState p_221097_, Level p_221098_, BlockPos p_221099_, RandomSource p_221100_) void
EndPortalBlock.animateTick
(BlockState p_221102_, Level p_221103_, BlockPos p_221104_, RandomSource p_221105_) void
EndRodBlock.animateTick
(BlockState p_221107_, Level p_221108_, BlockPos p_221109_, RandomSource p_221110_) void
EyeblossomBlock.animateTick
(BlockState p_382850_, Level p_382933_, BlockPos p_382838_, RandomSource p_383190_) void
FallingBlock.animateTick
(BlockState p_221129_, Level p_221130_, BlockPos p_221131_, RandomSource p_221132_) void
FireflyBushBlock.animateTick
(BlockState p_401358_, Level p_401092_, BlockPos p_401110_, RandomSource p_401309_) void
FurnaceBlock.animateTick
(BlockState p_221253_, Level p_221254_, BlockPos p_221255_, RandomSource p_221256_) void
HangingMossBlock.animateTick
(BlockState p_379410_, Level p_379865_, BlockPos p_379365_, RandomSource p_380130_) void
LeavesBlock.animateTick
(BlockState p_221374_, Level p_221375_, BlockPos p_221376_, RandomSource p_221377_) void
LeverBlock.animateTick
(BlockState p_221395_, Level p_221396_, BlockPos p_221397_, RandomSource p_221398_) void
LightningRodBlock.animateTick
(BlockState p_221405_, Level p_221406_, BlockPos p_221407_, RandomSource p_221408_) void
MyceliumBlock.animateTick
(BlockState p_221789_, Level p_221790_, BlockPos p_221791_, RandomSource p_221792_) void
NetherPortalBlock.animateTick
(BlockState p_221794_, Level p_221795_, BlockPos p_221796_, RandomSource p_221797_) void
PointedDripstoneBlock.animateTick
(BlockState p_221870_, Level p_221871_, BlockPos p_221872_, RandomSource p_221873_) void
RedStoneOreBlock.animateTick
(BlockState p_221913_, Level p_221914_, BlockPos p_221915_, RandomSource p_221916_) void
RedstoneTorchBlock.animateTick
(BlockState p_221954_, Level p_221955_, BlockPos p_221956_, RandomSource p_221957_) void
RedstoneWallTorchBlock.animateTick
(BlockState p_221959_, Level p_221960_, BlockPos p_221961_, RandomSource p_221962_) void
RedStoneWireBlock.animateTick
(BlockState p_221932_, Level p_221933_, BlockPos p_221934_, RandomSource p_221935_) void
RepeaterBlock.animateTick
(BlockState p_221964_, Level p_221965_, BlockPos p_221966_, RandomSource p_221967_) void
RespawnAnchorBlock.animateTick
(BlockState p_221969_, Level p_221970_, BlockPos p_221971_, RandomSource p_221972_) void
SandBlock.animateTick
(BlockState p_401157_, Level p_401385_, BlockPos p_401240_, RandomSource p_401370_) void
SculkSensorBlock.animateTick
(BlockState p_222148_, Level p_222149_, BlockPos p_222150_, RandomSource p_222151_) void
SmokerBlock.animateTick
(BlockState p_222443_, Level p_222444_, BlockPos p_222445_, RandomSource p_222446_) void
SporeBlossomBlock.animateTick
(BlockState p_222503_, Level p_222504_, BlockPos p_222505_, RandomSource p_222506_) void
TerracottaBlock.animateTick
(BlockState p_401378_, Level p_401424_, BlockPos p_401051_, RandomSource p_401214_) void
TorchBlock.animateTick
(BlockState p_222593_, Level p_222594_, BlockPos p_222595_, RandomSource p_222596_) void
WallTorchBlock.animateTick
(BlockState p_222660_, Level p_222661_, BlockPos p_222662_, RandomSource p_222663_) void
WetSpongeBlock.animateTick
(BlockState p_222682_, Level p_222683_, BlockPos p_222684_, RandomSource p_222685_) void
WitherRoseBlock.animateTick
(BlockState p_222687_, Level p_222688_, BlockPos p_222689_, RandomSource p_222690_) private boolean
SculkVeinBlock.attemptPlaceSculk
(SculkSpreader pSpreader, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) int
SculkBehaviour.attemptUseCharge
(SculkSpreader.ChargeCursor pCursor, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) 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_) default void
ChangeOverTimeBlock.changeOverTime
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) private void
FireBlock.checkBurnOut
(Level pLevel, BlockPos pPos, int pChance, RandomSource pRandom, int pAge, Direction face) private BlockState
VineBlock.copyRandomFaces
(BlockState pSourceState, BlockState pSpreadState, RandomSource pRandom) default boolean
SculkBehaviour.depositCharge
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) static void
ChorusFlowerBlock.generatePlant
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, int pMaxHorizontalDistance) protected int
CaveVinesBlock.getBlocksToGrowWhenBonemealed
(RandomSource p_220928_) protected abstract int
GrowingPlantHeadBlock.getBlocksToGrowWhenBonemealed
(RandomSource pRandom) protected int
KelpBlock.getBlocksToGrowWhenBonemealed
(RandomSource p_221366_) static int
NetherVines.getBlocksToGrowWhenBonemealed
(RandomSource pRandom) protected int
TwistingVinesBlock.getBlocksToGrowWhenBonemealed
(RandomSource p_222649_) protected int
WeepingVinesBlock.getBlocksToGrowWhenBonemealed
(RandomSource p_222680_) private static int
FireBlock.getFireTickDelay
(RandomSource pRandom) Gets the delay before this block ticks again (without counting random ticks)private static int
FrogspawnBlock.getFrogspawnHatchDelay
(RandomSource pRandom) protected BlockState
CaveVinesBlock.getGrowIntoState
(BlockState p_220935_, RandomSource p_220936_) protected BlockState
GrowingPlantHeadBlock.getGrowIntoState
(BlockState pState, RandomSource pRandom) default Optional
<BlockState> ChangeOverTimeBlock.getNextState
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) static Rotation
Rotation.getRandom
(RandomSource pRandom) Chooses a random rotation.private BlockState
SculkBlock.getRandomGrowthState
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, boolean pIsWorldGeneration) SculkSpreader.ChargeCursor.getRandomizedNonCornerNeighbourOffsets
(RandomSource pRandom) private double
FrogspawnBlock.getRandomTadpolePositionOffset
(RandomSource pRandom) Rotation.getShuffled
(RandomSource pRandom) Get a list of all rotations in random order.GrowingPlantBlock.getStateForPlacement
(RandomSource pRandom) GrowingPlantHeadBlock.getStateForPlacement
(RandomSource p_374460_) private static BlockPos
SculkSpreader.ChargeCursor.getValidMovementPos
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) protected void
BambooStalkBlock.growBamboo
(BlockState pState, Level pLevel, BlockPos pPos, RandomSource pRandom, int pAge) boolean
MushroomBlock.growMushroom
(ServerLevel pLevel, BlockPos pPos, BlockState pState, RandomSource pRandom) static void
PointedDripstoneBlock.growStalactiteOrStalagmiteIfPossible
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) private static void
ChorusFlowerBlock.growTreeRecursive
(LevelAccessor pLevel, BlockPos pBranchPos, RandomSource pRandom, BlockPos pOriginalBranchPos, int pMaxHorizontalDistance, int pIterations) private void
FrogspawnBlock.hatchFrogspawn
(ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) boolean
AzaleaBlock.isBonemealSuccess
(Level p_220712_, RandomSource p_220713_, BlockPos p_220714_, BlockState p_220715_) boolean
BambooSaplingBlock.isBonemealSuccess
(Level p_220748_, RandomSource p_220749_, BlockPos p_220750_, BlockState p_220751_) boolean
BambooStalkBlock.isBonemealSuccess
(Level p_261870_, RandomSource p_261802_, BlockPos p_262123_, BlockState p_261972_) boolean
BigDripleafBlock.isBonemealSuccess
(Level p_220788_, RandomSource p_220789_, BlockPos p_220790_, BlockState p_220791_) boolean
BigDripleafStemBlock.isBonemealSuccess
(Level p_220808_, RandomSource p_220809_, BlockPos p_220810_, BlockState p_220811_) boolean
BonemealableBlock.isBonemealSuccess
(Level pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState) boolean
BonemealableFeaturePlacerBlock.isBonemealSuccess
(Level p_379855_, RandomSource p_380339_, BlockPos p_379438_, BlockState p_379693_) boolean
BushBlock.isBonemealSuccess
(Level p_401200_, RandomSource p_401387_, BlockPos p_401374_, BlockState p_401380_) boolean
CaveVinesBlock.isBonemealSuccess
(Level p_220930_, RandomSource p_220931_, BlockPos p_220932_, BlockState p_220933_) boolean
CaveVinesPlantBlock.isBonemealSuccess
(Level p_220943_, RandomSource p_220944_, BlockPos p_220945_, BlockState p_220946_) boolean
CocoaBlock.isBonemealSuccess
(Level p_220995_, RandomSource p_220996_, BlockPos p_220997_, BlockState p_220998_) boolean
CropBlock.isBonemealSuccess
(Level p_221045_, RandomSource p_221046_, BlockPos p_221047_, BlockState p_221048_) boolean
FireflyBushBlock.isBonemealSuccess
(Level p_401120_, RandomSource p_401417_, BlockPos p_401298_, BlockState p_401423_) boolean
FlowerBedBlock.isBonemealSuccess
(Level p_393489_, RandomSource p_394493_, BlockPos p_394603_, BlockState p_393700_) boolean
FungusBlock.isBonemealSuccess
(Level p_221248_, RandomSource p_221249_, BlockPos p_221250_, BlockState p_221251_) boolean
GlowLichenBlock.isBonemealSuccess
(Level p_221264_, RandomSource p_221265_, BlockPos p_221266_, BlockState p_221267_) boolean
GrassBlock.isBonemealSuccess
(Level p_221275_, RandomSource p_221276_, BlockPos p_221277_, BlockState p_221278_) boolean
GrowingPlantBodyBlock.isBonemealSuccess
(Level p_221290_, RandomSource p_221291_, BlockPos p_221292_, BlockState p_221293_) boolean
GrowingPlantHeadBlock.isBonemealSuccess
(Level p_221343_, RandomSource p_221344_, BlockPos p_221345_, BlockState p_221346_) boolean
HangingMossBlock.isBonemealSuccess
(Level p_380206_, RandomSource p_380151_, BlockPos p_379719_, BlockState p_379567_) boolean
MangroveLeavesBlock.isBonemealSuccess
(Level p_221437_, RandomSource p_221438_, BlockPos p_221439_, BlockState p_221440_) boolean
MangrovePropaguleBlock.isBonemealSuccess
(Level p_221463_, RandomSource p_221464_, BlockPos p_221465_, BlockState p_221466_) boolean
MossyCarpetBlock.isBonemealSuccess
(Level p_380168_, RandomSource p_380045_, BlockPos p_380299_, BlockState p_379595_) boolean
MushroomBlock.isBonemealSuccess
(Level p_221779_, RandomSource p_221780_, BlockPos p_221781_, BlockState p_221782_) boolean
NetherrackBlock.isBonemealSuccess
(Level p_221816_, RandomSource p_221817_, BlockPos p_221818_, BlockState p_221819_) boolean
NyliumBlock.isBonemealSuccess
(Level p_221830_, RandomSource p_221831_, BlockPos p_221832_, BlockState p_221833_) boolean
PitcherCropBlock.isBonemealSuccess
(Level p_277920_, RandomSource p_277594_, BlockPos p_277401_, BlockState p_277434_) boolean
RootedDirtBlock.isBonemealSuccess
(Level p_221979_, RandomSource p_221980_, BlockPos p_221981_, BlockState p_221982_) boolean
SaplingBlock.isBonemealSuccess
(Level p_222006_, RandomSource p_222007_, BlockPos p_222008_, BlockState p_222009_) boolean
SeagrassBlock.isBonemealSuccess
(Level p_222428_, RandomSource p_222429_, BlockPos p_222430_, BlockState p_222431_) boolean
SeaPickleBlock.isBonemealSuccess
(Level p_222418_, RandomSource p_222419_, BlockPos p_222420_, BlockState p_222421_) boolean
ShortDryGrassBlock.isBonemealSuccess
(Level p_401806_, RandomSource p_401772_, BlockPos p_401791_, BlockState p_401942_) boolean
SmallDripleafBlock.isBonemealSuccess
(Level p_222438_, RandomSource p_222439_, BlockPos p_222440_, BlockState p_222441_) boolean
StemBlock.isBonemealSuccess
(Level p_222533_, RandomSource p_222534_, BlockPos p_222535_, BlockState p_222536_) boolean
SweetBerryBushBlock.isBonemealSuccess
(Level p_222558_, RandomSource p_222559_, BlockPos p_222560_, BlockState p_222561_) boolean
TallDryGrassBlock.isBonemealSuccess
(Level p_401931_, RandomSource p_401815_, BlockPos p_401808_, BlockState p_401935_) boolean
TallFlowerBlock.isBonemealSuccess
(Level p_222573_, RandomSource p_222574_, BlockPos p_222575_, BlockState p_222576_) boolean
TallGrassBlock.isBonemealSuccess
(Level p_222583_, RandomSource p_222584_, BlockPos p_222585_, BlockState p_222586_) private static void
LeavesBlock.makeDrippingWaterParticles
(Level pLevel, BlockPos pPos, RandomSource pRandom, BlockState pBlockBelow, BlockPos pBelowPos) private void
LeavesBlock.makeFallingLeavesParticles
(Level pLevel, BlockPos pPos, RandomSource pRandom, BlockState pBlockBelow, BlockPos pBelowPos) default void
SculkBehaviour.onDischarged
(LevelAccessor pLevel, BlockState pState, BlockPos pPos, RandomSource pRandom) void
SculkVeinBlock.onDischarged
(LevelAccessor p_222359_, BlockState p_222360_, BlockPos p_222361_, RandomSource p_222362_) void
AzaleaBlock.performBonemeal
(ServerLevel p_220707_, RandomSource p_220708_, BlockPos p_220709_, BlockState p_220710_) void
BambooSaplingBlock.performBonemeal
(ServerLevel p_220743_, RandomSource p_220744_, BlockPos p_220745_, BlockState p_220746_) void
BambooStalkBlock.performBonemeal
(ServerLevel p_261845_, RandomSource p_262034_, BlockPos p_261955_, BlockState p_261685_) void
BigDripleafBlock.performBonemeal
(ServerLevel p_220783_, RandomSource p_220784_, BlockPos p_220785_, BlockState p_220786_) void
BigDripleafStemBlock.performBonemeal
(ServerLevel p_220803_, RandomSource p_220804_, BlockPos p_220805_, BlockState p_220806_) void
BonemealableBlock.performBonemeal
(ServerLevel pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState) void
BonemealableFeaturePlacerBlock.performBonemeal
(ServerLevel p_380244_, RandomSource p_379395_, BlockPos p_380245_, BlockState p_379519_) void
BushBlock.performBonemeal
(ServerLevel p_401091_, RandomSource p_401012_, BlockPos p_401218_, BlockState p_401130_) void
CaveVinesBlock.performBonemeal
(ServerLevel p_220923_, RandomSource p_220924_, BlockPos p_220925_, BlockState p_220926_) void
CaveVinesPlantBlock.performBonemeal
(ServerLevel p_220938_, RandomSource p_220939_, BlockPos p_220940_, BlockState p_220941_) void
CocoaBlock.performBonemeal
(ServerLevel p_220990_, RandomSource p_220991_, BlockPos p_220992_, BlockState p_220993_) void
CropBlock.performBonemeal
(ServerLevel p_221040_, RandomSource p_221041_, BlockPos p_221042_, BlockState p_221043_) void
FireflyBushBlock.performBonemeal
(ServerLevel p_401415_, RandomSource p_401124_, BlockPos p_401112_, BlockState p_401260_) void
FlowerBedBlock.performBonemeal
(ServerLevel p_394140_, RandomSource p_394672_, BlockPos p_393771_, BlockState p_394008_) void
FungusBlock.performBonemeal
(ServerLevel p_221243_, RandomSource p_221244_, BlockPos p_221245_, BlockState p_221246_) void
GlowLichenBlock.performBonemeal
(ServerLevel p_221259_, RandomSource p_221260_, BlockPos p_221261_, BlockState p_221262_) void
GrassBlock.performBonemeal
(ServerLevel p_221270_, RandomSource p_221271_, BlockPos p_221272_, BlockState p_221273_) void
GrowingPlantBodyBlock.performBonemeal
(ServerLevel p_221285_, RandomSource p_221286_, BlockPos p_221287_, BlockState p_221288_) void
GrowingPlantHeadBlock.performBonemeal
(ServerLevel p_221337_, RandomSource p_221338_, BlockPos p_221339_, BlockState p_221340_) void
HangingMossBlock.performBonemeal
(ServerLevel p_379337_, RandomSource p_379974_, BlockPos p_379496_, BlockState p_379559_) void
MangroveLeavesBlock.performBonemeal
(ServerLevel p_221427_, RandomSource p_221428_, BlockPos p_221429_, BlockState p_221430_) void
MangrovePropaguleBlock.performBonemeal
(ServerLevel p_221451_, RandomSource p_221452_, BlockPos p_221453_, BlockState p_221454_) void
MossyCarpetBlock.performBonemeal
(ServerLevel p_379402_, RandomSource p_379670_, BlockPos p_379387_, BlockState p_379934_) void
MushroomBlock.performBonemeal
(ServerLevel p_221769_, RandomSource p_221770_, BlockPos p_221771_, BlockState p_221772_) void
NetherrackBlock.performBonemeal
(ServerLevel p_221811_, RandomSource p_221812_, BlockPos p_221813_, BlockState p_221814_) void
NyliumBlock.performBonemeal
(ServerLevel p_221825_, RandomSource p_221826_, BlockPos p_221827_, BlockState p_221828_) void
PitcherCropBlock.performBonemeal
(ServerLevel p_277717_, RandomSource p_277870_, BlockPos p_277836_, BlockState p_278034_) void
RootedDirtBlock.performBonemeal
(ServerLevel p_221974_, RandomSource p_221975_, BlockPos p_221976_, BlockState p_221977_) void
SaplingBlock.performBonemeal
(ServerLevel p_221996_, RandomSource p_221997_, BlockPos p_221998_, BlockState p_221999_) void
SeagrassBlock.performBonemeal
(ServerLevel p_222423_, RandomSource p_222424_, BlockPos p_222425_, BlockState p_222426_) void
SeaPickleBlock.performBonemeal
(ServerLevel p_222413_, RandomSource p_222414_, BlockPos p_222415_, BlockState p_222416_) void
ShortDryGrassBlock.performBonemeal
(ServerLevel p_401950_, RandomSource p_401831_, BlockPos p_401948_, BlockState p_401868_) void
SmallDripleafBlock.performBonemeal
(ServerLevel p_222433_, RandomSource p_222434_, BlockPos p_222435_, BlockState p_222436_) void
StemBlock.performBonemeal
(ServerLevel p_222528_, RandomSource p_222529_, BlockPos p_222530_, BlockState p_222531_) void
SweetBerryBushBlock.performBonemeal
(ServerLevel p_222553_, RandomSource p_222554_, BlockPos p_222555_, BlockState p_222556_) void
TallDryGrassBlock.performBonemeal
(ServerLevel p_401804_, RandomSource p_401769_, BlockPos p_401777_, BlockState p_401790_) void
TallFlowerBlock.performBonemeal
(ServerLevel p_222568_, RandomSource p_222569_, BlockPos p_222570_, BlockState p_222571_) void
TallGrassBlock.performBonemeal
(ServerLevel p_222578_, RandomSource p_222579_, BlockPos p_222580_, BlockState p_222581_) private void
NyliumBlock.place
(Registry<ConfiguredFeature<?, ?>> pFeatureRegistry, ResourceKey<ConfiguredFeature<?, ?>> pFeatureKey, ServerLevel pLevel, ChunkGenerator pChunkGenerator, RandomSource pRandom, BlockPos pPos) static void
MossyCarpetBlock.placeAt
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, int pFlags) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, Direction pDirection) protected void
BambooSaplingBlock.randomTick
(BlockState p_220753_, ServerLevel p_220754_, BlockPos p_220755_, RandomSource p_220756_) protected void
BambooStalkBlock.randomTick
(BlockState p_261931_, ServerLevel p_261751_, BlockPos p_261616_, RandomSource p_261766_) protected void
BeetrootBlock.randomTick
(BlockState p_220778_, ServerLevel p_220779_, BlockPos p_220780_, RandomSource p_220781_) protected void
BuddingAmethystBlock.randomTick
(BlockState p_220898_, ServerLevel p_220899_, BlockPos p_220900_, RandomSource p_220901_) protected void
CactusBlock.randomTick
(BlockState p_220913_, ServerLevel p_220914_, BlockPos p_220915_, RandomSource p_220916_) protected void
ChorusFlowerBlock.randomTick
(BlockState p_220980_, ServerLevel p_220981_, BlockPos p_220982_, RandomSource p_220983_) protected void
CocoaBlock.randomTick
(BlockState p_221000_, ServerLevel p_221001_, BlockPos p_221002_, RandomSource p_221003_) protected void
CropBlock.randomTick
(BlockState p_221050_, ServerLevel p_221051_, BlockPos p_221052_, RandomSource p_221053_) protected void
EyeblossomBlock.randomTick
(BlockState p_382824_, ServerLevel p_382831_, BlockPos p_382957_, RandomSource p_382888_) protected void
FarmBlock.randomTick
(BlockState p_221139_, ServerLevel p_221140_, BlockPos p_221141_, RandomSource p_221142_) protected void
FlowerPotBlock.randomTick
(BlockState p_382880_, ServerLevel p_383169_, BlockPos p_382955_, RandomSource p_383144_) protected void
GrowingPlantHeadBlock.randomTick
(BlockState p_221350_, ServerLevel p_221351_, BlockPos p_221352_, RandomSource p_221353_) protected void
IceBlock.randomTick
(BlockState p_221355_, ServerLevel p_221356_, BlockPos p_221357_, RandomSource p_221358_) protected void
LeavesBlock.randomTick
(BlockState p_221379_, ServerLevel p_221380_, BlockPos p_221381_, RandomSource p_221382_) protected void
LiquidBlock.randomTick
(BlockState p_221410_, ServerLevel p_221411_, BlockPos p_221412_, RandomSource p_221413_) protected void
MangrovePropaguleBlock.randomTick
(BlockState p_221488_, ServerLevel p_221489_, BlockPos p_221490_, RandomSource p_221491_) protected void
MushroomBlock.randomTick
(BlockState p_221784_, ServerLevel p_221785_, BlockPos p_221786_, RandomSource p_221787_) protected void
NetherPortalBlock.randomTick
(BlockState p_221799_, ServerLevel p_221800_, BlockPos p_221801_, RandomSource p_221802_) protected void
NetherWartBlock.randomTick
(BlockState p_221806_, ServerLevel p_221807_, BlockPos p_221808_, RandomSource p_221809_) protected void
NyliumBlock.randomTick
(BlockState p_221835_, ServerLevel p_221836_, BlockPos p_221837_, RandomSource p_221838_) void
PitcherCropBlock.randomTick
(BlockState p_277950_, ServerLevel p_277589_, BlockPos p_277937_, RandomSource p_277887_) protected void
PointedDripstoneBlock.randomTick
(BlockState p_221883_, ServerLevel p_221884_, BlockPos p_221885_, RandomSource p_221886_) protected void
RedStoneOreBlock.randomTick
(BlockState p_221918_, ServerLevel p_221919_, BlockPos p_221920_, RandomSource p_221921_) protected void
SaplingBlock.randomTick
(BlockState p_222011_, ServerLevel p_222012_, BlockPos p_222013_, RandomSource p_222014_) protected void
SnowLayerBlock.randomTick
(BlockState p_222448_, ServerLevel p_222449_, BlockPos p_222450_, RandomSource p_222451_) protected void
SpreadingSnowyDirtBlock.randomTick
(BlockState p_222508_, ServerLevel p_222509_, BlockPos p_222510_, RandomSource p_222511_) protected void
StemBlock.randomTick
(BlockState p_222538_, ServerLevel p_222539_, BlockPos p_222540_, RandomSource p_222541_) protected void
SugarCaneBlock.randomTick
(BlockState p_222548_, ServerLevel p_222549_, BlockPos p_222550_, RandomSource p_222551_) protected void
SweetBerryBushBlock.randomTick
(BlockState p_222563_, ServerLevel p_222564_, BlockPos p_222565_, RandomSource p_222566_) void
TorchflowerCropBlock.randomTick
(BlockState p_273361_, ServerLevel p_273515_, BlockPos p_273546_, RandomSource p_273261_) protected void
TurtleEggBlock.randomTick
(BlockState p_222644_, ServerLevel p_222645_, BlockPos p_222646_, RandomSource p_222647_) protected void
VineBlock.randomTick
(BlockState p_222655_, ServerLevel p_222656_, BlockPos p_222657_, RandomSource p_222658_) protected void
WeatheringCopperBulbBlock.randomTick
(BlockState p_309163_, ServerLevel p_309177_, BlockPos p_309033_, RandomSource p_308946_) protected void
WeatheringCopperDoorBlock.randomTick
(BlockState p_308942_, ServerLevel p_309109_, BlockPos p_309034_, RandomSource p_309156_) protected void
WeatheringCopperFullBlock.randomTick
(BlockState p_222665_, ServerLevel p_222666_, BlockPos p_222667_, RandomSource p_222668_) protected void
WeatheringCopperGrateBlock.randomTick
(BlockState p_309111_, ServerLevel p_309121_, BlockPos p_309090_, RandomSource p_308865_) protected void
WeatheringCopperSlabBlock.randomTick
(BlockState p_222670_, ServerLevel p_222671_, BlockPos p_222672_, RandomSource p_222673_) protected void
WeatheringCopperStairBlock.randomTick
(BlockState p_222675_, ServerLevel p_222676_, BlockPos p_222677_, RandomSource p_222678_) protected void
WeatheringCopperTrapDoorBlock.randomTick
(BlockState p_309138_, ServerLevel p_309005_, BlockPos p_309123_, RandomSource p_309094_) protected abstract void
LeavesBlock.spawnFallingLeavesParticle
(Level pLevel, BlockPos pPos, RandomSource pRandom) protected void
TintedParticleLeavesBlock.spawnFallingLeavesParticle
(Level p_399553_, BlockPos p_400280_, RandomSource p_400310_) protected void
UntintedParticleLeavesBlock.spawnFallingLeavesParticle
(Level p_399654_, BlockPos p_399778_, RandomSource p_400146_) private static void
RedStoneWireBlock.spawnParticlesAlongLine
(Level pLevel, RandomSource pRandom, BlockPos pPos, int pColor, Direction pDirection, Direction pPerpendicularDirection, float pStart, float pEnd) private void
FrogspawnBlock.spawnTadpoles
(ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) void
EyeblossomBlock.Type.spawnTransformParticle
(ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, Direction pSpreadDirection, RandomSource pRandom, boolean pMarkForPostprocessing) MultifaceSpreader.spreadFromRandomFaceTowardRandomDirection
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) protected void
AbstractCauldronBlock.tick
(BlockState p_220702_, ServerLevel p_220703_, BlockPos p_220704_, RandomSource p_220705_) protected void
BambooStalkBlock.tick
(BlockState p_261612_, ServerLevel p_261527_, BlockPos p_261846_, RandomSource p_261638_) protected void
BarrelBlock.tick
(BlockState p_220758_, ServerLevel p_220759_, BlockPos p_220760_, RandomSource p_220761_) protected void
BasePressurePlateBlock.tick
(BlockState p_220768_, ServerLevel p_220769_, BlockPos p_220770_, RandomSource p_220771_) protected void
BigDripleafBlock.tick
(BlockState p_220798_, ServerLevel p_220799_, BlockPos p_220800_, RandomSource p_220801_) protected void
BigDripleafStemBlock.tick
(BlockState p_220813_, ServerLevel p_220814_, BlockPos p_220815_, RandomSource p_220816_) void
BrushableBlock.tick
(BlockState p_277544_, ServerLevel p_277779_, BlockPos p_278019_, RandomSource p_277471_) protected void
BubbleColumnBlock.tick
(BlockState p_220888_, ServerLevel p_220889_, BlockPos p_220890_, RandomSource p_220891_) protected void
ButtonBlock.tick
(BlockState p_220903_, ServerLevel p_220904_, BlockPos p_220905_, RandomSource p_220906_) protected void
CactusBlock.tick
(BlockState p_220908_, ServerLevel p_220909_, BlockPos p_220910_, RandomSource p_220911_) protected void
ChestBlock.tick
(BlockState p_220958_, ServerLevel p_220959_, BlockPos p_220960_, RandomSource p_220961_) protected void
ChorusFlowerBlock.tick
(BlockState p_220975_, ServerLevel p_220976_, BlockPos p_220977_, RandomSource p_220978_) protected void
ChorusPlantBlock.tick
(BlockState p_220985_, ServerLevel p_220986_, BlockPos p_220987_, RandomSource p_220988_) protected void
CommandBlock.tick
(BlockState p_221005_, ServerLevel p_221006_, BlockPos p_221007_, RandomSource p_221008_) protected void
ComparatorBlock.tick
(BlockState p_221010_, ServerLevel p_221011_, BlockPos p_221012_, RandomSource p_221013_) protected void
ComposterBlock.tick
(BlockState p_221015_, ServerLevel p_221016_, BlockPos p_221017_, RandomSource p_221018_) protected void
CoralBlock.tick
(BlockState p_221020_, ServerLevel p_221021_, BlockPos p_221022_, RandomSource p_221023_) protected void
CoralFanBlock.tick
(BlockState p_221025_, ServerLevel p_221026_, BlockPos p_221027_, RandomSource p_221028_) protected void
CoralPlantBlock.tick
(BlockState p_221030_, ServerLevel p_221031_, BlockPos p_221032_, RandomSource p_221033_) protected void
CoralWallFanBlock.tick
(BlockState p_221035_, ServerLevel p_221036_, BlockPos p_221037_, RandomSource p_221038_) protected void
CrafterBlock.tick
(BlockState p_307471_, ServerLevel p_307641_, BlockPos p_307339_, RandomSource p_307565_) protected void
CreakingHeartBlock.tick
(BlockState p_394029_, ServerLevel p_394479_, BlockPos p_394306_, RandomSource p_393870_) protected void
DetectorRailBlock.tick
(BlockState p_221060_, ServerLevel p_221061_, BlockPos p_221062_, RandomSource p_221063_) protected void
DiodeBlock.tick
(BlockState p_221065_, ServerLevel p_221066_, BlockPos p_221067_, RandomSource p_221068_) protected void
DirtPathBlock.tick
(BlockState p_221070_, ServerLevel p_221071_, BlockPos p_221072_, RandomSource p_221073_) protected void
DispenserBlock.tick
(BlockState p_221075_, ServerLevel p_221076_, BlockPos p_221077_, RandomSource p_221078_) protected void
EnderChestBlock.tick
(BlockState p_221112_, ServerLevel p_221113_, BlockPos p_221114_, RandomSource p_221115_) protected void
EyeblossomBlock.tick
(BlockState p_382808_, ServerLevel p_383005_, BlockPos p_383211_, RandomSource p_383088_) protected void
FallingBlock.tick
(BlockState p_221124_, ServerLevel p_221125_, BlockPos p_221126_, RandomSource p_221127_) protected void
FarmBlock.tick
(BlockState p_221134_, ServerLevel p_221135_, BlockPos p_221136_, RandomSource p_221137_) protected void
FireBlock.tick
(BlockState p_221160_, ServerLevel p_221161_, BlockPos p_221162_, RandomSource p_221163_) protected void
FrogspawnBlock.tick
(BlockState p_221194_, ServerLevel p_221195_, BlockPos p_221196_, RandomSource p_221197_) protected void
FrostedIceBlock.tick
(BlockState p_221233_, ServerLevel p_221234_, BlockPos p_221235_, RandomSource p_221236_) protected void
GrowingPlantBlock.tick
(BlockState p_221280_, ServerLevel p_221281_, BlockPos p_221282_, RandomSource p_221283_) protected void
HangingMossBlock.tick
(BlockState p_381085_, ServerLevel p_381014_, BlockPos p_381010_, RandomSource p_380962_) protected void
LeavesBlock.tick
(BlockState p_221369_, ServerLevel p_221370_, BlockPos p_221371_, RandomSource p_221372_) protected void
LecternBlock.tick
(BlockState p_221388_, ServerLevel p_221389_, BlockPos p_221390_, RandomSource p_221391_) protected void
LightningRodBlock.tick
(BlockState p_221400_, ServerLevel p_221401_, BlockPos p_221402_, RandomSource p_221403_) protected void
MagmaBlock.tick
(BlockState p_221415_, ServerLevel p_221416_, BlockPos p_221417_, RandomSource p_221418_) protected void
ObserverBlock.tick
(BlockState p_221840_, ServerLevel p_221841_, BlockPos p_221842_, RandomSource p_221843_) protected void
PointedDripstoneBlock.tick
(BlockState p_221865_, ServerLevel p_221866_, BlockPos p_221867_, RandomSource p_221868_) protected void
RedstoneLampBlock.tick
(BlockState p_221937_, ServerLevel p_221938_, BlockPos p_221939_, RandomSource p_221940_) protected void
RedstoneTorchBlock.tick
(BlockState p_221949_, ServerLevel p_221950_, BlockPos p_221951_, RandomSource p_221952_) protected void
ScaffoldingBlock.tick
(BlockState p_222019_, ServerLevel p_222020_, BlockPos p_222021_, RandomSource p_222022_) protected void
SculkCatalystBlock.tick
(BlockState p_222104_, ServerLevel p_222105_, BlockPos p_222106_, RandomSource p_222107_) protected void
SculkSensorBlock.tick
(BlockState p_222137_, ServerLevel p_222138_, BlockPos p_222139_, RandomSource p_222140_) protected void
SculkShriekerBlock.tick
(BlockState p_222187_, ServerLevel p_222188_, BlockPos p_222189_, RandomSource p_222190_) void
SnifferEggBlock.tick
(BlockState p_277841_, ServerLevel p_277739_, BlockPos p_277692_, RandomSource p_277973_) protected void
SoulSandBlock.tick
(BlockState p_222457_, ServerLevel p_222458_, BlockPos p_222459_, RandomSource p_222460_) protected void
SugarCaneBlock.tick
(BlockState p_222543_, ServerLevel p_222544_, BlockPos p_222545_, RandomSource p_222546_) protected void
TargetBlock.tick
(BlockState p_222588_, ServerLevel p_222589_, BlockPos p_222590_, RandomSource p_222591_) protected void
TestBlock.tick
(BlockState p_397712_, ServerLevel p_397112_, BlockPos p_397466_, RandomSource p_397531_) protected void
TripWireBlock.tick
(BlockState p_222598_, ServerLevel p_222599_, BlockPos p_222600_, RandomSource p_222601_) protected void
TripWireHookBlock.tick
(BlockState p_222610_, ServerLevel p_222611_, BlockPos p_222612_, RandomSource p_222613_) private boolean
EyeblossomBlock.tryChangingState
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) protected void
BaseCoralPlantTypeBlock.tryScheduleDieTick
(BlockState pState, BlockGetter pLevel, ScheduledTickAccess pScheduledTickAccess, RandomSource pRandom, BlockPos pPos) void
SculkSpreader.ChargeCursor.update
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, SculkSpreader pSpreader, boolean pShouldConvertBlocks) void
SculkSpreader.updateCursors
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, boolean pShouldConvertBlocks) protected BlockState
AmethystClusterBlock.updateShape
(BlockState p_152036_, LevelReader p_374202_, ScheduledTickAccess p_374490_, BlockPos p_152040_, Direction p_152037_, BlockPos p_152041_, BlockState p_152038_, RandomSource p_374353_) protected BlockState
AttachedStemBlock.updateShape
(BlockState p_48848_, LevelReader p_374143_, ScheduledTickAccess p_374241_, BlockPos p_48852_, Direction p_48849_, BlockPos p_48853_, BlockState p_48850_, RandomSource p_374410_) protected BlockState
BambooSaplingBlock.updateShape
(BlockState p_48990_, LevelReader p_374098_, ScheduledTickAccess p_374342_, BlockPos p_48994_, Direction p_48991_, BlockPos p_48995_, BlockState p_48992_, RandomSource p_374069_) protected BlockState
BambooStalkBlock.updateShape
(BlockState p_261476_, LevelReader p_374219_, ScheduledTickAccess p_374048_, BlockPos p_261876_, Direction p_261512_, BlockPos p_262140_, BlockState p_262167_, RandomSource p_374194_) protected BlockState
BannerBlock.updateShape
(BlockState p_49029_, LevelReader p_374424_, ScheduledTickAccess p_374052_, BlockPos p_49033_, Direction p_49030_, BlockPos p_49034_, BlockState p_49031_, RandomSource p_374142_) protected BlockState
BarrierBlock.updateShape
(BlockState p_296123_, LevelReader p_374369_, ScheduledTickAccess p_374403_, BlockPos p_294499_, Direction p_294509_, BlockPos p_295044_, BlockState p_296367_, RandomSource p_374441_) protected BlockState
BaseCoralPlantTypeBlock.updateShape
(BlockState p_49173_, LevelReader p_374072_, ScheduledTickAccess p_374103_, BlockPos p_49177_, Direction p_49174_, BlockPos p_49178_, BlockState p_49175_, RandomSource p_374124_) protected BlockState
BaseCoralWallFanBlock.updateShape
(BlockState p_49210_, LevelReader p_374317_, ScheduledTickAccess p_374285_, BlockPos p_49214_, Direction p_49211_, BlockPos p_49215_, BlockState p_49212_, RandomSource p_374146_) protected BlockState
BasePressurePlateBlock.updateShape
(BlockState p_49329_, LevelReader p_374394_, ScheduledTickAccess p_374263_, BlockPos p_49333_, Direction p_49330_, BlockPos p_49334_, BlockState p_49331_, RandomSource p_374547_) protected BlockState
BaseRailBlock.updateShape
(BlockState p_152151_, LevelReader p_374498_, ScheduledTickAccess p_374379_, BlockPos p_152155_, Direction p_152152_, BlockPos p_152156_, BlockState p_152153_, RandomSource p_374573_) protected BlockState
BaseTorchBlock.updateShape
(BlockState p_304418_, LevelReader p_374159_, ScheduledTickAccess p_374152_, BlockPos p_304633_, Direction p_304475_, BlockPos p_304603_, BlockState p_304669_, RandomSource p_374111_) protected BlockState
BedBlock.updateShape
(BlockState p_49525_, LevelReader p_374508_, ScheduledTickAccess p_374420_, BlockPos p_49529_, Direction p_49526_, BlockPos p_49530_, BlockState p_49527_, RandomSource p_374423_) protected BlockState
BeehiveBlock.updateShape
(BlockState p_49639_, LevelReader p_374043_, ScheduledTickAccess p_374351_, BlockPos p_49643_, Direction p_49640_, BlockPos p_49644_, BlockState p_49641_, RandomSource p_374258_) protected BlockState
BellBlock.updateShape
(BlockState p_49744_, LevelReader p_374108_, ScheduledTickAccess p_374552_, BlockPos p_49748_, Direction p_49745_, BlockPos p_49749_, BlockState p_49746_, RandomSource p_374282_) protected BlockState
BigDripleafBlock.updateShape
(BlockState p_152293_, LevelReader p_374459_, ScheduledTickAccess p_374181_, BlockPos p_152297_, Direction p_152294_, BlockPos p_152298_, BlockState p_152295_, RandomSource p_374504_) protected BlockState
BigDripleafStemBlock.updateShape
(BlockState p_152369_, LevelReader p_374512_, ScheduledTickAccess p_374089_, BlockPos p_152373_, Direction p_152370_, BlockPos p_152374_, BlockState p_152371_, RandomSource p_374360_) BrushableBlock.updateShape
(BlockState p_277801_, LevelReader p_374239_, ScheduledTickAccess p_374044_, BlockPos p_278111_, Direction p_277455_, BlockPos p_277904_, BlockState p_277832_, RandomSource p_374558_) protected BlockState
BubbleColumnBlock.updateShape
(BlockState p_50990_, LevelReader p_374232_, ScheduledTickAccess p_374471_, BlockPos p_50994_, Direction p_50991_, BlockPos p_50995_, BlockState p_50992_, RandomSource p_374033_) protected BlockState
CactusBlock.updateShape
(BlockState p_51157_, LevelReader p_374196_, ScheduledTickAccess p_374319_, BlockPos p_51161_, Direction p_51158_, BlockPos p_51162_, BlockState p_51159_, RandomSource p_374070_) protected BlockState
CakeBlock.updateShape
(BlockState p_51213_, LevelReader p_374144_, ScheduledTickAccess p_374554_, BlockPos p_51217_, Direction p_51214_, BlockPos p_51218_, BlockState p_51215_, RandomSource p_374177_) protected BlockState
CampfireBlock.updateShape
(BlockState p_51298_, LevelReader p_374562_, ScheduledTickAccess p_374439_, BlockPos p_51302_, Direction p_51299_, BlockPos p_51303_, BlockState p_51300_, RandomSource p_374147_) protected BlockState
CandleBlock.updateShape
(BlockState p_152833_, LevelReader p_374497_, ScheduledTickAccess p_374340_, BlockPos p_152837_, Direction p_152834_, BlockPos p_152838_, BlockState p_152835_, RandomSource p_374318_) protected BlockState
CandleCakeBlock.updateShape
(BlockState p_152898_, LevelReader p_374136_, ScheduledTickAccess p_374358_, BlockPos p_152902_, Direction p_152899_, BlockPos p_152903_, BlockState p_152900_, RandomSource p_374518_) protected BlockState
CarpetBlock.updateShape
(BlockState p_152926_, LevelReader p_374550_, ScheduledTickAccess p_374188_, BlockPos p_152930_, Direction p_152927_, BlockPos p_152931_, BlockState p_152928_, RandomSource p_374375_) protected BlockState
CeilingHangingSignBlock.updateShape
(BlockState p_251270_, LevelReader p_374479_, ScheduledTickAccess p_374489_, BlockPos p_249685_, Direction p_250331_, BlockPos p_251506_, BlockState p_249591_, RandomSource p_374041_) protected BlockState
ChainBlock.updateShape
(BlockState p_51461_, LevelReader p_374312_, ScheduledTickAccess p_374505_, BlockPos p_51465_, Direction p_51462_, BlockPos p_51466_, BlockState p_51463_, RandomSource p_374235_) protected BlockState
ChestBlock.updateShape
(BlockState p_51555_, LevelReader p_374487_, ScheduledTickAccess p_374060_, BlockPos p_51559_, Direction p_51556_, BlockPos p_51560_, BlockState p_51557_, RandomSource p_374212_) protected BlockState
ChorusFlowerBlock.updateShape
(BlockState p_51687_, LevelReader p_374269_, ScheduledTickAccess p_374493_, BlockPos p_51691_, Direction p_51688_, BlockPos p_51692_, BlockState p_51689_, RandomSource p_374130_) protected BlockState
ChorusPlantBlock.updateShape
(BlockState p_51728_, LevelReader p_374320_, ScheduledTickAccess p_374500_, BlockPos p_51732_, Direction p_51729_, BlockPos p_51733_, BlockState p_51730_, RandomSource p_374170_) protected BlockState
CocoaBlock.updateShape
(BlockState p_51771_, LevelReader p_374569_, ScheduledTickAccess p_374118_, BlockPos p_51775_, Direction p_51772_, BlockPos p_51776_, BlockState p_51773_, RandomSource p_374448_) ComparatorBlock.updateShape
(BlockState p_301069_, LevelReader p_374094_, ScheduledTickAccess p_374252_, BlockPos p_301025_, Direction p_301249_, BlockPos p_301045_, BlockState p_301318_, RandomSource p_374228_) protected BlockState
ConcretePowderBlock.updateShape
(BlockState p_52074_, LevelReader p_374245_, ScheduledTickAccess p_374286_, BlockPos p_52078_, Direction p_52075_, BlockPos p_52079_, BlockState p_52076_, RandomSource p_374119_) protected BlockState
ConduitBlock.updateShape
(BlockState p_52111_, LevelReader p_374404_, ScheduledTickAccess p_374238_, BlockPos p_52115_, Direction p_52112_, BlockPos p_52116_, BlockState p_52113_, RandomSource p_374453_) protected BlockState
CoralBlock.updateShape
(BlockState p_52143_, LevelReader p_374246_, ScheduledTickAccess p_374434_, BlockPos p_52147_, Direction p_52144_, BlockPos p_52148_, BlockState p_52145_, RandomSource p_374050_) protected BlockState
CoralFanBlock.updateShape
(BlockState p_52159_, LevelReader p_374555_, ScheduledTickAccess p_374197_, BlockPos p_52163_, Direction p_52160_, BlockPos p_52164_, BlockState p_52161_, RandomSource p_374083_) protected BlockState
CoralPlantBlock.updateShape
(BlockState p_52183_, LevelReader p_374499_, ScheduledTickAccess p_374397_, BlockPos p_52187_, Direction p_52184_, BlockPos p_52188_, BlockState p_52185_, RandomSource p_374079_) protected BlockState
CoralWallFanBlock.updateShape
(BlockState p_52210_, LevelReader p_374445_, ScheduledTickAccess p_374341_, BlockPos p_52214_, Direction p_52211_, BlockPos p_52215_, BlockState p_52212_, RandomSource p_374523_) protected BlockState
CreakingHeartBlock.updateShape
(BlockState p_379552_, LevelReader p_379446_, ScheduledTickAccess p_379318_, BlockPos p_379343_, Direction p_380340_, BlockPos p_380150_, BlockState p_379791_, RandomSource p_379888_) protected BlockState
DecoratedPotBlock.updateShape
(BlockState p_276307_, LevelReader p_374037_, ScheduledTickAccess p_374267_, BlockPos p_276270_, Direction p_276322_, BlockPos p_276312_, BlockState p_276280_, RandomSource p_374464_) protected BlockState
DirtPathBlock.updateShape
(BlockState p_153152_, LevelReader p_374225_, ScheduledTickAccess p_374127_, BlockPos p_153156_, Direction p_153153_, BlockPos p_153157_, BlockState p_153154_, RandomSource p_374236_) protected BlockState
DoorBlock.updateShape
(BlockState p_52796_, LevelReader p_374501_, ScheduledTickAccess p_374380_, BlockPos p_52800_, Direction p_52797_, BlockPos p_52801_, BlockState p_52798_, RandomSource p_374395_) protected BlockState
DoublePlantBlock.updateShape
(BlockState p_52894_, LevelReader p_374107_, ScheduledTickAccess p_374359_, BlockPos p_52898_, Direction p_52895_, BlockPos p_52899_, BlockState p_52896_, RandomSource p_374454_) protected BlockState
EnderChestBlock.updateShape
(BlockState p_53160_, LevelReader p_374322_, ScheduledTickAccess p_374149_, BlockPos p_53164_, Direction p_53161_, BlockPos p_53165_, BlockState p_53162_, RandomSource p_374199_) protected BlockState
FaceAttachedHorizontalDirectionalBlock.updateShape
(BlockState p_53190_, LevelReader p_374233_, ScheduledTickAccess p_374169_, BlockPos p_53194_, Direction p_53191_, BlockPos p_53195_, BlockState p_53192_, RandomSource p_374040_) protected BlockState
FallingBlock.updateShape
(BlockState p_53226_, LevelReader p_374327_, ScheduledTickAccess p_374521_, BlockPos p_53230_, Direction p_53227_, BlockPos p_53231_, BlockState p_53228_, RandomSource p_374287_) protected BlockState
FarmBlock.updateShape
(BlockState p_53276_, LevelReader p_374411_, ScheduledTickAccess p_374221_, BlockPos p_53280_, Direction p_53277_, BlockPos p_53281_, BlockState p_53278_, RandomSource p_374244_) protected BlockState
FenceBlock.updateShape
(BlockState p_53323_, LevelReader p_374492_, ScheduledTickAccess p_374576_, BlockPos p_53327_, Direction p_53324_, BlockPos p_53328_, BlockState p_53325_, RandomSource p_374530_) protected BlockState
FenceGateBlock.updateShape
(BlockState p_53382_, LevelReader p_374250_, ScheduledTickAccess p_374455_, BlockPos p_53386_, Direction p_53383_, BlockPos p_53387_, BlockState p_53384_, RandomSource p_374522_) protected BlockState
FireBlock.updateShape
(BlockState p_53458_, LevelReader p_374288_, ScheduledTickAccess p_374582_, BlockPos p_53462_, Direction p_53459_, BlockPos p_53463_, BlockState p_53460_, RandomSource p_374484_) protected BlockState
FlowerPotBlock.updateShape
(BlockState p_53547_, LevelReader p_374311_, ScheduledTickAccess p_374506_, BlockPos p_53551_, Direction p_53548_, BlockPos p_53552_, BlockState p_53549_, RandomSource p_374435_) protected BlockState
FrogspawnBlock.updateShape
(BlockState p_221213_, LevelReader p_374087_, ScheduledTickAccess p_374429_, BlockPos p_221217_, Direction p_221214_, BlockPos p_221218_, BlockState p_221215_, RandomSource p_374092_) protected BlockState
GrowingPlantBodyBlock.updateShape
(BlockState p_53913_, LevelReader p_374366_, ScheduledTickAccess p_374173_, BlockPos p_53917_, Direction p_53914_, BlockPos p_53918_, BlockState p_53915_, RandomSource p_374442_) protected BlockState
GrowingPlantHeadBlock.updateShape
(BlockState p_53951_, LevelReader p_374080_, ScheduledTickAccess p_374450_, BlockPos p_53955_, Direction p_53952_, BlockPos p_53956_, BlockState p_53953_, RandomSource p_374560_) protected BlockState
HangingMossBlock.updateShape
(BlockState p_380182_, LevelReader p_380219_, ScheduledTickAccess p_380011_, BlockPos p_380024_, Direction p_380101_, BlockPos p_380258_, BlockState p_379654_, RandomSource p_379547_) protected BlockState
HangingRootsBlock.updateShape
(BlockState p_153351_, LevelReader p_374138_, ScheduledTickAccess p_374229_, BlockPos p_153355_, Direction p_153352_, BlockPos p_153356_, BlockState p_153353_, RandomSource p_374467_) protected BlockState
HeavyCoreBlock.updateShape
(BlockState p_338756_, LevelReader p_374371_, ScheduledTickAccess p_374063_, BlockPos p_338346_, Direction p_338189_, BlockPos p_338401_, BlockState p_338723_, RandomSource p_374262_) protected BlockState
HugeMushroomBlock.updateShape
(BlockState p_54146_, LevelReader p_374323_, ScheduledTickAccess p_374514_, BlockPos p_54150_, Direction p_54147_, BlockPos p_54151_, BlockState p_54148_, RandomSource p_374091_) protected BlockState
IronBarsBlock.updateShape
(BlockState p_54211_, LevelReader p_374527_, ScheduledTickAccess p_374556_, BlockPos p_54215_, Direction p_54212_, BlockPos p_54216_, BlockState p_54213_, RandomSource p_374254_) protected BlockState
LadderBlock.updateShape
(BlockState p_54363_, LevelReader p_374096_, ScheduledTickAccess p_374237_, BlockPos p_54367_, Direction p_54364_, BlockPos p_54368_, BlockState p_54365_, RandomSource p_374476_) protected BlockState
LanternBlock.updateShape
(BlockState p_153483_, LevelReader p_374491_, ScheduledTickAccess p_374260_, BlockPos p_153487_, Direction p_153484_, BlockPos p_153488_, BlockState p_153485_, RandomSource p_374175_) protected BlockState
LeavesBlock.updateShape
(BlockState p_54440_, LevelReader p_374064_, ScheduledTickAccess p_374538_, BlockPos p_54444_, Direction p_54441_, BlockPos p_54445_, BlockState p_54442_, RandomSource p_374122_) protected BlockState
LightBlock.updateShape
(BlockState p_153680_, LevelReader p_374432_, ScheduledTickAccess p_374195_, BlockPos p_153684_, Direction p_153681_, BlockPos p_153685_, BlockState p_153682_, RandomSource p_374328_) protected BlockState
LightningRodBlock.updateShape
(BlockState p_153739_, LevelReader p_374261_, ScheduledTickAccess p_374456_, BlockPos p_153743_, Direction p_153740_, BlockPos p_153744_, BlockState p_153741_, RandomSource p_374086_) protected BlockState
LiquidBlock.updateShape
(BlockState p_54723_, LevelReader p_374418_, ScheduledTickAccess p_374542_, BlockPos p_54727_, Direction p_54724_, BlockPos p_54728_, BlockState p_54725_, RandomSource p_374563_) protected BlockState
MagmaBlock.updateShape
(BlockState p_54811_, LevelReader p_374494_, ScheduledTickAccess p_374388_, BlockPos p_54815_, Direction p_54812_, BlockPos p_54816_, BlockState p_54813_, RandomSource p_374472_) protected BlockState
MangrovePropaguleBlock.updateShape
(BlockState p_221477_, LevelReader p_374145_, ScheduledTickAccess p_374362_, BlockPos p_221481_, Direction p_221478_, BlockPos p_221482_, BlockState p_221479_, RandomSource p_374203_) protected BlockState
MangroveRootsBlock.updateShape
(BlockState p_221514_, LevelReader p_374345_, ScheduledTickAccess p_374139_, BlockPos p_221518_, Direction p_221515_, BlockPos p_221519_, BlockState p_221516_, RandomSource p_374100_) protected BlockState
MossyCarpetBlock.updateShape
(BlockState p_379698_, LevelReader p_379600_, ScheduledTickAccess p_380394_, BlockPos p_380051_, Direction p_380408_, BlockPos p_380380_, BlockState p_379613_, RandomSource p_379309_) protected BlockState
MultifaceBlock.updateShape
(BlockState p_153904_, LevelReader p_374463_, ScheduledTickAccess p_374073_, BlockPos p_153908_, Direction p_153905_, BlockPos p_153909_, BlockState p_153906_, RandomSource p_374390_) protected BlockState
NetherPortalBlock.updateShape
(BlockState p_54928_, LevelReader p_374413_, ScheduledTickAccess p_374339_, BlockPos p_54932_, Direction p_54929_, BlockPos p_54933_, BlockState p_54930_, RandomSource p_374242_) protected BlockState
NoteBlock.updateShape
(BlockState p_55048_, LevelReader p_374298_, ScheduledTickAccess p_374153_, BlockPos p_55052_, Direction p_55049_, BlockPos p_55053_, BlockState p_55050_, RandomSource p_374540_) protected BlockState
ObserverBlock.updateShape
(BlockState p_55118_, LevelReader p_374557_, ScheduledTickAccess p_374458_, BlockPos p_55122_, Direction p_55119_, BlockPos p_55123_, BlockState p_55120_, RandomSource p_374161_) PitcherCropBlock.updateShape
(BlockState p_277518_, LevelReader p_374059_, ScheduledTickAccess p_374076_, BlockPos p_277982_, Direction p_277700_, BlockPos p_278106_, BlockState p_277660_, RandomSource p_374409_) protected BlockState
PointedDripstoneBlock.updateShape
(BlockState p_154147_, LevelReader p_374104_, ScheduledTickAccess p_374078_, BlockPos p_154151_, Direction p_154148_, BlockPos p_154152_, BlockState p_154149_, RandomSource p_374393_) protected BlockState
RedstoneWallTorchBlock.updateShape
(BlockState p_55772_, LevelReader p_374227_, ScheduledTickAccess p_374302_, BlockPos p_55776_, Direction p_55773_, BlockPos p_55777_, BlockState p_55774_, RandomSource p_374372_) protected BlockState
RedStoneWireBlock.updateShape
(BlockState p_55598_, LevelReader p_374191_, ScheduledTickAccess p_374077_, BlockPos p_55602_, Direction p_55599_, BlockPos p_55603_, BlockState p_55600_, RandomSource p_374364_) protected BlockState
RepeaterBlock.updateShape
(BlockState p_55821_, LevelReader p_374255_, ScheduledTickAccess p_374035_, BlockPos p_55825_, Direction p_55822_, BlockPos p_55826_, BlockState p_55823_, RandomSource p_374140_) protected BlockState
ScaffoldingBlock.updateShape
(BlockState p_56044_, LevelReader p_374031_, ScheduledTickAccess p_374303_, BlockPos p_56048_, Direction p_56045_, BlockPos p_56049_, BlockState p_56046_, RandomSource p_374574_) protected BlockState
SculkSensorBlock.updateShape
(BlockState p_154457_, LevelReader p_374292_, ScheduledTickAccess p_374575_, BlockPos p_154461_, Direction p_154458_, BlockPos p_154462_, BlockState p_154459_, RandomSource p_374248_) protected BlockState
SculkShriekerBlock.updateShape
(BlockState p_222204_, LevelReader p_374289_, ScheduledTickAccess p_374095_, BlockPos p_222208_, Direction p_222205_, BlockPos p_222209_, BlockState p_222206_, RandomSource p_374058_) protected BlockState
SeagrassBlock.updateShape
(BlockState p_154530_, LevelReader p_374421_, ScheduledTickAccess p_374071_, BlockPos p_154534_, Direction p_154531_, BlockPos p_154535_, BlockState p_154532_, RandomSource p_374406_) protected BlockState
SeaPickleBlock.updateShape
(BlockState p_56113_, LevelReader p_374408_, ScheduledTickAccess p_374099_, BlockPos p_56117_, Direction p_56114_, BlockPos p_56118_, BlockState p_56115_, RandomSource p_374294_) protected BlockState
SignBlock.updateShape
(BlockState p_56285_, LevelReader p_374509_, ScheduledTickAccess p_374520_, BlockPos p_56289_, Direction p_56286_, BlockPos p_56290_, BlockState p_56287_, RandomSource p_374213_) protected BlockState
SlabBlock.updateShape
(BlockState p_56381_, LevelReader p_374541_, ScheduledTickAccess p_374470_, BlockPos p_56385_, Direction p_56382_, BlockPos p_56386_, BlockState p_56383_, RandomSource p_374101_) protected BlockState
SmallDripleafBlock.updateShape
(BlockState p_154625_, LevelReader p_374488_, ScheduledTickAccess p_374525_, BlockPos p_154629_, Direction p_154626_, BlockPos p_154630_, BlockState p_154627_, RandomSource p_374277_) protected BlockState
SnowLayerBlock.updateShape
(BlockState p_56606_, LevelReader p_374469_, ScheduledTickAccess p_374526_, BlockPos p_56610_, Direction p_56607_, BlockPos p_56611_, BlockState p_56608_, RandomSource p_374113_) protected BlockState
SnowyDirtBlock.updateShape
(BlockState p_56644_, LevelReader p_374564_, ScheduledTickAccess p_374201_, BlockPos p_56648_, Direction p_56645_, BlockPos p_56649_, BlockState p_56646_, RandomSource p_374447_) protected BlockState
SoulFireBlock.updateShape
(BlockState p_56659_, LevelReader p_374511_, ScheduledTickAccess p_374567_, BlockPos p_56663_, Direction p_56660_, BlockPos p_56664_, BlockState p_56661_, RandomSource p_374480_) protected BlockState
SoulSandBlock.updateShape
(BlockState p_56689_, LevelReader p_374561_, ScheduledTickAccess p_374416_, BlockPos p_56693_, Direction p_56690_, BlockPos p_56694_, BlockState p_56691_, RandomSource p_374114_) protected BlockState
SporeBlossomBlock.updateShape
(BlockState p_154713_, LevelReader p_374047_, ScheduledTickAccess p_374543_, BlockPos p_154717_, Direction p_154714_, BlockPos p_154718_, BlockState p_154715_, RandomSource p_374461_) protected BlockState
StairBlock.updateShape
(BlockState p_56925_, LevelReader p_374183_, ScheduledTickAccess p_374352_, BlockPos p_56929_, Direction p_56926_, BlockPos p_56930_, BlockState p_56927_, RandomSource p_374581_) protected BlockState
StandingSignBlock.updateShape
(BlockState p_57005_, LevelReader p_374220_, ScheduledTickAccess p_374377_, BlockPos p_57009_, Direction p_57006_, BlockPos p_57010_, BlockState p_57007_, RandomSource p_374251_) protected BlockState
SugarCaneBlock.updateShape
(BlockState p_57179_, LevelReader p_374168_, ScheduledTickAccess p_374217_, BlockPos p_57183_, Direction p_57180_, BlockPos p_57184_, BlockState p_57181_, RandomSource p_374240_) protected BlockState
TrapDoorBlock.updateShape
(BlockState p_57554_, LevelReader p_374386_, ScheduledTickAccess p_374038_, BlockPos p_57558_, Direction p_57555_, BlockPos p_57559_, BlockState p_57556_, RandomSource p_374093_) protected BlockState
TripWireBlock.updateShape
(BlockState p_57645_, LevelReader p_374437_, ScheduledTickAccess p_374214_, BlockPos p_57649_, Direction p_57646_, BlockPos p_57650_, BlockState p_57647_, RandomSource p_374065_) protected BlockState
TripWireHookBlock.updateShape
(BlockState p_57731_, LevelReader p_374415_, ScheduledTickAccess p_374046_, BlockPos p_57735_, Direction p_57732_, BlockPos p_57736_, BlockState p_57733_, RandomSource p_374155_) protected BlockState
VegetationBlock.updateShape
(BlockState p_401118_, LevelReader p_401198_, ScheduledTickAccess p_401107_, BlockPos p_401142_, Direction p_401236_, BlockPos p_401082_, BlockState p_401336_, RandomSource p_401169_) protected BlockState
VineBlock.updateShape
(BlockState p_57875_, LevelReader p_374150_, ScheduledTickAccess p_374192_, BlockPos p_57879_, Direction p_57876_, BlockPos p_57880_, BlockState p_57877_, RandomSource p_374278_) protected BlockState
WallBannerBlock.updateShape
(BlockState p_57935_, LevelReader p_374553_, ScheduledTickAccess p_374106_, BlockPos p_57939_, Direction p_57936_, BlockPos p_57940_, BlockState p_57937_, RandomSource p_374162_) protected BlockState
WallBlock.updateShape
(BlockState p_58014_, LevelReader p_374577_, ScheduledTickAccess p_374176_, BlockPos p_58018_, Direction p_58015_, BlockPos p_58019_, BlockState p_58016_, RandomSource p_374535_) protected BlockState
WallHangingSignBlock.updateShape
(BlockState p_249879_, LevelReader p_374368_, ScheduledTickAccess p_374179_, BlockPos p_252327_, Direction p_249939_, BlockPos p_251853_, BlockState p_250767_, RandomSource p_374570_) protected BlockState
WallSignBlock.updateShape
(BlockState p_58083_, LevelReader p_374417_, ScheduledTickAccess p_374151_, BlockPos p_58087_, Direction p_58084_, BlockPos p_58088_, BlockState p_58085_, RandomSource p_374032_) protected BlockState
WallTorchBlock.updateShape
(BlockState p_58143_, LevelReader p_374329_, ScheduledTickAccess p_374207_, BlockPos p_58147_, Direction p_58144_, BlockPos p_58148_, BlockState p_58145_, RandomSource p_374234_) protected BlockState
WaterloggedTransparentBlock.updateShape
(BlockState p_313906_, LevelReader p_374178_, ScheduledTickAccess p_374293_, BlockPos p_313842_, Direction p_313739_, BlockPos p_313843_, BlockState p_313829_, RandomSource p_374433_) -
Uses of RandomSource in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as RandomSourceModifier and TypeFieldDescriptionprivate static final RandomSource
EnchantingTableBlockEntity.RANDOM
Methods in net.minecraft.world.level.block.entity that return RandomSourceModifier and TypeMethodDescriptionstatic RandomSource
StructureBlockEntity.createRandom
(long pSeed) Methods in net.minecraft.world.level.block.entity with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate void
SculkCatalystBlockEntity.CatalystListener.bloom
(ServerLevel pLevel, BlockPos pPos, BlockState pState, RandomSource pRandom) int
DispenserBlockEntity.getRandomSlot
(RandomSource pRandom) void
SpawnerBlockEntity.setEntityId
(EntityType<?> pType, RandomSource pRandom) void
TrialSpawnerBlockEntity.setEntityId
(EntityType<?> p_311807_, RandomSource p_311976_) -
Uses of RandomSource in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic void
TrialSpawner.addBecomeOminousParticles
(Level pLevel, BlockPos pPos, RandomSource pRandom) static void
TrialSpawner.addDetectPlayerParticles
(Level pLevel, BlockPos pPos, RandomSource pRandom, int pType, ParticleOptions pParticle) static void
TrialSpawner.addEjectItemParticles
(Level pLevel, BlockPos pPos, RandomSource pRandom) static void
TrialSpawner.addSpawnParticles
(Level pLevel, BlockPos pPos, RandomSource pRandom, SimpleParticleType pParticleType) void
TrialSpawnerState.ParticleEmission.emit
(Level pLevel, RandomSource pRandom, BlockPos pPos, boolean pIsOminous) protected SpawnData
TrialSpawnerData.getOrCreateNextSpawnData
(TrialSpawner pSpawner, RandomSource pRandom) boolean
TrialSpawnerData.hasMobToSpawn
(TrialSpawner pTrialSpawner, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static Vec3
VaultBlockEntity.Client.randomPosCenterOfCage
(BlockPos pPos, RandomSource pRandom) private static Vec3
VaultBlockEntity.Client.randomPosInsideCage
(BlockPos pPos, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.block.grower
Methods in net.minecraft.world.level.block.grower with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate ResourceKey
<ConfiguredFeature<?, ?>> TreeGrower.getConfiguredFeature
(RandomSource pRandom, boolean pFlowers) private ResourceKey
<ConfiguredFeature<?, ?>> TreeGrower.getConfiguredMegaFeature
(RandomSource pRandom) boolean
TreeGrower.growTree
(ServerLevel pLevel, ChunkGenerator pChunkGenerator, BlockPos pPos, BlockState pState, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type RandomSourceModifier and TypeMethodDescriptionprotected BlockState
PistonHeadBlock.updateShape
(BlockState p_60301_, LevelReader p_374256_, ScheduledTickAccess p_374426_, BlockPos p_60305_, Direction p_60302_, BlockPos p_60306_, BlockState p_60303_, RandomSource p_374478_) -
Uses of RandomSource in net.minecraft.world.level.block.sounds
Methods in net.minecraft.world.level.block.sounds with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic void
AmbientDesertBlockSoundsPlayer.playAmbientBlockSounds
(BlockState pState, Level pLevel, BlockPos pPos, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
BlockBehaviour.BlockStateBase.randomTick
(ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) protected void
BlockBehaviour.randomTick
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) Performs a random tick on a block.void
BlockBehaviour.BlockStateBase.tick
(ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) protected void
BlockBehaviour.tick
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) BlockBehaviour.BlockStateBase.updateShape
(LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BlockBehaviour.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.levelgen
Subinterfaces of RandomSource in net.minecraft.world.level.levelgenClasses in net.minecraft.world.level.levelgen that implement RandomSourceModifier and TypeClassDescriptionclass
class
class
Deprecated.class
class
Fields in net.minecraft.world.level.levelgen declared as RandomSourceModifier and TypeFieldDescriptionfinal RandomSource
MarsagliaPolarGaussian.randomSource
private final RandomSource
WorldgenRandom.randomSource
Fields in net.minecraft.world.level.levelgen with type parameters of type RandomSourceModifier and TypeFieldDescriptionprivate final LongFunction
<RandomSource> WorldgenRandom.Algorithm.constructor
Methods in net.minecraft.world.level.levelgen that return RandomSourceModifier and TypeMethodDescriptionLegacyRandomSource.LegacyPositionalRandomFactory.at
(int p_224198_, int p_224199_, int p_224200_) PositionalRandomFactory.at
(int pX, int pY, int pZ) default RandomSource
XoroshiroRandomSource.XoroshiroPositionalRandomFactory.at
(int p_224691_, int p_224692_, int p_224693_) LegacyRandomSource.fork()
SingleThreadedRandomSource.fork()
ThreadSafeLegacyRandomSource.fork()
Deprecated.WorldgenRandom.fork()
XoroshiroRandomSource.fork()
LegacyRandomSource.LegacyPositionalRandomFactory.fromHashOf
(String p_224202_) PositionalRandomFactory.fromHashOf
(String pName) default RandomSource
PositionalRandomFactory.fromHashOf
(ResourceLocation pName) XoroshiroRandomSource.XoroshiroPositionalRandomFactory.fromHashOf
(String p_224695_) LegacyRandomSource.LegacyPositionalRandomFactory.fromSeed
(long p_348617_) PositionalRandomFactory.fromSeed
(long pSeed) XoroshiroRandomSource.XoroshiroPositionalRandomFactory.fromSeed
(long p_348665_) WorldgenRandom.Algorithm.newInstance
(long pSeed) static RandomSource
WorldgenRandom.seedSlimeChunk
(int pChunkX, int pChunkZ, long pLevelSeed, long pSalt) Creates a newRandomSource
, seeded for determining whether a chunk is a slime chunk or not.Methods in net.minecraft.world.level.levelgen with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static BlockState[]
SurfaceSystem.generateBands
(RandomSource pRandom) private static void
SurfaceSystem.makeBands
(RandomSource pRandom, BlockState[] pOutput, int pMinSize, BlockState pState) private boolean
PatrolSpawner.spawnPatrolMember
(ServerLevel pLevel, BlockPos pPos, RandomSource pRandom, boolean pLeader) Constructors in net.minecraft.world.level.levelgen with parameters of type RandomSourceModifierConstructorDescriptionMarsagliaPolarGaussian
(RandomSource pRandomSource) WorldgenRandom
(RandomSource pRandomSource) Constructor parameters in net.minecraft.world.level.levelgen with type arguments of type RandomSource -
Uses of RandomSource in net.minecraft.world.level.levelgen.carver
Methods in net.minecraft.world.level.levelgen.carver with parameters of type RandomSourceModifier and TypeMethodDescriptionboolean
CanyonWorldCarver.carve
(CarvingContext p_224813_, CanyonCarverConfiguration p_224814_, ChunkAccess p_224815_, Function<BlockPos, Holder<Biome>> p_224816_, RandomSource p_224817_, Aquifer p_224818_, ChunkPos p_224819_, CarvingMask p_224820_) boolean
CaveWorldCarver.carve
(CarvingContext p_224885_, CaveCarverConfiguration p_224886_, ChunkAccess p_224887_, Function<BlockPos, Holder<Biome>> p_224888_, RandomSource p_224889_, Aquifer p_224890_, ChunkPos p_224891_, CarvingMask p_224892_) boolean
ConfiguredWorldCarver.carve
(CarvingContext pContext, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, RandomSource pRandom, Aquifer pAquifer, ChunkPos pChunkPos, CarvingMask pCarvingMask) abstract boolean
WorldCarver.carve
(CarvingContext pContext, C pConfig, ChunkAccess pChunk, Function<BlockPos, Holder<Biome>> pBiomeAccessor, RandomSource pRandom, Aquifer pAquifer, ChunkPos pChunkPos, CarvingMask pCarvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.protected float
CaveWorldCarver.getThickness
(RandomSource pRandom) protected float
NetherWorldCarver.getThickness
(RandomSource p_224907_) private float[]
CanyonWorldCarver.initWidthFactors
(CarvingContext pContext, CanyonCarverConfiguration pConfig, RandomSource pRandom) Generates a random array full of width factors which are used to create the uneven walls of a ravine.boolean
CanyonWorldCarver.isStartChunk
(CanyonCarverConfiguration p_224797_, RandomSource p_224798_) boolean
CaveWorldCarver.isStartChunk
(CaveCarverConfiguration p_224894_, RandomSource p_224895_) boolean
ConfiguredWorldCarver.isStartChunk
(RandomSource pRandom) abstract boolean
WorldCarver.isStartChunk
(C pConfig, RandomSource pRandom) private double
CanyonWorldCarver.updateVerticalRadius
(CanyonCarverConfiguration pConfig, RandomSource pRandom, double pVerticalRadius, float pBranchCount, float pCurrentBranch) -
Uses of RandomSource in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature declared as RandomSourceMethods in net.minecraft.world.level.levelgen.feature that return RandomSourceMethods in net.minecraft.world.level.levelgen.feature with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
OreFeature.canPlaceOre
(BlockState pState, Function<BlockPos, BlockState> pAdjacentStateAccessor, RandomSource pRandom, OreConfiguration pConfig, OreConfiguration.TargetBlockState pTargetState, BlockPos.MutableBlockPos pMutablePos) private static void
PointedDripstoneFeature.createPatchOfDripstoneBlocks
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, PointedDripstoneConfiguration pConfig) private void
FallenTreeFeature.decorateLogs
(WorldGenLevel pLevel, RandomSource pRandom, Set<BlockPos> pLogPositions, List<TreeDecorator> pDecorators) protected void
VegetationPatchFeature.distributeVegetation
(FeaturePlaceContext<VegetationPatchConfiguration> pContext, WorldGenLevel pLevel, VegetationPatchConfiguration pConfig, RandomSource pRandom, Set<BlockPos> pPossiblePositions, int pXRadius, int pZRadius) protected boolean
OreFeature.doPlace
(WorldGenLevel pLevel, RandomSource pRandom, OreConfiguration pConfig, double pMinX, double pMaxX, double pMinZ, double pMaxZ, double pMinY, double pMaxY, int pX, int pY, int pZ, int pWidth, int pHeight) private boolean
TreeFeature.doPlace
(WorldGenLevel pLevel, RandomSource pRandom, BlockPos pPos, BiConsumer<BlockPos, BlockState> pRootBlockSetter, BiConsumer<BlockPos, BlockState> pTrunkBlockSetter, FoliagePlacer.FoliageSetter pFoliageBlockSetter, TreeConfiguration pConfig) 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) private int
DripstoneClusterFeature.getDripstoneHeight
(RandomSource pRandom, int pX, int pZ, float pChance, int pHeight, DripstoneClusterConfiguration pConfig) private int
ScatteredOreFeature.getRandomPlacementInOneAxisRelativeToOrigin
(RandomSource pRandom, int pMagnitude) PointedDripstoneFeature.getTipDirection
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) protected int
AbstractHugeMushroomFeature.getTreeHeight
(RandomSource pRandom) private int
IcebergFeature.heightDependentRadiusRound
(RandomSource pRandom, int pY, int pHeight, int pMajorAxis) private int
IcebergFeature.heightDependentRadiusSteep
(RandomSource pRandom, int pY, int pHeight, int pMaxRadius) Given a horizontal projection of an iceberg, defines the three-dimensional extrusion by defining a radius at any given y value.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 static LargeDripstoneFeature.LargeDripstone
LargeDripstoneFeature.makeDripstone
(BlockPos pRoot, boolean pPointingUp, RandomSource pRandom, int pRadius, FloatProvider pBluntnessBase, FloatProvider pScaleBase) private boolean
BlockPileFeature.mayPlaceOn
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) private void
ScatteredOreFeature.offsetTargetPos
(BlockPos.MutableBlockPos pMutablePos, RandomSource pRandom, BlockPos pPos, int pMagnitude) boolean
ConfiguredFeature.place
(WorldGenLevel pReader, ChunkGenerator pChunkGenerator, RandomSource pRandom, BlockPos pPos) boolean
Feature.place
(FC pConfig, WorldGenLevel pLevel, ChunkGenerator pChunkGenerator, RandomSource pRandom, BlockPos pOrigin) boolean
WeightedPlacedFeature.place
(WorldGenLevel pLevel, ChunkGenerator pChunkGenerator, RandomSource pRandom, BlockPos pPos) private void
BasaltPillarFeature.placeBaseHangOff
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos) (package private) void
LargeDripstoneFeature.LargeDripstone.placeBlocks
(WorldGenLevel pLevel, RandomSource pRandom, LargeDripstoneFeature.WindOffsetter pWindOffsetter) protected boolean
DiskFeature.placeColumn
(DiskConfiguration pConfig, WorldGenLevel pLevel, RandomSource pRandom, int pMaxY, int pMinY, BlockPos.MutableBlockPos pPos) private void
DripstoneClusterFeature.placeColumn
(WorldGenLevel pLevel, RandomSource pRandom, BlockPos pPos, int pX, int pZ, float pWetness, double pChance, int pHeight, float pDensity, DripstoneClusterConfiguration pConfig) protected boolean
CoralFeature.placeCoralBlock
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState) private static void
RootSystemFeature.placeDirt
(BlockPos pPos, int pMaxY, WorldGenLevel pLevel, RootSystemConfiguration pConfig, RandomSource pRandom) private static boolean
RootSystemFeature.placeDirtAndTree
(WorldGenLevel pLevel, ChunkGenerator pChunkGenerator, RootSystemConfiguration pConfig, RandomSource pRandom, BlockPos.MutableBlockPos pMutablePos, BlockPos pBasePos) private void
FallenTreeFeature.placeFallenLog
(FallenTreeConfiguration pConfig, WorldGenLevel pLevel, RandomSource pRandom, int pLogLength, BlockPos.MutableBlockPos pPos, Direction pDirection) private void
FallenTreeFeature.placeFallenTree
(FallenTreeConfiguration pConfig, BlockPos pOrigin, WorldGenLevel pLevel, RandomSource pRandom) 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_) protected boolean
VegetationPatchFeature.placeGround
(WorldGenLevel pLevel, VegetationPatchConfiguration pConfig, Predicate<BlockState> pReplaceableblocks, RandomSource pRandom, BlockPos.MutableBlockPos pMutablePos, int pMaxDistance) VegetationPatchFeature.placeGroundPatch
(WorldGenLevel pLevel, VegetationPatchConfiguration pConfig, RandomSource pRandom, BlockPos pPos, Predicate<BlockState> pState, int pXRadius, int pZRadius) WaterloggedVegetationPatchFeature.placeGroundPatch
(WorldGenLevel p_225339_, VegetationPatchConfiguration p_225340_, RandomSource p_225341_, BlockPos p_225342_, Predicate<BlockState> p_225343_, int p_225344_, int p_225345_) static boolean
MultifaceGrowthFeature.placeGrowthIfPossible
(WorldGenLevel pLevel, BlockPos pPos, BlockState pState, MultifaceGrowthConfiguration pConfig, RandomSource pRandom, List<Direction> pDirections) private boolean
BasaltPillarFeature.placeHangOff
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos) private void
HugeFungusFeature.placeHat
(WorldGenLevel pLevel, RandomSource pRandom, HugeFungusConfiguration pConfig, BlockPos pPos, int pHeight, boolean pHuge) private void
HugeFungusFeature.placeHatBlock
(LevelAccessor pLevel, RandomSource pRandom, HugeFungusConfiguration pConfig, BlockPos.MutableBlockPos pPos, float pDecorationChance, float pHatChance, float pWeepingVineChance) private void
HugeFungusFeature.placeHatDropBlock
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, BlockState pState, boolean pWeepingVines) private BlockPos
FallenTreeFeature.placeLogBlock
(FallenTreeConfiguration pConfig, WorldGenLevel pLevel, RandomSource pRandom, BlockPos.MutableBlockPos pPos, Function<BlockState, BlockState> pStateModifier) private void
WeepingVinesFeature.placeRoofNetherWart
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos) private void
WeepingVinesFeature.placeRoofWeepingVines
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos) private static void
RootSystemFeature.placeRootedDirt
(WorldGenLevel pLevel, RootSystemConfiguration pConfig, RandomSource pRandom, int pX, int pZ, BlockPos.MutableBlockPos pPos) private static void
RootSystemFeature.placeRoots
(WorldGenLevel pLevel, RootSystemConfiguration pConfig, RandomSource pRandom, BlockPos pBasePos, BlockPos.MutableBlockPos pMutablePos) private void
SpikeFeature.placeSpike
(ServerLevelAccessor pLevel, RandomSource pRandom, SpikeConfiguration pConfig, SpikeFeature.EndSpike pSpike) Places the End Spike in the world.private void
HugeFungusFeature.placeStem
(WorldGenLevel pLevel, RandomSource pRandom, HugeFungusConfiguration pConfig, BlockPos pPos, int pHeight, boolean pHuge) private void
FallenTreeFeature.placeStump
(FallenTreeConfiguration pConfig, WorldGenLevel pLevel, RandomSource pRandom, BlockPos.MutableBlockPos pPos) protected void
AbstractHugeMushroomFeature.placeTrunk
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, HugeMushroomFeatureConfiguration pConfig, int pMaxHeight, BlockPos.MutableBlockPos pMutablePos) protected boolean
VegetationPatchFeature.placeVegetation
(WorldGenLevel pLevel, VegetationPatchConfiguration pConfig, ChunkGenerator pChunkGenerator, RandomSource pRandom, BlockPos pPos) protected boolean
WaterloggedVegetationPatchFeature.placeVegetation
(WorldGenLevel p_225347_, VegetationPatchConfiguration p_225348_, ChunkGenerator p_225349_, RandomSource p_225350_, BlockPos p_225351_) 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 static float
DripstoneClusterFeature.randomBetweenBiased
(RandomSource pRandom, float pMin, float pMax, float pMean, float pDeviation) private EntityType
<?> MonsterRoomFeature.randomEntityId
(RandomSource pRandom) private void
IcebergFeature.setIcebergBlock
(BlockPos pPos, LevelAccessor pLevel, RandomSource pRandom, int pHeightRemaining, int pHeight, boolean pElliptical, boolean pPlaceSnow, BlockState pState) protected static boolean
OreFeature.shouldSkipAirCheck
(RandomSource pRandom, float pChance) private double
IcebergFeature.signedDistanceCircle
(int pX, int pZ, BlockPos pCenter, int pRadius, RandomSource pRandom) private void
BlockPileFeature.tryPlaceBlock
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom, BlockPileConfiguration pConfig) private static void
HugeFungusFeature.tryPlaceWeepingVines
(BlockPos pPos, LevelAccessor pLevel, RandomSource pRandom) Constructors in net.minecraft.world.level.levelgen.feature with parameters of type RandomSourceModifierConstructorDescriptionFeaturePlaceContext
(Optional<ConfiguredFeature<?, ?>> pTopFeature, WorldGenLevel pLevel, ChunkGenerator pChunkGenerator, RandomSource pRandom, BlockPos pOrigin, FC pConfig) (package private)
WindOffsetter
(int pOriginY, RandomSource pRandom, FloatProvider pMagnitude) -
Uses of RandomSource in net.minecraft.world.level.levelgen.feature.configurations
Methods in net.minecraft.world.level.levelgen.feature.configurations with parameters of type RandomSourceModifier and TypeMethodDescriptionMultifaceGrowthConfiguration.getShuffledDirections
(RandomSource pRandom) MultifaceGrowthConfiguration.getShuffledDirectionsExcept
(RandomSource pRandom, Direction pDirection) -
Uses of RandomSource in net.minecraft.world.level.levelgen.feature.foliageplacers
Methods in net.minecraft.world.level.levelgen.feature.foliageplacers with parameters of type RandomSourceModifier and TypeMethodDescriptionprotected void
AcaciaFoliagePlacer.createFoliage
(LevelSimulatedReader p_225499_, FoliagePlacer.FoliageSetter p_273746_, RandomSource p_225501_, TreeConfiguration p_225502_, int p_225503_, FoliagePlacer.FoliageAttachment p_225504_, int p_225505_, int p_225506_, int p_225507_) protected void
BlobFoliagePlacer.createFoliage
(LevelSimulatedReader p_273066_, FoliagePlacer.FoliageSetter p_272716_, RandomSource p_273178_, TreeConfiguration p_272850_, int p_273067_, FoliagePlacer.FoliageAttachment p_273711_, int p_273580_, int p_273511_, int p_273685_) protected void
BushFoliagePlacer.createFoliage
(LevelSimulatedReader p_273251_, FoliagePlacer.FoliageSetter p_273782_, RandomSource p_273626_, TreeConfiguration p_272956_, int p_273384_, FoliagePlacer.FoliageAttachment p_273459_, int p_273161_, int p_272989_, int p_273166_) protected void
CherryFoliagePlacer.createFoliage
(LevelSimulatedReader p_272723_, FoliagePlacer.FoliageSetter p_273410_, RandomSource p_273057_, TreeConfiguration p_273220_, int p_272975_, FoliagePlacer.FoliageAttachment p_273037_, int p_273647_, int p_273700_, int p_273188_) protected void
DarkOakFoliagePlacer.createFoliage
(LevelSimulatedReader p_225558_, FoliagePlacer.FoliageSetter p_273641_, RandomSource p_225560_, TreeConfiguration p_225561_, int p_225562_, FoliagePlacer.FoliageAttachment p_225563_, int p_225564_, int p_225565_, int p_225566_) protected void
FancyFoliagePlacer.createFoliage
(LevelSimulatedReader p_225582_, FoliagePlacer.FoliageSetter p_273184_, RandomSource p_225584_, TreeConfiguration p_225585_, int p_225586_, FoliagePlacer.FoliageAttachment p_225587_, int p_225588_, int p_225589_, int p_225590_) void
FoliagePlacer.createFoliage
(LevelSimulatedReader pLevel, FoliagePlacer.FoliageSetter pBlockSetter, RandomSource pRandom, TreeConfiguration pConfig, int pMaxFreeTreeHeight, FoliagePlacer.FoliageAttachment pAttachment, int pFoliageHeight, int pFoliageRadius) protected abstract void
FoliagePlacer.createFoliage
(LevelSimulatedReader pLevel, FoliagePlacer.FoliageSetter pBlockSetter, RandomSource pRandom, TreeConfiguration pConfig, int pMaxFreeTreeHeight, FoliagePlacer.FoliageAttachment pAttachment, int pFoliageHeight, int pFoliageRadius, int pOffset) protected void
MegaJungleFoliagePlacer.createFoliage
(LevelSimulatedReader p_225657_, FoliagePlacer.FoliageSetter p_273447_, RandomSource p_225659_, TreeConfiguration p_225660_, int p_225661_, FoliagePlacer.FoliageAttachment p_225662_, int p_225663_, int p_225664_, int p_225665_) protected void
MegaPineFoliagePlacer.createFoliage
(LevelSimulatedReader p_225678_, FoliagePlacer.FoliageSetter p_273345_, RandomSource p_225680_, TreeConfiguration p_225681_, int p_225682_, FoliagePlacer.FoliageAttachment p_225683_, int p_225684_, int p_225685_, int p_225686_) protected void
PineFoliagePlacer.createFoliage
(LevelSimulatedReader p_225702_, FoliagePlacer.FoliageSetter p_272791_, RandomSource p_225704_, TreeConfiguration p_225705_, int p_225706_, FoliagePlacer.FoliageAttachment p_225707_, int p_225708_, int p_225709_, int p_225710_) protected void
RandomSpreadFoliagePlacer.createFoliage
(LevelSimulatedReader p_225723_, FoliagePlacer.FoliageSetter p_272842_, RandomSource p_225725_, TreeConfiguration p_225726_, int p_225727_, FoliagePlacer.FoliageAttachment p_225728_, int p_225729_, int p_225730_, int p_225731_) protected void
SpruceFoliagePlacer.createFoliage
(LevelSimulatedReader p_225744_, FoliagePlacer.FoliageSetter p_273256_, RandomSource p_225746_, TreeConfiguration p_225747_, int p_225748_, FoliagePlacer.FoliageAttachment p_225749_, int p_225750_, int p_225751_, int p_225752_) int
AcaciaFoliagePlacer.foliageHeight
(RandomSource p_225495_, int p_225496_, TreeConfiguration p_225497_) int
BlobFoliagePlacer.foliageHeight
(RandomSource p_225516_, int p_225517_, TreeConfiguration p_225518_) int
CherryFoliagePlacer.foliageHeight
(RandomSource p_273679_, int p_273336_, TreeConfiguration p_273643_) int
DarkOakFoliagePlacer.foliageHeight
(RandomSource p_225554_, int p_225555_, TreeConfiguration p_225556_) abstract int
FoliagePlacer.foliageHeight
(RandomSource pRandom, int pHeight, TreeConfiguration pConfig) int
MegaJungleFoliagePlacer.foliageHeight
(RandomSource p_225653_, int p_225654_, TreeConfiguration p_225655_) int
MegaPineFoliagePlacer.foliageHeight
(RandomSource p_225674_, int p_225675_, TreeConfiguration p_225676_) int
PineFoliagePlacer.foliageHeight
(RandomSource p_225698_, int p_225699_, TreeConfiguration p_225700_) int
RandomSpreadFoliagePlacer.foliageHeight
(RandomSource p_225719_, int p_225720_, TreeConfiguration p_225721_) int
SpruceFoliagePlacer.foliageHeight
(RandomSource p_225740_, int p_225741_, TreeConfiguration p_225742_) int
FoliagePlacer.foliageRadius
(RandomSource pRandom, int pRadius) int
PineFoliagePlacer.foliageRadius
(RandomSource p_225688_, int p_225689_) private int
FoliagePlacer.offset
(RandomSource pRandom) protected void
FoliagePlacer.placeLeavesRow
(LevelSimulatedReader pLevel, FoliagePlacer.FoliageSetter pFoliageSetter, RandomSource pRandom, TreeConfiguration pTreeConfiguration, BlockPos pPos, int pRange, int pLocalY, boolean pLarge) protected final void
FoliagePlacer.placeLeavesRowWithHangingLeavesBelow
(LevelSimulatedReader pLevel, FoliagePlacer.FoliageSetter pFoliageSetter, RandomSource pRandom, TreeConfiguration pTreeConfiguration, BlockPos pPos, int pRange, int pLocalY, boolean pLarge, float pHangingLeavesChance, float pHangingLeavesExtensionChance) protected boolean
AcaciaFoliagePlacer.shouldSkipLocation
(RandomSource p_225488_, int p_225489_, int p_225490_, int p_225491_, int p_225492_, boolean p_225493_) protected boolean
BlobFoliagePlacer.shouldSkipLocation
(RandomSource p_225509_, int p_225510_, int p_225511_, int p_225512_, int p_225513_, boolean p_225514_) protected boolean
BushFoliagePlacer.shouldSkipLocation
(RandomSource p_225530_, int p_225531_, int p_225532_, int p_225533_, int p_225534_, boolean p_225535_) protected boolean
CherryFoliagePlacer.shouldSkipLocation
(RandomSource p_273294_, int p_273380_, int p_272865_, int p_272853_, int p_272631_, boolean p_273432_) protected boolean
DarkOakFoliagePlacer.shouldSkipLocation
(RandomSource p_225547_, int p_225548_, int p_225549_, int p_225550_, int p_225551_, boolean p_225552_) protected boolean
FancyFoliagePlacer.shouldSkipLocation
(RandomSource p_225575_, int p_225576_, int p_225577_, int p_225578_, int p_225579_, boolean p_225580_) protected abstract boolean
FoliagePlacer.shouldSkipLocation
(RandomSource pRandom, int pLocalX, int pLocalY, int pLocalZ, int pRange, boolean pLarge) Skips certain positions based on the provided shape, such as rounding corners randomly.protected boolean
MegaJungleFoliagePlacer.shouldSkipLocation
(RandomSource p_225646_, int p_225647_, int p_225648_, int p_225649_, int p_225650_, boolean p_225651_) protected boolean
MegaPineFoliagePlacer.shouldSkipLocation
(RandomSource p_225667_, int p_225668_, int p_225669_, int p_225670_, int p_225671_, boolean p_225672_) protected boolean
PineFoliagePlacer.shouldSkipLocation
(RandomSource p_225691_, int p_225692_, int p_225693_, int p_225694_, int p_225695_, boolean p_225696_) protected boolean
RandomSpreadFoliagePlacer.shouldSkipLocation
(RandomSource p_225712_, int p_225713_, int p_225714_, int p_225715_, int p_225716_, boolean p_225717_) protected boolean
SpruceFoliagePlacer.shouldSkipLocation
(RandomSource p_225733_, int p_225734_, int p_225735_, int p_225736_, int p_225737_, boolean p_225738_) protected boolean
DarkOakFoliagePlacer.shouldSkipLocationSigned
(RandomSource p_225568_, int p_225569_, int p_225570_, int p_225571_, int p_225572_, boolean p_225573_) protected boolean
FoliagePlacer.shouldSkipLocationSigned
(RandomSource pRandom, int pLocalX, int pLocalY, int pLocalZ, int pRange, boolean pLarge) private static boolean
FoliagePlacer.tryPlaceExtension
(LevelSimulatedReader pLevel, FoliagePlacer.FoliageSetter pFoliageSetter, RandomSource pRandom, TreeConfiguration pTreeConfiguration, float pExtensionChance, BlockPos pLogPos, BlockPos.MutableBlockPos pPos) protected static boolean
FoliagePlacer.tryPlaceLeaf
(LevelSimulatedReader pLevel, FoliagePlacer.FoliageSetter pFoliageSetter, RandomSource pRandom, TreeConfiguration pTreeConfiguration, BlockPos pPos) -
Uses of RandomSource in net.minecraft.world.level.levelgen.feature.rootplacers
Methods in net.minecraft.world.level.levelgen.feature.rootplacers with parameters of type RandomSourceModifier and TypeMethodDescriptionRootPlacer.getTrunkOrigin
(BlockPos pPos, RandomSource pRandom) protected void
MangroveRootPlacer.placeRoot
(LevelSimulatedReader p_225834_, BiConsumer<BlockPos, BlockState> p_225835_, RandomSource p_225836_, BlockPos p_225837_, TreeConfiguration p_225838_) protected void
RootPlacer.placeRoot
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos pPos, TreeConfiguration pTreeConfig) boolean
MangroveRootPlacer.placeRoots
(LevelSimulatedReader p_225840_, BiConsumer<BlockPos, BlockState> p_225841_, RandomSource p_225842_, BlockPos p_225843_, BlockPos p_225844_, TreeConfiguration p_225845_) abstract boolean
RootPlacer.placeRoots
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos pPos, BlockPos pTrunkOrigin, TreeConfiguration pTreeConfig) MangroveRootPlacer.potentialRootPositions
(BlockPos pPos, Direction pDirection, RandomSource pRandom, BlockPos pTrunkOrigin) private boolean
MangroveRootPlacer.simulateRoots
(LevelSimulatedReader pLevel, RandomSource pRandom, BlockPos pPos, Direction pDirection, BlockPos pTrunkOrigin, List<BlockPos> pRoots, int pLength) -
Uses of RandomSource in net.minecraft.world.level.levelgen.feature.stateproviders
Methods in net.minecraft.world.level.levelgen.feature.stateproviders with parameters of type RandomSourceModifier and TypeMethodDescriptionabstract BlockState
BlockStateProvider.getState
(RandomSource pRandom, BlockPos pPos) DualNoiseProvider.getState
(RandomSource p_225910_, BlockPos p_225911_) NoiseProvider.getState
(RandomSource p_225913_, BlockPos p_225914_) NoiseThresholdProvider.getState
(RandomSource p_225916_, BlockPos p_225917_) RandomizedIntStateProvider.getState
(RandomSource p_225919_, BlockPos p_225920_) RotatedBlockProvider.getState
(RandomSource p_225922_, BlockPos p_225923_) RuleBasedBlockStateProvider.getState
(WorldGenLevel pLevel, RandomSource pRandom, BlockPos pPos) SimpleStateProvider.getState
(RandomSource p_225963_, BlockPos p_225964_) WeightedStateProvider.getState
(RandomSource p_225966_, BlockPos p_225967_) -
Uses of RandomSource in net.minecraft.world.level.levelgen.feature.treedecorators
Fields in net.minecraft.world.level.levelgen.feature.treedecorators declared as RandomSourceMethods in net.minecraft.world.level.levelgen.feature.treedecorators that return RandomSourceConstructors in net.minecraft.world.level.levelgen.feature.treedecorators with parameters of type RandomSourceModifierConstructorDescriptionContext
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pDecorationSetter, RandomSource pRandom, Set<BlockPos> pLogs, Set<BlockPos> pLeaves, Set<BlockPos> pRoots) -
Uses of RandomSource in net.minecraft.world.level.levelgen.feature.trunkplacers
Methods in net.minecraft.world.level.levelgen.feature.trunkplacers with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate FoliagePlacer.FoliageAttachment
CherryTrunkPlacer.generateBranch
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, int pFreeTreeHeight, BlockPos pPos, TreeConfiguration pConfig, Function<BlockState, BlockState> pPropertySetter, Direction pDirection, int pSecondBranchStartOffsetFromTop, boolean pDoubleBranch, BlockPos.MutableBlockPos pCurrentPos) int
TrunkPlacer.getTreeHeight
(RandomSource pRandom) private void
FancyTrunkPlacer.makeBranches
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, int pMaxHeight, BlockPos pPos, List<FancyTrunkPlacer.FoliageCoords> pFoliageCoords, TreeConfiguration pConfig) private boolean
FancyTrunkPlacer.makeLimb
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos pBasePos, BlockPos pOffsetPos, boolean pModifyWorld, TreeConfiguration pConfig) private void
UpwardsBranchingTrunkPlacer.placeBranch
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, int pFreeTreeHeight, TreeConfiguration pTreeConfig, List<FoliagePlacer.FoliageAttachment> pFoliageAttachments, BlockPos.MutableBlockPos pPos, int pY, Direction pDirection, int pExtraBranchLength, int pExtraBranchSteps) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos pPos, TreeConfiguration pConfig) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos pPos, TreeConfiguration pConfig, Function<BlockState, BlockState> pPropertySetter) protected void
TrunkPlacer.placeLogIfFree
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos.MutableBlockPos pPos, TreeConfiguration pConfig) private void
GiantTrunkPlacer.placeLogIfFreeWithOffset
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos.MutableBlockPos pPos, TreeConfiguration pConfig, BlockPos pOffsetPos, int pOffsetX, int pOffsetY, int pOffsetZ) BendingTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226079_, BiConsumer<BlockPos, BlockState> p_226080_, RandomSource p_226081_, int p_226082_, BlockPos p_226083_, TreeConfiguration p_226084_) CherryTrunkPlacer.placeTrunk
(LevelSimulatedReader p_272827_, BiConsumer<BlockPos, BlockState> p_272650_, RandomSource p_272993_, int p_272990_, BlockPos p_273471_, TreeConfiguration p_273355_) DarkOakTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226086_, BiConsumer<BlockPos, BlockState> p_226087_, RandomSource p_226088_, int p_226089_, BlockPos p_226090_, TreeConfiguration p_226091_) FancyTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226093_, BiConsumer<BlockPos, BlockState> p_226094_, RandomSource p_226095_, int p_226096_, BlockPos p_226097_, TreeConfiguration p_226098_) ForkingTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226116_, BiConsumer<BlockPos, BlockState> p_226117_, RandomSource p_226118_, int p_226119_, BlockPos p_226120_, TreeConfiguration p_226121_) GiantTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226123_, BiConsumer<BlockPos, BlockState> p_226124_, RandomSource p_226125_, int p_226126_, BlockPos p_226127_, TreeConfiguration p_226128_) MegaJungleTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226140_, BiConsumer<BlockPos, BlockState> p_226141_, RandomSource p_226142_, int p_226143_, BlockPos p_226144_, TreeConfiguration p_226145_) StraightTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226147_, BiConsumer<BlockPos, BlockState> p_226148_, RandomSource p_226149_, int p_226150_, BlockPos p_226151_, TreeConfiguration p_226152_) abstract List
<FoliagePlacer.FoliageAttachment> TrunkPlacer.placeTrunk
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, int pFreeTreeHeight, BlockPos pPos, TreeConfiguration pConfig) UpwardsBranchingTrunkPlacer.placeTrunk
(LevelSimulatedReader p_226225_, BiConsumer<BlockPos, BlockState> p_226226_, RandomSource p_226227_, int p_226228_, BlockPos p_226229_, TreeConfiguration p_226230_) protected static void
TrunkPlacer.setDirtAt
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, BlockPos pPos, TreeConfiguration pConfig) -
Uses of RandomSource in net.minecraft.world.level.levelgen.heightproviders
Methods in net.minecraft.world.level.levelgen.heightproviders with parameters of type RandomSourceModifier and TypeMethodDescriptionint
BiasedToBottomHeight.sample
(RandomSource p_226297_, WorldGenerationContext p_226298_) int
ConstantHeight.sample
(RandomSource p_226300_, WorldGenerationContext p_226301_) abstract int
HeightProvider.sample
(RandomSource pRandom, WorldGenerationContext pContext) int
TrapezoidHeight.sample
(RandomSource p_226305_, WorldGenerationContext p_226306_) int
UniformHeight.sample
(RandomSource p_226308_, WorldGenerationContext p_226309_) int
VeryBiasedToBottomHeight.sample
(RandomSource p_226311_, WorldGenerationContext p_226312_) int
WeightedListHeight.sample
(RandomSource p_226314_, WorldGenerationContext p_226315_) -
Uses of RandomSource in net.minecraft.world.level.levelgen.placement
Methods in net.minecraft.world.level.levelgen.placement with parameters of type RandomSourceModifier and TypeMethodDescriptionprotected int
CountPlacement.count
(RandomSource p_226333_, BlockPos p_226334_) protected int
NoiseBasedCountPlacement.count
(RandomSource p_226352_, BlockPos p_226353_) protected int
NoiseThresholdCountPlacement.count
(RandomSource p_226355_, BlockPos p_226356_) protected abstract int
RepeatingPlacement.count
(RandomSource pRandom, BlockPos pPos) CountOnEveryLayerPlacement.getPositions
(PlacementContext p_226329_, RandomSource p_226330_, BlockPos p_226331_) Deprecated.EnvironmentScanPlacement.getPositions
(PlacementContext p_226336_, RandomSource p_226337_, BlockPos p_226338_) FixedPlacement.getPositions
(PlacementContext p_352915_, RandomSource p_352928_, BlockPos p_352899_) HeightmapPlacement.getPositions
(PlacementContext p_226344_, RandomSource p_226345_, BlockPos p_226346_) HeightRangePlacement.getPositions
(PlacementContext p_226340_, RandomSource p_226341_, BlockPos p_226342_) InSquarePlacement.getPositions
(PlacementContext p_226348_, RandomSource p_226349_, BlockPos p_226350_) PlacementFilter.getPositions
(PlacementContext p_226386_, RandomSource p_226387_, BlockPos p_226388_) PlacementModifier.getPositions
(PlacementContext pContext, RandomSource pRandom, BlockPos pPos) RandomOffsetPlacement.getPositions
(PlacementContext p_226393_, RandomSource p_226394_, BlockPos p_226395_) RepeatingPlacement.getPositions
(PlacementContext p_226403_, RandomSource p_226404_, BlockPos p_226405_) boolean
PlacedFeature.place
(WorldGenLevel pLevel, ChunkGenerator pGenerator, RandomSource pRandom, BlockPos pPos) boolean
PlacedFeature.placeWithBiomeCheck
(WorldGenLevel pLevel, ChunkGenerator pGenerator, RandomSource pRandom, BlockPos pPos) private boolean
PlacedFeature.placeWithContext
(PlacementContext pContext, RandomSource pSource, BlockPos pPos) protected boolean
BiomeFilter.shouldPlace
(PlacementContext p_226317_, RandomSource p_226318_, BlockPos p_226319_) protected boolean
BlockPredicateFilter.shouldPlace
(PlacementContext p_226321_, RandomSource p_226322_, BlockPos p_226323_) protected abstract boolean
PlacementFilter.shouldPlace
(PlacementContext pContext, RandomSource pRandom, BlockPos pPos) protected boolean
RarityFilter.shouldPlace
(PlacementContext p_226397_, RandomSource p_226398_, BlockPos p_226399_) protected boolean
SurfaceRelativeThresholdFilter.shouldPlace
(PlacementContext p_226407_, RandomSource p_226408_, BlockPos p_226409_) protected boolean
SurfaceWaterDepthFilter.shouldPlace
(PlacementContext p_226411_, RandomSource p_226412_, BlockPos p_226413_) -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure
Methods in net.minecraft.world.level.levelgen.structure with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
StructurePiece.addChildren
(StructurePiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom) void
PostPlacementProcessor.afterPlace
(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, ChunkPos pChunkPos, PiecesContainer pPieces) void
Structure.afterPlace
(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pChunkGenerator, RandomSource pRandom, BoundingBox pBoundingBox, ChunkPos pChunkPos, PiecesContainer pPieces) protected boolean
StructurePiece.createChest
(ServerLevelAccessor pLevel, BoundingBox pBox, RandomSource pRandom, BlockPos pPos, ResourceKey<LootTable> pLootTable, BlockState pState) protected boolean
StructurePiece.createChest
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, int pX, int pY, int pZ, ResourceKey<LootTable> pLootTable) protected boolean
StructurePiece.createDispenser
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, int pX, int pY, int pZ, Direction pFacing, ResourceKey<LootTable> pLootTable) protected void
StructurePiece.generateBox
(WorldGenLevel pLevel, BoundingBox pBox, int pMinX, int pMinY, int pMinZ, int pMaxX, int pMaxY, int pMaxZ, boolean pAlwaysReplace, RandomSource pRandom, StructurePiece.BlockSelector pBlockSelector) protected void
StructurePiece.generateBox
(WorldGenLevel pLevel, BoundingBox pBoundingBox, BoundingBox pBox, boolean pAlwaysReplace, RandomSource pRandom, StructurePiece.BlockSelector pBlockSelector) protected void
StructurePiece.generateMaybeBox
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, float pChance, int pX1, int pY1, int pZ1, int pX2, int pY2, int pZ2, BlockState pEdgeState, BlockState pState, boolean pRequireNonAir, boolean pRequireSkylight) protected static Direction
StructurePiece.getRandomHorizontalDirection
(RandomSource pRandom) protected abstract void
TemplateStructurePiece.handleDataMarker
(String pName, BlockPos pPos, ServerLevelAccessor pLevel, RandomSource pRandom, BoundingBox pBox) protected void
StructurePiece.maybeGenerateBlock
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, float pChance, int pX, int pY, int pZ, BlockState pState) abstract void
StructurePiece.BlockSelector.next
(RandomSource pRandom, int pX, int pY, int pZ, boolean pWall) void
PoolElementStructurePiece.place
(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, BlockPos pPos, boolean pKeepJigsaws) void
StructureStart.placeInChunk
(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, ChunkPos pChunkPos) void
PoolElementStructurePiece.postProcess
(WorldGenLevel p_226502_, StructureManager p_226503_, ChunkGenerator p_226504_, RandomSource p_226505_, BoundingBox p_226506_, ChunkPos p_226507_, BlockPos p_226508_) abstract void
StructurePiece.postProcess
(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, ChunkPos pChunkPos, BlockPos pPos) void
TemplateStructurePiece.postProcess
(WorldGenLevel p_226899_, StructureManager p_226900_, ChunkGenerator p_226901_, RandomSource p_226902_, BoundingBox p_226903_, ChunkPos p_226904_, BlockPos p_226905_) -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure.pieces
Methods in net.minecraft.world.level.levelgen.structure.pieces with parameters of type RandomSourceModifier and TypeMethodDescriptionint
StructurePiecesBuilder.moveBelowSeaLevel
(int pSeaLevel, int pMinY, RandomSource pRandom, int pAmount) Deprecated.void
StructurePiecesBuilder.moveInsideHeights
(RandomSource pRandom, int pMinY, int pMaxY) Deprecated. -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure.placement
Methods in net.minecraft.world.level.levelgen.structure.placement with parameters of type RandomSourceModifier and TypeMethodDescriptionint
RandomSpreadType.evaluate
(RandomSource pRandom, int pBound) -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure.pools
Fields in net.minecraft.world.level.levelgen.structure.pools declared as RandomSourceMethods in net.minecraft.world.level.levelgen.structure.pools with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate static void
JigsawPlacement.addPieces
(RandomState pRandomState, int pMaxDepth, boolean pUseExpansionHack, ChunkGenerator pChunkGenerator, StructureTemplateManager pStructureTemplateManager, LevelHeightAccessor pLevel, RandomSource pRandom, Registry<StructureTemplatePool> pPools, PoolElementStructurePiece pStartPiece, List<PoolElementStructurePiece> pPieces, VoxelShape pFree, PoolAliasLookup pAliasLookup, LiquidSettings pLiquidSettings) StructureTemplatePool.getRandomTemplate
(RandomSource pRandom) EmptyPoolElement.getShuffledJigsawBlocks
(StructureTemplateManager p_227176_, BlockPos p_227177_, Rotation p_227178_, RandomSource p_227179_) FeaturePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager p_227199_, BlockPos p_227200_, Rotation p_227201_, RandomSource p_227202_) ListPoolElement.getShuffledJigsawBlocks
(StructureTemplateManager p_227290_, BlockPos p_227291_, Rotation p_227292_, RandomSource p_227293_) SinglePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager p_227320_, BlockPos p_227321_, Rotation p_227322_, RandomSource p_227323_) abstract List
<StructureTemplate.JigsawBlockInfo> StructurePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager pStructureTemplateManager, BlockPos pPos, Rotation pRotation, RandomSource pRandom) StructureTemplatePool.getShuffledTemplates
(RandomSource pRandom) void
StructurePoolElement.handleDataMarker
(LevelAccessor pLevel, StructureTemplate.StructureBlockInfo pBlockInfo, BlockPos pPos, Rotation pRotation, RandomSource pRandom, BoundingBox pBox) boolean
EmptyPoolElement.place
(StructureTemplateManager p_227158_, WorldGenLevel p_227159_, StructureManager p_227160_, ChunkGenerator p_227161_, BlockPos p_227162_, BlockPos p_227163_, Rotation p_227164_, BoundingBox p_227165_, RandomSource p_227166_, LiquidSettings p_352245_, boolean p_227167_) boolean
FeaturePoolElement.place
(StructureTemplateManager p_227181_, WorldGenLevel p_227182_, StructureManager p_227183_, ChunkGenerator p_227184_, BlockPos p_227185_, BlockPos p_227186_, Rotation p_227187_, BoundingBox p_227188_, RandomSource p_227189_, LiquidSettings p_352143_, boolean p_227190_) boolean
ListPoolElement.place
(StructureTemplateManager p_227272_, WorldGenLevel p_227273_, StructureManager p_227274_, ChunkGenerator p_227275_, BlockPos p_227276_, BlockPos p_227277_, Rotation p_227278_, BoundingBox p_227279_, RandomSource p_227280_, LiquidSettings p_352445_, boolean p_227281_) boolean
SinglePoolElement.place
(StructureTemplateManager p_227302_, WorldGenLevel p_227303_, StructureManager p_227304_, ChunkGenerator p_227305_, BlockPos p_227306_, BlockPos p_227307_, Rotation p_227308_, BoundingBox p_227309_, RandomSource p_227310_, LiquidSettings p_352088_, boolean p_227311_) abstract boolean
StructurePoolElement.place
(StructureTemplateManager pStructureTemplateManager, WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, BlockPos pOffset, BlockPos pPos, Rotation pRotation, BoundingBox pBox, RandomSource pRandom, LiquidSettings pLiquidSettings, boolean pKeepJigsaws) Constructors in net.minecraft.world.level.levelgen.structure.pools with parameters of type RandomSourceModifierConstructorDescription(package private)
Placer
(Registry<StructureTemplatePool> pPools, int pMaxDepth, ChunkGenerator pChunkGenerator, StructureTemplateManager pStructureTemplateManager, List<? super PoolElementStructurePiece> pPieces, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure.pools.alias
Methods in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
DirectPoolAlias.forEachResolved
(RandomSource p_405543_, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> p_405626_) void
PoolAliasBinding.forEachResolved
(RandomSource pRandom, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> pStucturePoolKey) void
RandomGroupPoolAlias.forEachResolved
(RandomSource p_404851_, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> p_405752_) void
RandomPoolAlias.forEachResolved
(RandomSource p_405862_, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> p_404739_) -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure.structures
Fields in net.minecraft.world.level.levelgen.structure.structures declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
WoodlandMansionPieces.MansionGrid.random
private final RandomSource
WoodlandMansionPieces.MansionPiecePlacer.random
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
MineshaftPieces.MineShaftCorridor.addChildren
(StructurePiece p_227795_, StructurePieceAccessor p_227796_, RandomSource p_227797_) void
MineshaftPieces.MineShaftCrossing.addChildren
(StructurePiece p_227851_, StructurePieceAccessor p_227852_, RandomSource p_227853_) void
MineshaftPieces.MineShaftRoom.addChildren
(StructurePiece p_227922_, StructurePieceAccessor p_227923_, RandomSource p_227924_) void
MineshaftPieces.MineShaftStairs.addChildren
(StructurePiece p_227947_, StructurePieceAccessor p_227948_, RandomSource p_227949_) void
NetherFortressPieces.BridgeCrossing.addChildren
(StructurePiece p_228043_, StructurePieceAccessor p_228044_, RandomSource p_228045_) void
NetherFortressPieces.BridgeStraight.addChildren
(StructurePiece p_228102_, StructurePieceAccessor p_228103_, RandomSource p_228104_) void
NetherFortressPieces.CastleCorridorStairsPiece.addChildren
(StructurePiece p_228131_, StructurePieceAccessor p_228132_, RandomSource p_228133_) void
NetherFortressPieces.CastleCorridorTBalconyPiece.addChildren
(StructurePiece p_228159_, StructurePieceAccessor p_228160_, RandomSource p_228161_) void
NetherFortressPieces.CastleEntrance.addChildren
(StructurePiece p_228188_, StructurePieceAccessor p_228189_, RandomSource p_228190_) void
NetherFortressPieces.CastleSmallCorridorCrossingPiece.addChildren
(StructurePiece p_228217_, StructurePieceAccessor p_228218_, RandomSource p_228219_) void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addChildren
(StructurePiece p_228247_, StructurePieceAccessor p_228248_, RandomSource p_228249_) void
NetherFortressPieces.CastleSmallCorridorPiece.addChildren
(StructurePiece p_228279_, StructurePieceAccessor p_228280_, RandomSource p_228281_) void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.addChildren
(StructurePiece p_228309_, StructurePieceAccessor p_228310_, RandomSource p_228311_) void
NetherFortressPieces.CastleStalkRoom.addChildren
(StructurePiece p_228341_, StructurePieceAccessor p_228342_, RandomSource p_228343_) void
NetherFortressPieces.RoomCrossing.addChildren
(StructurePiece p_228469_, StructurePieceAccessor p_228470_, RandomSource p_228471_) void
NetherFortressPieces.StairsRoom.addChildren
(StructurePiece p_228497_, StructurePieceAccessor p_228498_, RandomSource p_228499_) void
StrongholdPieces.ChestCorridor.addChildren
(StructurePiece p_229480_, StructurePieceAccessor p_229481_, RandomSource p_229482_) void
StrongholdPieces.FiveCrossing.addChildren
(StructurePiece p_229542_, StructurePieceAccessor p_229543_, RandomSource p_229544_) void
StrongholdPieces.LeftTurn.addChildren
(StructurePiece p_229572_, StructurePieceAccessor p_229573_, RandomSource p_229574_) void
StrongholdPieces.PortalRoom.addChildren
(StructurePiece p_229643_, StructurePieceAccessor p_229644_, RandomSource p_229645_) void
StrongholdPieces.PrisonHall.addChildren
(StructurePiece p_229675_, StructurePieceAccessor p_229676_, RandomSource p_229677_) void
StrongholdPieces.RightTurn.addChildren
(StructurePiece p_229702_, StructurePieceAccessor p_229703_, RandomSource p_229704_) void
StrongholdPieces.RoomCrossing.addChildren
(StructurePiece p_229733_, StructurePieceAccessor p_229734_, RandomSource p_229735_) void
StrongholdPieces.StairsDown.addChildren
(StructurePiece p_229783_, StructurePieceAccessor p_229784_, RandomSource p_229785_) void
StrongholdPieces.Straight.addChildren
(StructurePiece p_229828_, StructurePieceAccessor p_229829_, RandomSource p_229830_) void
StrongholdPieces.StraightStairsDown.addChildren
(StructurePiece p_229861_, StructurePieceAccessor p_229862_, RandomSource p_229863_) private static void
OceanRuinPieces.addClusterRuins
(StructureTemplateManager pStructureTemplateManager, RandomSource pRandom, Rotation pRotation, BlockPos pPos, OceanRuinStructure pStructure, StructurePieceAccessor pStructurePieceAccessor) private void
RuinedPortalPiece.addNetherrackDripColumn
(RandomSource pRandom, LevelAccessor pLevel, BlockPos pPos) private void
RuinedPortalPiece.addNetherrackDripColumnsBelowPortal
(RandomSource pRandom, LevelAccessor pLevel) private static void
OceanRuinPieces.addPiece
(StructureTemplateManager pStructureTemplateManager, BlockPos pPos, Rotation pRotation, StructurePieceAccessor pStructurePieceAccessor, RandomSource pRandom, OceanRuinStructure pStructure, boolean pIsLarge, float pIntegrity) static void
IglooPieces.addPieces
(StructureTemplateManager pStructureTemplateManager, BlockPos pStartPos, Rotation pRotation, StructurePieceAccessor pPieces, RandomSource pRandom) static void
NetherFossilPieces.addPieces
(StructureTemplateManager pStructureManager, StructurePieceAccessor pPieces, RandomSource pRandom, BlockPos pPos) static void
OceanRuinPieces.addPieces
(StructureTemplateManager pStructureTemplateManager, BlockPos pPos, Rotation pRotation, StructurePieceAccessor pStructurePieceAccessor, RandomSource pRandom, OceanRuinStructure pStructure) ShipwreckPieces.addRandomPiece
(StructureTemplateManager pStructureTemplateManager, BlockPos pPos, Rotation pRotation, StructurePieceAccessor pPieces, RandomSource pRandom, boolean pIsBeached) void
DesertPyramidStructure.afterPlace
(WorldGenLevel p_273644_, StructureManager p_272615_, ChunkGenerator p_273655_, RandomSource p_272939_, BoundingBox p_273179_, ChunkPos p_273334_, PiecesContainer p_273575_) void
WoodlandMansionStructure.afterPlace
(WorldGenLevel p_230227_, StructureManager p_230228_, ChunkGenerator p_230229_, RandomSource p_230230_, BoundingBox p_230231_, ChunkPos p_230232_, PiecesContainer p_230233_) OceanRuinPieces.allPositions
(RandomSource pRandom, BlockPos pPos) int
ShipwreckPieces.ShipwreckPiece.calculateBeachedPosition
(int pMaxHeight, RandomSource pRandom) OceanMonumentPieces.FitDoubleXRoom.create
(Direction p_228594_, OceanMonumentPieces.RoomDefinition p_228595_, RandomSource p_228596_) OceanMonumentPieces.FitDoubleXYRoom.create
(Direction p_228601_, OceanMonumentPieces.RoomDefinition p_228602_, RandomSource p_228603_) OceanMonumentPieces.FitDoubleYRoom.create
(Direction p_228608_, OceanMonumentPieces.RoomDefinition p_228609_, RandomSource p_228610_) OceanMonumentPieces.FitDoubleYZRoom.create
(Direction p_228615_, OceanMonumentPieces.RoomDefinition p_228616_, RandomSource p_228617_) OceanMonumentPieces.FitDoubleZRoom.create
(Direction p_228622_, OceanMonumentPieces.RoomDefinition p_228623_, RandomSource p_228624_) OceanMonumentPieces.FitSimpleRoom.create
(Direction p_228629_, OceanMonumentPieces.RoomDefinition p_228630_, RandomSource p_228631_) OceanMonumentPieces.FitSimpleTopRoom.create
(Direction p_228636_, OceanMonumentPieces.RoomDefinition p_228637_, RandomSource p_228638_) OceanMonumentPieces.MonumentRoomFitter.create
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom, RandomSource pRandom) protected boolean
MineshaftPieces.MineShaftCorridor.createChest
(WorldGenLevel p_227787_, BoundingBox p_227788_, RandomSource p_227789_, int p_227790_, int p_227791_, int p_227792_, ResourceKey<LootTable> p_335869_) NetherFortressPieces.BridgeEndFiller.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.BridgeStraight.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleEntrance.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleSmallCorridorRightTurnPiece.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) StrongholdPieces.ChestCorridor.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) StrongholdPieces.FiveCrossing.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.LeftTurn
StrongholdPieces.LeftTurn.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.Library
StrongholdPieces.Library.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.PrisonHall
StrongholdPieces.PrisonHall.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.RightTurn
StrongholdPieces.RightTurn.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) StrongholdPieces.RoomCrossing.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.StairsDown
StrongholdPieces.StairsDown.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.Straight
StrongholdPieces.Straight.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) StrongholdPieces.StraightStairsDown.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) private static MineshaftPieces.MineShaftPiece
MineshaftPieces.createRandomShaftPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth, MineshaftStructure.Type pType) (package private) static NetherFortressPieces.NetherBridgePiece
NetherFortressPieces.findAndCreateBridgePieceFactory
(NetherFortressPieces.PieceWeight pWeight, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.findAndCreatePieceFactory
(Class<? extends StrongholdPieces.StrongholdPiece> pPieceClass, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) static BoundingBox
MineshaftPieces.MineShaftCorridor.findCorridorSize
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) static BoundingBox
MineshaftPieces.MineShaftCrossing.findCrossing
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) static BoundingBox
StrongholdPieces.FillerCorridor.findPieceBox
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation) static BoundingBox
MineshaftPieces.MineShaftStairs.findStairs
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) private static int
RuinedPortalStructure.findSuitableY
(RandomSource pRandom, ChunkGenerator pChunkGenerator, RuinedPortalPiece.VerticalPlacement pVerticalPlacement, boolean pAirPocket, int pHeight, int pBlockCountY, BoundingBox pBox, LevelHeightAccessor pLevel, RandomState pRandomState) boolean
EndCityPieces.SectionGenerator.generate
(StructureTemplateManager pStructureTemplateManager, int pCounter, EndCityPieces.EndCityPiece pPiece, BlockPos pStartPos, List<StructurePiece> pPieces, RandomSource pRandom) (package private) static MineshaftPieces.MineShaftPiece
MineshaftPieces.generateAndAddPiece
(StructurePiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) private StructurePiece
NetherFortressPieces.NetherBridgePiece.generateAndAddPiece
(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth, boolean pCastlePiece) (package private) static StructurePiece
StrongholdPieces.generateAndAddPiece
(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) protected StructurePiece
NetherFortressPieces.NetherBridgePiece.generateChildForward
(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetX, int pOffsetY, boolean pCastlePiece) protected StructurePiece
NetherFortressPieces.NetherBridgePiece.generateChildLeft
(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX, boolean pCastlePiece) protected StructurePiece
NetherFortressPieces.NetherBridgePiece.generateChildRight
(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX, boolean pCastlePiece) private void
OceanMonumentPieces.MonumentBuilding.generateEntranceArchs
(WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox) private void
OceanMonumentPieces.MonumentBuilding.generateEntranceWall
(WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox) private void
OceanMonumentPieces.MonumentBuilding.generateLowerWall
(WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox) static void
WoodlandMansionPieces.generateMansion
(StructureTemplateManager pStructureTemplateManager, BlockPos pPos, Rotation pRotation, List<WoodlandMansionPieces.WoodlandMansionPiece> pPieces, RandomSource pRandom) private void
OceanMonumentPieces.MonumentBuilding.generateMiddleWall
(WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox) NetherFortressPieces.NetherBridgePiece.generatePiece
(NetherFortressPieces.StartPiece pStartPiece, List<NetherFortressPieces.PieceWeight> pWeights, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.generatePieceFromSmallDoor
(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) private void
OceanMonumentPieces.MonumentBuilding.generateRoofPiece
(WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox) private List
<OceanMonumentPieces.RoomDefinition> OceanMonumentPieces.MonumentBuilding.generateRoomGraph
(RandomSource pRandom) protected void
StrongholdPieces.StrongholdPiece.generateSmallDoor
(WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox, StrongholdPieces.StrongholdPiece.SmallDoorType pType, int pX, int pY, int pZ) protected StructurePiece
StrongholdPieces.StrongholdPiece.generateSmallDoorChildForward
(StrongholdPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetX, int pOffsetY) protected StructurePiece
StrongholdPieces.StrongholdPiece.generateSmallDoorChildLeft
(StrongholdPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX) protected StructurePiece
StrongholdPieces.StrongholdPiece.generateSmallDoorChildRight
(StrongholdPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX) private void
OceanMonumentPieces.MonumentBuilding.generateUpperWall
(WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox) private void
OceanMonumentPieces.MonumentBuilding.generateWing
(boolean pWing, int pX, WorldGenLevel pLevel, RandomSource pRandom, BoundingBox pBox) WoodlandMansionPieces.FirstFloorRoomCollection.get1x1
(RandomSource p_229995_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x1
(RandomSource pRandom) WoodlandMansionPieces.SecondFloorRoomCollection.get1x1
(RandomSource p_230144_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x1Secret
(RandomSource p_230000_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x1Secret
(RandomSource pRandom) WoodlandMansionPieces.SecondFloorRoomCollection.get1x1Secret
(RandomSource p_230149_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x2FrontEntrance
(RandomSource p_230002_, boolean p_230003_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x2FrontEntrance
(RandomSource pRandom, boolean pIsStairs) WoodlandMansionPieces.SecondFloorRoomCollection.get1x2FrontEntrance
(RandomSource p_230151_, boolean p_230152_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x2Secret
(RandomSource p_230005_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x2Secret
(RandomSource pRandom) WoodlandMansionPieces.SecondFloorRoomCollection.get1x2Secret
(RandomSource p_230154_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x2SideEntrance
(RandomSource p_229997_, boolean p_229998_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x2SideEntrance
(RandomSource pRandom, boolean pIsStairs) WoodlandMansionPieces.SecondFloorRoomCollection.get1x2SideEntrance
(RandomSource p_230146_, boolean p_230147_) WoodlandMansionPieces.FirstFloorRoomCollection.get2x2
(RandomSource p_230007_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get2x2
(RandomSource pRandom) WoodlandMansionPieces.SecondFloorRoomCollection.get2x2
(RandomSource p_230156_) WoodlandMansionPieces.FirstFloorRoomCollection.get2x2Secret
(RandomSource p_230009_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get2x2Secret
(RandomSource pRandom) WoodlandMansionPieces.SecondFloorRoomCollection.get2x2Secret
(RandomSource p_230158_) private static ResourceLocation
OceanRuinPieces.getBigWarmRuin
(RandomSource pRandom) private static int
RuinedPortalStructure.getRandomWithinInterval
(RandomSource pRandom, int pMin, int pMax) private static ResourceLocation
OceanRuinPieces.getSmallWarmRuin
(RandomSource pRandom) protected void
EndCityPieces.EndCityPiece.handleDataMarker
(String p_227505_, BlockPos p_227506_, ServerLevelAccessor p_227507_, RandomSource p_227508_, BoundingBox p_227509_) protected void
IglooPieces.IglooPiece.handleDataMarker
(String p_227582_, BlockPos p_227583_, ServerLevelAccessor p_227584_, RandomSource p_227585_, BoundingBox p_227586_) protected void
NetherFossilPieces.NetherFossilPiece.handleDataMarker
(String p_228561_, BlockPos p_228562_, ServerLevelAccessor p_228563_, RandomSource p_228564_, BoundingBox p_228565_) protected void
OceanRuinPieces.OceanRuinPiece.handleDataMarker
(String p_229046_, BlockPos p_229047_, ServerLevelAccessor p_229048_, RandomSource p_229049_, BoundingBox p_229050_) protected void
RuinedPortalPiece.handleDataMarker
(String p_229170_, BlockPos p_229171_, ServerLevelAccessor p_229172_, RandomSource p_229173_, BoundingBox p_229174_) protected void
ShipwreckPieces.ShipwreckPiece.handleDataMarker
(String p_229376_, BlockPos p_229377_, ServerLevelAccessor p_229378_, RandomSource p_229379_, BoundingBox p_229380_) protected void
WoodlandMansionPieces.WoodlandMansionPiece.handleDataMarker
(String p_230213_, BlockPos p_230214_, ServerLevelAccessor p_230215_, RandomSource p_230216_, BoundingBox p_230217_) private void
RuinedPortalPiece.maybeAddLeavesAbove
(RandomSource pRandom, LevelAccessor pLevel, BlockPos pPos) private void
RuinedPortalPiece.maybeAddVines
(RandomSource pRandom, LevelAccessor pLevel, BlockPos pPos) private void
MineshaftPieces.MineShaftCorridor.maybePlaceCobWeb
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, float pChance, int pX, int pY, int pZ) void
JungleTemplePiece.MossStoneSelector.next
(RandomSource p_227686_, int p_227687_, int p_227688_, int p_227689_, boolean p_227690_) void
StrongholdPieces.SmoothStoneSelector.next
(RandomSource p_229749_, int p_229750_, int p_229751_, int p_229752_, boolean p_229753_) private void
RuinedPortalPiece.placeNetherrackOrMagma
(RandomSource pRandom, LevelAccessor pLevel, BlockPos pPos) private void
MineshaftPieces.MineShaftCorridor.placeSupport
(WorldGenLevel pLevel, BoundingBox pBox, int pMinX, int pMinY, int pZ, int pMaxY, int pMaxX, RandomSource pRandom) void
BuriedTreasurePieces.BuriedTreasurePiece.postProcess
(WorldGenLevel p_227370_, StructureManager p_227371_, ChunkGenerator p_227372_, RandomSource p_227373_, BoundingBox p_227374_, ChunkPos p_227375_, BlockPos p_227376_) void
DesertPyramidPiece.postProcess
(WorldGenLevel p_227405_, StructureManager p_227406_, ChunkGenerator p_227407_, RandomSource p_227408_, BoundingBox p_227409_, ChunkPos p_227410_, BlockPos p_227411_) void
IglooPieces.IglooPiece.postProcess
(WorldGenLevel p_227568_, StructureManager p_227569_, ChunkGenerator p_227570_, RandomSource p_227571_, BoundingBox p_227572_, ChunkPos p_227573_, BlockPos p_227574_) void
JungleTemplePiece.postProcess
(WorldGenLevel p_227674_, StructureManager p_227675_, ChunkGenerator p_227676_, RandomSource p_227677_, BoundingBox p_227678_, ChunkPos p_227679_, BlockPos p_227680_) void
MineshaftPieces.MineShaftCorridor.postProcess
(WorldGenLevel p_227743_, StructureManager p_227744_, ChunkGenerator p_227745_, RandomSource p_227746_, BoundingBox p_227747_, ChunkPos p_227748_, BlockPos p_227749_) void
MineshaftPieces.MineShaftCrossing.postProcess
(WorldGenLevel p_227836_, StructureManager p_227837_, ChunkGenerator p_227838_, RandomSource p_227839_, BoundingBox p_227840_, ChunkPos p_227841_, BlockPos p_227842_) void
MineshaftPieces.MineShaftRoom.postProcess
(WorldGenLevel p_227914_, StructureManager p_227915_, ChunkGenerator p_227916_, RandomSource p_227917_, BoundingBox p_227918_, ChunkPos p_227919_, BlockPos p_227920_) void
MineshaftPieces.MineShaftStairs.postProcess
(WorldGenLevel p_227939_, StructureManager p_227940_, ChunkGenerator p_227941_, RandomSource p_227942_, BoundingBox p_227943_, ChunkPos p_227944_, BlockPos p_227945_) void
NetherFortressPieces.BridgeCrossing.postProcess
(WorldGenLevel p_228035_, StructureManager p_228036_, ChunkGenerator p_228037_, RandomSource p_228038_, BoundingBox p_228039_, ChunkPos p_228040_, BlockPos p_228041_) void
NetherFortressPieces.BridgeEndFiller.postProcess
(WorldGenLevel p_228065_, StructureManager p_228066_, ChunkGenerator p_228067_, RandomSource p_228068_, BoundingBox p_228069_, ChunkPos p_228070_, BlockPos p_228071_) void
NetherFortressPieces.BridgeStraight.postProcess
(WorldGenLevel p_228094_, StructureManager p_228095_, ChunkGenerator p_228096_, RandomSource p_228097_, BoundingBox p_228098_, ChunkPos p_228099_, BlockPos p_228100_) void
NetherFortressPieces.CastleCorridorStairsPiece.postProcess
(WorldGenLevel p_228123_, StructureManager p_228124_, ChunkGenerator p_228125_, RandomSource p_228126_, BoundingBox p_228127_, ChunkPos p_228128_, BlockPos p_228129_) void
NetherFortressPieces.CastleCorridorTBalconyPiece.postProcess
(WorldGenLevel p_228151_, StructureManager p_228152_, ChunkGenerator p_228153_, RandomSource p_228154_, BoundingBox p_228155_, ChunkPos p_228156_, BlockPos p_228157_) void
NetherFortressPieces.CastleEntrance.postProcess
(WorldGenLevel p_228180_, StructureManager p_228181_, ChunkGenerator p_228182_, RandomSource p_228183_, BoundingBox p_228184_, ChunkPos p_228185_, BlockPos p_228186_) void
NetherFortressPieces.CastleSmallCorridorCrossingPiece.postProcess
(WorldGenLevel p_228209_, StructureManager p_228210_, ChunkGenerator p_228211_, RandomSource p_228212_, BoundingBox p_228213_, ChunkPos p_228214_, BlockPos p_228215_) void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.postProcess
(WorldGenLevel p_228239_, StructureManager p_228240_, ChunkGenerator p_228241_, RandomSource p_228242_, BoundingBox p_228243_, ChunkPos p_228244_, BlockPos p_228245_) void
NetherFortressPieces.CastleSmallCorridorPiece.postProcess
(WorldGenLevel p_228271_, StructureManager p_228272_, ChunkGenerator p_228273_, RandomSource p_228274_, BoundingBox p_228275_, ChunkPos p_228276_, BlockPos p_228277_) void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.postProcess
(WorldGenLevel p_228301_, StructureManager p_228302_, ChunkGenerator p_228303_, RandomSource p_228304_, BoundingBox p_228305_, ChunkPos p_228306_, BlockPos p_228307_) void
NetherFortressPieces.CastleStalkRoom.postProcess
(WorldGenLevel p_228333_, StructureManager p_228334_, ChunkGenerator p_228335_, RandomSource p_228336_, BoundingBox p_228337_, ChunkPos p_228338_, BlockPos p_228339_) void
NetherFortressPieces.MonsterThrone.postProcess
(WorldGenLevel p_228362_, StructureManager p_228363_, ChunkGenerator p_228364_, RandomSource p_228365_, BoundingBox p_228366_, ChunkPos p_228367_, BlockPos p_228368_) void
NetherFortressPieces.RoomCrossing.postProcess
(WorldGenLevel p_228461_, StructureManager p_228462_, ChunkGenerator p_228463_, RandomSource p_228464_, BoundingBox p_228465_, ChunkPos p_228466_, BlockPos p_228467_) void
NetherFortressPieces.StairsRoom.postProcess
(WorldGenLevel p_228489_, StructureManager p_228490_, ChunkGenerator p_228491_, RandomSource p_228492_, BoundingBox p_228493_, ChunkPos p_228494_, BlockPos p_228495_) void
NetherFossilPieces.NetherFossilPiece.postProcess
(WorldGenLevel p_228548_, StructureManager p_228549_, ChunkGenerator p_228550_, RandomSource p_228551_, BoundingBox p_228552_, ChunkPos p_228553_, BlockPos p_228554_) void
OceanMonumentPieces.MonumentBuilding.postProcess
(WorldGenLevel p_228659_, StructureManager p_228660_, ChunkGenerator p_228661_, RandomSource p_228662_, BoundingBox p_228663_, ChunkPos p_228664_, BlockPos p_228665_) void
OceanMonumentPieces.OceanMonumentCoreRoom.postProcess
(WorldGenLevel p_228704_, StructureManager p_228705_, ChunkGenerator p_228706_, RandomSource p_228707_, BoundingBox p_228708_, ChunkPos p_228709_, BlockPos p_228710_) void
OceanMonumentPieces.OceanMonumentDoubleXRoom.postProcess
(WorldGenLevel p_228717_, StructureManager p_228718_, ChunkGenerator p_228719_, RandomSource p_228720_, BoundingBox p_228721_, ChunkPos p_228722_, BlockPos p_228723_) void
OceanMonumentPieces.OceanMonumentDoubleXYRoom.postProcess
(WorldGenLevel p_228730_, StructureManager p_228731_, ChunkGenerator p_228732_, RandomSource p_228733_, BoundingBox p_228734_, ChunkPos p_228735_, BlockPos p_228736_) void
OceanMonumentPieces.OceanMonumentDoubleYRoom.postProcess
(WorldGenLevel p_228743_, StructureManager p_228744_, ChunkGenerator p_228745_, RandomSource p_228746_, BoundingBox p_228747_, ChunkPos p_228748_, BlockPos p_228749_) void
OceanMonumentPieces.OceanMonumentDoubleYZRoom.postProcess
(WorldGenLevel p_228756_, StructureManager p_228757_, ChunkGenerator p_228758_, RandomSource p_228759_, BoundingBox p_228760_, ChunkPos p_228761_, BlockPos p_228762_) void
OceanMonumentPieces.OceanMonumentDoubleZRoom.postProcess
(WorldGenLevel p_228769_, StructureManager p_228770_, ChunkGenerator p_228771_, RandomSource p_228772_, BoundingBox p_228773_, ChunkPos p_228774_, BlockPos p_228775_) void
OceanMonumentPieces.OceanMonumentEntryRoom.postProcess
(WorldGenLevel p_228782_, StructureManager p_228783_, ChunkGenerator p_228784_, RandomSource p_228785_, BoundingBox p_228786_, ChunkPos p_228787_, BlockPos p_228788_) void
OceanMonumentPieces.OceanMonumentPenthouse.postProcess
(WorldGenLevel p_228795_, StructureManager p_228796_, ChunkGenerator p_228797_, RandomSource p_228798_, BoundingBox p_228799_, ChunkPos p_228800_, BlockPos p_228801_) void
OceanMonumentPieces.OceanMonumentSimpleRoom.postProcess
(WorldGenLevel p_228901_, StructureManager p_228902_, ChunkGenerator p_228903_, RandomSource p_228904_, BoundingBox p_228905_, ChunkPos p_228906_, BlockPos p_228907_) void
OceanMonumentPieces.OceanMonumentSimpleTopRoom.postProcess
(WorldGenLevel p_228914_, StructureManager p_228915_, ChunkGenerator p_228916_, RandomSource p_228917_, BoundingBox p_228918_, ChunkPos p_228919_, BlockPos p_228920_) void
OceanMonumentPieces.OceanMonumentWingRoom.postProcess
(WorldGenLevel p_228929_, StructureManager p_228930_, ChunkGenerator p_228931_, RandomSource p_228932_, BoundingBox p_228933_, ChunkPos p_228934_, BlockPos p_228935_) void
OceanRuinPieces.OceanRuinPiece.postProcess
(WorldGenLevel p_229029_, StructureManager p_229030_, ChunkGenerator p_229031_, RandomSource p_229032_, BoundingBox p_229033_, ChunkPos p_229034_, BlockPos p_229035_) void
RuinedPortalPiece.postProcess
(WorldGenLevel p_229137_, StructureManager p_229138_, ChunkGenerator p_229139_, RandomSource p_229140_, BoundingBox p_229141_, ChunkPos p_229142_, BlockPos p_229143_) void
ShipwreckPieces.ShipwreckPiece.postProcess
(WorldGenLevel p_229363_, StructureManager p_229364_, ChunkGenerator p_229365_, RandomSource p_229366_, BoundingBox p_229367_, ChunkPos p_229368_, BlockPos p_229369_) void
StrongholdPieces.ChestCorridor.postProcess
(WorldGenLevel p_229472_, StructureManager p_229473_, ChunkGenerator p_229474_, RandomSource p_229475_, BoundingBox p_229476_, ChunkPos p_229477_, BlockPos p_229478_) void
StrongholdPieces.FillerCorridor.postProcess
(WorldGenLevel p_229502_, StructureManager p_229503_, ChunkGenerator p_229504_, RandomSource p_229505_, BoundingBox p_229506_, ChunkPos p_229507_, BlockPos p_229508_) void
StrongholdPieces.FiveCrossing.postProcess
(WorldGenLevel p_229534_, StructureManager p_229535_, ChunkGenerator p_229536_, RandomSource p_229537_, BoundingBox p_229538_, ChunkPos p_229539_, BlockPos p_229540_) void
StrongholdPieces.LeftTurn.postProcess
(WorldGenLevel p_229564_, StructureManager p_229565_, ChunkGenerator p_229566_, RandomSource p_229567_, BoundingBox p_229568_, ChunkPos p_229569_, BlockPos p_229570_) void
StrongholdPieces.Library.postProcess
(WorldGenLevel p_229596_, StructureManager p_229597_, ChunkGenerator p_229598_, RandomSource p_229599_, BoundingBox p_229600_, ChunkPos p_229601_, BlockPos p_229602_) void
StrongholdPieces.PortalRoom.postProcess
(WorldGenLevel p_229635_, StructureManager p_229636_, ChunkGenerator p_229637_, RandomSource p_229638_, BoundingBox p_229639_, ChunkPos p_229640_, BlockPos p_229641_) void
StrongholdPieces.PrisonHall.postProcess
(WorldGenLevel p_229667_, StructureManager p_229668_, ChunkGenerator p_229669_, RandomSource p_229670_, BoundingBox p_229671_, ChunkPos p_229672_, BlockPos p_229673_) void
StrongholdPieces.RightTurn.postProcess
(WorldGenLevel p_229694_, StructureManager p_229695_, ChunkGenerator p_229696_, RandomSource p_229697_, BoundingBox p_229698_, ChunkPos p_229699_, BlockPos p_229700_) void
StrongholdPieces.RoomCrossing.postProcess
(WorldGenLevel p_229725_, StructureManager p_229726_, ChunkGenerator p_229727_, RandomSource p_229728_, BoundingBox p_229729_, ChunkPos p_229730_, BlockPos p_229731_) void
StrongholdPieces.StairsDown.postProcess
(WorldGenLevel p_229775_, StructureManager p_229776_, ChunkGenerator p_229777_, RandomSource p_229778_, BoundingBox p_229779_, ChunkPos p_229780_, BlockPos p_229781_) void
StrongholdPieces.Straight.postProcess
(WorldGenLevel p_229820_, StructureManager p_229821_, ChunkGenerator p_229822_, RandomSource p_229823_, BoundingBox p_229824_, ChunkPos p_229825_, BlockPos p_229826_) void
StrongholdPieces.StraightStairsDown.postProcess
(WorldGenLevel p_229853_, StructureManager p_229854_, ChunkGenerator p_229855_, RandomSource p_229856_, BoundingBox p_229857_, ChunkPos p_229858_, BlockPos p_229859_) void
SwampHutPiece.postProcess
(WorldGenLevel p_229961_, StructureManager p_229962_, ChunkGenerator p_229963_, RandomSource p_229964_, BoundingBox p_229965_, ChunkPos p_229966_, BlockPos p_229967_) StrongholdPieces.StrongholdPiece.randomSmallDoor
(RandomSource pRandom) (package private) static boolean
EndCityPieces.recursiveChildren
(StructureTemplateManager pStructureTemplateManager, EndCityPieces.SectionGenerator pSectionGenerator, int pCounter, EndCityPieces.EndCityPiece pPiece, BlockPos pStartPos, List<StructurePiece> pPieces, RandomSource pRandom) private void
RuinedPortalPiece.spreadNetherrack
(RandomSource pRandom, LevelAccessor pLevel) static void
EndCityPieces.startHouseTower
(StructureTemplateManager pStructureTemplateManager, BlockPos pStartPos, Rotation pRotation, List<StructurePiece> pPieces, RandomSource pRandom) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type RandomSourceModifierConstructorDescriptionBridgeEndFiller
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) BridgeStraight
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) CastleEntrance
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) CastleSmallCorridorLeftTurnPiece
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) CastleSmallCorridorRightTurnPiece
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) ChestCorridor
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) DesertPyramidPiece
(RandomSource pRandom, int pX, int pZ) FiveCrossing
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) JungleTemplePiece
(RandomSource pRandom, int pX, int pZ) LeftTurn
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) Library
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) MansionGrid
(RandomSource pRandom) MansionPiecePlacer
(StructureTemplateManager pStructureTemplateManager, RandomSource pRandom) MineShaftCorridor
(int pGenDepth, RandomSource pRandom, BoundingBox pBoundingBox, Direction pOrientation, MineshaftStructure.Type pType) MineShaftRoom
(int pGenDepth, RandomSource pRandom, int pX, int pZ, MineshaftStructure.Type pType) MonumentBuilding
(RandomSource pRandom, int pX, int pZ, Direction pOrientation) OceanMonumentSimpleRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom, RandomSource pRandom) PrisonHall
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) RightTurn
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) RoomCrossing
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) StairsDown
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) StartPiece
(RandomSource pRandom, int pX, int pZ) StartPiece
(RandomSource pRandom, int pX, int pZ) Straight
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) StraightStairsDown
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) SwampHutPiece
(RandomSource pRandom, int pX, int pZ) -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as RandomSourceMethods in net.minecraft.world.level.levelgen.structure.templatesystem that return RandomSourceModifier and TypeMethodDescriptionMethods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type RandomSourceModifier and TypeMethodDescriptionProcessorRule.getOutputTag
(RandomSource pRandom, CompoundTag pTag) private static BlockState
BlockAgeProcessor.getRandomBlock
(RandomSource pRandom, BlockState[] pStates) private BlockState
BlockAgeProcessor.getRandomBlock
(RandomSource pRandom, BlockState[] pNormalStates, BlockState[] pMossyStates) private static BlockState
BlockAgeProcessor.getRandomFacingStairs
(RandomSource pRandom, Block pStairsBlock) private BlockState
BlockAgeProcessor.maybeReplaceFullStoneBlock
(RandomSource pRandom) private BlockState
BlockAgeProcessor.maybeReplaceObsidian
(RandomSource pRandom) private BlockState
BlockAgeProcessor.maybeReplaceSlab
(RandomSource pRandom) private BlockState
BlockAgeProcessor.maybeReplaceStairs
(RandomSource pRandom, BlockState pState) private BlockState
BlockAgeProcessor.maybeReplaceWall
(RandomSource pRandom) boolean
StructureTemplate.placeInWorld
(ServerLevelAccessor pServerLevel, BlockPos pOffset, BlockPos pPos, StructurePlaceSettings pSettings, RandomSource pRandom, int pFlags) StructurePlaceSettings.setRandom
(RandomSource pRandom) boolean
AlwaysTrueTest.test
(BlockState p_230248_, RandomSource p_230249_) boolean
AxisAlignedLinearPosTest.test
(BlockPos p_230251_, BlockPos p_230252_, BlockPos p_230253_, RandomSource p_230254_) boolean
BlockMatchTest.test
(BlockState p_230277_, RandomSource p_230278_) boolean
BlockStateMatchTest.test
(BlockState p_230293_, RandomSource p_230294_) boolean
LinearPosTest.test
(BlockPos p_230296_, BlockPos p_230297_, BlockPos p_230298_, RandomSource p_230299_) boolean
PosAlwaysTrueTest.test
(BlockPos p_230301_, BlockPos p_230302_, BlockPos p_230303_, RandomSource p_230304_) abstract boolean
PosRuleTest.test
(BlockPos pLocalPos, BlockPos pRelativePos, BlockPos pStructurePos, RandomSource pRandom) boolean
ProcessorRule.test
(BlockState pInputState, BlockState pExistingState, BlockPos pLocalPos, BlockPos pRelativePos, BlockPos pStructurePos, RandomSource pRandom) boolean
RandomBlockMatchTest.test
(BlockState p_230317_, RandomSource p_230318_) boolean
RandomBlockStateMatchTest.test
(BlockState p_230320_, RandomSource p_230321_) abstract boolean
RuleTest.test
(BlockState pState, RandomSource pRandom) boolean
TagMatchTest.test
(BlockState p_230452_, RandomSource p_230453_) -
Uses of RandomSource in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
Methods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type RandomSourceModifier and TypeMethodDescriptionAppendLoot.apply
(RandomSource p_277994_, CompoundTag p_277854_) AppendStatic.apply
(RandomSource p_277835_, CompoundTag p_277892_) Clear.apply
(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply
(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply
(RandomSource pRandom, CompoundTag pTag) -
Uses of RandomSource in net.minecraft.world.level.levelgen.synth
Methods in net.minecraft.world.level.levelgen.synth with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic NormalNoise
NormalNoise.create
(RandomSource pRandom, int pFirstOctave, double... pAmplitudes) static NormalNoise
NormalNoise.create
(RandomSource pRandom, NormalNoise.NoiseParameters pParameters) static PerlinNoise
PerlinNoise.create
(RandomSource pRandom, int pFirstOctave, double pFirstAmplitude, double... pAmplitudes) static PerlinNoise
PerlinNoise.create
(RandomSource pRandom, int pFirstOctave, it.unimi.dsi.fastutil.doubles.DoubleList pAmplitudes) static PerlinNoise
PerlinNoise.create
(RandomSource pRandom, List<Integer> pOctaves) static PerlinNoise
PerlinNoise.create
(RandomSource pRandom, IntStream pOctaves) static PerlinNoise
PerlinNoise.createLegacyForBlendedNoise
(RandomSource pRandom, IntStream pOctaves) Deprecated.static PerlinNoise
PerlinNoise.createLegacyForLegacyNetherBiome
(RandomSource pRandom, int pFirstOctave, it.unimi.dsi.fastutil.doubles.DoubleList pAmplitudes) Deprecated.static NormalNoise
NormalNoise.createLegacyNetherBiome
(RandomSource pRandom, NormalNoise.NoiseParameters pParameters) Deprecated.private static void
PerlinNoise.skipOctave
(RandomSource pRandom) BlendedNoise.withNewRandom
(RandomSource pRandom) Constructors in net.minecraft.world.level.levelgen.synth with parameters of type RandomSourceModifierConstructorDescriptionBlendedNoise
(RandomSource pRandom, double pXzScale, double pYScale, double pXzFactor, double pYFactor, double pSmearScaleMultiplier) ImprovedNoise
(RandomSource pRandom) private
NormalNoise
(RandomSource pRandom, NormalNoise.NoiseParameters pParameters, boolean pUseLegacyNetherBiome) protected
PerlinNoise
(RandomSource pRandom, com.mojang.datafixers.util.Pair<Integer, it.unimi.dsi.fastutil.doubles.DoubleList> pOctavesAndAmplitudes, boolean pUseNewFactory) private
PerlinSimplexNoise
(RandomSource pRandom, it.unimi.dsi.fastutil.ints.IntSortedSet pOctaves) PerlinSimplexNoise
(RandomSource pRandom, List<Integer> pOctaves) SimplexNoise
(RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material with parameters of type RandomSourceModifier and TypeMethodDescriptionprotected void
Fluid.animateTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) void
FluidState.animateTick
(Level pLevel, BlockPos pPos, RandomSource pRandom) void
LavaFluid.animateTick
(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) void
WaterFluid.animateTick
(Level p_230606_, BlockPos p_230607_, FluidState p_230608_, RandomSource p_230609_) protected void
Fluid.randomTick
(ServerLevel pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) void
FluidState.randomTick
(ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) void
LavaFluid.randomTick
(ServerLevel p_376493_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) -
Uses of RandomSource in net.minecraft.world.level.redstone
Methods in net.minecraft.world.level.redstone with parameters of type RandomSource -
Uses of RandomSource in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot declared as RandomSourceModifier and TypeFieldDescriptionprivate RandomSource
LootContext.Builder.random
private final RandomSource
LootContext.random
Methods in net.minecraft.world.level.storage.loot that return RandomSourceMethods in net.minecraft.world.level.storage.loot with parameters of type RandomSourceModifier and TypeMethodDescriptionLootTable.getAvailableSlots
(Container pInventory, RandomSource pRandom) it.unimi.dsi.fastutil.objects.ObjectArrayList
<ItemStack> LootTable.getRandomItems
(LootParams pParams, RandomSource pRandom) private void
LootTable.shuffleAndSplitItems
(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> pStacks, int pEmptySlotsCount, RandomSource pRandom) Shuffles items by changing their order and splitting stacksLootContext.Builder.withOptionalRandomSource
(RandomSource pRandom) Constructors in net.minecraft.world.level.storage.loot with parameters of type RandomSourceModifierConstructorDescription(package private)
LootContext
(LootParams pParams, RandomSource pRandom, HolderGetter.Provider pLootDataResolver) private
LootContext
(LootParams pParams, RandomSource pRandom, HolderGetter.Provider pLootDataResolver, ResourceLocation queriedLootTableId) -
Uses of RandomSource in net.minecraft.world.level.storage.loot.functions
Methods in net.minecraft.world.level.storage.loot.functions with parameters of type RandomSourceModifier and TypeMethodDescriptionint
ApplyBonusCount.BinomialWithBonusCount.calculateNewCount
(RandomSource p_230965_, int p_230966_, int p_230967_) int
ApplyBonusCount.Formula.calculateNewCount
(RandomSource pRandom, int pOriginalCount, int pEnchantmentLevel) int
ApplyBonusCount.OreDrops.calculateNewCount
(RandomSource p_230972_, int p_230973_, int p_230974_) int
ApplyBonusCount.UniformBonusCount.calculateNewCount
(RandomSource p_230976_, int p_230977_, int p_230978_) private static ItemStack
EnchantRandomlyFunction.enchantItem
(ItemStack pStack, Holder<Enchantment> pEnchantment, RandomSource pRandom) -
Uses of RandomSource in net.minecraft.world.phys
Methods in net.minecraft.world.phys with parameters of type RandomSource -
Uses of RandomSource in net.neoforged.neoforge.client
Fields in net.neoforged.neoforge.client declared as RandomSourceModifier and TypeFieldDescriptionprivate static final RandomSource
ClientHooks.OUTLINE_PASS_RANDOM
-
Uses of RandomSource in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type RandomSourceModifier and TypeMethodDescriptiondefault List
<BlockModelPart> BlockStateModelExtension.collectParts
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random) Helper to collects the parts of the model into a new list.default void
BlockStateModelExtension.collectParts
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random, List<BlockModelPart> parts) Collects the parts of the model that should be rendered.default @Nullable Object
BlockStateModelExtension.createGeometryKey
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random) Collects all the data used by the model to produce renderable geometry. -
Uses of RandomSource in net.neoforged.neoforge.client.model
Methods in net.neoforged.neoforge.client.model with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
DelegateBlockStateModel.collectParts
(RandomSource random, List<BlockModelPart> parts) Deprecated.void
DelegateBlockStateModel.collectParts
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random, List<BlockModelPart> parts) default void
DynamicBlockStateModel.collectParts
(RandomSource random, List<BlockModelPart> parts) Deprecated.void
DynamicBlockStateModel.collectParts
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random, List<BlockModelPart> parts) -
Uses of RandomSource in net.neoforged.neoforge.client.model.block
Methods in net.neoforged.neoforge.client.model.block with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
CompositeBlockModel.collectParts
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random, List<BlockModelPart> parts) @Nullable Object
CompositeBlockModel.createGeometryKey
(BlockAndTintGetter level, BlockPos pos, BlockState state, RandomSource random) -
Uses of RandomSource in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type RandomSourceModifier and TypeMethodDescription@Nullable MerchantOffer
BasicItemListing.getOffer
(Entity p_219693_, RandomSource p_219694_) static EntityType
<?> MonsterRoomHooks.getRandomMonsterRoomMob
(RandomSource rand) Gets a random entity type from the weighted list. -
Uses of RandomSource in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type RandomSourceModifier and TypeMethodDescriptiondefault boolean
IBlockExtension.onTreeGrow
(BlockState state, LevelReader level, BiConsumer<BlockPos, BlockState> placeFunction, RandomSource randomSource, BlockPos pos, TreeConfiguration config) Called when a tree grows on top of this block and tries to set it to dirt by the trunk placer.default boolean
IBlockStateExtension.onTreeGrow
(LevelReader level, BiConsumer<BlockPos, BlockState> placeFunction, RandomSource randomSource, BlockPos pos, TreeConfiguration config) Called when a tree grows on top of this block and tries to set it to dirt by the trunk placer. -
Uses of RandomSource in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
EventHooks.checkSpawnPlacements
(EntityType<?> entityType, ServerLevelAccessor level, EntitySpawnReason spawnType, BlockPos pos, RandomSource random, boolean defaultResult) static BlockGrowFeatureEvent
EventHooks.fireBlockGrowFeature
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> holder) Fires theBlockGrowFeatureEvent
and returns the event object. -
Uses of RandomSource in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
MobSpawnEvent.SpawnPlacementCheck.random
Methods in net.neoforged.neoforge.event.entity.living that return RandomSourceModifier and TypeMethodDescriptionMobSpawnEvent.SpawnPlacementCheck.getRandom()
In all vanilla cases, this is equal toLevelAccessor.getRandom()
.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type RandomSourceModifierConstructorDescriptionSpawnPlacementCheck
(EntityType<?> entityType, ServerLevelAccessor level, EntitySpawnReason spawnType, BlockPos pos, RandomSource random, boolean defaultResult) Internal. -
Uses of RandomSource in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as RandomSourceMethods in net.neoforged.neoforge.event.level that return RandomSourceModifier and TypeMethodDescriptionBlockGrowFeatureEvent.getRandom()
Returns the random source which initiated the sapling growth.Methods in net.neoforged.neoforge.event.level with parameters of type RandomSourceModifier and TypeMethodDescriptionAlterGroundEvent.StateProvider.getState
(RandomSource random, BlockPos state) Gets the BlockState that will be placed at the passed position.Constructors in net.neoforged.neoforge.event.level with parameters of type RandomSourceModifierConstructorDescriptionBlockGrowFeatureEvent
(LevelAccessor level, RandomSource rand, BlockPos pos, @Nullable Holder<ConfiguredFeature<?, ?>> feature) -
Uses of RandomSource in net.neoforged.neoforge.registries.holdersets
Methods in net.neoforged.neoforge.registries.holdersets with parameters of type RandomSourceModifier and TypeMethodDescriptionAnyHolderSet.getRandomElement
(RandomSource random) CompositeHolderSet.getRandomElement
(RandomSource rand) NotHolderSet.getRandomElement
(RandomSource random)
BlockStateModelExtension.collectParts(net.minecraft.world.level.BlockAndTintGetter, net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, RandomSource)
.