Class CowSoundVariants
java.lang.Object
net.minecraft.world.entity.animal.cow.CowSoundVariants
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceKey<CowSoundVariant> static final ResourceKey<CowSoundVariant> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbootstrap(BootstrapContext<CowSoundVariant> context) private static ResourceKey<CowSoundVariant> createKey(CowSoundVariants.SoundSet cowSoundVariant) static Holder<CowSoundVariant> pickRandomSoundVariant(RegistryAccess registryAccess, RandomSource random) private static voidregister(BootstrapContext<CowSoundVariant> context, ResourceKey<CowSoundVariant> key, CowSoundVariants.SoundSet CowSoundVariant)
-
Field Details
-
CLASSIC
-
MOODY
-
-
Constructor Details
-
CowSoundVariants
public CowSoundVariants()
-
-
Method Details
-
createKey
-
bootstrap
-
register
private static void register(BootstrapContext<CowSoundVariant> context, ResourceKey<CowSoundVariant> key, CowSoundVariants.SoundSet CowSoundVariant) -
pickRandomSoundVariant
public static Holder<CowSoundVariant> pickRandomSoundVariant(RegistryAccess registryAccess, RandomSource random)
-