Uses of Interface
net.minecraft.util.math.random.Random
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Random in net.minecraft.block
Modifier and TypeMethodDescriptionprivate void
RedstoneWireBlock.addPoweredParticles
(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) protected BlockState
AbstractPlantStemBlock.age
(BlockState state, Random random) protected BlockState
CaveVinesHeadBlock.age
(BlockState state, Random random) boolean
AbstractPlantBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
AbstractPlantStemBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
AzaleaBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BambooBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BambooSaplingBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BigDripleafBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
BigDripleafStemBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CaveVinesBodyBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CaveVinesHeadBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CocoaBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
CropBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
FernBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
Fertilizable.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
FlowerbedBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
FungusBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
GlowLichenBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
GrassBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
MangroveLeavesBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
MossBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
MushroomPlantBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
NetherrackBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
NyliumBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
PitcherCropBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
PropaguleBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
RootedDirtBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SaplingBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SeagrassBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SeaPickleBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SmallDripleafBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
StemBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
SweetBerryBushBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
TallFlowerBlock.canGrow
(World world, Random random, BlockPos pos, BlockState state) private boolean
SculkVeinBlock.convertToBlock
(SculkSpreadManager spreadManager, WorldAccess world, BlockPos pos, Random random) static void
ChorusFlowerBlock.generate
(WorldAccess world, BlockPos pos, Random random, int size) private static void
ChorusFlowerBlock.generate
(WorldAccess world, BlockPos pos, Random random, BlockPos rootPos, int size, int layer) private void
NyliumBlock.generate
(Registry<ConfiguredFeature<?, ?>> registry, RegistryKey<ConfiguredFeature<?, ?>> key, ServerWorld world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) void
SaplingBlock.generate
(ServerWorld world, BlockPos pos, BlockState state, Random random) private BlockState
SculkBlock.getExtraBlockState
(WorldAccess world, BlockPos pos, Random random, boolean allowShrieker) private static int
FireBlock.getFireTickDelay
(Random random) private BlockState
VineBlock.getGrownState
(BlockState above, BlockState state, Random random) protected abstract int
AbstractPlantStemBlock.getGrowthLength
(Random random) protected int
CaveVinesHeadBlock.getGrowthLength
(Random random) protected int
KelpBlock.getGrowthLength
(Random random) protected int
TwistingVinesBlock.getGrowthLength
(Random random) static int
VineLogic.getGrowthLength
(Random random) protected int
WeepingVinesBlock.getGrowthLength
(Random random) private static int
FrogspawnBlock.getHatchTime
(Random random) private double
FrogspawnBlock.getSpawnOffset
(Random random) void
AbstractPlantBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
AbstractPlantStemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
AzaleaBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BambooBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BambooSaplingBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
BigDripleafBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) static void
BigDripleafBlock.grow
(WorldAccess world, Random random, BlockPos pos, Direction direction) void
BigDripleafStemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CaveVinesBodyBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CaveVinesHeadBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CocoaBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
CropBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FernBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
Fertilizable.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FlowerbedBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
FungusBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
GlowLichenBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
GrassBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Direction direction, Random random, boolean markForPostProcessing) LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Random random) void
MangroveLeavesBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
MossBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
MushroomPlantBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
NetherrackBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
NyliumBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
PitcherCropBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
PropaguleBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
RootedDirtBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SaplingBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SeagrassBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SeaPickleBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SmallDripleafBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
StemBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
SweetBerryBushBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) void
TallFlowerBlock.grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) private void
FrogspawnBlock.hatch
(ServerWorld world, BlockPos pos, Random random) default boolean
SculkSpreadable.method_41470
(WorldAccess world, BlockPos pos, Random random) void
AbstractCandleBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
AbstractFireBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BeehiveBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BlastFurnaceBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
Block.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BrewingStandBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BrushableBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
BubbleColumnBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
CampfireBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
CherryLeavesBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
CryingObsidianBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EnchantingTableBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EnderChestBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EndGatewayBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EndPortalBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
EndRodBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
FallingBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
FurnaceBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
LeavesBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
LeverBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
LightningRodBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
MyceliumBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
NetherPortalBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
PointedDripstoneBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RedstoneOreBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RedstoneTorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RedstoneWireBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RepeaterBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
RespawnAnchorBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
SculkSensorBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
SmokerBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
SporeBlossomBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
StairsBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
TorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WallRedstoneTorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WallTorchBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WetSpongeBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
WitherRoseBlock.randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.void
AbstractBlock.AbstractBlockState.randomTick
(ServerWorld world, BlockPos pos, Random random) void
AbstractBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Deprecated.void
AbstractPlantStemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BambooBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BambooSaplingBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BeetrootsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
BuddingAmethystBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CactusBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
ChorusFlowerBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CocoaBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
CropBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FarmlandBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FluidBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
FrostedIceBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
IceBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
LeavesBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
MushroomPlantBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NetherPortalBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NetherWartBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
NyliumBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableSlabBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
OxidizableStairsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PitcherCropBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PointedDripstoneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
PropaguleBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
RedstoneOreBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SaplingBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SnowBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SpreadableBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
StairsBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
StemBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SugarCaneBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
SweetBerryBushBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
TorchflowerBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
TurtleEggBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
VineBlock.randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.void
AbstractBlock.AbstractBlockState.scheduledTick
(ServerWorld world, BlockPos pos, Random random) void
AbstractBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) void
AbstractCauldronBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractPlantPartBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractPressurePlateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
AbstractRedstoneGateBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BambooBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BarrelBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BigDripleafBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BigDripleafStemBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BrushableBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
BubbleColumnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ButtonBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CactusBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChorusFlowerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ChorusPlantBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CommandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ComparatorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ComposterBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralBlockBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
CoralWallFanBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DetectorRailBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DirtPathBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
DispenserBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
EnderChestBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FallingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FarmlandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FrogspawnBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
FrostedIceBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LeavesBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LecternBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
LightningRodBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
MagmaBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ObserverBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
PointedDripstoneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
RedstoneLampBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
RedstoneTorchBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
ScaffoldingBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkCatalystBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkSensorBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SculkShriekerBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SnifferEggBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SoulSandBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
StairsBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
SugarCaneBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TargetBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TripwireBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.void
TripwireHookBlock.scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.private static void
AbstractCandleBlock.spawnCandleParticles
(World world, Vec3d vec3d, Random random) private void
FrogspawnBlock.spawnTadpoles
(ServerWorld world, BlockPos pos, Random random) int
SculkBlock.spread
(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) int
SculkSpreadable.spread
(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) int
SculkVeinBlock.spread
(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) default void
SculkSpreadable.spreadAtSamePosition
(WorldAccess world, BlockState state, BlockPos pos, Random random) void
SculkVeinBlock.spreadAtSamePosition
(WorldAccess world, BlockState state, BlockPos pos, Random random) default void
Degradable.tickDegradation
(BlockState state, ServerWorld world, BlockPos pos, Random random) default void
Degradable.tryDegrade
(BlockState state, ServerWorld world, BlockPos pos, Random random) static void
PointedDripstoneBlock.tryGrow
(BlockState state, ServerWorld world, BlockPos pos, Random random) boolean
MushroomPlantBlock.trySpawningBigMushroom
(ServerWorld world, BlockPos pos, BlockState state, Random random) private void
FireBlock.trySpreadingFire
(World world, BlockPos pos, int spreadFactor, Random random, int currentAge) protected void
BambooBlock.updateLeaves
(BlockState state, World world, BlockPos pos, Random random, int height) -
Uses of Random in net.minecraft.block.entity
Modifier and TypeMethodDescriptionstatic Random
StructureBlockBlockEntity.createRandom
(long seed) Modifier and TypeMethodDescriptionprivate void
SculkCatalystBlockEntity.Listener.bloom
(ServerWorld world, BlockPos pos, BlockState state, Random random) int
DispenserBlockEntity.chooseNonEmptySlot
(Random random) private static @Nullable BlockPos
SculkSpreadManager.Cursor.getSpreadPos
(WorldAccess world, BlockPos pos, Random random) void
MobSpawnerBlockEntity.setEntityType
(EntityType<?> entityType, Random random) static void
LootableContainerBlockEntity.setLootTable
(BlockView world, Random random, BlockPos pos, Identifier id) SculkSpreadManager.Cursor.shuffleOffsets
(Random random) void
SculkSpreadManager.Cursor.spread
(WorldAccess world, BlockPos pos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) void
SculkSpreadManager.tick
(WorldAccess world, BlockPos pos, Random random, boolean shouldConvertToBlock) -
Uses of Random in net.minecraft.block.sapling
Modifier and TypeMethodDescriptionboolean
LargeTreeSaplingGenerator.generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) boolean
SaplingGenerator.generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) boolean
LargeTreeSaplingGenerator.generateLargeTree
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random, int x, int z) protected @Nullable RegistryKey<ConfiguredFeature<?,
?>> DarkOakSaplingGenerator.getLargeTreeFeature
(Random random) protected RegistryKey<ConfiguredFeature<?,
?>> JungleSaplingGenerator.getLargeTreeFeature
(Random random) protected abstract @Nullable RegistryKey<ConfiguredFeature<?,
?>> LargeTreeSaplingGenerator.getLargeTreeFeature
(Random random) protected RegistryKey<ConfiguredFeature<?,
?>> SpruceSaplingGenerator.getLargeTreeFeature
(Random random) protected RegistryKey<ConfiguredFeature<?,
?>> AcaciaSaplingGenerator.getTreeFeature
(Random random, boolean bees) protected RegistryKey<ConfiguredFeature<?,
?>> AzaleaSaplingGenerator.getTreeFeature
(Random random, boolean bees) protected RegistryKey<ConfiguredFeature<?,
?>> BirchSaplingGenerator.getTreeFeature
(Random random, boolean bees) protected RegistryKey<ConfiguredFeature<?,
?>> CherrySaplingGenerator.getTreeFeature
(Random random, boolean bees) protected @Nullable RegistryKey<ConfiguredFeature<?,
?>> DarkOakSaplingGenerator.getTreeFeature
(Random random, boolean bees) protected RegistryKey<ConfiguredFeature<?,
?>> JungleSaplingGenerator.getTreeFeature
(Random random, boolean bees) protected @Nullable RegistryKey<ConfiguredFeature<?,
?>> MangroveSaplingGenerator.getTreeFeature
(Random random, boolean bees) protected RegistryKey<ConfiguredFeature<?,
?>> OakSaplingGenerator.getTreeFeature
(Random random, boolean bees) protected abstract @Nullable RegistryKey<ConfiguredFeature<?,
?>> SaplingGenerator.getTreeFeature
(Random random, boolean bees) protected RegistryKey<ConfiguredFeature<?,
?>> SpruceSaplingGenerator.getTreeFeature
(Random random, boolean bees) -
Uses of Random in net.minecraft.client.font
-
Uses of Random in net.minecraft.client.gui.hud
-
Uses of Random in net.minecraft.client.gui.screen.ingame
-
Uses of Random in net.minecraft.client.model
-
Uses of Random in net.minecraft.client.network
-
Uses of Random in net.minecraft.client.particle
-
Uses of Random in net.minecraft.client.render
-
Uses of Random in net.minecraft.client.render.block
Modifier and TypeMethodDescriptionvoid
BlockModelRenderer.render
(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) void
BlockRenderManager.renderBlock
(BlockState state, BlockPos pos, BlockRenderView world, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random) void
BlockModelRenderer.renderFlat
(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) void
BlockModelRenderer.renderSmooth
(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) -
Uses of Random in net.minecraft.client.render.entity
-
Uses of Random in net.minecraft.client.render.entity.model
-
Uses of Random in net.minecraft.client.render.model
Modifier and TypeMethodDescriptionBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction face, Random random) BasicBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction face, Random random) BuiltinBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction face, Random random) MultipartBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction face, Random random) WeightedBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction face, Random random) -
Uses of Random in net.minecraft.client.resource
-
Uses of Random in net.minecraft.client.sound
Modifier and TypeFieldDescriptionprotected Random
AbstractSoundInstance.random
private final Random
BiomeEffectSoundPlayer.random
private final Random
MusicTracker.random
Modifier and TypeMethodDescriptionstatic PositionedSoundInstance
PositionedSoundInstance.ambient
(SoundEvent sound, Random random, double x, double y, double z) ModifierConstructorDescriptionprotected
AbstractSoundInstance
(SoundEvent sound, SoundCategory category, Random random) protected
AbstractSoundInstance
(Identifier soundId, SoundCategory category, Random random) protected
MovingSoundInstance
(SoundEvent sound, SoundCategory category, Random random) private
PositionedSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Random random, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double x, double y, double z) PositionedSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Random random, double x, double y, double z) PositionedSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Random random, BlockPos pos) PositionedSoundInstance
(Identifier id, SoundCategory category, float volume, float pitch, Random random, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double x, double y, double z, boolean relative) -
Uses of Random in net.minecraft.client.util
Modifier and TypeMethodDescriptionprivate static Vec3d
ParticleUtil.getRandomVelocity
(Random random) static void
ParticleUtil.spawnParticle
(World world, BlockPos pos, Random random, ParticleEffect effect) -
Uses of Random in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.randomBlockDisplayTick
(int centerX, int centerY, int centerZ, int radius, Random random, @Nullable Block block, BlockPos.Mutable pos) -
Uses of Random in net.minecraft.datafixer.fix
-
Uses of Random in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic int
EnchantmentHelper.calculateRequiredExperienceLevel
(Random random, int slotIndex, int bookshelfCount, ItemStack stack) Returns the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen.static ItemStack
Enchants thetarget
item stack and returns it.static List<EnchantmentLevelEntry>
EnchantmentHelper.generateEnchantments
(Random random, ItemStack stack, int level, boolean treasureAllowed) Generate the enchantments for enchanting thestack
.static int
ThornsEnchantment.getDamageAmount
(int level, Random random) static boolean
ThornsEnchantment.shouldDamageAttacker
(int level, Random random) static boolean
UnbreakingEnchantment.shouldPreventDamage
(ItemStack item, int level, Random random) -
Uses of Random in net.minecraft.entity
Modifier and TypeMethodDescriptionboolean
static <T extends Entity>
booleanSpawnRestriction.canSpawn
(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) boolean
SpawnRestriction.SpawnPredicate.test
(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) -
Uses of Random in net.minecraft.entity.ai
Modifier and TypeMethodDescriptionstatic BlockPos
Creates a fuzzy offset position within the given horizontal and vertical ranges.static @Nullable BlockPos
FuzzyPositions.localFuzz
(Random random, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double angleRange) Tries to create a fuzzy offset position from the direction and the angle range given.static BlockPos
FuzzyPositions.towardTarget
(PathAwareEntity entity, int horizontalRange, Random random, BlockPos fuzz) -
Uses of Random in net.minecraft.entity.ai.brain.sensor
-
Uses of Random in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate static int
boolean
-
Uses of Random in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionstatic boolean
MagmaCubeEntity.canMagmaCubeSpawn
(EntityType<MagmaCubeEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
MobEntity.canMobSpawn
(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
DrownedEntity.canSpawn
(EntityType<DrownedEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
EndermiteEntity.canSpawn
(EntityType<EndermiteEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
GhastEntity.canSpawn
(EntityType<GhastEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
GuardianEntity.canSpawn
(EntityType<? extends GuardianEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HoglinEntity.canSpawn
(EntityType<HoglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HuskEntity.canSpawn
(EntityType<HuskEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
PatrolEntity.canSpawn
(EntityType<? extends PatrolEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
PiglinEntity.canSpawn
(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
SilverfishEntity.canSpawn
(EntityType<SilverfishEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
SlimeEntity.canSpawn
(EntityType<SlimeEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
StrayEntity.canSpawn
(EntityType<StrayEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
WaterCreatureEntity.canSpawn
(EntityType<? extends WaterCreatureEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
ZombifiedPiglinEntity.canSpawn
(EntityType<ZombifiedPiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HostileEntity.canSpawnIgnoreLightLevel
(EntityType<? extends HostileEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
HostileEntity.canSpawnInDark
(EntityType<? extends HostileEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) protected void
MobEntity.enchantEquipment
(Random random, float power, EquipmentSlot slot) protected void
MobEntity.enchantMainHandItem
(Random random, float power) protected void
PillagerEntity.enchantMainHandItem
(Random random, float power) private void
PiglinEntity.equipAtChance
(EquipmentSlot slot, ItemStack stack, Random random) protected void
SkeletonHorseEntity.initAttributes
(Random random) protected void
ZombieHorseEntity.initAttributes
(Random random) protected void
AbstractSkeletonEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
DrownedEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
MobEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
PiglinBruteEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
PiglinEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
PillagerEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
VexEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
VindicatorEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
WitherSkeletonEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
ZombieEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
ZombifiedPiglinEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) static boolean
HostileEntity.isSpawnDark
(ServerWorldAccess world, BlockPos pos, Random random) void
protected static void
PiglinBrain.setHuntedRecently
(PiglinEntity piglin, Random random) static boolean
ZombieEntity.shouldBeBaby
(Random random) protected void
MobEntity.updateEnchantments
(Random random, LocalDifficulty localDifficulty) protected void
WitherSkeletonEntity.updateEnchantments
(Random random, LocalDifficulty localDifficulty) -
Uses of Random in net.minecraft.entity.passive
Modifier and TypeMethodDescription(package private) static double
AbstractHorseEntity.calculateAttributeBaseValue
(double parentBase, double otherParentBase, double min, double max, Random random) static boolean
AxolotlEntity.canSpawn
(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
BatEntity.canSpawn
(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
FoxEntity.canSpawn
(EntityType<FoxEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
FrogEntity.canSpawn
(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
GlowSquidEntity.canSpawn
(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static boolean
GoatEntity.canSpawn
(EntityType<? extends AnimalEntity> entityType, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
MooshroomEntity.canSpawn
(EntityType<MooshroomEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
OcelotEntity.canSpawn
(EntityType<OcelotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
ParrotEntity.canSpawn
(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
PolarBearEntity.canSpawn
(EntityType<PolarBearEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
RabbitEntity.canSpawn
(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
StriderEntity.canSpawn
(EntityType<StriderEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
TurtleEntity.canSpawn
(EntityType<TurtleEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
WolfEntity.canSpawn
(EntityType<WolfEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static boolean
TropicalFishEntity.canTropicalFishSpawn
(EntityType<TropicalFishEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) protected static void
FrogBrain.coolDownLongJump
(FrogEntity frog, Random random) static PandaEntity.Gene
PandaEntity.Gene.createRandom
(Random random) static DyeColor
SheepEntity.generateDefaultColor
(Random random) private static AxolotlEntity.Variant
static AxolotlEntity.Variant
AxolotlEntity.Variant.getRandomNatural
(Random random) static SoundEvent
ParrotEntity.getRandomSound
(World world, Random random) static AxolotlEntity.Variant
AxolotlEntity.Variant.getRandomUnnatural
(Random random) AxolotlEntity.AxolotlData.getRandomVariant
(Random random) static float
ParrotEntity.getSoundPitch
(Random random) protected void
AbstractDonkeyEntity.initAttributes
(Random random) protected void
AbstractHorseEntity.initAttributes
(Random random) protected void
HorseEntity.initAttributes
(Random random) protected void
FoxEntity.initEquipment
(Random random, LocalDifficulty localDifficulty) protected static void
CamelBrain.initialize
(CamelEntity camel, Random random) private void
LlamaEntity.initializeStrength
(Random random) static boolean
AnimalEntity.isValidNaturalSpawn
(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) protected static void
GoatBrain.resetLongJumpCooldown
(GoatEntity goat, Random random) private static boolean
AxolotlEntity.shouldBabyBeDifferent
(Random random) -
Uses of Random in net.minecraft.entity.projectile
-
Uses of Random in net.minecraft.fluid
Modifier and TypeMethodDescriptionprotected void
Fluid.onRandomTick
(World world, BlockPos pos, FluidState state, Random random) void
FluidState.onRandomTick
(World world, BlockPos pos, Random random) void
LavaFluid.onRandomTick
(World world, BlockPos pos, FluidState state, Random random) protected void
Fluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) void
FluidState.randomDisplayTick
(World world, BlockPos pos, Random random) void
LavaFluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) void
WaterFluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) -
Uses of Random in net.minecraft.item
Modifier and TypeMethodDescriptionboolean
ItemStack.damage
(int amount, Random random, @Nullable ServerPlayerEntity player) Damages this item stack.private static float
CrossbowItem.getSoundPitch
(boolean flag, Random random) private static float[]
CrossbowItem.getSoundPitches
(Random random) static void
GoatHornItem.setRandomInstrumentFromTag
(ItemStack stack, TagKey<Instrument> instrumentTag, Random random) -
Uses of Random in net.minecraft.loot
Modifier and TypeMethodDescriptionLootTable.getFreeSlots
(Inventory inventory, Random random) private void
LootTable.shuffle
(ObjectArrayList<ItemStack> drops, int freeSlots, Random random) -
Uses of Random in net.minecraft.loot.context
Modifier and TypeFieldDescriptionprivate @Nullable Random
LootContext.Builder.random
private final Random
LootContext.random
ModifierConstructorDescription(package private)
LootContext
(LootContextParameterSet parameters, Random random, LootDataLookup dataLookup) -
Uses of Random in net.minecraft.loot.function
Modifier and TypeMethodDescriptionprivate static ItemStack
EnchantRandomlyLootFunction.addEnchantmentToStack
(ItemStack stack, Enchantment enchantment, Random random) int
ApplyBonusLootFunction.BinomialWithBonusCount.getValue
(Random random, int initialCount, int enchantmentLevel) int
int
int
-
Uses of Random in net.minecraft.registry
Modifier and TypeMethodDescriptionReturns a random registry entry from this registry, or an empty optional if the registry is empty.Returns a random registry entry from this registry, or an empty optional if the registry is empty.Returns a random registry entry from this registry, or an empty optional if the registry is empty. -
Uses of Random in net.minecraft.registry.entry
Modifier and TypeMethodDescriptionReturns a random entry of the list, or an empty optional if this list is empty.Returns a random entry of the list, or an empty optional if this list is empty. -
Uses of Random in net.minecraft.screen
-
Uses of Random in net.minecraft.server
-
Uses of Random in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static SpreadPlayersCommand.Pile[]
SpreadPlayersCommand.makePiles
(Random random, int count, double minX, double minZ, double maxX, double maxZ) void
SpreadPlayersCommand.Pile.setPileLocation
(Random random, double minX, double minZ, double maxX, double maxZ) private static void
SpreadPlayersCommand.spread
(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int maxY, SpreadPlayersCommand.Pile[] piles, boolean respectTeams) -
Uses of Random in net.minecraft.server.world
-
Uses of Random in net.minecraft.structure
Modifier and TypeFieldDescriptionprivate @Nullable Random
StructurePlacementData.random
private final Random
WoodlandMansionGenerator.LayoutGenerator.random
private final Random
WoodlandMansionGenerator.MansionParameters.random
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionprotected void
StructurePiece.addBlockWithRandomThreshold
(StructureWorldAccess world, BlockBox bounds, Random random, float threshold, int x, int y, int z, BlockState state) protected boolean
MineshaftGenerator.MineshaftCorridor.addChest
(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId) protected boolean
StructurePiece.addChest
(ServerWorldAccess world, BlockBox boundingBox, Random random, BlockPos pos, Identifier lootTableId, @Nullable BlockState block) protected boolean
StructurePiece.addChest
(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId) private static void
OceanRuinGenerator.addCluster
(StructureTemplateManager manager, Random random, BlockRotation rotation, BlockPos pos, OceanRuinStructure structure, StructurePiecesHolder pieces) private void
MineshaftGenerator.MineshaftCorridor.addCobwebsUnderground
(StructureWorldAccess world, BlockBox box, Random random, float threshold, int x, int y, int z) protected boolean
StructurePiece.addDispenser
(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Direction facing, Identifier lootTableId) static void
ShipwreckGenerator.addParts
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, boolean beached) static void
EndCityGenerator.addPieces
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, List<StructurePiece> pieces, Random random) static void
IglooGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random) static void
NetherFossilGenerator.addPieces
(StructureTemplateManager manager, StructurePiecesHolder holder, Random random, BlockPos pos) static void
OceanRuinGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure structure) private static void
OceanRuinGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure structure, boolean large, float integrity) static void
WoodlandMansionGenerator.addPieces
(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, List<WoodlandMansionGenerator.Piece> pieces, Random random) void
PostPlacementProcessor.afterPlace
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos pos, StructurePiecesList children) boolean
EndCityGenerator.Part.create
(StructureTemplateManager manager, int depth, EndCityGenerator.Piece root, BlockPos pos, List<StructurePiece> pieces, Random random) NetherFortressGenerator.Bridge.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgeEnd.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorExit.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorLeftTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorRightTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.ChestCorridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainlength) static StrongholdGenerator.Corridor
StrongholdGenerator.Corridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.FiveWayCrossing.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.LeftTurn
StrongholdGenerator.LeftTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.Library
StrongholdGenerator.Library.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.PrisonHall.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.RightTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static BlockBox
StrongholdGenerator.SmallCorridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) StrongholdGenerator.SpiralStaircase.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.SquareRoom.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.Stairs
StrongholdGenerator.Stairs.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) (package private) static boolean
EndCityGenerator.createPart
(StructureTemplateManager manager, EndCityGenerator.Part piece, int depth, EndCityGenerator.Piece parent, BlockPos pos, List<StructurePiece> pieces, Random random) (package private) static NetherFortressGenerator.Piece
NetherFortressGenerator.createPiece
(NetherFortressGenerator.PieceData pieceData, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static StrongholdGenerator.Piece
StrongholdGenerator.createPiece
(Class<? extends StrongholdGenerator.Piece> pieceType, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) protected @Nullable StructurePiece
NetherFortressGenerator.Piece.fillForwardOpening
(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset, boolean inside) protected @Nullable StructurePiece
StrongholdGenerator.Piece.fillForwardOpening
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset) protected @Nullable StructurePiece
NetherFortressGenerator.Piece.fillNWOpening
(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset, boolean inside) protected @Nullable StructurePiece
StrongholdGenerator.Piece.fillNWOpening
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) void
MineshaftGenerator.MineshaftCorridor.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
MineshaftGenerator.MineshaftCrossing.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
MineshaftGenerator.MineshaftRoom.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
MineshaftGenerator.MineshaftStairs.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.Bridge.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.BridgeCrossing.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.BridgeSmallCrossing.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.BridgeStairs.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.CorridorBalcony.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.CorridorCrossing.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.CorridorExit.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.CorridorLeftTurn.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.CorridorNetherWartsRoom.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.CorridorRightTurn.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.CorridorStairs.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
NetherFortressGenerator.SmallCorridor.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.ChestCorridor.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.Corridor.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.FiveWayCrossing.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.LeftTurn.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.PortalRoom.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.PrisonHall.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.RightTurn.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.SpiralStaircase.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.SquareRoom.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StrongholdGenerator.Stairs.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) void
StructurePiece.fillOpenings
(StructurePiece start, StructurePiecesHolder holder, Random random) protected @Nullable StructurePiece
NetherFortressGenerator.Piece.fillSEOpening
(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset, boolean inside) protected @Nullable StructurePiece
StrongholdGenerator.Piece.fillSEOpening
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) protected void
StructurePiece.fillWithOutline
(StructureWorldAccess world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean cantReplaceAir, Random random, StructurePiece.BlockRandomizer randomizer) protected void
StructurePiece.fillWithOutline
(StructureWorldAccess world, BlockBox box, BlockBox fillBox, boolean cantReplaceAir, Random random, StructurePiece.BlockRandomizer randomizer) protected void
StructurePiece.fillWithOutlineUnderSeaLevel
(StructureWorldAccess world, BlockBox box, Random random, float blockChance, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState outline, BlockState inside, boolean cantReplaceAir, boolean stayBelowSeaLevel) void
BuriedTreasureGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
DesertTempleGenerator.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
IglooGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
JungleTempleGenerator.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
MineshaftGenerator.MineshaftStairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.Bridge.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeEnd.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgePlatform.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeSmallCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.BridgeStairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorBalcony.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorExit.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorLeftTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorNetherWartsRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorRightTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.CorridorStairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFortressGenerator.SmallCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
NetherFossilGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.Base.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.CoreRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.DoubleXRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.DoubleXRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.DoubleXYRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.DoubleXYRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.DoubleYRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.DoubleYRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.DoubleYZRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.DoubleYZRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.DoubleZRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.DoubleZRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.Entry.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanMonumentGenerator.Penthouse.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.PieceFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.SimpleRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.SimpleRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.SimpleRoomTop.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) OceanMonumentGenerator.SimpleRoomTopFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) void
OceanMonumentGenerator.WingRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
OceanRuinGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
PoolStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, BlockPos pivot, boolean keepJigsaws) void
PoolStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
RuinedPortalStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
ShipwreckGenerator.Piece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
SimpleStructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.ChestCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.Corridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.FiveWayCrossing.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.LeftTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.Library.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.PortalRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.PrisonHall.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.RightTurn.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.SmallCorridor.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.SpiralStaircase.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.SquareRoom.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
StrongholdGenerator.Stairs.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) abstract void
StructurePiece.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) void
SwampHutGenerator.generate
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) protected void
StrongholdGenerator.Piece.generateEntrance
(StructureWorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z) private void
RuinedPortalStructurePiece.generateOvergrownLeaves
(Random random, WorldAccess world, BlockPos pos) private void
MineshaftGenerator.MineshaftCorridor.generateSupports
(StructureWorldAccess world, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random) private void
RuinedPortalStructurePiece.generateVines
(Random random, WorldAccess world, BlockPos pos) WoodlandMansionGenerator.FirstFloorRoomPool.getBigRoom
(Random random) abstract String
WoodlandMansionGenerator.RoomPool.getBigRoom
(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getBigRoom
(Random random) WoodlandMansionGenerator.FirstFloorRoomPool.getBigSecretRoom
(Random random) abstract String
WoodlandMansionGenerator.RoomPool.getBigSecretRoom
(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getBigSecretRoom
(Random random) static @Nullable BlockBox
MineshaftGenerator.MineshaftCorridor.getBoundingBox
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) static @Nullable BlockBox
MineshaftGenerator.MineshaftCrossing.getBoundingBox
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) static @Nullable BlockBox
MineshaftGenerator.MineshaftStairs.getBoundingBox
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) WoodlandMansionGenerator.FirstFloorRoomPool.getMediumFunctionalRoom
(Random random, boolean staircase) abstract String
WoodlandMansionGenerator.RoomPool.getMediumFunctionalRoom
(Random random, boolean staircase) WoodlandMansionGenerator.SecondFloorRoomPool.getMediumFunctionalRoom
(Random random, boolean staircase) WoodlandMansionGenerator.FirstFloorRoomPool.getMediumGenericRoom
(Random random, boolean staircase) abstract String
WoodlandMansionGenerator.RoomPool.getMediumGenericRoom
(Random random, boolean staircase) WoodlandMansionGenerator.SecondFloorRoomPool.getMediumGenericRoom
(Random random, boolean staircase) WoodlandMansionGenerator.FirstFloorRoomPool.getMediumSecretRoom
(Random random) abstract String
WoodlandMansionGenerator.RoomPool.getMediumSecretRoom
(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getMediumSecretRoom
(Random random) private static Identifier
OceanRuinGenerator.getRandomBigWarmRuin
(Random random) protected StrongholdGenerator.Piece.EntranceType
StrongholdGenerator.Piece.getRandomEntrance
(Random random) protected static Direction
StructurePiece.getRandomHorizontalDirection
(Random random) private static Identifier
OceanRuinGenerator.getRandomWarmRuin
(Random random) OceanRuinGenerator.getRoomPositions
(Random random, BlockPos pos) WoodlandMansionGenerator.FirstFloorRoomPool.getSmallRoom
(Random random) abstract String
WoodlandMansionGenerator.RoomPool.getSmallRoom
(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getSmallRoom
(Random random) WoodlandMansionGenerator.FirstFloorRoomPool.getSmallSecretRoom
(Random random) abstract String
WoodlandMansionGenerator.RoomPool.getSmallSecretRoom
(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getSmallSecretRoom
(Random random) protected void
EndCityGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
IglooGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
NetherFossilGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
OceanRuinGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
RuinedPortalStructurePiece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
ShipwreckGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected abstract void
SimpleStructurePiece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected void
WoodlandMansionGenerator.Piece.handleMetadata
(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) private List<OceanMonumentGenerator.PieceSetting>
OceanMonumentGenerator.Base.method_14760
(Random random) private void
OceanMonumentGenerator.Base.method_14761
(boolean bool, int int2, StructureWorldAccess world, Random random, BlockBox box) private void
OceanMonumentGenerator.Base.method_14762
(StructureWorldAccess world, Random random, BlockBox box) private void
OceanMonumentGenerator.Base.method_14763
(StructureWorldAccess world, Random random, BlockBox box) private void
OceanMonumentGenerator.Base.method_14764
(StructureWorldAccess world, Random random, BlockBox box) private void
OceanMonumentGenerator.Base.method_14765
(StructureWorldAccess world, Random random, BlockBox box) private void
OceanMonumentGenerator.Base.method_14766
(StructureWorldAccess world, Random random, BlockBox box) private void
OceanMonumentGenerator.Base.method_14767
(StructureWorldAccess world, Random random, BlockBox box) private static MineshaftGenerator.MineshaftPart
MineshaftGenerator.pickPiece
(StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, MineshaftStructure.Type type) private NetherFortressGenerator.Piece
NetherFortressGenerator.Piece.pickPiece
(NetherFortressGenerator.Start start, List<NetherFortressGenerator.PieceData> possiblePieces, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static StrongholdGenerator.Piece
StrongholdGenerator.pickPiece
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) (package private) static MineshaftGenerator.MineshaftPart
MineshaftGenerator.pieceGenerator
(StructurePiece start, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private StructurePiece
NetherFortressGenerator.Piece.pieceGenerator
(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, boolean inside) (package private) static StructurePiece
StrongholdGenerator.pieceGenerator
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) void
StructureStart.place
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos) boolean
StructureTemplate.place
(ServerWorldAccess world, BlockPos pos, BlockPos pivot, StructurePlacementData placementData, Random random, int flags) private void
RuinedPortalStructurePiece.placeNetherrackBase
(Random random, WorldAccess world) private void
RuinedPortalStructurePiece.placeNetherrackBottom
(Random random, WorldAccess world, BlockPos pos) void
JungleTempleGenerator.CobblestoneRandomizer.setBlock
(Random random, int x, int y, int z, boolean placeBlock) void
StrongholdGenerator.StoneBrickRandomizer.setBlock
(Random random, int x, int y, int z, boolean placeBlock) abstract void
int
Deprecated.void
Shifts all pieces so they lie within[baseY, topY]
vertically.private void
RuinedPortalStructurePiece.updateNetherracks
(Random random, WorldAccess world, BlockPos pos) private void
RuinedPortalStructurePiece.updateNetherracksInBound
(Random random, WorldAccess world) ModifierConstructorDescriptionChestCorridor
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) CorridorExit
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) CorridorLeftTurn
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) CorridorRightTurn
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) DesertTempleGenerator
(Random random, int x, int z) FiveWayCrossing
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) JungleTempleGenerator
(Random random, int x, int z) LayoutGenerator
(StructureTemplateManager manager, Random random) MansionParameters
(Random random) MineshaftCorridor
(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftStructure.Type type) MineshaftRoom
(int chainLength, Random random, int x, int z, MineshaftStructure.Type type) PrisonHall
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) SimpleRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting, Random random) SpiralStaircase
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) SquareRoom
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) SwampHutGenerator
(Random random, int x, int z) -
Uses of Random in net.minecraft.structure.pool
Modifier and TypeFieldDescriptionprivate final Random
StructurePoolBasedGenerator.StructurePoolGenerator.random
Modifier and TypeMethodDescriptionboolean
EmptyPoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
FeaturePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
ListPoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) boolean
SinglePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) private static void
StructurePoolBasedGenerator.generate
(NoiseConfig noiseConfig, int maxSize, boolean modifyBoundingBox, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, HeightLimitView heightLimitView, Random random, Registry<StructurePool> structurePoolRegistry, PoolStructurePiece firstPiece, List<PoolStructurePiece> pieces, VoxelShape pieceShape) abstract boolean
StructurePoolElement.generate
(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, boolean keepJigsaws) StructurePool.getElementIndicesInRandomOrder
(Random random) StructurePool.getRandomElement
(Random random) EmptyPoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) FeaturePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) ListPoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) SinglePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) abstract List<StructureTemplate.StructureBlockInfo>
StructurePoolElement.getStructureBlockInfos
(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, Random random) void
StructurePoolElement.method_16756
(WorldAccess world, StructureTemplate.StructureBlockInfo structureBlockInfo, BlockPos pos, BlockRotation rotation, Random random, BlockBox box) ModifierConstructorDescription(package private)
StructurePoolGenerator
(Registry<StructurePool> registry, int maxSize, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, List<? super PoolStructurePiece> children, Random random) -
Uses of Random in net.minecraft.structure.processor
Modifier and TypeMethodDescription@Nullable NbtCompound
StructureProcessorRule.getOutputNbt
(Random random, @Nullable NbtCompound nbt) private BlockState
BlockAgeStructureProcessor.process
(Random random, BlockState[] regularStates, BlockState[] mossyStates) private @Nullable BlockState
BlockAgeStructureProcessor.processBlocks
(Random random) private @Nullable BlockState
BlockAgeStructureProcessor.processObsidian
(Random random) private @Nullable BlockState
BlockAgeStructureProcessor.processSlabs
(Random random) private @Nullable BlockState
BlockAgeStructureProcessor.processStairs
(Random random, BlockState state) private @Nullable BlockState
BlockAgeStructureProcessor.processWalls
(Random random) private static BlockState
BlockAgeStructureProcessor.randomStairProperties
(Random random, Block stairs) private static BlockState
BlockAgeStructureProcessor.randomState
(Random random, BlockState[] states) boolean
StructureProcessorRule.test
(BlockState input, BlockState currentState, BlockPos originalPos, BlockPos currentPos, BlockPos pivot, Random random) -
Uses of Random in net.minecraft.structure.rule
Modifier and TypeMethodDescriptionboolean
AlwaysTruePosRuleTest.test
(BlockPos originalPos, BlockPos currentPos, BlockPos pivot, Random random) boolean
AlwaysTrueRuleTest.test
(BlockState state, Random random) boolean
AxisAlignedLinearPosRuleTest.test
(BlockPos originalPos, BlockPos currentPos, BlockPos pivot, Random random) boolean
BlockMatchRuleTest.test
(BlockState state, Random random) boolean
BlockStateMatchRuleTest.test
(BlockState state, Random random) boolean
abstract boolean
boolean
RandomBlockMatchRuleTest.test
(BlockState state, Random random) boolean
RandomBlockStateMatchRuleTest.test
(BlockState state, Random random) abstract boolean
RuleTest.test
(BlockState state, Random random) boolean
TagMatchRuleTest.test
(BlockState state, Random random) -
Uses of Random in net.minecraft.structure.rule.blockentity
Modifier and TypeMethodDescriptionAppendLootRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) AppendStaticRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) ClearRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) @Nullable NbtCompound
PassthroughRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) @Nullable NbtCompound
RuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) -
Uses of Random in net.minecraft.util
Modifier and TypeMethodDescriptionstatic <T> List<T>
Util.copyShuffled
(ObjectArrayList<T> list, Random random) Returns the contents ofstream
copied to a list and then shuffled.static <T> List<T>
Util.copyShuffled
(Stream<T> stream, Random random) Returns the contents ofstream
copied to a list and then shuffled.static <T> List<T>
Util.copyShuffled
(T[] array, Random random) Returns the contents ofarray
copied to a list and then shuffled.private static String
static int
Returns a random integer fromarray
.static <T> T
Returns a random item fromlist
.static <T> T
Returns a random item fromarray
.static <T> Optional<T>
Util.getRandomOrEmpty
(List<T> list, Random random) Returns anOptional
of a random item fromlist
, or an empty optional if the list is empty.static BlockRotation
static List<BlockRotation>
BlockRotation.randomRotationOrder
(Random random) static <T> void
Util.shuffle
(ObjectArrayList<T> list, Random random) Shuffleslist
, modifying the passed list in place.static IntArrayList
Returns the contents ofstream
copied to a list and then shuffled. -
Uses of Random in net.minecraft.util.collection
Modifier and TypeMethodDescriptionDataPool.getDataOrEmpty
(Random random) Pool.getOrEmpty
(Random random) -
Uses of Random in net.minecraft.util.math
Modifier and TypeMethodDescriptionReturns a vector with each value added byrandom.nextFloat() - 0.5f) * multiplier
.Direction.Type.getShuffled
(Random random) BlockPos.iterateRandomly
(Random random, int count, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Iterates throughcount
random block positions in the given area.BlockPos.iterateRandomly
(Random random, int count, BlockPos around, int range) Iterates throughcount
random block positions in a given range around the given position.static float
MathHelper.nextBetween
(Random random, float min, float max) static int
MathHelper.nextBetween
(Random random, int min, int max) Returns a random, uniformly distributed integer value in[min, max]
.static double
MathHelper.nextDouble
(Random random, double min, double max) static float
static float
MathHelper.nextGaussian
(Random random, float mean, float deviation) static int
Returns a random, uniformly distributed integer value in[min, max]
.static Direction.Axis
Direction.Axis.pickRandomAxis
(Random random) static Direction
Direction.Type.randomAxis
(Random random) static UUID
MathHelper.randomUuid
(Random random) static Collection<Direction>
Returns a shuffled collection of all directions. -
Uses of Random in net.minecraft.util.math.floatprovider
Modifier and TypeMethodDescriptionfloat
static float
float
float
float
float
float
-
Uses of Random in net.minecraft.util.math.intprovider
Modifier and TypeMethodDescriptionint
int
int
int
abstract int
int
int
static int
-
Uses of Random in net.minecraft.util.math.noise
Modifier and TypeMethodDescriptionInterpolatedNoiseSampler.copyWithRandom
(Random random) static DoublePerlinNoiseSampler
static DoublePerlinNoiseSampler
DoublePerlinNoiseSampler.create
(Random random, DoublePerlinNoiseSampler.NoiseParameters parameters) static OctavePerlinNoiseSampler
OctavePerlinNoiseSampler.create
(Random random, int offset, double firstAmplitude, double[] amplitudes) static OctavePerlinNoiseSampler
OctavePerlinNoiseSampler.create
(Random random, int offset, DoubleList amplitudes) static OctavePerlinNoiseSampler
static OctavePerlinNoiseSampler
static DoublePerlinNoiseSampler
DoublePerlinNoiseSampler.createLegacy
(Random random, DoublePerlinNoiseSampler.NoiseParameters parameters) Deprecated.static OctavePerlinNoiseSampler
OctavePerlinNoiseSampler.createLegacy
(Random random, int offset, DoubleList amplitudes) Deprecated.static OctavePerlinNoiseSampler
OctavePerlinNoiseSampler.createLegacy
(Random random, IntStream octaves) Deprecated.private static void
ModifierConstructorDescriptionprivate
DoublePerlinNoiseSampler
(Random random, DoublePerlinNoiseSampler.NoiseParameters parameters, boolean modern) InterpolatedNoiseSampler
(Random random, double xzScale, double yScale, double xzFactor, double yFactor, double smearScaleMultiplier) protected
OctavePerlinNoiseSampler
(Random random, com.mojang.datafixers.util.Pair<Integer, DoubleList> firstOctaveAndAmplitudes, boolean xoroshiro) private
OctaveSimplexNoiseSampler
(Random random, IntSortedSet octaves) OctaveSimplexNoiseSampler
(Random random, List<Integer> octaves) PerlinNoiseSampler
(Random random) SimplexNoiseSampler
(Random random) -
Uses of Random in net.minecraft.util.math.random
Modifier and TypeClassDescriptionclass
A checked random that fails fast when it detects concurrent usage.class
class
A local random, not intended to be shared across threads.private class
class
Deprecated.class
Xoroshiro128++ based pseudo random number generator.Modifier and TypeFieldDescriptionprivate final Random
ChunkRandom.baseRandom
final Random
GaussianGenerator.baseRandom
private final Random
RandomSequencesState.WrappedRandom.random
Modifier and TypeFieldDescriptionprivate final LongFunction<Random>
ChunkRandom.RandomProvider.provider
Modifier and TypeMethodDescriptionChunkRandom.RandomProvider.create
(long seed) static Random
Random.create()
Returns a random.static Random
Random.create
(long seed) Returns a random with the givenseed
.static Random
Random.createLocal()
Returns a random split from the thread local random.static Random
Random.createThreadSafe()
Deprecated.This one is hard to ensure deterministic behavior compared to the non-thread-safe one.RandomSequencesState.getOrCreate
(Identifier id) static Random
ChunkRandom.getSlimeRandom
(int chunkX, int chunkZ, long worldSeed, long scrambler) RandomSequence.getSource()
CheckedRandom.split()
CheckedRandom.Splitter.split
(int x, int y, int z) ChunkRandom.split()
LocalRandom.split()
Random.split()
RandomSequencesState.WrappedRandom.split()
RandomSplitter.split
(int x, int y, int z) default Random
RandomSplitter.split
(Identifier seed) default Random
ThreadSafeRandom.split()
Deprecated.Xoroshiro128PlusPlusRandom.split()
Xoroshiro128PlusPlusRandom.Splitter.split
(int x, int y, int z) ModifierConstructorDescriptionChunkRandom
(Random baseRandom) GaussianGenerator
(Random baseRandom) (package private)
WrappedRandom
(Random random) -
Uses of Random in net.minecraft.village
Modifier and TypeMethodDescriptionCreates a trade offer.Creates a trade offer.Creates a trade offer.@Nullable TradeOffer
Creates a trade offer.@Nullable TradeOffer
Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.@Nullable TradeOffer
Creates a trade offer.Creates a trade offer.@Nullable TradeOffer
Creates a trade offer.@Nullable TradeOffer
Creates a trade offer.@Nullable TradeOffer
Creates a trade offer.private static DyeItem
private Collection<VillagerGossips.GossipEntry>
VillagerGossips.pickGossips
(Random random, int count) void
VillagerGossips.shareGossipFrom
(VillagerGossips from, Random random, int count) -
Uses of Random in net.minecraft.village.raid
Modifier and TypeMethodDescriptionprivate int
Raid.getBonusCount
(Raid.Member member, Random random, int wave, LocalDifficulty localDifficulty, boolean extra) -
Uses of Random in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Random
ChunkRegion.random
private final Random
WanderingTraderManager.random
final Random
World.random
private final Random
World.threadSafeRandom
Deprecated.Modifier and TypeMethodDescriptionChunkRegion.getRandom()
World.getRandom()
WorldAccess.getRandom()
Modifier and TypeMethodDescription@Nullable Entity
MobSpawnerLogic.getRenderedEntity
(World world, Random random, BlockPos pos) private MobSpawnerEntry
MobSpawnerLogic.getSpawnEntry
(@Nullable World world, Random random, BlockPos pos) private static Optional<SpawnSettings.SpawnEntry>
SpawnHelper.pickRandomSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos) static void
SpawnHelper.populateEntities
(ServerWorldAccess world, RegistryEntry<Biome> biomeEntry, ChunkPos chunkPos, Random random) void
MobSpawnerLogic.setEntityId
(EntityType<?> type, @Nullable World world, Random random, BlockPos pos) -
Uses of Random in net.minecraft.world.biome
-
Uses of Random in net.minecraft.world.biome.source
Modifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> BiomeSource.locateBiome
(int x, int y, int z, int radius, int blockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, Random random, boolean bool, MultiNoiseUtil.MultiNoiseSampler noiseSampler) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> BiomeSource.locateBiome
(int x, int y, int z, int radius, Predicate<RegistryEntry<Biome>> predicate, Random random, MultiNoiseUtil.MultiNoiseSampler noiseSampler) @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<Biome>> FixedBiomeSource.locateBiome
(int x, int y, int z, int radius, int blockCheckInterval, Predicate<RegistryEntry<Biome>> predicate, Random random, boolean bool, MultiNoiseUtil.MultiNoiseSampler noiseSampler) -
Uses of Random in net.minecraft.world.explosion
-
Uses of Random in net.minecraft.world.gen.carver
Modifier and TypeMethodDescriptionabstract boolean
Carver.carve
(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) boolean
CaveCarver.carve
(CarverContext carverContext, CaveCarverConfig caveCarverConfig, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> function, Random random, AquiferSampler aquiferSampler, ChunkPos chunkPos, CarvingMask carvingMask) boolean
ConfiguredCarver.carve
(CarverContext context, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) boolean
RavineCarver.carve
(CarverContext carverContext, RavineCarverConfig ravineCarverConfig, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> function, Random random, AquiferSampler aquiferSampler, ChunkPos chunkPos, CarvingMask carvingMask) private float[]
RavineCarver.createHorizontalStretchFactors
(CarverContext context, RavineCarverConfig config, Random random) protected float
CaveCarver.getTunnelSystemWidth
(Random random) protected float
NetherCaveCarver.getTunnelSystemWidth
(Random random) private double
RavineCarver.getVerticalScale
(RavineCarverConfig config, Random random, double pitch, float branchCount, float branchIndex) abstract boolean
Carver.shouldCarve
(C config, Random random) boolean
CaveCarver.shouldCarve
(CaveCarverConfig caveCarverConfig, Random random) boolean
ConfiguredCarver.shouldCarve
(Random random) boolean
RavineCarver.shouldCarve
(RavineCarverConfig ravineCarverConfig, Random random) -
Uses of Random in net.minecraft.world.gen.chunk.placement
-
Uses of Random in net.minecraft.world.gen.feature
Modifier and TypeMethodDescriptionprivate void
BlockPileFeature.addPileBlock
(WorldAccess world, BlockPos pos, Random random, BlockPileFeatureConfig config) private boolean
BlockPileFeature.canPlace
(WorldAccess world, BlockPos pos, Random random) private static float
DripstoneClusterFeature.clampedGaussian
(Random random, float min, float max, float mean, float deviation) private static LargeDripstoneFeature.DripstoneGenerator
LargeDripstoneFeature.createGenerator
(BlockPos pos, boolean isStalagmite, Random random, int scale, FloatProvider bluntness, FloatProvider heightScale) boolean
ConfiguredFeature.generate
(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) private void
DripstoneClusterFeature.generate
(StructureWorldAccess world, Random random, BlockPos pos, int localX, int localZ, float wetness, double dripstoneChance, int height, float density, DripstoneClusterFeatureConfig config) (package private) void
LargeDripstoneFeature.DripstoneGenerator.generate
(StructureWorldAccess world, Random random, LargeDripstoneFeature.WindModifier wind) static boolean
MultifaceGrowthFeature.generate
(StructureWorldAccess world, BlockPos pos, BlockState state, MultifaceGrowthFeatureConfig config, Random random, List<Direction> directions) private boolean
PlacedFeature.generate
(FeaturePlacementContext context, Random random, BlockPos pos) boolean
PlacedFeature.generate
(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) Generates a configured feature at the positions obtained by applying placement modifiers to the given position.boolean
RandomFeatureEntry.generate
(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) private boolean
TreeFeature.generate
(StructureWorldAccess world, Random random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootPlacerReplacer, BiConsumer<BlockPos, BlockState> trunkPlacerReplacer, FoliagePlacer.BlockPlacer blockPlacer, TreeFeatureConfig config) protected void
HugeBrownMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected abstract void
HugeMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected void
HugeRedMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected boolean
CoralClawFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected abstract boolean
CoralFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected boolean
CoralMushroomFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected boolean
CoralTreeFeature.generateCoral
(WorldAccess world, Random random, BlockPos pos, BlockState state) protected boolean
CoralFeature.generateCoralPiece
(WorldAccess world, Random random, BlockPos pos, BlockState state) private static void
SmallDripstoneFeature.generateDripstoneBlocks
(WorldAccess world, Random random, BlockPos pos, SmallDripstoneFeatureConfig config) private static void
RootSystemFeature.generateHangingRoots
(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, BlockPos pos, BlockPos.Mutable mutablePos) private void
HugeFungusFeature.generateHat
(StructureWorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos pos, int hatHeight, boolean thickStem) boolean
Feature.generateIfValid
(FC config, StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) private void
WeepingVinesFeature.generateNetherWartBlocksInArea
(WorldAccess world, Random random, BlockPos pos) private static void
RootSystemFeature.generateRoots
(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, int x, int z, BlockPos.Mutable mutablePos) private static void
RootSystemFeature.generateRootsColumn
(BlockPos pos, int maxY, StructureWorldAccess world, RootSystemFeatureConfig config, Random random) private void
EndSpikeFeature.generateSpike
(ServerWorldAccess world, Random random, EndSpikeFeatureConfig config, EndSpikeFeature.Spike spike) private void
HugeFungusFeature.generateStem
(StructureWorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos pos, int stemHeight, boolean thickStem) protected void
HugeMushroomFeature.generateStem
(WorldAccess world, Random random, BlockPos pos, HugeMushroomFeatureConfig config, int height, BlockPos.Mutable mutablePos) private static boolean
RootSystemFeature.generateTreeAndRoots
(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos.Mutable mutablePos, BlockPos pos) boolean
PlacedFeature.generateUnregistered
(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) protected void
VegetationPatchFeature.generateVegetation
(FeatureContext<VegetationPatchFeatureConfig> context, StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, Set<BlockPos> positions, int radiusX, int radiusZ) protected boolean
VegetationPatchFeature.generateVegetationFeature
(StructureWorldAccess world, VegetationPatchFeatureConfig config, ChunkGenerator generator, Random random, BlockPos pos) protected boolean
WaterloggedVegetationPatchFeature.generateVegetationFeature
(StructureWorldAccess world, VegetationPatchFeatureConfig config, ChunkGenerator generator, Random random, BlockPos pos) protected boolean
OreFeature.generateVeinPart
(StructureWorldAccess world, Random random, OreFeatureConfig config, double startX, double endX, double startZ, double endZ, double startY, double endY, int x, int y, int z, int horizontalSize, int verticalSize) static void
TwistingVinesFeature.generateVineColumn
(WorldAccess world, Random random, BlockPos.Mutable pos, int maxLength, int minAge, int maxAge) static void
WeepingVinesFeature.generateVineColumn
(WorldAccess world, Random random, BlockPos.Mutable pos, int length, int minAge, int maxAge) private static void
HugeFungusFeature.generateVines
(BlockPos pos, WorldAccess world, Random random) private void
WeepingVinesFeature.generateVinesInArea
(WorldAccess world, Random random, BlockPos pos) SmallDripstoneFeature.getDirection
(WorldAccess world, BlockPos pos, Random random) private int
DripstoneClusterFeature.getHeight
(Random random, int localX, int localZ, float density, int height, DripstoneClusterFeatureConfig config) protected int
private EntityType<?>
DungeonFeature.getMobSpawnerEntity
(Random random) private int
private int
IcebergFeature.method_13419
(Random random, int y, int height, int factor) private double
IcebergFeature.method_13421
(int x, int z, BlockPos pos, int int2, Random random) private int
IcebergFeature.method_13427
(Random random, int y, int height, int factor) private void
IcebergFeature.method_13428
(Random random, WorldAccess world, int int2, int int3, BlockPos pos, boolean bool, int int4, double double2, int int5) private void
IcebergFeature.placeAt
(WorldAccess world, Random random, BlockPos pos, int height, int offsetX, int offsetY, int offsetZ, int int2, int int3, boolean bool, int int4, double randomSine, boolean placeSnow, BlockState state) protected boolean
DiskFeature.placeBlock
(DiskFeatureConfig config, StructureWorldAccess world, Random random, int topY, int bottomY, BlockPos.Mutable pos) private void
IcebergFeature.placeBlockOrSnow
(BlockPos pos, WorldAccess world, Random random, int heightRemaining, int height, boolean lessSnow, boolean placeSnow, BlockState state) protected boolean
VegetationPatchFeature.placeGround
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Predicate<BlockState> replaceable, Random random, BlockPos.Mutable pos, int depth) VegetationPatchFeature.placeGroundAndGetPositions
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ) WaterloggedVegetationPatchFeature.placeGroundAndGetPositions
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ) private void
HugeFungusFeature.placeHatBlock
(WorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos.Mutable pos, float decorationChance, float generationChance, float vineChance) private void
HugeFungusFeature.placeWithOptionalVines
(WorldAccess world, Random random, BlockPos pos, BlockState state, boolean vines) private void
ScatteredOreFeature.setPos
(BlockPos.Mutable mutable, Random random, BlockPos origin, int spread) protected static boolean
OreFeature.shouldNotDiscard
(Random random, float chance) static boolean
OreFeature.shouldPlace
(BlockState state, Function<BlockPos, BlockState> posToState, Random random, OreFeatureConfig config, OreFeatureConfig.Target target, BlockPos.Mutable pos) MultifaceGrowthFeatureConfig.shuffleDirections
(Random random) MultifaceGrowthFeatureConfig.shuffleDirections
(Random random, Direction excluded) private boolean
BasaltPillarFeature.stopOrPlaceBasalt
(WorldAccess world, Random random, BlockPos pos) private void
BasaltPillarFeature.tryPlaceBasalt
(WorldAccess world, Random random, BlockPos pos) ModifierConstructorDescription(package private)
WindModifier
(int y, Random random, FloatProvider wind) -
Uses of Random in net.minecraft.world.gen.feature.util
ModifierConstructorDescriptionFeatureContext
(Optional<ConfiguredFeature<?, ?>> feature, StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos origin, FC config) -
Uses of Random in net.minecraft.world.gen.foliage
Modifier and TypeMethodDescriptionprotected void
AcaciaFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
BlobFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
BushFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
CherryFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
DarkOakFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.void
FoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius) protected abstract void
FoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
JungleFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
LargeOakFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
MegaPineFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
PineFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
RandomSpreadFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
SpruceFoliagePlacer.generate
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset) This is the main method used to generate foliage.protected void
FoliagePlacer.generateSquare
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk) Generates a square of leaves with the given radius.protected final void
FoliagePlacer.generateSquareWithHangingLeaves
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk, float hangingLeavesChance, float hangingLeavesExtensionChance) int
AcaciaFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
BlobFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
CherryFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
DarkOakFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) abstract int
FoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
JungleFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
MegaPineFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
PineFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
RandomSpreadFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) int
SpruceFoliagePlacer.getRandomHeight
(Random random, int trunkHeight, TreeFeatureConfig config) private int
FoliagePlacer.getRandomOffset
(Random random) int
FoliagePlacer.getRandomRadius
(Random random, int baseHeight) int
PineFoliagePlacer.getRandomRadius
(Random random, int baseHeight) protected boolean
AcaciaFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
BlobFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
BushFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
CherryFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
DarkOakFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected abstract boolean
FoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
JungleFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
LargeOakFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
MegaPineFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
PineFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
RandomSpreadFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
SpruceFoliagePlacer.isInvalidForLeaves
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Used to exclude certain positions such as corners when creating a square of leaves.protected boolean
DarkOakFoliagePlacer.isPositionInvalid
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Normalizes x and z coords before checking if they are invalid.protected boolean
FoliagePlacer.isPositionInvalid
(Random random, int dx, int y, int dz, int radius, boolean giantTrunk) Normalizes x and z coords before checking if they are invalid.private static boolean
FoliagePlacer.placeFoliageBlock
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, float chance, BlockPos origin, BlockPos.Mutable pos) protected static boolean
FoliagePlacer.placeFoliageBlock
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos pos) -
Uses of Random in net.minecraft.world.gen.heightprovider
Modifier and TypeMethodDescriptionint
BiasedToBottomHeightProvider.get
(Random random, HeightContext context) int
ConstantHeightProvider.get
(Random random, HeightContext context) abstract int
HeightProvider.get
(Random random, HeightContext context) int
TrapezoidHeightProvider.get
(Random random, HeightContext context) int
UniformHeightProvider.get
(Random random, HeightContext context) int
VeryBiasedToBottomHeightProvider.get
(Random random, HeightContext context) int
WeightedListHeightProvider.get
(Random random, HeightContext context) -
Uses of Random in net.minecraft.world.gen.placementmodifier
Modifier and TypeMethodDescriptionprotected abstract int
protected int
protected int
protected int
AbstractConditionalPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.AbstractCountPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.CarvingMaskPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.CountMultilayerPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Deprecated.Applies this placement modifier to the given position.EnvironmentScanPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.HeightmapPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.HeightRangePlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.PlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.RandomOffsetPlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.SquarePlacementModifier.getPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.protected abstract boolean
AbstractConditionalPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
BiomePlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
BlockFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
RarityFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
SurfaceThresholdFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) protected boolean
SurfaceWaterDepthFilterPlacementModifier.shouldPlace
(FeaturePlacementContext context, Random random, BlockPos pos) -
Uses of Random in net.minecraft.world.gen.root
Modifier and TypeMethodDescriptionprivate boolean
MangroveRootPlacer.canGrow
(TestableWorld world, Random random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) boolean
MangroveRootPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) abstract boolean
RootPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) MangroveRootPlacer.getOffshootPositions
(BlockPos pos, Direction direction, Random random, BlockPos origin) protected void
MangroveRootPlacer.placeRoots
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected void
RootPlacer.placeRoots
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) RootPlacer.trunkOffset
(BlockPos pos, Random random) -
Uses of Random in net.minecraft.world.gen.stateprovider
Modifier and TypeMethodDescriptionabstract BlockState
Returns a provided block state.Returns a provided block state.Returns a provided block state.Returns a provided block state.Returns a provided block state.Returns a provided block state.Returns a provided block state.Returns a provided block state.PredicatedStateProvider.getBlockState
(StructureWorldAccess world, Random random, BlockPos pos) -
Uses of Random in net.minecraft.world.gen.structure
Modifier and TypeMethodDescriptionprivate static int
RuinedPortalStructure.choosePlacementHeight
(Random random, int min, int max) private static int
RuinedPortalStructure.getFloorHeight
(Random random, ChunkGenerator chunkGenerator, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, boolean airPocket, int height, int blockCountY, BlockBox box, HeightLimitView world, NoiseConfig noiseConfig) void
DesertPyramidStructure.postPlace
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces) void
Structure.postPlace
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces) void
WoodlandMansionStructure.postPlace
(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces) -
Uses of Random in net.minecraft.world.gen.surfacebuilder
Modifier and TypeMethodDescriptionprivate static void
SurfaceBuilder.addTerracottaBands
(Random random, BlockState[] terracottaBands, int minBandSize, BlockState state) private static BlockState[]
SurfaceBuilder.createTerracottaBands
(Random random) -
Uses of Random in net.minecraft.world.gen.treedecorator
ModifierConstructorDescriptionGenerator
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, Set<BlockPos> logPositions, Set<BlockPos> leavesPositions, Set<BlockPos> rootPositions) -
Uses of Random in net.minecraft.world.gen.trunk
Modifier and TypeMethodDescriptionBendingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundCherryTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundDarkOakTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundForkingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundGiantTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundLargeOakTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundMegaJungleTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundStraightTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundabstract List<FoliagePlacer.TreeNode>
TrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundUpwardsBranchingTrunkPlacer.generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundprivate FoliagePlacer.TreeNode
CherryTrunkPlacer.generateBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config, Function<BlockState, BlockState> withAxisFunction, Direction direction, int branchStartOffset, boolean branchBelowHeight, BlockPos.Mutable mutablePos) private void
UpwardsBranchingTrunkPlacer.generateExtraBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, TreeFeatureConfig config, List<FoliagePlacer.TreeNode> nodes, BlockPos.Mutable pos, int yOffset, Direction direction, int length, int steps) protected boolean
TrunkPlacer.getAndSetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected boolean
TrunkPlacer.getAndSetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config, Function<BlockState, BlockState> function) int
private void
LargeOakTrunkPlacer.makeBranches
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer.BranchPosition> branchPositions, TreeFeatureConfig config) private boolean
LargeOakTrunkPlacer.makeOrCheckBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config) private void
GiantTrunkPlacer.setLog
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos.Mutable tmpPos, TreeFeatureConfig config, BlockPos startPos, int dx, int dy, int dz) protected static void
TrunkPlacer.setToDirt
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected void
TrunkPlacer.trySetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos.Mutable pos, TreeFeatureConfig config) -
Uses of Random in net.minecraft.world.poi
Modifier and TypeMethodDescriptionPointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage.OccupationStatus occupationStatus, BlockPos pos, int radius, Random random) -
Uses of Random in net.minecraft.world.spawner
Modifier and TypeMethodDescriptionprivate boolean
PatrolSpawner.spawnPillager
(ServerWorld world, BlockPos pos, Random random, boolean captain)
AbstractBlock.AbstractBlockState.randomTick(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)
instead.