Uses of Record Class
net.minecraft.world.entity.variant.SpawnContext
Packages that use SpawnContext
Package
Description
-
Uses of SpawnContext in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal that return types with arguments of type SpawnContextModifier and TypeMethodDescriptionCatVariant.selectors()
ChickenVariant.selectors()
CowVariant.selectors()
PigVariant.selectors()
Methods in net.minecraft.world.entity.animal with parameters of type SpawnContextModifier and TypeMethodDescriptionstatic Optional
<Holder.Reference<CatVariant>> CatVariants.selectVariantToSpawn
(RandomSource p_399848_, RegistryAccess p_399748_, SpawnContext p_399931_) static Optional
<Holder.Reference<ChickenVariant>> ChickenVariants.selectVariantToSpawn
(RandomSource p_401914_, RegistryAccess p_401933_, SpawnContext p_401763_) static Optional
<Holder.Reference<CowVariant>> CowVariants.selectVariantToSpawn
(RandomSource p_401128_, RegistryAccess p_401407_, SpawnContext p_401187_) static Optional
<Holder.Reference<PigVariant>> PigVariants.selectVariantToSpawn
(RandomSource p_394492_, RegistryAccess p_394556_, SpawnContext p_400010_) -
Uses of SpawnContext in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog that return types with arguments of type SpawnContextMethods in net.minecraft.world.entity.animal.frog with parameters of type SpawnContextModifier and TypeMethodDescriptionstatic Optional
<Holder.Reference<FrogVariant>> FrogVariants.selectVariantToSpawn
(RandomSource p_399783_, RegistryAccess p_400102_, SpawnContext p_399936_) -
Uses of SpawnContext in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf that return types with arguments of type SpawnContextMethods in net.minecraft.world.entity.animal.wolf with parameters of type SpawnContextModifier and TypeMethodDescriptionstatic Optional
<? extends Holder<WolfVariant>> WolfVariants.selectVariantToSpawn
(RandomSource p_406318_, RegistryAccess p_406292_, SpawnContext p_406294_) -
Uses of SpawnContext in net.minecraft.world.entity.variant
Fields in net.minecraft.world.entity.variant with type parameters of type SpawnContextModifier and TypeFieldDescriptionprivate final List
<PriorityProvider.Selector<SpawnContext, SpawnCondition>> SpawnPrioritySelectors.selectors
The field for theselectors
record component.Methods in net.minecraft.world.entity.variant that return SpawnContextModifier and TypeMethodDescriptionstatic SpawnContext
SpawnContext.create
(ServerLevelAccessor p_400282_, BlockPos p_399599_) Methods in net.minecraft.world.entity.variant that return types with arguments of type SpawnContextModifier and TypeMethodDescriptionSpawnPrioritySelectors.selectors()
Returns the value of theselectors
record component.Methods in net.minecraft.world.entity.variant with parameters of type SpawnContextModifier and TypeMethodDescriptionboolean
BiomeCheck.test
(SpawnContext p_400182_) boolean
MoonBrightnessCheck.test
(SpawnContext p_400287_) boolean
StructureCheck.test
(SpawnContext p_400042_) Constructor parameters in net.minecraft.world.entity.variant with type arguments of type SpawnContextModifierConstructorDescriptionCreates an instance of aSpawnPrioritySelectors
record class.