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[] selections, RandomSource random) static <T> T
Util.getRandom
(List<T> selections, RandomSource random) static <T> T
Util.getRandom
(T[] selections, RandomSource random) static <T> Optional
<T> Util.getRandomSafe
(List<T> selections, RandomSource random) static <T> void
Util.shuffle
(List<T> list, RandomSource random) static <T> List
<T> Util.shuffledCopy
(it.unimi.dsi.fastutil.objects.ObjectArrayList<T> list, RandomSource random) static <T> List
<T> Util.shuffledCopy
(T[] array, RandomSource random) static it.unimi.dsi.fastutil.ints.IntArrayList
Util.toShuffledList
(IntStream stream, RandomSource random) static <T> List
<T> Util.toShuffledList
(Stream<T> stream, RandomSource random) -
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 posX, int posY, int posZ, int range, RandomSource random, Block block, BlockPos.MutableBlockPos blockPos) -
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 random) SpriteSet.get
(RandomSource random) -
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 TypeMethodDescriptionprivate void
LevelRenderer.shootParticles
(int p_direction, BlockPos pos, RandomSource random, SimpleParticleType particleType) -
Uses of RandomSource in net.minecraft.client.renderer.block
Fields in net.minecraft.client.renderer.block declared as RandomSourceMethods in net.minecraft.client.renderer.block with parameters of type RandomSourceModifier and TypeMethodDescriptionvoid
BlockRenderDispatcher.renderBatched
(BlockState state, BlockPos pos, BlockAndTintGetter level, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random) void
BlockRenderDispatcher.renderBatched
(BlockState state, BlockPos pos, BlockAndTintGetter level, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay) Deprecated.void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay) Deprecated.void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay) Deprecated.void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer consumer, boolean checkSides, RandomSource random, long seed, int packedOverlay, ModelData modelData, RenderType renderType) -
Uses of RandomSource in net.minecraft.client.renderer.blockentity
Fields in net.minecraft.client.renderer.blockentity declared as RandomSourceMethods in net.minecraft.client.renderer.blockentity with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic void
VaultRenderer.renderItemInside
(float partialTick, Level level, PoseStack poseStack, MultiBufferSource buffer, int packedLight, ItemStack item, ItemRenderer itemRenderer, float previousSpin, float currentSpin, RandomSource random) -
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
Methods in net.minecraft.client.renderer.entity with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic void
ItemEntityRenderer.renderMultipleFromCount
(ItemRenderer itemRenderer, PoseStack poseStack, MultiBufferSource buffer, int packedLight, ItemStack item, BakedModel model, boolean isGui3d, RandomSource random) static void
ItemEntityRenderer.renderMultipleFromCount
(ItemRenderer itemRenderer, PoseStack poseStack, MultiBufferSource buffer, int packedLight, ItemStack item, RandomSource random, Level level) -
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 TypeMethodDescriptionBakedModel.getQuads
(BlockState state, Direction direction, RandomSource random) Deprecated.BuiltInModel.getQuads
(BlockState state, Direction direction, RandomSource random) MultiPartBakedModel.getQuads
(BlockState state, Direction direction, RandomSource random, ModelData modelData, RenderType renderType) SimpleBakedModel.getQuads
(BlockState state, Direction direction, RandomSource random) WeightedBakedModel.getQuads
(BlockState state, Direction direction, RandomSource random, ModelData modelData, RenderType renderType) MultiPartBakedModel.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) SimpleBakedModel.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) WeightedBakedModel.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) -
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 soundEvent, RandomSource random, double x, double y, double z) Sound.getSound
(RandomSource randomSource) Retrieves the sound associated with the element.Constructors in net.minecraft.client.resources.sounds with parameters of type RandomSourceModifierConstructorDescriptionprotected
AbstractSoundInstance
(ResourceLocation location, SoundSource source, RandomSource random) protected
AbstractSoundInstance
(SoundEvent soundEvent, SoundSource source, RandomSource random) protected
AbstractTickableSoundInstance
(SoundEvent p_235076_, SoundSource p_235077_, RandomSource p_235078_) SimpleSoundInstance
(ResourceLocation location, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z, boolean relative) private
SimpleSoundInstance
(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z) SimpleSoundInstance
(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, double x, double y, double z) SimpleSoundInstance
(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, BlockPos entity) -
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 randomSource) Retrieves a randomly selected sound from the sound events based on their weights.Weighted.getSound
(RandomSource randomSource) 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 random) DefaultedMappedRegistry.getRandom
(RandomSource random) static Direction.Axis
Direction.Axis.getRandom
(RandomSource random) static Direction
Direction.getRandom
(RandomSource random) MappedRegistry.getRandom
(RandomSource random) Registry.getRandom
(RandomSource random) Direction.Plane.getRandomAxis
(RandomSource random) Direction.Plane.getRandomDirection
(RandomSource random) HolderSet.getRandomElement
(RandomSource random) HolderSet.ListBacked.getRandomElement
(RandomSource p_235714_) Registry.getRandomElementOf
(TagKey<T> key, RandomSource random) BlockPos.randomBetweenClosed
(RandomSource random, int amount, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) BlockPos.randomInCube
(RandomSource random, int amount, BlockPos center, int radius) Direction.Plane.shuffledCopy
(RandomSource random) -
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 random, String[] strings) -
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 random, int count, double minX, double minZ, double maxX, double maxZ) void
SpreadPlayersCommand.Position.randomize
(RandomSource random, double minX, double minZ, double maxX, double maxZ) private static void
SpreadPlayersCommand.spreadPositions
(Vec2 center, double spreadDistance, ServerLevel level, RandomSource random, double minX, double minZ, double maxX, double maxZ, int maxHeight, SpreadPlayersCommand.Position[] positions, boolean respectTeams) -
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 location) -
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 seed) 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 random) private static Vec3
ParticleUtils.getRandomSpeedRanges
(RandomSource random) static double
Mth.nextDouble
(RandomSource random, double minimum, double maximum) static float
Mth.nextFloat
(RandomSource random, float minimum, float maximum) static int
Mth.nextInt
(RandomSource random, int minimum, int maximum) static float
Mth.normal
(RandomSource random, float mean, float deviation) Generates a value from a normal distribution with the given mean and deviation.static float
Mth.randomBetween
(RandomSource random, float minInclusive, float maxExclusive) static int
Mth.randomBetweenInclusive
(RandomSource random, int minInclusive, int maxInclusive) static void
ParticleUtils.spawnParticleBelow
(Level level, BlockPos pos, RandomSource random, ParticleOptions particle) -
Uses of RandomSource in net.minecraft.util.random
Methods in net.minecraft.util.random with parameters of type RandomSourceModifier and TypeMethodDescriptionWeightedRandomList.getRandom
(RandomSource random) static <T extends WeightedEntry>
Optional<T> WeightedRandom.getRandomItem
(RandomSource random, List<T> entries) static <T extends WeightedEntry>
Optional<T> WeightedRandom.getRandomItem
(RandomSource random, List<T> entries, int totalWeight) SimpleWeightedRandomList.getRandomValue
(RandomSource random) -
Uses of RandomSource in net.minecraft.util.valueproviders
Methods in net.minecraft.util.valueproviders with parameters of type RandomSourceModifier and TypeMethodDescriptionint
BiasedToBottomInt.sample
(RandomSource random) int
ClampedInt.sample
(RandomSource random) float
ClampedNormalFloat.sample
(RandomSource random) static float
ClampedNormalFloat.sample
(RandomSource random, float mean, float deviation, float min, float max) int
ClampedNormalInt.sample
(RandomSource random) static int
ClampedNormalInt.sample
(RandomSource random, float mean, float deviation, float minInclusive, float maxInclusive) float
ConstantFloat.sample
(RandomSource random) int
ConstantInt.sample
(RandomSource random) abstract int
IntProvider.sample
(RandomSource random) float
MultipliedFloats.sample
(RandomSource random) float
SampledFloat.sample
(RandomSource random) float
TrapezoidFloat.sample
(RandomSource random) float
UniformFloat.sample
(RandomSource random) int
UniformInt.sample
(RandomSource random) int
WeightedListInt.sample
(RandomSource random) -
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 location) RandomSequence.random()
Methods in net.minecraft.world with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic void
RandomizableContainer.setBlockEntityLootTable
(BlockGetter level, RandomSource random, BlockPos ps, ResourceKey<LootTable> lootTable) 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
(Level level, RandomSource random, BlockPos pos) Constructor parameters in net.minecraft.world.effect with type arguments of type RandomSourceModifierConstructorDescriptionprotected
InfestedMobEffect
(MobEffectCategory category, int color, float chanceToSpawn, ToIntFunction<RandomSource> spawnedCount) protected
OozingMobEffect
(MobEffectCategory category, int color, ToIntFunction<RandomSource> spawnedCount) protected
WeavingMobEffect
(MobEffectCategory category, int color, ToIntFunction<RandomSource> maxCobwebs) -
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 random) static boolean
GlowSquid.checkGlowSquidSpawnRules
(EntityType<? extends LivingEntity> glowSquid, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Mob.checkMobSpawnRules
(EntityType<? extends Mob> type, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules
(EntityType<T> entityType, ServerLevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Mob.enchantSpawnedArmor
(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty) private void
Mob.enchantSpawnedEquipment
(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float enchantChance, DifficultyInstance difficulty) protected void
Mob.enchantSpawnedWeapon
(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) protected void
Mob.populateDefaultEquipmentEnchantments
(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) protected void
Mob.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) boolean
SpawnPlacements.SpawnPredicate.test
(EntityType<T> entityType, ServerLevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
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 random) boolean
SetEntityLookTargetSometimes.Ticker.tickDownAndCheck
(RandomSource random) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type RandomSourceModifierConstructorDescription(package private)
JitteredLinearRetry
(RandomSource random, long timestamp) -
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 random, int amount) void
GossipContainer.transferFrom
(GossipContainer container, RandomSource randomSource, int amount) -
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 random, int horizontalDistance, int verticalDistance) Gets a random position within a certain distance.static BlockPos
RandomPos.generateRandomDirectionWithinRadians
(RandomSource random, int maxHorizontalDifference, int yRange, int y, double x, double z, double maxAngleDelta) static BlockPos
RandomPos.generateRandomPosTowardDirection
(PathfinderMob mob, int range, RandomSource random, BlockPos pos) -
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> bat, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
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> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Fox.checkFoxSpawnRules
(EntityType<Fox> fox, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
MushroomCow.checkMushroomSpawnRules
(EntityType<MushroomCow> mushroomCow, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource randomSource) static boolean
Ocelot.checkOcelotSpawnRules
(EntityType<Ocelot> ocelot, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Parrot.checkParrotSpawnRules
(EntityType<Parrot> parrot, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
PolarBear.checkPolarBearSpawnRules
(EntityType<PolarBear> polarBear, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Rabbit.checkRabbitSpawnRules
(EntityType<Rabbit> rabbit, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
WaterAnimal.checkSurfaceWaterAnimalSpawnRules
(EntityType<? extends WaterAnimal> waterAnimal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
TropicalFish.checkTropicalFishSpawnRules
(EntityType<TropicalFish> tropicalFish, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Turtle.checkTurtleSpawnRules
(EntityType<Turtle> turtle, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Wolf.checkWolfSpawnRules
(EntityType<Wolf> wolf, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static SoundEvent
Parrot.getAmbient
(Level level, RandomSource random) static float
Parrot.getPitch
(RandomSource random) static Panda.Gene
Panda.Gene.getRandom
(RandomSource random) static DyeColor
Sheep.getRandomSheepColor
(RandomSource random) protected void
Fox.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) -
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> entityType, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
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> axolotl, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static Axolotl.Variant
Axolotl.Variant.getCommonSpawnVariant
(RandomSource random) static Axolotl.Variant
Axolotl.Variant.getRareSpawnVariant
(RandomSource random) private static Axolotl.Variant
Axolotl.Variant.getSpawnVariant
(RandomSource random, boolean common) Axolotl.AxolotlGroupData.getVariant
(RandomSource random) private static boolean
Axolotl.useRareVariant
(RandomSource random) -
Uses of RandomSource in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type RandomSourceModifier and TypeMethodDescriptionprotected static void
CamelAi.initMemories
(Camel camel, RandomSource random) -
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> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected static void
FrogAi.initMemories
(Frog frog, RandomSource random) -
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> goat, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected static void
GoatAi.initMemories
(Goat goat, RandomSource random) -
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> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
ZombieHorse.checkZombieHorseSpawnRules
(EntityType<? extends Animal> animal, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) (package private) static double
AbstractHorse.createOffspringAttribute
(double value1, double value2, double min, double max, RandomSource random) protected void
AbstractChestedHorse.randomizeAttributes
(RandomSource random) protected void
AbstractHorse.randomizeAttributes
(RandomSource random) protected void
Horse.randomizeAttributes
(RandomSource random) protected void
SkeletonHorse.randomizeAttributes
(RandomSource random) protected void
ZombieHorse.randomizeAttributes
(RandomSource random) private void
Llama.setRandomStrength
(RandomSource random) -
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> type, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) Static predicate for determining whether a monster can spawn at the provided location.static boolean
Drowned.checkDrownedSpawnRules
(EntityType<Drowned> drowned, ServerLevelAccessor serverLevel, MobSpawnType mobSpawnType, BlockPos pos, RandomSource random) static boolean
Endermite.checkEndermiteSpawnRules
(EntityType<Endermite> endermite, LevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Ghast.checkGhastSpawnRules
(EntityType<Ghast> ghast, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Guardian.checkGuardianSpawnRules
(EntityType<? extends Guardian> guardian, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Husk.checkHuskSpawnRules
(EntityType<Husk> husk, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> magmaCube, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Monster.checkMonsterSpawnRules
(EntityType<? extends Monster> type, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) Static predicate for determining whether a monster can spawn at the provided location, incorporating a check of the current light level at the location.static boolean
PatrollingMonster.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollingMonster> patrollingMonster, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Silverfish.checkSilverfishSpawnRules
(EntityType<Silverfish> silverfish, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Slime.checkSlimeSpawnRules
(EntityType<Slime> slime, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Stray.checkStraySpawnRules
(EntityType<Stray> stray, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
Strider.checkStriderSpawnRules
(EntityType<Strider> strider, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) static boolean
ZombifiedPiglin.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglin> zombifiedPiglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected void
Pillager.enchantSpawnedWeapon
(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) static boolean
Zombie.getSpawnAsBabyOdds
(RandomSource random) static boolean
Monster.isDarkEnoughToSpawn
(ServerLevelAccessor level, BlockPos pos, RandomSource random) Static predicate for determining if the current light level and environmental conditions allow for a monster to spawn.protected void
WitherSkeleton.populateDefaultEquipmentEnchantments
(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) protected void
AbstractSkeleton.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Drowned.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Pillager.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Vex.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Vindicator.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
WitherSkeleton.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Zombie.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
ZombifiedPiglin.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) void
Spider.SpiderEffectsGroupData.setRandomEffect
(RandomSource random) -
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 breeze, RandomSource random, Vec3 target) static Vec3
BreezeUtil.randomPointBehindTarget
(LivingEntity target, RandomSource random) -
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> hoglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
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> piglin, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) protected static void
PiglinAi.initMemories
(Piglin piglin, RandomSource random) private void
Piglin.maybeWearArmor
(EquipmentSlot slot, ItemStack stack, RandomSource random) protected void
Piglin.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
PiglinBrute.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) -
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 trader, RandomSource random) VillagerTrades.EmeraldForItems.getOffer
(Entity trader, RandomSource random) VillagerTrades.EmeraldsForVillagerTypeItem.getOffer
(Entity trader, RandomSource random) VillagerTrades.EnchantBookForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.EnchantedItemForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.FailureItemListing.getOffer
(Entity p_302036_, RandomSource p_301986_) VillagerTrades.ItemListing.getOffer
(Entity trader, RandomSource random) VillagerTrades.ItemsAndEmeraldsToItems.getOffer
(Entity trader, RandomSource random) VillagerTrades.ItemsForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.SuspiciousStewForEmerald.getOffer
(Entity trader, RandomSource random) VillagerTrades.TippedArrowForItemsAndEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.TreasureMapForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.TypeSpecificTrade.getOffer
(Entity trader, RandomSource random) private static DyeItem
VillagerTrades.DyedArmorForEmeralds.getRandomDye
(RandomSource random) -
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 projectile, Entity entity, RandomSource random) -
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 raiderType, RandomSource random, int wave, DifficultyInstance p_difficulty, boolean shouldSpawnBonusGroup) -
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 isHighPitched, RandomSource random) private static float
CrossbowItem.getShotPitch
(RandomSource random, int index) static void
InstrumentItem.setRandom
(ItemStack stack, TagKey<Instrument> instrumentTag, RandomSource random) -
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 random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments) static ItemStack
EnchantmentHelper.enchantItem
(RandomSource random, ItemStack stack, int level, RegistryAccess registryAccess, Optional<? extends HolderSet<Enchantment>> possibleEnchantments) static void
EnchantmentHelper.enchantItemFromProvider
(ItemStack stack, RegistryAccess registries, ResourceKey<EnchantmentProvider> key, DifficultyInstance difficulty, RandomSource random) static int
EnchantmentHelper.getEnchantmentCost
(RandomSource random, int enchantNum, int power, ItemStack stack) 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 random, int enchantmentLevel, org.apache.commons.lang3.mutable.MutableFloat value) void
Enchantment.modifyTridentSpinAttackStrength
(RandomSource random, int enchantmentLevel, org.apache.commons.lang3.mutable.MutableFloat value) void
Enchantment.modifyUnfilteredValue
(DataComponentType<EnchantmentValueEffect> componentType, RandomSource random, int enchantmentLevel, org.apache.commons.lang3.mutable.MutableFloat value) static List
<EnchantmentInstance> EnchantmentHelper.selectEnchantment
(RandomSource random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments) -
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 position, double center, float size, RandomSource random) double
SpawnParticlesEffect.PositionSourceType.CoordinateSource.getCoordinate
(double position, double center, float size, RandomSource random) double
SpawnParticlesEffect.PositionSourceType.getCoordinate
(double position, double center, float size, RandomSource random) double
SpawnParticlesEffect.VelocitySource.getVelocity
(double scale, RandomSource random) float
AddValue.process
(int enchantmentLevel, RandomSource random, float value) float
AllOf.ValueEffects.process
(int p_345324_, RandomSource p_345137_, float p_344866_) float
EnchantmentValueEffect.process
(int enchantmentLevel, RandomSource random, float value) float
MultiplyValue.process
(int enchantmentLevel, RandomSource random, float value) float
RemoveBinomial.process
(int enchantmentLevel, RandomSource random, float value) float
SetValue.process
(int enchantmentLevel, RandomSource random, float value) -
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 stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) void
EnchantmentsByCost.enchant
(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) void
EnchantmentsByCostWithDifficulty.enchant
(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) void
SingleEnchantment.enchant
(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) -
Uses of RandomSource in net.minecraft.world.level
Fields in net.minecraft.world.level declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
Explosion.random
final 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 level, RandomSource random, BlockPos pos) private static Optional
<MobSpawnSettings.SpawnerData> NaturalSpawner.getRandomSpawnMobAt
(ServerLevel level, StructureManager structureManager, ChunkGenerator generator, MobCategory category, RandomSource random, BlockPos pos) void
BaseSpawner.setEntityId
(EntityType<?> type, Level level, RandomSource random, BlockPos pos) void
Spawner.setEntityId
(EntityType<?> entityType, RandomSource random) static void
NaturalSpawner.spawnMobsForChunkGeneration
(ServerLevelAccessor levelAccessor, Holder<Biome> biome, ChunkPos chunkPos, RandomSource random) -
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 random) BiomeSource.findBiomeHorizontal
(int x, int y, int z, int radius, int increment, Predicate<Holder<Biome>> biomePredicate, RandomSource random, boolean findClosest, Climate.Sampler sampler) BiomeSource.findBiomeHorizontal
(int x, int y, int z, int radius, Predicate<Holder<Biome>> biomePredicate, RandomSource random, Climate.Sampler sampler) FixedBiomeSource.findBiomeHorizontal
(int x, int y, int z, int radius, int increment, Predicate<Holder<Biome>> biomePredicate, RandomSource random, boolean findClosest, Climate.Sampler sampler) -
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 level, Vec3 offset, RandomSource random) void
SaplingBlock.advanceTree
(ServerLevel level, BlockPos pos, BlockState state, RandomSource random) void
AbstractCandleBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BaseFireBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BeehiveBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BlastFurnaceBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
Block.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BrewingStandBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BrushableBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
BubbleColumnBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
CampfireBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
CherryLeavesBlock.animateTick
(BlockState p_272714_, Level p_272837_, BlockPos p_273218_, RandomSource p_273360_) void
CryingObsidianBlock.animateTick
(BlockState p_221055_, Level p_221056_, BlockPos p_221057_, RandomSource p_221058_) void
EnchantingTableBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EnderChestBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EndGatewayBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EndPortalBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
EndRodBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
FallingBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
FurnaceBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
LeavesBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
LeverBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
LightningRodBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
MyceliumBlock.animateTick
(BlockState p_221789_, Level p_221790_, BlockPos p_221791_, RandomSource p_221792_) void
NetherPortalBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
PointedDripstoneBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedStoneOreBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedstoneTorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedstoneWallTorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RedStoneWireBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RepeaterBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
RespawnAnchorBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
SculkSensorBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
SmokerBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
SporeBlossomBlock.animateTick
(BlockState p_222503_, Level p_222504_, BlockPos p_222505_, RandomSource p_222506_) void
TorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
WallTorchBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
WetSpongeBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).void
WitherRoseBlock.animateTick
(BlockState state, Level level, BlockPos pos, RandomSource random) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).private boolean
SculkVeinBlock.attemptPlaceSculk
(SculkSpreader spreader, LevelAccessor level, BlockPos pos, RandomSource random) int
SculkBehaviour.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) int
SculkBlock.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) int
SculkVeinBlock.attemptUseCharge
(SculkSpreader.ChargeCursor cursor, LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) default void
ChangeOverTimeBlock.changeOverTime
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) private void
FireBlock.checkBurnOut
(Level level, BlockPos pos, int chance, RandomSource random, int age, Direction face) private BlockState
VineBlock.copyRandomFaces
(BlockState sourceState, BlockState spreadState, RandomSource random) default boolean
SculkBehaviour.depositCharge
(LevelAccessor level, BlockPos pos, RandomSource random) static void
ChorusFlowerBlock.generatePlant
(LevelAccessor level, BlockPos pos, RandomSource random, int maxHorizontalDistance) protected int
CaveVinesBlock.getBlocksToGrowWhenBonemealed
(RandomSource p_220928_) protected abstract int
GrowingPlantHeadBlock.getBlocksToGrowWhenBonemealed
(RandomSource random) protected int
KelpBlock.getBlocksToGrowWhenBonemealed
(RandomSource random) static int
NetherVines.getBlocksToGrowWhenBonemealed
(RandomSource random) protected int
TwistingVinesBlock.getBlocksToGrowWhenBonemealed
(RandomSource p_222649_) protected int
WeepingVinesBlock.getBlocksToGrowWhenBonemealed
(RandomSource p_222680_) private static int
FireBlock.getFireTickDelay
(RandomSource random) Gets the delay before this block ticks again (without counting random ticks)private static int
FrogspawnBlock.getFrogspawnHatchDelay
(RandomSource random) protected BlockState
CaveVinesBlock.getGrowIntoState
(BlockState p_220935_, RandomSource p_220936_) protected BlockState
GrowingPlantHeadBlock.getGrowIntoState
(BlockState state, RandomSource random) default Optional
<BlockState> ChangeOverTimeBlock.getNextState
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) static Rotation
Rotation.getRandom
(RandomSource random) Chooses a random rotation.private BlockState
SculkBlock.getRandomGrowthState
(LevelAccessor level, BlockPos pos, RandomSource random, boolean isWorldGeneration) SculkSpreader.ChargeCursor.getRandomizedNonCornerNeighbourOffsets
(RandomSource random) private double
FrogspawnBlock.getRandomTadpolePositionOffset
(RandomSource random) Rotation.getShuffled
(RandomSource random) Get a list of all rotations in random order.private static BlockPos
SculkSpreader.ChargeCursor.getValidMovementPos
(LevelAccessor level, BlockPos pos, RandomSource random) protected void
BambooStalkBlock.growBamboo
(BlockState state, Level level, BlockPos pos, RandomSource random, int age) boolean
MushroomBlock.growMushroom
(ServerLevel level, BlockPos pos, BlockState state, RandomSource random) static void
PointedDripstoneBlock.growStalactiteOrStalagmiteIfPossible
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) private static void
ChorusFlowerBlock.growTreeRecursive
(LevelAccessor level, BlockPos branchPos, RandomSource random, BlockPos originalBranchPos, int maxHorizontalDistance, int iterations) private void
FrogspawnBlock.hatchFrogspawn
(ServerLevel level, BlockPos pos, RandomSource random) boolean
AzaleaBlock.isBonemealSuccess
(Level p_220712_, RandomSource p_220713_, BlockPos p_220714_, BlockState p_220715_) boolean
BambooSaplingBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BambooStalkBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BigDripleafBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BigDripleafStemBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
BonemealableBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) 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 level, RandomSource random, BlockPos pos, BlockState state) boolean
CropBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
FungusBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
GlowLichenBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
GrassBlock.isBonemealSuccess
(Level p_221275_, RandomSource p_221276_, BlockPos p_221277_, BlockState p_221278_) boolean
GrowingPlantBodyBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
GrowingPlantHeadBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
MangroveLeavesBlock.isBonemealSuccess
(Level p_221437_, RandomSource p_221438_, BlockPos p_221439_, BlockState p_221440_) boolean
MangrovePropaguleBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
MossBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
MushroomBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
NetherrackBlock.isBonemealSuccess
(Level p_221816_, RandomSource p_221817_, BlockPos p_221818_, BlockState p_221819_) boolean
NyliumBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
PinkPetalsBlock.isBonemealSuccess
(Level p_272604_, RandomSource p_273609_, BlockPos p_272988_, BlockState p_273231_) boolean
PitcherCropBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
RootedDirtBlock.isBonemealSuccess
(Level p_221979_, RandomSource p_221980_, BlockPos p_221981_, BlockState p_221982_) boolean
SaplingBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
SeagrassBlock.isBonemealSuccess
(Level p_222428_, RandomSource p_222429_, BlockPos p_222430_, BlockState p_222431_) boolean
SeaPickleBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
SmallDripleafBlock.isBonemealSuccess
(Level p_222438_, RandomSource p_222439_, BlockPos p_222440_, BlockState p_222441_) boolean
StemBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
SweetBerryBushBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) boolean
TallFlowerBlock.isBonemealSuccess
(Level p_222573_, RandomSource p_222574_, BlockPos p_222575_, BlockState p_222576_) boolean
TallGrassBlock.isBonemealSuccess
(Level level, RandomSource random, BlockPos pos, BlockState state) default void
SculkBehaviour.onDischarged
(LevelAccessor level, BlockState state, BlockPos pos, RandomSource random) void
SculkVeinBlock.onDischarged
(LevelAccessor level, BlockState state, BlockPos pos, RandomSource random) void
AzaleaBlock.performBonemeal
(ServerLevel p_220707_, RandomSource p_220708_, BlockPos p_220709_, BlockState p_220710_) void
BambooSaplingBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BambooStalkBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BigDripleafBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BigDripleafStemBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
BonemealableBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) 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 level, RandomSource random, BlockPos pos, BlockState state) void
CropBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
FungusBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
GlowLichenBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
GrassBlock.performBonemeal
(ServerLevel p_221270_, RandomSource p_221271_, BlockPos p_221272_, BlockState p_221273_) void
GrowingPlantBodyBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
GrowingPlantHeadBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
MangroveLeavesBlock.performBonemeal
(ServerLevel p_221427_, RandomSource p_221428_, BlockPos p_221429_, BlockState p_221430_) void
MangrovePropaguleBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
MossBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
MushroomBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
NetherrackBlock.performBonemeal
(ServerLevel p_221811_, RandomSource p_221812_, BlockPos p_221813_, BlockState p_221814_) void
NyliumBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
PinkPetalsBlock.performBonemeal
(ServerLevel p_273476_, RandomSource p_273093_, BlockPos p_272601_, BlockState p_272683_) void
PitcherCropBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
RootedDirtBlock.performBonemeal
(ServerLevel p_221974_, RandomSource p_221975_, BlockPos p_221976_, BlockState p_221977_) void
SaplingBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
SeagrassBlock.performBonemeal
(ServerLevel p_222423_, RandomSource p_222424_, BlockPos p_222425_, BlockState p_222426_) void
SeaPickleBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
SmallDripleafBlock.performBonemeal
(ServerLevel p_222433_, RandomSource p_222434_, BlockPos p_222435_, BlockState p_222436_) void
StemBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
SweetBerryBushBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) void
TallFlowerBlock.performBonemeal
(ServerLevel p_222568_, RandomSource p_222569_, BlockPos p_222570_, BlockState p_222571_) void
TallGrassBlock.performBonemeal
(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) private void
NyliumBlock.place
(Registry<ConfiguredFeature<?, ?>> featureRegistry, ResourceKey<ConfiguredFeature<?, ?>> featureKey, ServerLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor level, RandomSource random, BlockPos pos, Direction direction) protected void
BambooSaplingBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
BambooStalkBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
BeetrootBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
BuddingAmethystBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
CactusBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
ChorusFlowerBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
CocoaBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
CropBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
FarmBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
GrowingPlantHeadBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
IceBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
LeavesBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
LiquidBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
MangrovePropaguleBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
MushroomBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
NetherPortalBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
NetherWartBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
NyliumBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.void
PitcherCropBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
PointedDripstoneBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
RedStoneOreBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SaplingBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SnowLayerBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SpreadingSnowyDirtBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
StemBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SugarCaneBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
SweetBerryBushBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.void
TorchflowerCropBlock.randomTick
(BlockState p_273361_, ServerLevel p_273515_, BlockPos p_273546_, RandomSource p_273261_) protected void
TurtleEggBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
VineBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperBulbBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperDoorBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperFullBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperGrateBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperSlabBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperStairBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.protected void
WeatheringCopperTrapDoorBlock.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.private void
RedStoneWireBlock.spawnParticlesAlongLine
(Level level, RandomSource random, BlockPos pos, Vec3 particleVec, Direction xDirection, Direction zDirection, float min, float max) private void
FrogspawnBlock.spawnTadpoles
(ServerLevel level, BlockPos pos, RandomSource random) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, RandomSource random, boolean markForPostprocessing) MultifaceSpreader.spreadFromRandomFaceTowardRandomDirection
(BlockState state, LevelAccessor level, BlockPos pos, RandomSource random) protected void
AbstractCauldronBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BambooStalkBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BarrelBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BasePressurePlateBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BigDripleafBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BigDripleafStemBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) void
BrushableBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
BubbleColumnBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ButtonBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CactusBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ChestBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ChorusFlowerBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ChorusPlantBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CommandBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ComparatorBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ComposterBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralFanBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralPlantBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CoralWallFanBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
CrafterBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
DetectorRailBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
DiodeBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
DirtPathBlock.tick
(BlockState p_221070_, ServerLevel p_221071_, BlockPos p_221072_, RandomSource p_221073_) protected void
DispenserBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
EnderChestBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FallingBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FarmBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FireBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FrogspawnBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
FrostedIceBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
GrowingPlantBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
LeavesBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
LecternBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
LightningRodBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
MagmaBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ObserverBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
PointedDripstoneBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
RedstoneLampBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
RedstoneTorchBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
ScaffoldingBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SculkCatalystBlock.tick
(BlockState p_222104_, ServerLevel p_222105_, BlockPos p_222106_, RandomSource p_222107_) protected void
SculkSensorBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SculkShriekerBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) void
SnifferEggBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SoulSandBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
SugarCaneBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
TargetBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
TripWireBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) protected void
TripWireHookBlock.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) void
SculkSpreader.ChargeCursor.update
(LevelAccessor level, BlockPos pos, RandomSource random, SculkSpreader spreader, boolean shouldConvertBlocks) void
SculkSpreader.updateCursors
(LevelAccessor level, BlockPos pos, RandomSource random, boolean shouldConvertBlocks) -
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 seed) Methods in net.minecraft.world.level.block.entity with parameters of type RandomSourceModifier and TypeMethodDescriptionprivate void
SculkCatalystBlockEntity.CatalystListener.bloom
(ServerLevel level, BlockPos pos, BlockState state, RandomSource random) int
DispenserBlockEntity.getRandomSlot
(RandomSource random) void
SpawnerBlockEntity.setEntityId
(EntityType<?> type, RandomSource random) void
TrialSpawnerBlockEntity.setEntityId
(EntityType<?> entityType, RandomSource random) -
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 level, BlockPos pos, RandomSource random) static void
TrialSpawner.addDetectPlayerParticles
(Level level, BlockPos pos, RandomSource random, int type, ParticleOptions particle) static void
TrialSpawner.addEjectItemParticles
(Level level, BlockPos pos, RandomSource random) static void
TrialSpawner.addSpawnParticles
(Level level, BlockPos pos, RandomSource random, SimpleParticleType particleType) void
TrialSpawnerState.ParticleEmission.emit
(Level level, RandomSource random, BlockPos pos, boolean isOminous) protected SpawnData
TrialSpawnerData.getOrCreateNextSpawnData
(TrialSpawner spawner, RandomSource random) boolean
TrialSpawnerData.hasMobToSpawn
(TrialSpawner trialSpawner, RandomSource random) void
TrialSpawnerData.setEntityId
(TrialSpawner spawner, RandomSource random, EntityType<?> entityType) -
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 pos, RandomSource random) private static Vec3
VaultBlockEntity.Client.randomPosInsideCage
(BlockPos pos, RandomSource random) -
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 random, boolean flowers) private ResourceKey
<ConfiguredFeature<?, ?>> TreeGrower.getConfiguredMegaFeature
(RandomSource random) boolean
TreeGrower.growTree
(ServerLevel level, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, RandomSource random) -
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 level, BlockPos pos, RandomSource random) protected void
BlockBehaviour.randomTick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.void
BlockBehaviour.BlockStateBase.tick
(ServerLevel level, BlockPos pos, RandomSource random) protected void
BlockBehaviour.tick
(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) -
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 x, int y, int z) PositionalRandomFactory.at
(int x, int y, int z) default RandomSource
XoroshiroRandomSource.XoroshiroPositionalRandomFactory.at
(int x, int y, int z) LegacyRandomSource.fork()
SingleThreadedRandomSource.fork()
ThreadSafeLegacyRandomSource.fork()
Deprecated.WorldgenRandom.fork()
XoroshiroRandomSource.fork()
LegacyRandomSource.LegacyPositionalRandomFactory.fromHashOf
(String name) PositionalRandomFactory.fromHashOf
(String name) default RandomSource
PositionalRandomFactory.fromHashOf
(ResourceLocation name) XoroshiroRandomSource.XoroshiroPositionalRandomFactory.fromHashOf
(String name) LegacyRandomSource.LegacyPositionalRandomFactory.fromSeed
(long seed) PositionalRandomFactory.fromSeed
(long seed) XoroshiroRandomSource.XoroshiroPositionalRandomFactory.fromSeed
(long seed) WorldgenRandom.Algorithm.newInstance
(long seed) static RandomSource
WorldgenRandom.seedSlimeChunk
(int chunkX, int chunkZ, long levelSeed, long salt) 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 random) private static void
SurfaceSystem.makeBands
(RandomSource random, BlockState[] output, int minSize, BlockState state) private boolean
PatrolSpawner.spawnPatrolMember
(ServerLevel level, BlockPos pos, RandomSource random, boolean leader) Constructors in net.minecraft.world.level.levelgen with parameters of type RandomSourceModifierConstructorDescriptionMarsagliaPolarGaussian
(RandomSource randomSource) WorldgenRandom
(RandomSource randomSource) 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 context, CanyonCarverConfiguration config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.boolean
CaveWorldCarver.carve
(CarvingContext context, CaveCarverConfiguration config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.boolean
ConfiguredWorldCarver.carve
(CarvingContext context, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) abstract boolean
WorldCarver.carve
(CarvingContext context, C config, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeAccessor, RandomSource random, Aquifer aquifer, ChunkPos chunkPos, CarvingMask carvingMask) Carves the given chunk with caves that originate from the givenchunkPos
.protected float
CaveWorldCarver.getThickness
(RandomSource random) protected float
NetherWorldCarver.getThickness
(RandomSource p_224907_) private float[]
CanyonWorldCarver.initWidthFactors
(CarvingContext context, CanyonCarverConfiguration config, RandomSource random) Generates a random array full of width factors which are used to create the uneven walls of a ravine.boolean
CanyonWorldCarver.isStartChunk
(CanyonCarverConfiguration config, RandomSource random) boolean
CaveWorldCarver.isStartChunk
(CaveCarverConfiguration config, RandomSource random) boolean
ConfiguredWorldCarver.isStartChunk
(RandomSource random) abstract boolean
WorldCarver.isStartChunk
(C config, RandomSource random) private double
CanyonWorldCarver.updateVerticalRadius
(CanyonCarverConfiguration config, RandomSource random, double verticalRadius, float branchCount, float currentBranch) -
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 state, Function<BlockPos, BlockState> adjacentStateAccessor, RandomSource random, OreConfiguration config, OreConfiguration.TargetBlockState targetState, BlockPos.MutableBlockPos mutablePos) private static void
PointedDripstoneFeature.createPatchOfDripstoneBlocks
(LevelAccessor level, RandomSource random, BlockPos pos, PointedDripstoneConfiguration config) protected void
VegetationPatchFeature.distributeVegetation
(FeaturePlaceContext<VegetationPatchConfiguration> context, WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, Set<BlockPos> possiblePositions, int xRadius, int zRadius) protected boolean
OreFeature.doPlace
(WorldGenLevel level, RandomSource random, OreConfiguration config, double minX, double maxX, double minZ, double maxZ, double minY, double maxY, int x, int y, int z, int width, int height) private boolean
TreeFeature.doPlace
(WorldGenLevel level, RandomSource random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootBlockSetter, BiConsumer<BlockPos, BlockState> trunkBlockSetter, FoliagePlacer.FoliageSetter foliageBlockSetter, TreeConfiguration config) private void
IcebergFeature.generateCutOut
(RandomSource random, LevelAccessor level, int majorAxis, int height, BlockPos pos, boolean elliptical, int ellipseRadius, double angle, int minorAxis) private void
IcebergFeature.generateIcebergBlock
(LevelAccessor level, RandomSource random, BlockPos pos, int height, int localX, int localY, int localZ, int radius, int majorRadius, boolean elliptical, int minorRadius, double angle, boolean placeSnow, BlockState state) private int
DripstoneClusterFeature.getDripstoneHeight
(RandomSource random, int x, int z, float chance, int height, DripstoneClusterConfiguration config) private int
ScatteredOreFeature.getRandomPlacementInOneAxisRelativeToOrigin
(RandomSource random, int magnitude) PointedDripstoneFeature.getTipDirection
(LevelAccessor level, BlockPos pos, RandomSource random) protected int
AbstractHugeMushroomFeature.getTreeHeight
(RandomSource random) private int
IcebergFeature.heightDependentRadiusRound
(RandomSource random, int y, int height, int majorAxis) private int
IcebergFeature.heightDependentRadiusSteep
(RandomSource random, int y, int height, int maxRadius) 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 level, RandomSource random, BlockPos pos, int treeHeight, BlockPos.MutableBlockPos mutablePos, HugeMushroomFeatureConfiguration config) 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 root, boolean pointingUp, RandomSource random, int radius, FloatProvider bluntnessBase, FloatProvider scaleBase) private boolean
BlockPileFeature.mayPlaceOn
(LevelAccessor level, BlockPos pos, RandomSource random) private void
ScatteredOreFeature.offsetTargetPos
(BlockPos.MutableBlockPos mutablePos, RandomSource random, BlockPos pos, int magnitude) boolean
ConfiguredFeature.place
(WorldGenLevel reader, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) boolean
Feature.place
(FC config, WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) boolean
WeightedPlacedFeature.place
(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) private void
BasaltPillarFeature.placeBaseHangOff
(LevelAccessor level, RandomSource random, BlockPos pos) (package private) void
LargeDripstoneFeature.LargeDripstone.placeBlocks
(WorldGenLevel level, RandomSource random, LargeDripstoneFeature.WindOffsetter windOffsetter) protected boolean
DiskFeature.placeColumn
(DiskConfiguration config, WorldGenLevel level, RandomSource random, int maxY, int minY, BlockPos.MutableBlockPos pos) private void
DripstoneClusterFeature.placeColumn
(WorldGenLevel level, RandomSource random, BlockPos pos, int x, int z, float wetness, double chance, int height, float density, DripstoneClusterConfiguration config) protected boolean
CoralFeature.placeCoralBlock
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) private static void
RootSystemFeature.placeDirt
(BlockPos pos, int maxY, WorldGenLevel level, RootSystemConfiguration config, RandomSource random) private static boolean
RootSystemFeature.placeDirtAndTree
(WorldGenLevel level, ChunkGenerator chunkGenerator, RootSystemConfiguration config, RandomSource random, BlockPos.MutableBlockPos mutablePos, BlockPos basePos) protected boolean
CoralClawFeature.placeFeature
(LevelAccessor p_224959_, RandomSource p_224960_, BlockPos p_224961_, BlockState p_224962_) protected abstract boolean
CoralFeature.placeFeature
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state) 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 level, VegetationPatchConfiguration config, Predicate<BlockState> replaceableblocks, RandomSource random, BlockPos.MutableBlockPos mutablePos, int maxDistance) VegetationPatchFeature.placeGroundPatch
(WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, BlockPos pos, Predicate<BlockState> state, int xRadius, int zRadius) WaterloggedVegetationPatchFeature.placeGroundPatch
(WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, BlockPos pos, Predicate<BlockState> state, int xRadius, int zRadius) static boolean
MultifaceGrowthFeature.placeGrowthIfPossible
(WorldGenLevel level, BlockPos pos, BlockState state, MultifaceGrowthConfiguration config, RandomSource random, List<Direction> directions) private boolean
BasaltPillarFeature.placeHangOff
(LevelAccessor level, RandomSource random, BlockPos pos) private void
HugeFungusFeature.placeHat
(WorldGenLevel level, RandomSource random, HugeFungusConfiguration config, BlockPos pos, int height, boolean huge) private void
HugeFungusFeature.placeHatBlock
(LevelAccessor level, RandomSource random, HugeFungusConfiguration config, BlockPos.MutableBlockPos pos, float decorationChance, float hatChance, float weepingVineChance) private void
HugeFungusFeature.placeHatDropBlock
(LevelAccessor level, RandomSource random, BlockPos pos, BlockState state, boolean weepingVines) private void
WeepingVinesFeature.placeRoofNetherWart
(LevelAccessor level, RandomSource random, BlockPos pos) private void
WeepingVinesFeature.placeRoofWeepingVines
(LevelAccessor level, RandomSource random, BlockPos pos) private static void
RootSystemFeature.placeRootedDirt
(WorldGenLevel level, RootSystemConfiguration config, RandomSource random, int x, int z, BlockPos.MutableBlockPos pos) private static void
RootSystemFeature.placeRoots
(WorldGenLevel level, RootSystemConfiguration config, RandomSource random, BlockPos basePos, BlockPos.MutableBlockPos mutablePos) private void
SpikeFeature.placeSpike
(ServerLevelAccessor level, RandomSource random, SpikeConfiguration config, SpikeFeature.EndSpike spike) Places the End Spike in the world.private void
HugeFungusFeature.placeStem
(WorldGenLevel level, RandomSource random, HugeFungusConfiguration config, BlockPos pos, int height, boolean huge) protected void
AbstractHugeMushroomFeature.placeTrunk
(LevelAccessor level, RandomSource random, BlockPos pos, HugeMushroomFeatureConfiguration config, int maxHeight, BlockPos.MutableBlockPos mutablePos) protected boolean
VegetationPatchFeature.placeVegetation
(WorldGenLevel level, VegetationPatchConfiguration config, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) protected boolean
WaterloggedVegetationPatchFeature.placeVegetation
(WorldGenLevel level, VegetationPatchConfiguration config, ChunkGenerator chunkGenerator, RandomSource random, BlockPos pos) static void
TwistingVinesFeature.placeWeepingVinesColumn
(LevelAccessor level, RandomSource random, BlockPos.MutableBlockPos pos, int length, int minAge, int maxAge) static void
WeepingVinesFeature.placeWeepingVinesColumn
(LevelAccessor level, RandomSource random, BlockPos.MutableBlockPos pos, int height, int minAge, int maxAge) private static float
DripstoneClusterFeature.randomBetweenBiased
(RandomSource random, float min, float max, float mean, float deviation) private EntityType
<?> MonsterRoomFeature.randomEntityId
(RandomSource random) private void
IcebergFeature.setIcebergBlock
(BlockPos pos, LevelAccessor level, RandomSource random, int heightRemaining, int height, boolean elliptical, boolean placeSnow, BlockState state) protected static boolean
OreFeature.shouldSkipAirCheck
(RandomSource random, float chance) private double
IcebergFeature.signedDistanceCircle
(int x, int z, BlockPos center, int radius, RandomSource random) private void
BlockPileFeature.tryPlaceBlock
(LevelAccessor level, BlockPos pos, RandomSource random, BlockPileConfiguration config) private static void
HugeFungusFeature.tryPlaceWeepingVines
(BlockPos pos, LevelAccessor level, RandomSource random) Constructors in net.minecraft.world.level.levelgen.feature with parameters of type RandomSourceModifierConstructorDescriptionFeaturePlaceContext
(Optional<ConfiguredFeature<?, ?>> topFeature, WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin, FC config) (package private)
WindOffsetter
(int originY, RandomSource random, FloatProvider magnitude) -
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 random) MultifaceGrowthConfiguration.getShuffledDirectionsExcept
(RandomSource random, Direction direction) -
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 level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) 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 level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) 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 level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius) protected abstract void
FoliagePlacer.createFoliage
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) protected void
MegaJungleFoliagePlacer.createFoliage
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) protected void
MegaPineFoliagePlacer.createFoliage
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) protected void
PineFoliagePlacer.createFoliage
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) protected void
RandomSpreadFoliagePlacer.createFoliage
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) protected void
SpruceFoliagePlacer.createFoliage
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter blockSetter, RandomSource random, TreeConfiguration config, int maxFreeTreeHeight, FoliagePlacer.FoliageAttachment attachment, int foliageHeight, int foliageRadius, int offset) int
AcaciaFoliagePlacer.foliageHeight
(RandomSource p_225495_, int p_225496_, TreeConfiguration p_225497_) int
BlobFoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
CherryFoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
DarkOakFoliagePlacer.foliageHeight
(RandomSource p_225554_, int p_225555_, TreeConfiguration p_225556_) abstract int
FoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
MegaJungleFoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
MegaPineFoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
PineFoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
RandomSpreadFoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
SpruceFoliagePlacer.foliageHeight
(RandomSource random, int height, TreeConfiguration config) int
FoliagePlacer.foliageRadius
(RandomSource random, int radius) int
PineFoliagePlacer.foliageRadius
(RandomSource random, int radius) private int
FoliagePlacer.offset
(RandomSource random) protected void
FoliagePlacer.placeLeavesRow
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, BlockPos pos, int range, int localY, boolean large) protected final void
FoliagePlacer.placeLeavesRowWithHangingLeavesBelow
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, BlockPos pos, int range, int localY, boolean large, float hangingLeavesChance, float hangingLeavesExtensionChance) 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 random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.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 random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.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 random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.protected boolean
MegaJungleFoliagePlacer.shouldSkipLocation
(RandomSource random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.protected boolean
MegaPineFoliagePlacer.shouldSkipLocation
(RandomSource random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.protected boolean
PineFoliagePlacer.shouldSkipLocation
(RandomSource random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.protected boolean
RandomSpreadFoliagePlacer.shouldSkipLocation
(RandomSource random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.protected boolean
SpruceFoliagePlacer.shouldSkipLocation
(RandomSource random, int localX, int localY, int localZ, int range, boolean large) Skips certain positions based on the provided shape, such as rounding corners randomly.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 random, int localX, int localY, int localZ, int range, boolean large) private static boolean
FoliagePlacer.tryPlaceExtension
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, float extensionChance, BlockPos logPos, BlockPos.MutableBlockPos pos) protected static boolean
FoliagePlacer.tryPlaceLeaf
(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration treeConfiguration, BlockPos pos) -
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 pos, RandomSource random) protected void
MangroveRootPlacer.placeRoot
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration treeConfig) protected void
RootPlacer.placeRoot
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration treeConfig) boolean
MangroveRootPlacer.placeRoots
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, BlockPos trunkOrigin, TreeConfiguration treeConfig) abstract boolean
RootPlacer.placeRoots
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, BlockPos trunkOrigin, TreeConfiguration treeConfig) MangroveRootPlacer.potentialRootPositions
(BlockPos pos, Direction direction, RandomSource random, BlockPos trunkOrigin) private boolean
MangroveRootPlacer.simulateRoots
(LevelSimulatedReader level, RandomSource random, BlockPos pos, Direction direction, BlockPos trunkOrigin, List<BlockPos> roots, int length) -
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 random, BlockPos pos) DualNoiseProvider.getState
(RandomSource random, BlockPos pos) NoiseProvider.getState
(RandomSource random, BlockPos pos) NoiseThresholdProvider.getState
(RandomSource random, BlockPos pos) RandomizedIntStateProvider.getState
(RandomSource random, BlockPos pos) RotatedBlockProvider.getState
(RandomSource random, BlockPos pos) RuleBasedBlockStateProvider.getState
(WorldGenLevel level, RandomSource random, BlockPos pos) SimpleStateProvider.getState
(RandomSource random, BlockPos pos) WeightedStateProvider.getState
(RandomSource random, BlockPos pos) -
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 level, BiConsumer<BlockPos, BlockState> decorationSetter, RandomSource random, Set<BlockPos> logs, Set<BlockPos> leaves, Set<BlockPos> roots) -
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 level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config, Function<BlockState, BlockState> propertySetter, Direction p_direction, int secondBranchStartOffsetFromTop, boolean doubleBranch, BlockPos.MutableBlockPos currentPos) int
TrunkPlacer.getTreeHeight
(RandomSource random) private void
FancyTrunkPlacer.makeBranches
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int maxHeight, BlockPos pos, List<FancyTrunkPlacer.FoliageCoords> foliageCoords, TreeConfiguration config) private boolean
FancyTrunkPlacer.makeLimb
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos basePos, BlockPos offsetPos, boolean modifyWorld, TreeConfiguration config) private void
UpwardsBranchingTrunkPlacer.placeBranch
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, TreeConfiguration treeConfig, List<FoliagePlacer.FoliageAttachment> foliageAttachments, BlockPos.MutableBlockPos pos, int y, Direction direction, int extraBranchLength, int extraBranchSteps) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config) protected boolean
TrunkPlacer.placeLog
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config, Function<BlockState, BlockState> propertySetter) protected void
TrunkPlacer.placeLogIfFree
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos.MutableBlockPos pos, TreeConfiguration config) private void
GiantTrunkPlacer.placeLogIfFreeWithOffset
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos.MutableBlockPos pos, TreeConfiguration config, BlockPos offsetPos, int offsetX, int offsetY, int offsetZ) BendingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) CherryTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) DarkOakTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) FancyTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) ForkingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) GiantTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) MegaJungleTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) StraightTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) abstract List
<FoliagePlacer.FoliageAttachment> TrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) UpwardsBranchingTrunkPlacer.placeTrunk
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config) protected static void
TrunkPlacer.setDirtAt
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, BlockPos pos, TreeConfiguration config) -
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 random, WorldGenerationContext context) int
ConstantHeight.sample
(RandomSource random, WorldGenerationContext context) abstract int
HeightProvider.sample
(RandomSource random, WorldGenerationContext context) int
TrapezoidHeight.sample
(RandomSource random, WorldGenerationContext context) int
UniformHeight.sample
(RandomSource random, WorldGenerationContext context) int
VeryBiasedToBottomHeight.sample
(RandomSource random, WorldGenerationContext context) int
WeightedListHeight.sample
(RandomSource random, WorldGenerationContext context) -
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 random, BlockPos pos) protected int
NoiseBasedCountPlacement.count
(RandomSource random, BlockPos pos) protected int
NoiseThresholdCountPlacement.count
(RandomSource random, BlockPos pos) protected abstract int
RepeatingPlacement.count
(RandomSource random, BlockPos pos) CarvingMaskPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) CountOnEveryLayerPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) Deprecated.EnvironmentScanPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) FixedPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) HeightmapPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) HeightRangePlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) InSquarePlacement.getPositions
(PlacementContext p_226348_, RandomSource p_226349_, BlockPos p_226350_) PlacementFilter.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) PlacementModifier.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) RandomOffsetPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) RepeatingPlacement.getPositions
(PlacementContext context, RandomSource random, BlockPos pos) boolean
PlacedFeature.place
(WorldGenLevel level, ChunkGenerator generator, RandomSource random, BlockPos pos) boolean
PlacedFeature.placeWithBiomeCheck
(WorldGenLevel level, ChunkGenerator generator, RandomSource random, BlockPos pos) private boolean
PlacedFeature.placeWithContext
(PlacementContext context, RandomSource source, BlockPos pos) protected boolean
BiomeFilter.shouldPlace
(PlacementContext p_226317_, RandomSource p_226318_, BlockPos p_226319_) protected boolean
BlockPredicateFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected abstract boolean
PlacementFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected boolean
RarityFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected boolean
SurfaceRelativeThresholdFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) protected boolean
SurfaceWaterDepthFilter.shouldPlace
(PlacementContext context, RandomSource random, BlockPos pos) -
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 piece, StructurePieceAccessor pieces, RandomSource random) void
PostPlacementProcessor.afterPlace
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, PiecesContainer pieces) void
Structure.afterPlace
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator chunkGenerator, RandomSource random, BoundingBox boundingBox, ChunkPos chunkPos, PiecesContainer pieces) protected boolean
StructurePiece.createChest
(ServerLevelAccessor level, BoundingBox box, RandomSource random, BlockPos pos, ResourceKey<LootTable> lootTable, BlockState state) protected boolean
StructurePiece.createChest
(WorldGenLevel level, BoundingBox box, RandomSource random, int x, int y, int z, ResourceKey<LootTable> lootTable) protected boolean
StructurePiece.createDispenser
(WorldGenLevel level, BoundingBox box, RandomSource random, int x, int y, int z, Direction facing, ResourceKey<LootTable> lootTable) protected void
StructurePiece.generateBox
(WorldGenLevel level, BoundingBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean alwaysReplace, RandomSource random, StructurePiece.BlockSelector blockSelector) protected void
StructurePiece.generateBox
(WorldGenLevel level, BoundingBox boundingBox, BoundingBox box, boolean alwaysReplace, RandomSource random, StructurePiece.BlockSelector blockSelector) protected void
StructurePiece.generateMaybeBox
(WorldGenLevel level, BoundingBox box, RandomSource random, float chance, int x1, int y1, int z1, int x2, int y2, int z2, BlockState edgeState, BlockState state, boolean requireNonAir, boolean requireSkylight) protected static Direction
StructurePiece.getRandomHorizontalDirection
(RandomSource random) protected abstract void
TemplateStructurePiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
StructurePiece.maybeGenerateBlock
(WorldGenLevel level, BoundingBox box, RandomSource random, float chance, int x, int y, int z, BlockState state) abstract void
StructurePiece.BlockSelector.next
(RandomSource random, int x, int y, int z, boolean wall) void
PoolElementStructurePiece.place
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, BlockPos pos, boolean keepJigsaws) void
StructureStart.placeInChunk
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos) void
PoolElementStructurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) abstract void
StructurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
TemplateStructurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) -
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 seaLevel, int minY, RandomSource random, int amount) Deprecated.void
StructurePiecesBuilder.moveInsideHeights
(RandomSource random, int minY, int maxY) 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 RandomSource -
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 randomState, int maxDepth, boolean useExpansionHack, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, LevelHeightAccessor level, RandomSource random, Registry<StructureTemplatePool> pools, PoolElementStructurePiece startPiece, List<PoolElementStructurePiece> pieces, VoxelShape free, PoolAliasLookup aliasLookup, LiquidSettings liquidSettings) StructureTemplatePool.getRandomTemplate
(RandomSource random) EmptyPoolElement.getShuffledJigsawBlocks
(StructureTemplateManager p_227176_, BlockPos p_227177_, Rotation p_227178_, RandomSource p_227179_) FeaturePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) ListPoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) SinglePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) abstract List
<StructureTemplate.StructureBlockInfo> StructurePoolElement.getShuffledJigsawBlocks
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) StructureTemplatePool.getShuffledTemplates
(RandomSource random) void
StructurePoolElement.handleDataMarker
(LevelAccessor level, StructureTemplate.StructureBlockInfo blockInfo, BlockPos pos, Rotation rotation, RandomSource random, BoundingBox box) 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 structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) boolean
ListPoolElement.place
(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) boolean
SinglePoolElement.place
(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) abstract boolean
StructurePoolElement.place
(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) Constructors in net.minecraft.world.level.levelgen.structure.pools with parameters of type RandomSourceModifierConstructorDescription(package private)
Placer
(Registry<StructureTemplatePool> pools, int maxDepth, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, List<? super PoolElementStructurePiece> pieces, RandomSource random) -
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
Direct.forEachResolved
(RandomSource random, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> stucturePoolKey) void
PoolAliasBinding.forEachResolved
(RandomSource random, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> stucturePoolKey) void
Random.forEachResolved
(RandomSource random, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> stucturePoolKey) void
RandomGroup.forEachResolved
(RandomSource random, BiConsumer<ResourceKey<StructureTemplatePool>, ResourceKey<StructureTemplatePool>> stucturePoolKey) -
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 piece, StructurePieceAccessor pieces, RandomSource random) void
MineshaftPieces.MineShaftCrossing.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
MineshaftPieces.MineShaftRoom.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
MineshaftPieces.MineShaftStairs.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.BridgeCrossing.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.BridgeStraight.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleCorridorStairsPiece.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleCorridorTBalconyPiece.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleEntrance.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleSmallCorridorCrossingPiece.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleSmallCorridorPiece.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.CastleStalkRoom.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.RoomCrossing.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
NetherFortressPieces.StairsRoom.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.ChestCorridor.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.FiveCrossing.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.LeftTurn.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.PortalRoom.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.PrisonHall.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.RightTurn.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.RoomCrossing.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.StairsDown.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.Straight.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) void
StrongholdPieces.StraightStairsDown.addChildren
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random) private static void
OceanRuinPieces.addClusterRuins
(StructureTemplateManager structureTemplateManager, RandomSource random, Rotation p_rotation, BlockPos pos, OceanRuinStructure structure, StructurePieceAccessor structurePieceAccessor) private void
RuinedPortalPiece.addNetherrackDripColumn
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.addNetherrackDripColumnsBelowPortal
(RandomSource random, LevelAccessor level) private static void
OceanRuinPieces.addPiece
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, StructurePieceAccessor structurePieceAccessor, RandomSource random, OceanRuinStructure structure, boolean isLarge, float integrity) static void
IglooPieces.addPieces
(StructureTemplateManager structureTemplateManager, BlockPos startPos, Rotation rotation, StructurePieceAccessor pieces, RandomSource random) static void
NetherFossilPieces.addPieces
(StructureTemplateManager structureManager, StructurePieceAccessor pieces, RandomSource random, BlockPos pos) static void
OceanRuinPieces.addPieces
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, StructurePieceAccessor structurePieceAccessor, RandomSource random, OceanRuinStructure structure) ShipwreckPieces.addRandomPiece
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, StructurePieceAccessor pieces, RandomSource random, boolean isBeached) void
DesertPyramidStructure.afterPlace
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator chunkGenerator, RandomSource random, BoundingBox boundingBox, ChunkPos chunkPos, PiecesContainer pieces) void
WoodlandMansionStructure.afterPlace
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator chunkGenerator, RandomSource random, BoundingBox boundingBox, ChunkPos chunkPos, PiecesContainer pieces) OceanRuinPieces.allPositions
(RandomSource random, BlockPos pos) int
ShipwreckPieces.ShipwreckPiece.calculateBeachedPosition
(int maxHeight, RandomSource random) 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 direction, OceanMonumentPieces.RoomDefinition room, RandomSource random) protected boolean
MineshaftPieces.MineShaftCorridor.createChest
(WorldGenLevel level, BoundingBox box, RandomSource random, int x, int y, int z, ResourceKey<LootTable> lootTable) NetherFortressPieces.BridgeEndFiller.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.BridgeStraight.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleEntrance.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleSmallCorridorRightTurnPiece.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) StrongholdPieces.ChestCorridor.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) StrongholdPieces.FiveCrossing.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.LeftTurn
StrongholdPieces.LeftTurn.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.Library
StrongholdPieces.Library.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.PrisonHall
StrongholdPieces.PrisonHall.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.RightTurn
StrongholdPieces.RightTurn.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) StrongholdPieces.RoomCrossing.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.StairsDown
StrongholdPieces.StairsDown.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.Straight
StrongholdPieces.Straight.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) StrongholdPieces.StraightStairsDown.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) private static MineshaftPieces.MineShaftPiece
MineshaftPieces.createRandomShaftPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth, MineshaftStructure.Type type) (package private) static NetherFortressPieces.NetherBridgePiece
NetherFortressPieces.findAndCreateBridgePieceFactory
(NetherFortressPieces.PieceWeight weight, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.findAndCreatePieceFactory
(Class<? extends StrongholdPieces.StrongholdPiece> pieceClass, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) static BoundingBox
MineshaftPieces.MineShaftCorridor.findCorridorSize
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction) static BoundingBox
MineshaftPieces.MineShaftCrossing.findCrossing
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction) static BoundingBox
StrongholdPieces.FillerCorridor.findPieceBox
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation) static BoundingBox
MineshaftPieces.MineShaftStairs.findStairs
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction) private static int
RuinedPortalStructure.findSuitableY
(RandomSource random, ChunkGenerator chunkGenerator, RuinedPortalPiece.VerticalPlacement verticalPlacement, boolean airPocket, int height, int blockCountY, BoundingBox box, LevelHeightAccessor level, RandomState randomState) boolean
EndCityPieces.SectionGenerator.generate
(StructureTemplateManager structureTemplateManager, int counter, EndCityPieces.EndCityPiece piece, BlockPos startPos, List<StructurePiece> pieces, RandomSource random) (package private) static MineshaftPieces.MineShaftPiece
MineshaftPieces.generateAndAddPiece
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) private StructurePiece
NetherFortressPieces.NetherBridgePiece.generateAndAddPiece
(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth, boolean castlePiece) (package private) static StructurePiece
StrongholdPieces.generateAndAddPiece
(StrongholdPieces.StartPiece piece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) protected StructurePiece
NetherFortressPieces.NetherBridgePiece.generateChildForward
(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetX, int offsetY, boolean castlePiece) protected StructurePiece
NetherFortressPieces.NetherBridgePiece.generateChildLeft
(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) protected StructurePiece
NetherFortressPieces.NetherBridgePiece.generateChildRight
(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) private void
OceanMonumentPieces.MonumentBuilding.generateEntranceArchs
(WorldGenLevel level, RandomSource random, BoundingBox box) private void
OceanMonumentPieces.MonumentBuilding.generateEntranceWall
(WorldGenLevel level, RandomSource random, BoundingBox box) private void
OceanMonumentPieces.MonumentBuilding.generateLowerWall
(WorldGenLevel level, RandomSource random, BoundingBox box) static void
WoodlandMansionPieces.generateMansion
(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, RandomSource random) private void
OceanMonumentPieces.MonumentBuilding.generateMiddleWall
(WorldGenLevel level, RandomSource random, BoundingBox box) NetherFortressPieces.NetherBridgePiece.generatePiece
(NetherFortressPieces.StartPiece startPiece, List<NetherFortressPieces.PieceWeight> weights, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.generatePieceFromSmallDoor
(StrongholdPieces.StartPiece piece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) private void
OceanMonumentPieces.MonumentBuilding.generateRoofPiece
(WorldGenLevel level, RandomSource random, BoundingBox box) private List
<OceanMonumentPieces.RoomDefinition> OceanMonumentPieces.MonumentBuilding.generateRoomGraph
(RandomSource random) protected void
StrongholdPieces.StrongholdPiece.generateSmallDoor
(WorldGenLevel level, RandomSource random, BoundingBox box, StrongholdPieces.StrongholdPiece.SmallDoorType type, int x, int y, int z) protected StructurePiece
StrongholdPieces.StrongholdPiece.generateSmallDoorChildForward
(StrongholdPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetX, int offsetY) protected StructurePiece
StrongholdPieces.StrongholdPiece.generateSmallDoorChildLeft
(StrongholdPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX) protected StructurePiece
StrongholdPieces.StrongholdPiece.generateSmallDoorChildRight
(StrongholdPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX) private void
OceanMonumentPieces.MonumentBuilding.generateUpperWall
(WorldGenLevel level, RandomSource random, BoundingBox box) private void
OceanMonumentPieces.MonumentBuilding.generateWing
(boolean wing, int x, WorldGenLevel level, RandomSource random, BoundingBox box) WoodlandMansionPieces.FirstFloorRoomCollection.get1x1
(RandomSource p_229995_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x1
(RandomSource random) WoodlandMansionPieces.SecondFloorRoomCollection.get1x1
(RandomSource p_230144_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x1Secret
(RandomSource p_230000_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x1Secret
(RandomSource random) WoodlandMansionPieces.SecondFloorRoomCollection.get1x1Secret
(RandomSource p_230149_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x2FrontEntrance
(RandomSource p_230002_, boolean p_230003_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x2FrontEntrance
(RandomSource random, boolean isStairs) WoodlandMansionPieces.SecondFloorRoomCollection.get1x2FrontEntrance
(RandomSource p_230151_, boolean p_230152_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x2Secret
(RandomSource p_230005_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x2Secret
(RandomSource random) WoodlandMansionPieces.SecondFloorRoomCollection.get1x2Secret
(RandomSource p_230154_) WoodlandMansionPieces.FirstFloorRoomCollection.get1x2SideEntrance
(RandomSource p_229997_, boolean p_229998_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get1x2SideEntrance
(RandomSource random, boolean isStairs) WoodlandMansionPieces.SecondFloorRoomCollection.get1x2SideEntrance
(RandomSource p_230146_, boolean p_230147_) WoodlandMansionPieces.FirstFloorRoomCollection.get2x2
(RandomSource p_230007_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get2x2
(RandomSource random) WoodlandMansionPieces.SecondFloorRoomCollection.get2x2
(RandomSource p_230156_) WoodlandMansionPieces.FirstFloorRoomCollection.get2x2Secret
(RandomSource p_230009_) abstract String
WoodlandMansionPieces.FloorRoomCollection.get2x2Secret
(RandomSource random) WoodlandMansionPieces.SecondFloorRoomCollection.get2x2Secret
(RandomSource p_230158_) private static ResourceLocation
OceanRuinPieces.getBigWarmRuin
(RandomSource random) private static int
RuinedPortalStructure.getRandomWithinInterval
(RandomSource random, int min, int max) private static ResourceLocation
OceanRuinPieces.getSmallWarmRuin
(RandomSource random) protected void
EndCityPieces.EndCityPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
IglooPieces.IglooPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
NetherFossilPieces.NetherFossilPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
OceanRuinPieces.OceanRuinPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
RuinedPortalPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
ShipwreckPieces.ShipwreckPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) protected void
WoodlandMansionPieces.WoodlandMansionPiece.handleDataMarker
(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) private void
RuinedPortalPiece.maybeAddLeavesAbove
(RandomSource random, LevelAccessor level, BlockPos pos) private void
RuinedPortalPiece.maybeAddVines
(RandomSource random, LevelAccessor level, BlockPos pos) private void
MineshaftPieces.MineShaftCorridor.maybePlaceCobWeb
(WorldGenLevel level, BoundingBox box, RandomSource random, float chance, int x, int y, int z) 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 random, LevelAccessor level, BlockPos pos) private void
MineshaftPieces.MineShaftCorridor.placeSupport
(WorldGenLevel level, BoundingBox box, int minX, int minY, int z, int maxY, int maxX, RandomSource random) void
BuriedTreasurePieces.BuriedTreasurePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
DesertPyramidPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
IglooPieces.IglooPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
JungleTemplePiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftCorridor.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
MineshaftPieces.MineShaftStairs.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.BridgeCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.BridgeEndFiller.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.BridgeStraight.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleCorridorStairsPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleCorridorTBalconyPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleEntrance.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorCrossingPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.CastleStalkRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.MonsterThrone.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.RoomCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFortressPieces.StairsRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
NetherFossilPieces.NetherFossilPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.MonumentBuilding.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentCoreRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleXRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleXYRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleYRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleYZRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentDoubleZRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentEntryRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentPenthouse.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentSimpleRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentSimpleTopRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanMonumentPieces.OceanMonumentWingRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
OceanRuinPieces.OceanRuinPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
RuinedPortalPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
ShipwreckPieces.ShipwreckPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.ChestCorridor.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.FillerCorridor.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.FiveCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.LeftTurn.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.Library.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.PortalRoom.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.PrisonHall.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.RightTurn.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.RoomCrossing.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.StairsDown.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.Straight.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
StrongholdPieces.StraightStairsDown.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) void
SwampHutPiece.postProcess
(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) StrongholdPieces.StrongholdPiece.randomSmallDoor
(RandomSource random) (package private) static boolean
EndCityPieces.recursiveChildren
(StructureTemplateManager structureTemplateManager, EndCityPieces.SectionGenerator sectionGenerator, int counter, EndCityPieces.EndCityPiece piece, BlockPos startPos, List<StructurePiece> pieces, RandomSource random) private void
RuinedPortalPiece.spreadNetherrack
(RandomSource random, LevelAccessor level) static void
EndCityPieces.startHouseTower
(StructureTemplateManager structureTemplateManager, BlockPos startPos, Rotation rotation, List<StructurePiece> pieces, RandomSource random) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type RandomSourceModifierConstructorDescriptionBridgeEndFiller
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) BridgeStraight
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) CastleEntrance
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) CastleSmallCorridorLeftTurnPiece
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) CastleSmallCorridorRightTurnPiece
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) ChestCorridor
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) DesertPyramidPiece
(RandomSource random, int x, int z) FiveCrossing
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) JungleTemplePiece
(RandomSource random, int x, int z) LeftTurn
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) Library
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) MansionGrid
(RandomSource random) MansionPiecePlacer
(StructureTemplateManager structureTemplateManager, RandomSource random) MineShaftCorridor
(int genDepth, RandomSource random, BoundingBox boundingBox, Direction orientation, MineshaftStructure.Type type) MineShaftRoom
(int genDepth, RandomSource random, int x, int z, MineshaftStructure.Type type) MonumentBuilding
(RandomSource random, int x, int z, Direction orientation) OceanMonumentSimpleRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room, RandomSource random) PrisonHall
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) RightTurn
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) RoomCrossing
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) StairsDown
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) StartPiece
(RandomSource random, int x, int z) StartPiece
(RandomSource random, int x, int z) Straight
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) StraightStairsDown
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) SwampHutPiece
(RandomSource random, int x, int z) -
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 random, CompoundTag tag) private static BlockState
BlockAgeProcessor.getRandomBlock
(RandomSource random, BlockState[] states) private BlockState
BlockAgeProcessor.getRandomBlock
(RandomSource random, BlockState[] normalStates, BlockState[] mossyStates) private static BlockState
BlockAgeProcessor.getRandomFacingStairs
(RandomSource random, Block stairsBlock) private BlockState
BlockAgeProcessor.maybeReplaceFullStoneBlock
(RandomSource random) private BlockState
BlockAgeProcessor.maybeReplaceObsidian
(RandomSource random) private BlockState
BlockAgeProcessor.maybeReplaceSlab
(RandomSource random) private BlockState
BlockAgeProcessor.maybeReplaceStairs
(RandomSource random, BlockState state) private BlockState
BlockAgeProcessor.maybeReplaceWall
(RandomSource random) boolean
StructureTemplate.placeInWorld
(ServerLevelAccessor serverLevel, BlockPos offset, BlockPos pos, StructurePlaceSettings settings, RandomSource random, int flags) StructurePlaceSettings.setRandom
(RandomSource random) boolean
AlwaysTrueTest.test
(BlockState p_230248_, RandomSource p_230249_) boolean
AxisAlignedLinearPosTest.test
(BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) boolean
BlockMatchTest.test
(BlockState state, RandomSource random) boolean
BlockStateMatchTest.test
(BlockState state, RandomSource random) boolean
LinearPosTest.test
(BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) boolean
PosAlwaysTrueTest.test
(BlockPos p_230301_, BlockPos p_230302_, BlockPos p_230303_, RandomSource p_230304_) abstract boolean
PosRuleTest.test
(BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) boolean
ProcessorRule.test
(BlockState inputState, BlockState existingState, BlockPos localPos, BlockPos relativePos, BlockPos structurePos, RandomSource random) boolean
RandomBlockMatchTest.test
(BlockState state, RandomSource random) boolean
RandomBlockStateMatchTest.test
(BlockState state, RandomSource random) abstract boolean
RuleTest.test
(BlockState state, RandomSource random) boolean
TagMatchTest.test
(BlockState state, RandomSource random) -
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 random, CompoundTag tag) AppendStatic.apply
(RandomSource random, CompoundTag tag) Clear.apply
(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply
(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply
(RandomSource random, CompoundTag tag) -
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 random, int firstOctave, double... amplitudes) static NormalNoise
NormalNoise.create
(RandomSource random, NormalNoise.NoiseParameters parameters) static PerlinNoise
PerlinNoise.create
(RandomSource random, int firstOctave, double firstAmplitude, double... amplitudes) static PerlinNoise
PerlinNoise.create
(RandomSource random, int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) static PerlinNoise
PerlinNoise.create
(RandomSource random, List<Integer> octaves) static PerlinNoise
PerlinNoise.create
(RandomSource random, IntStream octaves) static PerlinNoise
PerlinNoise.createLegacyForBlendedNoise
(RandomSource random, IntStream octaves) Deprecated.static PerlinNoise
PerlinNoise.createLegacyForLegacyNetherBiome
(RandomSource random, int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) Deprecated.static NormalNoise
NormalNoise.createLegacyNetherBiome
(RandomSource random, NormalNoise.NoiseParameters parameters) Deprecated.private static void
PerlinNoise.skipOctave
(RandomSource random) BlendedNoise.withNewRandom
(RandomSource random) Constructors in net.minecraft.world.level.levelgen.synth with parameters of type RandomSourceModifierConstructorDescriptionBlendedNoise
(RandomSource random, double xzScale, double yScale, double xzFactor, double yFactor, double smearScaleMultiplier) ImprovedNoise
(RandomSource random) private
NormalNoise
(RandomSource random, NormalNoise.NoiseParameters parameters, boolean useLegacyNetherBiome) protected
PerlinNoise
(RandomSource random, com.mojang.datafixers.util.Pair<Integer, it.unimi.dsi.fastutil.doubles.DoubleList> octavesAndAmplitudes, boolean useNewFactory) private
PerlinSimplexNoise
(RandomSource random, it.unimi.dsi.fastutil.ints.IntSortedSet octaves) PerlinSimplexNoise
(RandomSource random, List<Integer> octaves) SimplexNoise
(RandomSource random) -
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 level, BlockPos pos, FluidState state, RandomSource random) void
FluidState.animateTick
(Level level, BlockPos pos, RandomSource random) void
LavaFluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
WaterFluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) protected void
Fluid.randomTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
FluidState.randomTick
(Level level, BlockPos pos, RandomSource random) void
LavaFluid.randomTick
(Level level, BlockPos pos, FluidState state, RandomSource random) -
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 inventory, RandomSource random) it.unimi.dsi.fastutil.objects.ObjectArrayList
<ItemStack> LootTable.getRandomItems
(LootParams params, RandomSource random) private void
LootTable.shuffleAndSplitItems
(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> stacks, int emptySlotsCount, RandomSource random) Shuffles items by changing their order and splitting stacksLootContext.Builder.withOptionalRandomSource
(RandomSource random) Constructors in net.minecraft.world.level.storage.loot with parameters of type RandomSourceModifierConstructorDescription(package private)
LootContext
(LootParams params, RandomSource random, HolderGetter.Provider lootDataResolver) private
LootContext
(LootParams params, RandomSource random, HolderGetter.Provider lootDataResolver, 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 random, int originalCount, int enchantmentLevel) int
ApplyBonusCount.Formula.calculateNewCount
(RandomSource random, int originalCount, int enchantmentLevel) int
ApplyBonusCount.OreDrops.calculateNewCount
(RandomSource random, int originalCount, int enchantmentLevel) int
ApplyBonusCount.UniformBonusCount.calculateNewCount
(RandomSource random, int originalCount, int enchantmentLevel) private static ItemStack
EnchantRandomlyFunction.enchantItem
(ItemStack stack, Holder<Enchantment> enchantment, RandomSource random) -
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.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type RandomSourceModifier and TypeMethodDescriptionIBakedModelExtension.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData data, @Nullable RenderType renderType) A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.default ChunkRenderTypeSet
IBakedModelExtension.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) Gets the set ofrender types
to use when drawing this block in the level. -
Uses of RandomSource in net.neoforged.neoforge.client.model
Methods in net.neoforged.neoforge.client.model with parameters of type RandomSourceModifier and TypeMethodDescriptionBakedModelWrapper.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand) BakedModelWrapper.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData extraData, @Nullable RenderType renderType) CompositeModel.Baked.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData data, @Nullable RenderType renderType) IDynamicBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand) IDynamicBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData extraData, @Nullable RenderType renderType) SeparateTransformsModel.Baked.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData data, @Nullable RenderType renderType) BakedModelWrapper.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) CompositeModel.Baked.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) SeparateTransformsModel.Baked.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) -
Uses of RandomSource in net.neoforged.neoforge.client.model.lighting
Methods in net.neoforged.neoforge.client.model.lighting with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic boolean
LightPipelineAwareModelBlockRenderer.render
(VertexConsumer vertexConsumer, QuadLighter lighter, BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
LightPipelineAwareModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
LightPipelineAwareModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) -
Uses of RandomSource in net.neoforged.neoforge.client.model.renderable
Fields in net.neoforged.neoforge.client.model.renderable declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSource
BakedModelRenderable.Context.randomSource
The field for therandomSource
record component.Methods in net.neoforged.neoforge.client.model.renderable that return RandomSourceModifier and TypeMethodDescriptionBakedModelRenderable.Context.randomSource()
Returns the value of therandomSource
record component.Constructors in net.neoforged.neoforge.client.model.renderable with parameters of type RandomSourceModifierConstructorDescriptionContext
(@Nullable BlockState state, Direction[] faces, RandomSource randomSource, long seed, ModelData data, org.joml.Vector4f tint) Creates an instance of aContext
record class. -
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, MobSpawnType 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, MobSpawnType 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)
IBakedModelExtension.getQuads(BlockState, Direction, RandomSource, net.neoforged.neoforge.client.model.data.ModelData, net.minecraft.client.renderer.RenderType)