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