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 pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) static Optional
<Holder.Reference<ChickenVariant>> ChickenVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pSpawnContext) static Optional
<Holder.Reference<CowVariant>> CowVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) static Optional
<Holder.Reference<PigVariant>> PigVariants.selectVariantToSpawn
(RandomSource pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) -
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 pSource, RegistryAccess pRegistryAccess, SpawnContext pContext) -
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 pRandom, RegistryAccess pRegistryAccess, SpawnContext pContext) -
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 pLevel, BlockPos pPos) 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.