Uses of Interface
net.minecraft.util.math.random.Random
Packages that use Random
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Random in net.minecraft.block
Methods in net.minecraft.block with parameters of type RandomModifier and TypeMethodDescriptionprivate voidRedstoneWireBlock.addPoweredParticles(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) protected BlockStateAbstractPlantStemBlock.age(BlockState state, Random random) protected BlockStateCaveVinesHeadBlock.age(BlockState state, Random random) booleanAbstractPlantBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanAbstractPlantStemBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanAzaleaBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanBambooBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanBambooShootBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanBigDripleafBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanBigDripleafStemBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanCaveVinesBodyBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanCaveVinesHeadBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanCocoaBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanCropBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanFertilizable.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanFlowerbedBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanFungusBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanGlowLichenBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanGrassBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanMangroveLeavesBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanMossBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanMushroomPlantBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanNetherrackBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanNyliumBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanPitcherCropBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanPropaguleBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanRootedDirtBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanSaplingBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanSeagrassBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanSeaPickleBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanShortPlantBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanSmallDripleafBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanStemBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanSweetBerryBushBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) booleanTallFlowerBlock.canGrow(World world, Random random, BlockPos pos, BlockState state) private booleanSculkVeinBlock.convertToBlock(SculkSpreadManager spreadManager, WorldAccess world, BlockPos pos, Random random) static voidChorusFlowerBlock.generate(WorldAccess world, BlockPos pos, Random random, int size) private static voidChorusFlowerBlock.generate(WorldAccess world, BlockPos pos, Random random, BlockPos rootPos, int size, int layer) private voidNyliumBlock.generate(Registry<ConfiguredFeature<?, ?>> registry, RegistryKey<ConfiguredFeature<?, ?>> key, ServerWorld world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) voidSaplingBlock.generate(ServerWorld world, BlockPos pos, BlockState state, Random random) booleanSaplingGenerator.generate(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) private BlockStateSculkBlock.getExtraBlockState(WorldAccess world, BlockPos pos, Random random, boolean allowShrieker) private static intFireBlock.getFireTickDelay(Random random) private BlockStateVineBlock.getGrownState(BlockState above, BlockState state, Random random) protected abstract intAbstractPlantStemBlock.getGrowthLength(Random random) protected intCaveVinesHeadBlock.getGrowthLength(Random random) protected intKelpBlock.getGrowthLength(Random random) protected intTwistingVinesBlock.getGrowthLength(Random random) static intVineLogic.getGrowthLength(Random random) protected intWeepingVinesBlock.getGrowthLength(Random random) private static intFrogspawnBlock.getHatchTime(Random random) private @Nullable RegistryKey<ConfiguredFeature<?, ?>> SaplingGenerator.getMegaTreeFeature(Random random) private @Nullable RegistryKey<ConfiguredFeature<?, ?>> SaplingGenerator.getSmallTreeFeature(Random random, boolean flowersNearby) private doubleFrogspawnBlock.getSpawnOffset(Random random) voidAbstractPlantBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidAbstractPlantStemBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidAzaleaBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidBambooBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidBambooShootBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidBigDripleafBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) static voidBigDripleafBlock.grow(WorldAccess world, Random random, BlockPos pos, Direction direction) voidBigDripleafStemBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidCaveVinesBodyBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidCaveVinesHeadBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidCocoaBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidCropBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidFertilizable.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidFlowerbedBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidFungusBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidGlowLichenBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidGrassBlock.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) voidMangroveLeavesBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidMossBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidMushroomPlantBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidNetherrackBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidNyliumBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidPitcherCropBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidPropaguleBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidRootedDirtBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidSaplingBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidSeagrassBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidSeaPickleBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidShortPlantBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidSmallDripleafBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidStemBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidSweetBerryBushBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) voidTallFlowerBlock.grow(ServerWorld world, Random random, BlockPos pos, BlockState state) private voidFrogspawnBlock.hatch(ServerWorld world, BlockPos pos, Random random) default booleanSculkSpreadable.method_41470(WorldAccess world, BlockPos pos, Random random) voidAbstractCandleBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidAbstractFireBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidBeehiveBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidBlastFurnaceBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidBrewingStandBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidBrushableBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidBubbleColumnBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidCampfireBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidCherryLeavesBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidCryingObsidianBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidEnchantingTableBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidEnderChestBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidEndGatewayBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidEndPortalBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidEndRodBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidFallingBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidFurnaceBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidLeavesBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidLeverBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidLightningRodBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidMyceliumBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidNetherPortalBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidPointedDripstoneBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidRedstoneOreBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidRedstoneTorchBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidRedstoneWireBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidRepeaterBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidRespawnAnchorBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidSculkSensorBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidSmokerBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidSporeBlossomBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidTorchBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidWallRedstoneTorchBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidWallTorchBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidWetSpongeBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidWitherRoseBlock.randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.voidAbstractBlock.AbstractBlockState.randomTick(ServerWorld world, BlockPos pos, Random random) protected voidAbstractBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidAbstractPlantStemBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidBambooBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidBambooShootBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidBeetrootsBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidBuddingAmethystBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidCactusBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidChorusFlowerBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidCocoaBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidCropBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidFarmlandBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidFluidBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidIceBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidLeavesBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidMushroomPlantBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidNetherPortalBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidNetherWartBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidNyliumBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidOxidizableBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidOxidizableBulbBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidOxidizableDoorBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidOxidizableGrateBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidOxidizableSlabBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidOxidizableStairsBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidOxidizableTrapdoorBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.voidPitcherCropBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidPointedDripstoneBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidPropaguleBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidRedstoneOreBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidSaplingBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidSnowBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidSpreadableBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidStemBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidSugarCaneBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidSweetBerryBushBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.voidTorchflowerBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidTurtleEggBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidVineBlock.randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.voidAbstractBlock.AbstractBlockState.scheduledTick(ServerWorld world, BlockPos pos, Random random) protected voidAbstractBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidAbstractCauldronBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidAbstractPlantPartBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidAbstractPressurePlateBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidAbstractRedstoneGateBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidBambooBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidBarrelBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidBigDripleafBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidBigDripleafStemBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.voidBrushableBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidBubbleColumnBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidButtonBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidCactusBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidChestBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidChorusFlowerBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidChorusPlantBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidCommandBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidComparatorBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidComposterBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidCoralBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidCoralBlockBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidCoralFanBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidCoralWallFanBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidCrafterBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidDetectorRailBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidDirtPathBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidDispenserBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidEnderChestBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidFallingBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidFarmlandBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidFireBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidFrogspawnBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidFrostedIceBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidLeavesBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidLecternBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidLightningRodBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidMagmaBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidObserverBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidPointedDripstoneBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidRedstoneLampBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidRedstoneTorchBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidScaffoldingBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidSculkCatalystBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidSculkSensorBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidSculkShriekerBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.voidSnifferEggBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidSoulSandBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidSugarCaneBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidTargetBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidTripwireBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.protected voidTripwireHookBlock.scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.private static voidAbstractCandleBlock.spawnCandleParticles(World world, Vec3d vec3d, Random random) private voidFrogspawnBlock.spawnTadpoles(ServerWorld world, BlockPos pos, Random random) intSculkBlock.spread(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) intSculkSpreadable.spread(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) intSculkVeinBlock.spread(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) default voidSculkSpreadable.spreadAtSamePosition(WorldAccess world, BlockState state, BlockPos pos, Random random) voidSculkVeinBlock.spreadAtSamePosition(WorldAccess world, BlockState state, BlockPos pos, Random random) default voidDegradable.tickDegradation(BlockState state, ServerWorld world, BlockPos pos, Random random) default Optional<BlockState> Degradable.tryDegrade(BlockState state, ServerWorld world, BlockPos pos, Random random) static voidPointedDripstoneBlock.tryGrow(BlockState state, ServerWorld world, BlockPos pos, Random random) booleanMushroomPlantBlock.trySpawningBigMushroom(ServerWorld world, BlockPos pos, BlockState state, Random random) private voidFireBlock.trySpreadingFire(World world, BlockPos pos, int spreadFactor, Random random, int currentAge) protected voidBambooBlock.updateLeaves(BlockState state, World world, BlockPos pos, Random random, int height) -
Uses of Random in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as RandomMethods in net.minecraft.block.entity that return RandomModifier and TypeMethodDescriptionstatic RandomStructureBlockBlockEntity.createRandom(long seed) Methods in net.minecraft.block.entity with parameters of type RandomModifier and TypeMethodDescriptionprivate voidSculkCatalystBlockEntity.Listener.bloom(ServerWorld world, BlockPos pos, BlockState state, Random random) intDispenserBlockEntity.chooseNonEmptySlot(Random random) private static Vec3dVaultBlockEntity.Client.getDeactivateParticlesPos(BlockPos pos, Random random) private static Vec3dVaultBlockEntity.Client.getRegularParticlesPos(BlockPos pos, Random random) SculkSpreadManager.Cursor.getSpreadPos(WorldAccess world, BlockPos pos, Random random) voidMobSpawnerBlockEntity.setEntityType(EntityType<?> type, Random random) voidSpawner.setEntityType(EntityType<?> type, Random random) voidTrialSpawnerBlockEntity.setEntityType(EntityType<?> type, Random random) SculkSpreadManager.Cursor.shuffleOffsets(Random random) voidSculkSpreadManager.Cursor.spread(WorldAccess world, BlockPos pos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) voidSculkSpreadManager.tick(WorldAccess world, BlockPos pos, Random random, boolean shouldConvertToBlock) -
Uses of Random in net.minecraft.block.enums
Methods in net.minecraft.block.enums with parameters of type Random -
Uses of Random in net.minecraft.block.spawner
Methods in net.minecraft.block.spawner with parameters of type RandomModifier and TypeMethodDescriptionstatic voidTrialSpawnerLogic.addDetectionParticles(World world, BlockPos pos, Random random, int playerCount, ParticleEffect particle) static voidTrialSpawnerLogic.addEjectItemParticles(World world, BlockPos pos, Random random) static voidTrialSpawnerLogic.addMobSpawnParticles(World world, BlockPos pos, Random random, SimpleParticleType particle) static voidTrialSpawnerLogic.addTrialOmenParticles(World world, BlockPos pos, Random random) protected MobSpawnerEntryTrialSpawnerData.getSpawnData(TrialSpawnerLogic logic, Random random) private MobSpawnerEntryMobSpawnerLogic.getSpawnEntry(@Nullable World world, Random random, BlockPos pos) booleanTrialSpawnerData.hasSpawnData(TrialSpawnerLogic logic, Random random) voidMobSpawnerLogic.setEntityId(EntityType<?> type, @Nullable World world, Random random, BlockPos pos) voidTrialSpawnerData.setEntityType(TrialSpawnerLogic logic, Random random, EntityType<?> type) -
Uses of Random in net.minecraft.client.font
Fields in net.minecraft.client.font declared as Random -
Uses of Random in net.minecraft.client.gui.hud
Fields in net.minecraft.client.gui.hud declared as Random -
Uses of Random in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as Random -
Uses of Random in net.minecraft.client.model
Methods in net.minecraft.client.model with parameters of type Random -
Uses of Random in net.minecraft.client.network
Fields in net.minecraft.client.network declared as Random -
Uses of Random in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as RandomModifier and TypeFieldDescriptionprotected final RandomParticle.randomprivate final RandomParticleManager.random(package private) static final RandomGlowParticle.RANDOMprivate static final RandomSpellParticle.RANDOMMethods in net.minecraft.client.particle with parameters of type Random -
Uses of Random in net.minecraft.client.render
Fields in net.minecraft.client.render declared as RandomMethods in net.minecraft.client.render with parameters of type RandomModifier and TypeMethodDescriptionprivate voidWorldRenderer.shootParticles(int direction, BlockPos pos, Random random, SimpleParticleType particleType) -
Uses of Random in net.minecraft.client.render.block
Fields in net.minecraft.client.render.block declared as RandomMethods in net.minecraft.client.render.block with parameters of type RandomModifier and TypeMethodDescriptionvoidBlockModelRenderer.render(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) voidBlockRenderManager.renderBlock(BlockState state, BlockPos pos, BlockRenderView world, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random) voidBlockModelRenderer.renderFlat(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrices, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay) voidBlockModelRenderer.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.block.entity
Fields in net.minecraft.client.render.block.entity declared as RandomMethods in net.minecraft.client.render.block.entity with parameters of type RandomModifier and TypeMethodDescriptionstatic voidVaultBlockEntityRenderer.renderDisplayItem(float tickDelta, World world, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, ItemRenderer itemRenderer, float prevRotation, float rotation, Random random) -
Uses of Random in net.minecraft.client.render.entity
Fields in net.minecraft.client.render.entity declared as RandomModifier and TypeFieldDescriptionprivate final RandomEndermanEntityRenderer.randomprivate final RandomItemEntityRenderer.randomMethods in net.minecraft.client.render.entity with parameters of type RandomModifier and TypeMethodDescriptionstatic voidItemEntityRenderer.renderStack(ItemRenderer itemRenderer, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, BakedModel model, boolean depth, Random random) static voidItemEntityRenderer.renderStack(ItemRenderer itemRenderer, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, Random random, World world) -
Uses of Random in net.minecraft.client.render.entity.model
Methods in net.minecraft.client.render.entity.model with parameters of type Random -
Uses of Random in net.minecraft.client.render.model
Methods in net.minecraft.client.render.model with parameters of type RandomModifier and TypeMethodDescription -
Uses of Random in net.minecraft.client.resource
Fields in net.minecraft.client.resource declared as Random -
Uses of Random in net.minecraft.client.sound
Fields in net.minecraft.client.sound declared as RandomModifier and TypeFieldDescriptionprotected RandomAbstractSoundInstance.randomprivate final RandomBiomeEffectSoundPlayer.randomprivate final RandomMusicTracker.randomMethods in net.minecraft.client.sound that return RandomMethods in net.minecraft.client.sound with parameters of type RandomModifier and TypeMethodDescriptionstatic PositionedSoundInstancePositionedSoundInstance.ambient(SoundEvent sound, Random random, double x, double y, double z) Constructors in net.minecraft.client.sound with parameters of type RandomModifierConstructorDescriptionprotectedAbstractSoundInstance(SoundEvent sound, SoundCategory category, Random random) protectedAbstractSoundInstance(Identifier soundId, SoundCategory category, Random random) protectedMovingSoundInstance(SoundEvent sound, SoundCategory category, Random random) privatePositionedSoundInstance(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.world
Methods in net.minecraft.client.world with parameters of type RandomModifier and TypeMethodDescriptionvoidClientWorld.randomBlockDisplayTick(int centerX, int centerY, int centerZ, int radius, Random random, @Nullable Block block, BlockPos.Mutable pos) -
Uses of Random in net.minecraft.enchantment
Methods in net.minecraft.enchantment with parameters of type RandomModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.applyEnchantmentProvider(ItemStack stack, DynamicRegistryManager registryManager, RegistryKey<EnchantmentProvider> providerKey, LocalDifficulty localDifficulty, Random random) static intEnchantmentHelper.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 ItemStackEnchantmentHelper.enchant(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Enchants thetargetitem stack and returns it.static ItemStackEnchantmentHelper.enchant(Random random, ItemStack stack, int level, DynamicRegistryManager dynamicRegistryManager, Optional<? extends RegistryEntryList<Enchantment>> enchantments) static List<EnchantmentLevelEntry> EnchantmentHelper.generateEnchantments(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Generate the enchantments for enchanting thestack.voidEnchantment.modifyCrossbowChargeTime(Random random, int level, MutableFloat crossbowChargeTime) voidEnchantment.modifyTridentSpinAttackStrength(Random random, int level, MutableFloat tridentSpinAttackStrength) voidEnchantment.modifyValue(ComponentType<EnchantmentValueEffect> type, Random random, int level, MutableFloat value) -
Uses of Random in net.minecraft.enchantment.effect
Methods in net.minecraft.enchantment.effect with parameters of type Random -
Uses of Random in net.minecraft.enchantment.effect.entity
Methods in net.minecraft.enchantment.effect.entity with parameters of type RandomModifier and TypeMethodDescriptiondoubleSpawnParticlesEnchantmentEffect.PositionSourceType.CoordinateSource.getCoordinate(double entityPosition, double boundingBoxCenter, float boundingBoxSize, Random random) doubleSpawnParticlesEnchantmentEffect.PositionSourceType.getCoordinate(double entityPosition, double boundingBoxCenter, float boundingBoxSize, Random random) doubleSpawnParticlesEnchantmentEffect.PositionSource.getPosition(double entityPosition, double boundingBoxCenter, float boundingBoxSize, Random random) doubleSpawnParticlesEnchantmentEffect.VelocitySource.getVelocity(double entityVelocity, Random random) -
Uses of Random in net.minecraft.enchantment.effect.value
Methods in net.minecraft.enchantment.effect.value with parameters of type RandomModifier and TypeMethodDescriptionfloatfloatfloatfloat -
Uses of Random in net.minecraft.enchantment.provider
Methods in net.minecraft.enchantment.provider with parameters of type RandomModifier and TypeMethodDescriptionvoidByCostEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) voidByCostWithDifficultyEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) voidEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) voidSingleEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) -
Uses of Random in net.minecraft.entity
Fields in net.minecraft.entity declared as RandomMethods in net.minecraft.entity that return RandomMethods in net.minecraft.entity with parameters of type RandomModifier and TypeMethodDescriptionbooleanstatic <T extends Entity>
booleanSpawnRestriction.canSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) voidProjectileDeflection.deflect(ProjectileEntity projectile, @Nullable Entity hitEntity, Random random) booleanSpawnRestriction.SpawnPredicate.test(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) -
Uses of Random in net.minecraft.entity.ai
Methods in net.minecraft.entity.ai with parameters of type RandomModifier and TypeMethodDescriptionstatic BlockPosCreates a fuzzy offset position within the given horizontal and vertical ranges.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 BlockPosFuzzyPositions.towardTarget(PathAwareEntity entity, int horizontalRange, Random random, BlockPos fuzz) -
Uses of Random in net.minecraft.entity.ai.brain.sensor
Fields in net.minecraft.entity.ai.brain.sensor declared as Random -
Uses of Random in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as RandomMethods in net.minecraft.entity.ai.brain.task with parameters of type RandomModifier and TypeMethodDescriptionprivate static intBreezeJumpTask.getJumpingVelocity(BreezeEntity breeze, Random random, Vec3d jumpTarget) static Vec3dBreezeMovementUtil.getRandomPosBehindTarget(LivingEntity target, Random random) booleanConstructors in net.minecraft.entity.ai.brain.task with parameters of type Random -
Uses of Random in net.minecraft.entity.effect
Fields in net.minecraft.entity.effect with type parameters of type RandomModifier and TypeFieldDescriptionprivate final ToIntFunction<Random> WeavingStatusEffect.cobwebChanceFunctionprivate final ToIntFunction<Random> InfestedStatusEffect.silverfishCountFunctionprivate final ToIntFunction<Random> OozingStatusEffect.slimeCountFunctionMethods in net.minecraft.entity.effect with parameters of type RandomModifier and TypeMethodDescriptionprivate voidWeavingStatusEffect.tryPlaceCobweb(World world, Random random, BlockPos pos) Constructor parameters in net.minecraft.entity.effect with type arguments of type RandomModifierConstructorDescriptionprotectedInfestedStatusEffect(StatusEffectCategory category, int color, float silverfishChance, ToIntFunction<Random> silverfishCountFunction) protectedOozingStatusEffect(StatusEffectCategory category, int color, ToIntFunction<Random> slimeCountFunction) protectedWeavingStatusEffect(StatusEffectCategory category, int color, ToIntFunction<Random> cobwebChanceFunction) -
Uses of Random in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type RandomModifier and TypeMethodDescriptionstatic booleanMagmaCubeEntity.canMagmaCubeSpawn(EntityType<MagmaCubeEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanMobEntity.canMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanDrownedEntity.canSpawn(EntityType<DrownedEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanEndermiteEntity.canSpawn(EntityType<EndermiteEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanGhastEntity.canSpawn(EntityType<GhastEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanGuardianEntity.canSpawn(EntityType<? extends GuardianEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanHoglinEntity.canSpawn(EntityType<HoglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanHuskEntity.canSpawn(EntityType<HuskEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanPatrolEntity.canSpawn(EntityType<? extends PatrolEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanPiglinEntity.canSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanSilverfishEntity.canSpawn(EntityType<SilverfishEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanSkeletonHorseEntity.canSpawn(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanSlimeEntity.canSpawn(EntityType<SlimeEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanStrayEntity.canSpawn(EntityType<StrayEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanWaterCreatureEntity.canSpawn(EntityType<? extends WaterCreatureEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanZombieHorseEntity.canSpawn(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanZombifiedPiglinEntity.canSpawn(EntityType<ZombifiedPiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanHostileEntity.canSpawnIgnoreLightLevel(EntityType<? extends HostileEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanHostileEntity.canSpawnInDark(EntityType<? extends HostileEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) private voidMobEntity.enchantEquipment(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty) protected voidMobEntity.enchantEquipment(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty) protected voidMobEntity.enchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) protected voidPillagerEntity.enchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) private voidPiglinEntity.equipAtChance(EquipmentSlot slot, ItemStack stack, Random random) protected voidSkeletonHorseEntity.initAttributes(Random random) protected voidZombieHorseEntity.initAttributes(Random random) protected voidAbstractSkeletonEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidDrownedEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidMobEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidPiglinBruteEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidPiglinEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidPillagerEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidVexEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidVindicatorEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidWitherSkeletonEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidZombieEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected voidZombifiedPiglinEntity.initEquipment(Random random, LocalDifficulty localDifficulty) static booleanHostileEntity.isSpawnDark(ServerWorldAccess world, BlockPos pos, Random random) voidprotected static voidPiglinBrain.setHuntedRecently(PiglinEntity piglin, Random random) static booleanZombieEntity.shouldBeBaby(Random random) protected voidMobEntity.updateEnchantments(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) protected voidWitherSkeletonEntity.updateEnchantments(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) -
Uses of Random in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type RandomModifier and TypeMethodDescription(package private) static doubleAbstractHorseEntity.calculateAttributeBaseValue(double parentBase, double otherParentBase, double min, double max, Random random) static booleanArmadilloEntity.canSpawn(EntityType<ArmadilloEntity> entityType, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanAxolotlEntity.canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanBatEntity.canSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanFoxEntity.canSpawn(EntityType<FoxEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanFrogEntity.canSpawn(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanGlowSquidEntity.canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanGoatEntity.canSpawn(EntityType<? extends AnimalEntity> entityType, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanMooshroomEntity.canSpawn(EntityType<MooshroomEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanOcelotEntity.canSpawn(EntityType<OcelotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanParrotEntity.canSpawn(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanPolarBearEntity.canSpawn(EntityType<PolarBearEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanRabbitEntity.canSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanStriderEntity.canSpawn(EntityType<StriderEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanTurtleEntity.canSpawn(EntityType<TurtleEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanWolfEntity.canSpawn(EntityType<WolfEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static booleanTropicalFishEntity.canTropicalFishSpawn(EntityType<TropicalFishEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) protected static voidFrogBrain.coolDownLongJump(FrogEntity frog, Random random) static PandaEntity.GenePandaEntity.Gene.createRandom(Random random) static DyeColorSheepEntity.generateDefaultColor(Random random) private static AxolotlEntity.Variantstatic AxolotlEntity.VariantAxolotlEntity.Variant.getRandomNatural(Random random) static SoundEventParrotEntity.getRandomSound(World world, Random random) static AxolotlEntity.VariantAxolotlEntity.Variant.getRandomUnnatural(Random random) AxolotlEntity.AxolotlData.getRandomVariant(Random random) static floatParrotEntity.getSoundPitch(Random random) protected voidAbstractDonkeyEntity.initAttributes(Random random) protected voidAbstractHorseEntity.initAttributes(Random random) protected voidHorseEntity.initAttributes(Random random) protected voidFoxEntity.initEquipment(Random random, LocalDifficulty localDifficulty) protected static voidCamelBrain.initialize(CamelEntity camel, Random random) private voidLlamaEntity.initializeStrength(Random random) static booleanAnimalEntity.isValidNaturalSpawn(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) protected static voidGoatBrain.resetLongJumpCooldown(GoatEntity goat, Random random) private static booleanAxolotlEntity.shouldBabyBeDifferent(Random random) -
Uses of Random in net.minecraft.entity.projectile
Fields in net.minecraft.entity.projectile declared as Random -
Uses of Random in net.minecraft.fluid
Methods in net.minecraft.fluid with parameters of type RandomModifier and TypeMethodDescriptionprotected voidFluid.onRandomTick(World world, BlockPos pos, FluidState state, Random random) voidFluidState.onRandomTick(World world, BlockPos pos, Random random) voidLavaFluid.onRandomTick(World world, BlockPos pos, FluidState state, Random random) protected voidFluid.randomDisplayTick(World world, BlockPos pos, FluidState state, Random random) voidFluidState.randomDisplayTick(World world, BlockPos pos, Random random) voidLavaFluid.randomDisplayTick(World world, BlockPos pos, FluidState state, Random random) voidWaterFluid.randomDisplayTick(World world, BlockPos pos, FluidState state, Random random) -
Uses of Random in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type RandomModifier and TypeMethodDescriptionstatic voidLootableInventory.setLootTable(BlockView world, Random random, BlockPos pos, RegistryKey<LootTable> lootTableId) Queries the block entity atpos, checks if it is aLootableInventory, and sets the loot table and seed if applicable. -
Uses of Random in net.minecraft.item
Methods in net.minecraft.item with parameters of type RandomModifier and TypeMethodDescriptionprivate static floatCrossbowItem.getSoundPitch(boolean flag, Random random) private static floatCrossbowItem.getSoundPitch(Random random, int index) static voidGoatHornItem.setRandomInstrumentFromTag(ItemStack stack, TagKey<Instrument> instrumentTag, Random random) -
Uses of Random in net.minecraft.loot
Methods in net.minecraft.loot with parameters of type RandomModifier and TypeMethodDescriptionLootTable.generateLoot(LootContextParameterSet parameters, Random random) LootTable.getFreeSlots(Inventory inventory, Random random) private voidLootTable.shuffle(ObjectArrayList<ItemStack> drops, int freeSlots, Random random) -
Uses of Random in net.minecraft.loot.context
Fields in net.minecraft.loot.context declared as RandomModifier and TypeFieldDescriptionLootContext.Builder.randomprivate final RandomLootContext.randomMethods in net.minecraft.loot.context that return RandomMethods in net.minecraft.loot.context with parameters of type RandomConstructors in net.minecraft.loot.context with parameters of type RandomModifierConstructorDescription(package private)LootContext(LootContextParameterSet parameters, Random random, RegistryEntryLookup.RegistryLookup lookup) -
Uses of Random in net.minecraft.loot.function
Methods in net.minecraft.loot.function with parameters of type RandomModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomlyLootFunction.addEnchantmentToStack(ItemStack stack, RegistryEntry<Enchantment> enchantment, Random random) intApplyBonusLootFunction.BinomialWithBonusCount.getValue(Random random, int initialCount, int enchantmentLevel) intintintApplyBonusLootFunction.UniformBonusCount.getValue(Random random, int initialCount, int enchantmentLevel) -
Uses of Random in net.minecraft.particle
Methods in net.minecraft.particle with parameters of type RandomModifier and TypeMethodDescriptionprivate static Vec3dParticleUtil.getRandomVelocity(Random random) static voidParticleUtil.spawnParticle(World world, BlockPos pos, Random random, ParticleEffect effect) -
Uses of Random in net.minecraft.registry
Methods in net.minecraft.registry with parameters of type RandomModifier 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.default Optional<RegistryEntry<T>> Registry.getRandomEntry(TagKey<T> tag, Random random) Returns a random entry fromtag, or an emptyOptionalif the tag is empty. -
Uses of Random in net.minecraft.registry.entry
Methods in net.minecraft.registry.entry with parameters of type RandomModifier 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
Fields in net.minecraft.screen declared as Random -
Uses of Random in net.minecraft.server
Fields in net.minecraft.server declared as Random -
Uses of Random in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type RandomModifier and TypeMethodDescriptionprivate static SpreadPlayersCommand.Pile[]SpreadPlayersCommand.makePiles(Random random, int count, double minX, double minZ, double maxX, double maxZ) voidSpreadPlayersCommand.Pile.setPileLocation(Random random, double minX, double minZ, double maxX, double maxZ) private static voidSpreadPlayersCommand.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
Methods in net.minecraft.server.world that return Random -
Uses of Random in net.minecraft.structure
Fields in net.minecraft.structure declared as RandomModifier and TypeFieldDescriptionStructurePlacementData.randomprivate final RandomWoodlandMansionGenerator.LayoutGenerator.randomprivate final RandomWoodlandMansionGenerator.MansionParameters.randomMethods in net.minecraft.structure that return RandomModifier and TypeMethodDescriptionMethods in net.minecraft.structure with parameters of type RandomModifier and TypeMethodDescriptionprotected voidStructurePiece.addBlockWithRandomThreshold(StructureWorldAccess world, BlockBox bounds, Random random, float threshold, int x, int y, int z, BlockState state) protected booleanMineshaftGenerator.MineshaftCorridor.addChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, RegistryKey<LootTable> lootTable) protected booleanStructurePiece.addChest(ServerWorldAccess world, BlockBox boundingBox, Random random, BlockPos pos, RegistryKey<LootTable> lootTable, @Nullable BlockState block) protected booleanStructurePiece.addChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, RegistryKey<LootTable> lootTable) private static voidOceanRuinGenerator.addCluster(StructureTemplateManager manager, Random random, BlockRotation rotation, BlockPos pos, OceanRuinStructure structure, StructurePiecesHolder pieces) private voidMineshaftGenerator.MineshaftCorridor.addCobwebsUnderground(StructureWorldAccess world, BlockBox box, Random random, float threshold, int x, int y, int z) protected booleanStructurePiece.addDispenser(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Direction facing, RegistryKey<LootTable> lootTable) static ShipwreckGenerator.PieceShipwreckGenerator.addParts(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, boolean beached) static voidEndCityGenerator.addPieces(StructureTemplateManager structureTemplateManager, BlockPos pos, BlockRotation rotation, List<StructurePiece> pieces, Random random) static voidIglooGenerator.addPieces(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random) static voidNetherFossilGenerator.addPieces(StructureTemplateManager manager, StructurePiecesHolder holder, Random random, BlockPos pos) static voidOceanRuinGenerator.addPieces(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure structure) private static voidOceanRuinGenerator.addPieces(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, StructurePiecesHolder holder, Random random, OceanRuinStructure structure, boolean large, float integrity) static voidWoodlandMansionGenerator.addPieces(StructureTemplateManager manager, BlockPos pos, BlockRotation rotation, List<WoodlandMansionGenerator.Piece> pieces, Random random) voidPostPlacementProcessor.afterPlace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos pos, StructurePiecesList children) booleanEndCityGenerator.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.CorridorStrongholdGenerator.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.LeftTurnStrongholdGenerator.LeftTurn.create(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.LibraryStrongholdGenerator.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 BlockBoxStrongholdGenerator.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.StairsStrongholdGenerator.Stairs.create(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) (package private) static booleanEndCityGenerator.createPart(StructureTemplateManager manager, EndCityGenerator.Part piece, int depth, EndCityGenerator.Piece parent, BlockPos pos, List<StructurePiece> pieces, Random random) (package private) static NetherFortressGenerator.PieceNetherFortressGenerator.createPiece(NetherFortressGenerator.PieceData pieceData, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static StrongholdGenerator.PieceStrongholdGenerator.createPiece(Class<? extends StrongholdGenerator.Piece> pieceType, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) protected @Nullable StructurePieceNetherFortressGenerator.Piece.fillForwardOpening(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset, boolean inside) protected @Nullable StructurePieceStrongholdGenerator.Piece.fillForwardOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int leftRightOffset, int heightOffset) protected @Nullable StructurePieceNetherFortressGenerator.Piece.fillNWOpening(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset, boolean inside) protected @Nullable StructurePieceStrongholdGenerator.Piece.fillNWOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) voidMineshaftGenerator.MineshaftCorridor.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidMineshaftGenerator.MineshaftCrossing.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidMineshaftGenerator.MineshaftRoom.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidMineshaftGenerator.MineshaftStairs.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.Bridge.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.BridgeCrossing.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.BridgeSmallCrossing.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.BridgeStairs.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.CorridorBalcony.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.CorridorCrossing.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.CorridorExit.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.CorridorLeftTurn.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.CorridorNetherWartsRoom.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.CorridorRightTurn.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.CorridorStairs.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidNetherFortressGenerator.SmallCorridor.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.ChestCorridor.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.Corridor.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.FiveWayCrossing.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.LeftTurn.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.PortalRoom.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.PrisonHall.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.RightTurn.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.SpiralStaircase.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.SquareRoom.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStrongholdGenerator.Stairs.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) voidStructurePiece.fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random) protected @Nullable StructurePieceNetherFortressGenerator.Piece.fillSEOpening(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset, boolean inside) protected @Nullable StructurePieceStrongholdGenerator.Piece.fillSEOpening(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int heightOffset, int leftRightOffset) protected voidStructurePiece.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 voidStructurePiece.fillWithOutline(StructureWorldAccess world, BlockBox box, BlockBox fillBox, boolean cantReplaceAir, Random random, StructurePiece.BlockRandomizer randomizer) protected voidStructurePiece.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) intShipwreckGenerator.Piece.findGroundedY(int y, Random random) voidBuriedTreasureGenerator.Piece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidDesertTempleGenerator.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidIglooGenerator.Piece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidJungleTempleGenerator.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidMineshaftGenerator.MineshaftCorridor.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidMineshaftGenerator.MineshaftCrossing.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidMineshaftGenerator.MineshaftRoom.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidMineshaftGenerator.MineshaftStairs.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.Bridge.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.BridgeCrossing.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.BridgeEnd.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.BridgePlatform.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.BridgeSmallCrossing.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.BridgeStairs.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.CorridorBalcony.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.CorridorCrossing.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.CorridorExit.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.CorridorLeftTurn.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.CorridorNetherWartsRoom.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.CorridorRightTurn.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.CorridorStairs.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFortressGenerator.SmallCorridor.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidNetherFossilGenerator.Piece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidOceanMonumentGenerator.Base.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidOceanMonumentGenerator.CoreRoom.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.Entry.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.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) voidOceanMonumentGenerator.WingRoom.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidOceanRuinGenerator.Piece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidPoolStructurePiece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, BlockPos pivot, boolean keepJigsaws) voidPoolStructurePiece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidRuinedPortalStructurePiece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidShipwreckGenerator.Piece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidSimpleStructurePiece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.ChestCorridor.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.Corridor.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.FiveWayCrossing.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.LeftTurn.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.Library.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.PortalRoom.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.PrisonHall.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.RightTurn.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.SmallCorridor.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.SpiralStaircase.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.SquareRoom.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidStrongholdGenerator.Stairs.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) abstract voidStructurePiece.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) voidSwampHutGenerator.generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot) protected voidStrongholdGenerator.Piece.generateEntrance(StructureWorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z) private voidRuinedPortalStructurePiece.generateOvergrownLeaves(Random random, WorldAccess world, BlockPos pos) private voidMineshaftGenerator.MineshaftCorridor.generateSupports(StructureWorldAccess world, BlockBox boundingBox, int minX, int minY, int z, int maxY, int maxX, Random random) private voidRuinedPortalStructurePiece.generateVines(Random random, WorldAccess world, BlockPos pos) WoodlandMansionGenerator.FirstFloorRoomPool.getBigRoom(Random random) abstract StringWoodlandMansionGenerator.RoomPool.getBigRoom(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getBigRoom(Random random) WoodlandMansionGenerator.FirstFloorRoomPool.getBigSecretRoom(Random random) abstract StringWoodlandMansionGenerator.RoomPool.getBigSecretRoom(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getBigSecretRoom(Random random) MineshaftGenerator.MineshaftCorridor.getBoundingBox(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) MineshaftGenerator.MineshaftCrossing.getBoundingBox(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) MineshaftGenerator.MineshaftStairs.getBoundingBox(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) WoodlandMansionGenerator.FirstFloorRoomPool.getMediumFunctionalRoom(Random random, boolean staircase) abstract StringWoodlandMansionGenerator.RoomPool.getMediumFunctionalRoom(Random random, boolean staircase) WoodlandMansionGenerator.SecondFloorRoomPool.getMediumFunctionalRoom(Random random, boolean staircase) WoodlandMansionGenerator.FirstFloorRoomPool.getMediumGenericRoom(Random random, boolean staircase) abstract StringWoodlandMansionGenerator.RoomPool.getMediumGenericRoom(Random random, boolean staircase) WoodlandMansionGenerator.SecondFloorRoomPool.getMediumGenericRoom(Random random, boolean staircase) WoodlandMansionGenerator.FirstFloorRoomPool.getMediumSecretRoom(Random random) abstract StringWoodlandMansionGenerator.RoomPool.getMediumSecretRoom(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getMediumSecretRoom(Random random) private static IdentifierOceanRuinGenerator.getRandomBigWarmRuin(Random random) protected StrongholdGenerator.Piece.EntranceTypeStrongholdGenerator.Piece.getRandomEntrance(Random random) protected static DirectionStructurePiece.getRandomHorizontalDirection(Random random) private static IdentifierOceanRuinGenerator.getRandomWarmRuin(Random random) OceanRuinGenerator.getRoomPositions(Random random, BlockPos pos) WoodlandMansionGenerator.FirstFloorRoomPool.getSmallRoom(Random random) abstract StringWoodlandMansionGenerator.RoomPool.getSmallRoom(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getSmallRoom(Random random) WoodlandMansionGenerator.FirstFloorRoomPool.getSmallSecretRoom(Random random) abstract StringWoodlandMansionGenerator.RoomPool.getSmallSecretRoom(Random random) WoodlandMansionGenerator.SecondFloorRoomPool.getSmallSecretRoom(Random random) protected voidEndCityGenerator.Piece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected voidIglooGenerator.Piece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected voidNetherFossilGenerator.Piece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected voidOceanRuinGenerator.Piece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected voidRuinedPortalStructurePiece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected voidShipwreckGenerator.Piece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected abstract voidSimpleStructurePiece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) protected voidWoodlandMansionGenerator.Piece.handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) private List<OceanMonumentGenerator.PieceSetting> OceanMonumentGenerator.Base.method_14760(Random random) private voidOceanMonumentGenerator.Base.method_14761(boolean bool, int int2, StructureWorldAccess world, Random random, BlockBox box) private voidOceanMonumentGenerator.Base.method_14762(StructureWorldAccess world, Random random, BlockBox box) private voidOceanMonumentGenerator.Base.method_14763(StructureWorldAccess world, Random random, BlockBox box) private voidOceanMonumentGenerator.Base.method_14764(StructureWorldAccess world, Random random, BlockBox box) private voidOceanMonumentGenerator.Base.method_14765(StructureWorldAccess world, Random random, BlockBox box) private voidOceanMonumentGenerator.Base.method_14766(StructureWorldAccess world, Random random, BlockBox box) private voidOceanMonumentGenerator.Base.method_14767(StructureWorldAccess world, Random random, BlockBox box) private static MineshaftGenerator.MineshaftPartMineshaftGenerator.pickPiece(StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, MineshaftStructure.Type type) private NetherFortressGenerator.PieceNetherFortressGenerator.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.PieceStrongholdGenerator.pickPiece(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) (package private) static MineshaftGenerator.MineshaftPartMineshaftGenerator.pieceGenerator(StructurePiece start, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private StructurePieceNetherFortressGenerator.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 StructurePieceStrongholdGenerator.pieceGenerator(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) voidStructureStart.place(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos) booleanStructureTemplate.place(ServerWorldAccess world, BlockPos pos, BlockPos pivot, StructurePlacementData placementData, Random random, int flags) private voidRuinedPortalStructurePiece.placeNetherrackBase(Random random, WorldAccess world) private voidRuinedPortalStructurePiece.placeNetherrackBottom(Random random, WorldAccess world, BlockPos pos) voidJungleTempleGenerator.CobblestoneRandomizer.setBlock(Random random, int x, int y, int z, boolean placeBlock) voidStrongholdGenerator.StoneBrickRandomizer.setBlock(Random random, int x, int y, int z, boolean placeBlock) abstract voidintDeprecated.voidShifts all pieces so they lie within[baseY, topY]vertically.private voidRuinedPortalStructurePiece.updateNetherracks(Random random, WorldAccess world, BlockPos pos) private voidRuinedPortalStructurePiece.updateNetherracksInBound(Random random, WorldAccess world) Constructors in net.minecraft.structure with parameters of type RandomModifierConstructorDescriptionChestCorridor(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
Fields in net.minecraft.structure.pool declared as RandomModifier and TypeFieldDescriptionprivate final RandomStructurePoolBasedGenerator.StructurePoolGenerator.randomMethods in net.minecraft.structure.pool with parameters of type RandomModifier and TypeMethodDescriptionbooleanEmptyPoolElement.generate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, StructureLiquidSettings liquidSettings, boolean keepJigsaws) booleanFeaturePoolElement.generate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, StructureLiquidSettings liquidSettings, boolean keepJigsaws) booleanListPoolElement.generate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, StructureLiquidSettings liquidSettings, boolean keepJigsaws) booleanSinglePoolElement.generate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, StructureLiquidSettings liquidSettings, boolean keepJigsaws) private static voidStructurePoolBasedGenerator.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, StructurePoolAliasLookup aliasLookup, StructureLiquidSettings liquidSettings) abstract booleanStructurePoolElement.generate(StructureTemplateManager structureTemplateManager, StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos pos, BlockPos pivot, BlockRotation rotation, BlockBox box, Random random, StructureLiquidSettings liquidSettings, 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) voidStructurePoolElement.method_16756(WorldAccess world, StructureTemplate.StructureBlockInfo structureBlockInfo, BlockPos pos, BlockRotation rotation, Random random, BlockBox box) Constructors in net.minecraft.structure.pool with parameters of type RandomModifierConstructorDescription(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.pool.alias
Methods in net.minecraft.structure.pool.alias with parameters of type RandomModifier and TypeMethodDescriptionvoidDirectStructurePoolAliasBinding.forEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) voidRandomGroupStructurePoolAliasBinding.forEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) voidRandomStructurePoolAliasBinding.forEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) voidStructurePoolAliasBinding.forEach(Random random, BiConsumer<RegistryKey<StructurePool>, RegistryKey<StructurePool>> aliasConsumer) -
Uses of Random in net.minecraft.structure.processor
Methods in net.minecraft.structure.processor with parameters of type RandomModifier and TypeMethodDescriptionStructureProcessorRule.getOutputNbt(Random random, @Nullable NbtCompound nbt) private BlockStateBlockAgeStructureProcessor.process(Random random, BlockState[] regularStates, BlockState[] mossyStates) private @Nullable BlockStateBlockAgeStructureProcessor.processBlocks(Random random) private @Nullable BlockStateBlockAgeStructureProcessor.processObsidian(Random random) private @Nullable BlockStateBlockAgeStructureProcessor.processSlabs(Random random) private @Nullable BlockStateBlockAgeStructureProcessor.processStairs(Random random, BlockState state) private @Nullable BlockStateBlockAgeStructureProcessor.processWalls(Random random) private static BlockStateBlockAgeStructureProcessor.randomStairProperties(Random random, Block stairs) private static BlockStateBlockAgeStructureProcessor.randomState(Random random, BlockState[] states) booleanStructureProcessorRule.test(BlockState input, BlockState currentState, BlockPos originalPos, BlockPos currentPos, BlockPos pivot, Random random) -
Uses of Random in net.minecraft.structure.rule
Methods in net.minecraft.structure.rule with parameters of type RandomModifier and TypeMethodDescriptionbooleanAlwaysTruePosRuleTest.test(BlockPos originalPos, BlockPos currentPos, BlockPos pivot, Random random) booleanAlwaysTrueRuleTest.test(BlockState state, Random random) booleanAxisAlignedLinearPosRuleTest.test(BlockPos originalPos, BlockPos currentPos, BlockPos pivot, Random random) booleanBlockMatchRuleTest.test(BlockState state, Random random) booleanBlockStateMatchRuleTest.test(BlockState state, Random random) booleanabstract booleanbooleanRandomBlockMatchRuleTest.test(BlockState state, Random random) booleanRandomBlockStateMatchRuleTest.test(BlockState state, Random random) abstract booleanRuleTest.test(BlockState state, Random random) booleanTagMatchRuleTest.test(BlockState state, Random random) -
Uses of Random in net.minecraft.structure.rule.blockentity
Methods in net.minecraft.structure.rule.blockentity with parameters of type RandomModifier and TypeMethodDescriptionAppendLootRuleBlockEntityModifier.modifyBlockEntityNbt(Random random, @Nullable NbtCompound nbt) AppendStaticRuleBlockEntityModifier.modifyBlockEntityNbt(Random random, @Nullable NbtCompound nbt) ClearRuleBlockEntityModifier.modifyBlockEntityNbt(Random random, @Nullable NbtCompound nbt) PassthroughRuleBlockEntityModifier.modifyBlockEntityNbt(Random random, @Nullable NbtCompound nbt) RuleBlockEntityModifier.modifyBlockEntityNbt(Random random, @Nullable NbtCompound nbt) -
Uses of Random in net.minecraft.util
Methods in net.minecraft.util that return RandomMethods in net.minecraft.util with parameters of type RandomModifier and TypeMethodDescriptionstatic <T> List<T> Util.copyShuffled(ObjectArrayList<T> list, Random random) Returns the contents ofstreamcopied to a list and then shuffled.static <T> List<T> Util.copyShuffled(Stream<T> stream, Random random) Returns the contents ofstreamcopied to a list and then shuffled.static <T> List<T> Util.copyShuffled(T[] array, Random random) Returns the contents ofarraycopied to a list and then shuffled.private static Stringstatic intReturns a random integer fromarray.static <T> TReturns a random item fromlist.static <T> TReturns a random item fromarray.static <T> Optional<T> Util.getRandomOrEmpty(List<T> list, Random random) Returns anOptionalof a random item fromlist, or an empty optional if the list is empty.static BlockRotationstatic List<BlockRotation> BlockRotation.randomRotationOrder(Random random) static <T> voidShuffleslist, modifying the passed list in place.static IntArrayListReturns the contents ofstreamcopied to a list and then shuffled. -
Uses of Random in net.minecraft.util.collection
Fields in net.minecraft.util.collection declared as RandomMethods in net.minecraft.util.collection with parameters of type RandomModifier and TypeMethodDescriptionDataPool.getDataOrEmpty(Random random) Pool.getOrEmpty(Random random) -
Uses of Random in net.minecraft.util.math
Fields in net.minecraft.util.math declared as RandomMethods in net.minecraft.util.math with parameters of type RandomModifier 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 throughcountrandom block positions in the given area.BlockPos.iterateRandomly(Random random, int count, BlockPos around, int range) Iterates throughcountrandom block positions in a given range around the given position.static floatMathHelper.nextBetween(Random random, float min, float max) static intMathHelper.nextBetween(Random random, int min, int max) Returns a random, uniformly distributed integer value in[min, max].static doubleMathHelper.nextDouble(Random random, double min, double max) static floatstatic floatMathHelper.nextGaussian(Random random, float mean, float deviation) static intReturns a random, uniformly distributed integer value in[min, max].static Direction.AxisDirection.Axis.pickRandomAxis(Random random) static DirectionDirection.Type.randomAxis(Random random) static UUIDMathHelper.randomUuid(Random random) static Collection<Direction> Returns a shuffled collection of all directions. -
Uses of Random in net.minecraft.util.math.floatprovider
Methods in net.minecraft.util.math.floatprovider with parameters of type RandomModifier and TypeMethodDescriptionfloatstatic floatfloatfloatfloatfloatfloat -
Uses of Random in net.minecraft.util.math.intprovider
Methods in net.minecraft.util.math.intprovider with parameters of type RandomModifier and TypeMethodDescriptionintintintintabstract intintintstatic int -
Uses of Random in net.minecraft.util.math.noise
Methods in net.minecraft.util.math.noise with parameters of type RandomModifier and TypeMethodDescriptionInterpolatedNoiseSampler.copyWithRandom(Random random) static DoublePerlinNoiseSamplerstatic DoublePerlinNoiseSamplerDoublePerlinNoiseSampler.create(Random random, DoublePerlinNoiseSampler.NoiseParameters parameters) static OctavePerlinNoiseSamplerOctavePerlinNoiseSampler.create(Random random, int offset, double firstAmplitude, double[] amplitudes) static OctavePerlinNoiseSamplerOctavePerlinNoiseSampler.create(Random random, int offset, DoubleList amplitudes) static OctavePerlinNoiseSamplerstatic OctavePerlinNoiseSamplerstatic DoublePerlinNoiseSamplerDoublePerlinNoiseSampler.createLegacy(Random random, DoublePerlinNoiseSampler.NoiseParameters parameters) Deprecated.static OctavePerlinNoiseSamplerOctavePerlinNoiseSampler.createLegacy(Random random, int offset, DoubleList amplitudes) Deprecated.static OctavePerlinNoiseSamplerOctavePerlinNoiseSampler.createLegacy(Random random, IntStream octaves) Deprecated.private static voidConstructors in net.minecraft.util.math.noise with parameters of type RandomModifierConstructorDescriptionprivateDoublePerlinNoiseSampler(Random random, DoublePerlinNoiseSampler.NoiseParameters parameters, boolean modern) InterpolatedNoiseSampler(Random random, double xzScale, double yScale, double xzFactor, double yFactor, double smearScaleMultiplier) protectedOctavePerlinNoiseSampler(Random random, com.mojang.datafixers.util.Pair<Integer, DoubleList> firstOctaveAndAmplitudes, boolean xoroshiro) privateOctaveSimplexNoiseSampler(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
Subinterfaces of Random in net.minecraft.util.math.randomClasses in net.minecraft.util.math.random that implement RandomModifier and TypeClassDescriptionclassA checked random that fails fast when it detects concurrent usage.classclassA local random, not intended to be shared across threads.private classclassDeprecated.classXoroshiro128++ based pseudo random number generator.Fields in net.minecraft.util.math.random declared as RandomModifier and TypeFieldDescriptionprivate final RandomChunkRandom.baseRandomfinal RandomGaussianGenerator.baseRandomprivate final RandomRandomSequencesState.WrappedRandom.randomFields in net.minecraft.util.math.random with type parameters of type RandomModifier and TypeFieldDescriptionprivate final LongFunction<Random> ChunkRandom.RandomProvider.providerMethods in net.minecraft.util.math.random that return RandomModifier and TypeMethodDescriptionChunkRandom.RandomProvider.create(long seed) static RandomRandom.create()Returns a random.static RandomRandom.create(long seed) Returns a random with the givenseed.static RandomRandom.createLocal()Returns a random split from the thread local random.static RandomRandom.createThreadSafe()Deprecated.This one is hard to ensure deterministic behavior compared to the non-thread-safe one.RandomSequencesState.getOrCreate(Identifier id) static RandomChunkRandom.getSlimeRandom(int chunkX, int chunkZ, long worldSeed, long scrambler) RandomSequence.getSource()CheckedRandom.split()CheckedRandom.Splitter.split(int x, int y, int z) CheckedRandom.Splitter.split(long seed) ChunkRandom.split()LocalRandom.split()Random.split()RandomSequencesState.WrappedRandom.split()RandomSplitter.split(int x, int y, int z) RandomSplitter.split(long seed) default RandomRandomSplitter.split(Identifier seed) default RandomThreadSafeRandom.split()Deprecated.Xoroshiro128PlusPlusRandom.split()Xoroshiro128PlusPlusRandom.Splitter.split(int x, int y, int z) Xoroshiro128PlusPlusRandom.Splitter.split(long seed) Constructors in net.minecraft.util.math.random with parameters of type RandomModifierConstructorDescriptionChunkRandom(Random baseRandom) GaussianGenerator(Random baseRandom) (package private)WrappedRandom(Random random) Constructor parameters in net.minecraft.util.math.random with type arguments of type Random -
Uses of Random in net.minecraft.village
Methods in net.minecraft.village with parameters of type RandomModifier and TypeMethodDescriptionCreates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.private static DyeItemprivate Collection<VillagerGossips.GossipEntry> VillagerGossips.pickGossips(Random random, int count) voidVillagerGossips.shareGossipFrom(VillagerGossips from, Random random, int count) -
Uses of Random in net.minecraft.village.raid
Fields in net.minecraft.village.raid declared as RandomMethods in net.minecraft.village.raid with parameters of type RandomModifier and TypeMethodDescriptionprivate intRaid.getBonusCount(Raid.Member member, Random random, int wave, LocalDifficulty localDifficulty, boolean extra) -
Uses of Random in net.minecraft.world
Fields in net.minecraft.world declared as RandomModifier and TypeFieldDescriptionprivate final RandomChunkRegion.randomprivate final RandomWanderingTraderManager.randomfinal RandomWorld.randomprivate final RandomWorld.threadSafeRandomDeprecated.Methods in net.minecraft.world that return RandomModifier and TypeMethodDescriptionChunkRegion.getRandom()World.getRandom()WorldAccess.getRandom()Methods in net.minecraft.world with parameters of type RandomModifier and TypeMethodDescriptionprivate static Optional<SpawnSettings.SpawnEntry> SpawnHelper.pickRandomSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos) static voidSpawnHelper.populateEntities(ServerWorldAccess world, RegistryEntry<Biome> biomeEntry, ChunkPos chunkPos, Random random) -
Uses of Random in net.minecraft.world.biome
Methods in net.minecraft.world.biome with parameters of type Random -
Uses of Random in net.minecraft.world.biome.source
Methods in net.minecraft.world.biome.source with parameters of type RandomModifier 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
Fields in net.minecraft.world.explosion declared as Random -
Uses of Random in net.minecraft.world.gen.carver
Methods in net.minecraft.world.gen.carver with parameters of type RandomModifier and TypeMethodDescriptionabstract booleanCarver.carve(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) booleanCaveCarver.carve(CarverContext carverContext, CaveCarverConfig caveCarverConfig, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> function, Random random, AquiferSampler aquiferSampler, ChunkPos chunkPos, CarvingMask carvingMask) booleanConfiguredCarver.carve(CarverContext context, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) booleanRavineCarver.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 floatCaveCarver.getTunnelSystemWidth(Random random) protected floatNetherCaveCarver.getTunnelSystemWidth(Random random) private doubleRavineCarver.getVerticalScale(RavineCarverConfig config, Random random, double pitch, float branchCount, float branchIndex) abstract booleanCarver.shouldCarve(C config, Random random) booleanCaveCarver.shouldCarve(CaveCarverConfig caveCarverConfig, Random random) booleanConfiguredCarver.shouldCarve(Random random) booleanRavineCarver.shouldCarve(RavineCarverConfig ravineCarverConfig, Random random) -
Uses of Random in net.minecraft.world.gen.chunk.placement
Methods in net.minecraft.world.gen.chunk.placement with parameters of type Random -
Uses of Random in net.minecraft.world.gen.feature
Methods in net.minecraft.world.gen.feature with parameters of type RandomModifier and TypeMethodDescriptionprivate voidBlockPileFeature.addPileBlock(WorldAccess world, BlockPos pos, Random random, BlockPileFeatureConfig config) private booleanBlockPileFeature.canPlace(WorldAccess world, BlockPos pos, Random random) private static floatDripstoneClusterFeature.clampedGaussian(Random random, float min, float max, float mean, float deviation) private static LargeDripstoneFeature.DripstoneGeneratorLargeDripstoneFeature.createGenerator(BlockPos pos, boolean isStalagmite, Random random, int scale, FloatProvider bluntness, FloatProvider heightScale) booleanConfiguredFeature.generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) private voidDripstoneClusterFeature.generate(StructureWorldAccess world, Random random, BlockPos pos, int localX, int localZ, float wetness, double dripstoneChance, int height, float density, DripstoneClusterFeatureConfig config) (package private) voidLargeDripstoneFeature.DripstoneGenerator.generate(StructureWorldAccess world, Random random, LargeDripstoneFeature.WindModifier wind) static booleanMultifaceGrowthFeature.generate(StructureWorldAccess world, BlockPos pos, BlockState state, MultifaceGrowthFeatureConfig config, Random random, List<Direction> directions) private booleanPlacedFeature.generate(FeaturePlacementContext context, Random random, BlockPos pos) booleanPlacedFeature.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.booleanRandomFeatureEntry.generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) private booleanTreeFeature.generate(StructureWorldAccess world, Random random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootPlacerReplacer, BiConsumer<BlockPos, BlockState> trunkPlacerReplacer, FoliagePlacer.BlockPlacer blockPlacer, TreeFeatureConfig config) protected voidHugeBrownMushroomFeature.generateCap(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected abstract voidHugeMushroomFeature.generateCap(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected voidHugeRedMushroomFeature.generateCap(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected booleanCoralClawFeature.generateCoral(WorldAccess world, Random random, BlockPos pos, BlockState state) protected abstract booleanCoralFeature.generateCoral(WorldAccess world, Random random, BlockPos pos, BlockState state) protected booleanCoralMushroomFeature.generateCoral(WorldAccess world, Random random, BlockPos pos, BlockState state) protected booleanCoralTreeFeature.generateCoral(WorldAccess world, Random random, BlockPos pos, BlockState state) protected booleanCoralFeature.generateCoralPiece(WorldAccess world, Random random, BlockPos pos, BlockState state) private static voidSmallDripstoneFeature.generateDripstoneBlocks(WorldAccess world, Random random, BlockPos pos, SmallDripstoneFeatureConfig config) private static voidRootSystemFeature.generateHangingRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, BlockPos pos, BlockPos.Mutable mutablePos) private voidHugeFungusFeature.generateHat(StructureWorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos pos, int hatHeight, boolean thickStem) booleanFeature.generateIfValid(FC config, StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) private voidWeepingVinesFeature.generateNetherWartBlocksInArea(WorldAccess world, Random random, BlockPos pos) private static voidRootSystemFeature.generateRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, int x, int z, BlockPos.Mutable mutablePos) private static voidRootSystemFeature.generateRootsColumn(BlockPos pos, int maxY, StructureWorldAccess world, RootSystemFeatureConfig config, Random random) private voidEndSpikeFeature.generateSpike(ServerWorldAccess world, Random random, EndSpikeFeatureConfig config, EndSpikeFeature.Spike spike) private voidHugeFungusFeature.generateStem(StructureWorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos pos, int stemHeight, boolean thickStem) protected voidHugeMushroomFeature.generateStem(WorldAccess world, Random random, BlockPos pos, HugeMushroomFeatureConfig config, int height, BlockPos.Mutable mutablePos) private static booleanRootSystemFeature.generateTreeAndRoots(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos.Mutable mutablePos, BlockPos pos) booleanPlacedFeature.generateUnregistered(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) protected voidVegetationPatchFeature.generateVegetation(FeatureContext<VegetationPatchFeatureConfig> context, StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, Set<BlockPos> positions, int radiusX, int radiusZ) protected booleanVegetationPatchFeature.generateVegetationFeature(StructureWorldAccess world, VegetationPatchFeatureConfig config, ChunkGenerator generator, Random random, BlockPos pos) protected booleanWaterloggedVegetationPatchFeature.generateVegetationFeature(StructureWorldAccess world, VegetationPatchFeatureConfig config, ChunkGenerator generator, Random random, BlockPos pos) protected booleanOreFeature.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 voidTwistingVinesFeature.generateVineColumn(WorldAccess world, Random random, BlockPos.Mutable pos, int maxLength, int minAge, int maxAge) static voidWeepingVinesFeature.generateVineColumn(WorldAccess world, Random random, BlockPos.Mutable pos, int length, int minAge, int maxAge) private static voidHugeFungusFeature.generateVines(BlockPos pos, WorldAccess world, Random random) private voidWeepingVinesFeature.generateVinesInArea(WorldAccess world, Random random, BlockPos pos) SmallDripstoneFeature.getDirection(WorldAccess world, BlockPos pos, Random random) private intDripstoneClusterFeature.getHeight(Random random, int localX, int localZ, float density, int height, DripstoneClusterFeatureConfig config) protected intprivate EntityType<?> DungeonFeature.getMobSpawnerEntity(Random random) private intprivate intIcebergFeature.method_13419(Random random, int y, int height, int factor) private doubleIcebergFeature.method_13421(int x, int z, BlockPos pos, int int2, Random random) private intIcebergFeature.method_13427(Random random, int y, int height, int factor) private voidIcebergFeature.method_13428(Random random, WorldAccess world, int int2, int int3, BlockPos pos, boolean bool, int int4, double double2, int int5) private voidIcebergFeature.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 booleanDiskFeature.placeBlock(DiskFeatureConfig config, StructureWorldAccess world, Random random, int topY, int bottomY, BlockPos.Mutable pos) private voidIcebergFeature.placeBlockOrSnow(BlockPos pos, WorldAccess world, Random random, int heightRemaining, int height, boolean lessSnow, boolean placeSnow, BlockState state) protected booleanVegetationPatchFeature.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 voidHugeFungusFeature.placeHatBlock(WorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos.Mutable pos, float decorationChance, float generationChance, float vineChance) private voidHugeFungusFeature.placeWithOptionalVines(WorldAccess world, Random random, BlockPos pos, BlockState state, boolean vines) private voidScatteredOreFeature.setPos(BlockPos.Mutable mutable, Random random, BlockPos origin, int spread) protected static booleanOreFeature.shouldNotDiscard(Random random, float chance) static booleanOreFeature.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 booleanBasaltPillarFeature.stopOrPlaceBasalt(WorldAccess world, Random random, BlockPos pos) private voidBasaltPillarFeature.tryPlaceBasalt(WorldAccess world, Random random, BlockPos pos) Constructors in net.minecraft.world.gen.feature with parameters of type RandomModifierConstructorDescription(package private)WindModifier(int y, Random random, FloatProvider wind) -
Uses of Random in net.minecraft.world.gen.feature.util
Fields in net.minecraft.world.gen.feature.util declared as RandomMethods in net.minecraft.world.gen.feature.util that return RandomConstructors in net.minecraft.world.gen.feature.util with parameters of type RandomModifierConstructorDescriptionFeatureContext(Optional<ConfiguredFeature<?, ?>> feature, StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos origin, FC config) -
Uses of Random in net.minecraft.world.gen.foliage
Methods in net.minecraft.world.gen.foliage with parameters of type RandomModifier and TypeMethodDescriptionprotected voidAcaciaFoliagePlacer.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 voidBlobFoliagePlacer.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 voidBushFoliagePlacer.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 voidCherryFoliagePlacer.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 voidDarkOakFoliagePlacer.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.voidFoliagePlacer.generate(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius) protected abstract voidFoliagePlacer.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 voidJungleFoliagePlacer.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 voidLargeOakFoliagePlacer.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 voidMegaPineFoliagePlacer.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 voidPineFoliagePlacer.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 voidRandomSpreadFoliagePlacer.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 voidSpruceFoliagePlacer.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 voidFoliagePlacer.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 voidFoliagePlacer.generateSquareWithHangingLeaves(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk, float hangingLeavesChance, float hangingLeavesExtensionChance) intAcaciaFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intBlobFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intCherryFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intDarkOakFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) abstract intFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intJungleFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intMegaPineFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intPineFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intRandomSpreadFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) intSpruceFoliagePlacer.getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config) private intFoliagePlacer.getRandomOffset(Random random) intFoliagePlacer.getRandomRadius(Random random, int baseHeight) intPineFoliagePlacer.getRandomRadius(Random random, int baseHeight) protected booleanAcaciaFoliagePlacer.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 booleanBlobFoliagePlacer.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 booleanBushFoliagePlacer.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 booleanCherryFoliagePlacer.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 booleanDarkOakFoliagePlacer.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 booleanFoliagePlacer.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 booleanJungleFoliagePlacer.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 booleanLargeOakFoliagePlacer.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 booleanMegaPineFoliagePlacer.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 booleanPineFoliagePlacer.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 booleanRandomSpreadFoliagePlacer.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 booleanSpruceFoliagePlacer.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 booleanDarkOakFoliagePlacer.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 booleanFoliagePlacer.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 booleanFoliagePlacer.placeFoliageBlock(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, float chance, BlockPos origin, BlockPos.Mutable pos) protected static booleanFoliagePlacer.placeFoliageBlock(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos pos) -
Uses of Random in net.minecraft.world.gen.heightprovider
Methods in net.minecraft.world.gen.heightprovider with parameters of type RandomModifier and TypeMethodDescriptionintBiasedToBottomHeightProvider.get(Random random, HeightContext context) intConstantHeightProvider.get(Random random, HeightContext context) abstract intHeightProvider.get(Random random, HeightContext context) intTrapezoidHeightProvider.get(Random random, HeightContext context) intUniformHeightProvider.get(Random random, HeightContext context) intVeryBiasedToBottomHeightProvider.get(Random random, HeightContext context) intWeightedListHeightProvider.get(Random random, HeightContext context) -
Uses of Random in net.minecraft.world.gen.placementmodifier
Methods in net.minecraft.world.gen.placementmodifier with parameters of type RandomModifier and TypeMethodDescriptionprotected abstract intprotected intprotected intprotected intAbstractConditionalPlacementModifier.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.FixedPlacementModifier.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 booleanAbstractConditionalPlacementModifier.shouldPlace(FeaturePlacementContext context, Random random, BlockPos pos) protected booleanBiomePlacementModifier.shouldPlace(FeaturePlacementContext context, Random random, BlockPos pos) protected booleanBlockFilterPlacementModifier.shouldPlace(FeaturePlacementContext context, Random random, BlockPos pos) protected booleanRarityFilterPlacementModifier.shouldPlace(FeaturePlacementContext context, Random random, BlockPos pos) protected booleanSurfaceThresholdFilterPlacementModifier.shouldPlace(FeaturePlacementContext context, Random random, BlockPos pos) protected booleanSurfaceWaterDepthFilterPlacementModifier.shouldPlace(FeaturePlacementContext context, Random random, BlockPos pos) -
Uses of Random in net.minecraft.world.gen.root
Methods in net.minecraft.world.gen.root with parameters of type RandomModifier and TypeMethodDescriptionprivate booleanMangroveRootPlacer.canGrow(TestableWorld world, Random random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) booleanMangroveRootPlacer.generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) abstract booleanRootPlacer.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 voidMangroveRootPlacer.placeRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected voidRootPlacer.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
Methods in net.minecraft.world.gen.stateprovider with parameters of type RandomModifier and TypeMethodDescriptionabstract BlockStateReturns 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
Methods in net.minecraft.world.gen.structure with parameters of type RandomModifier and TypeMethodDescriptionprivate static intRuinedPortalStructure.choosePlacementHeight(Random random, int min, int max) private static intRuinedPortalStructure.getFloorHeight(Random random, ChunkGenerator chunkGenerator, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, boolean airPocket, int height, int blockCountY, BlockBox box, HeightLimitView world, NoiseConfig noiseConfig) voidDesertPyramidStructure.postPlace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces) voidStructure.postPlace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces) voidWoodlandMansionStructure.postPlace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces) -
Uses of Random in net.minecraft.world.gen.surfacebuilder
Methods in net.minecraft.world.gen.surfacebuilder with parameters of type RandomModifier and TypeMethodDescriptionprivate static voidSurfaceBuilder.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
Fields in net.minecraft.world.gen.treedecorator declared as RandomMethods in net.minecraft.world.gen.treedecorator that return RandomConstructors in net.minecraft.world.gen.treedecorator with parameters of type RandomModifierConstructorDescriptionGenerator(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
Methods in net.minecraft.world.gen.trunk with parameters of type RandomModifier 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.TreeNodeCherryTrunkPlacer.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 voidUpwardsBranchingTrunkPlacer.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 booleanTrunkPlacer.getAndSetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected booleanTrunkPlacer.getAndSetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config, Function<BlockState, BlockState> function) intprivate voidLargeOakTrunkPlacer.makeBranches(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer.BranchPosition> branchPositions, TreeFeatureConfig config) private booleanLargeOakTrunkPlacer.makeOrCheckBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config) private voidGiantTrunkPlacer.setLog(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos.Mutable tmpPos, TreeFeatureConfig config, BlockPos startPos, int dx, int dy, int dz) protected static voidTrunkPlacer.setToDirt(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) protected voidTrunkPlacer.trySetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos.Mutable pos, TreeFeatureConfig config) -
Uses of Random in net.minecraft.world.poi
Methods in net.minecraft.world.poi with parameters of type RandomModifier 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
Methods in net.minecraft.world.spawner with parameters of type RandomModifier and TypeMethodDescriptionprivate booleanPatrolSpawner.spawnPillager(ServerWorld world, BlockPos pos, Random random, boolean captain)