Interface PigVariant
- All Known Implementing Classes:
PigVariantImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NotNull Codec<DynamicRegistry.Key<PigVariant>> static final DynamicRegistry.Key<PigVariant> static final NetworkBuffer.Type<DynamicRegistry.Key<PigVariant>> static final @NotNull Codec<PigVariant> static final DynamicRegistry.Key<PigVariant> static final DynamicRegistry.Key<PigVariant> -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.key.KeyassetId()static @NotNull PigVariantcreate(@NotNull PigVariant.Model model, @NotNull net.kyori.adventure.key.Key assetId) static DynamicRegistry<PigVariant> Creates a new instance of the "minecraft:pig_variant" registry containing the vanilla contents.@NotNull PigVariant.Modelmodel()
-
Field Details
-
REGISTRY_CODEC
-
NETWORK_TYPE
-
CODEC
-
WARM
-
COLD
-
TEMPERATE
-
-
Method Details
-
createDefaultRegistry
Creates a new instance of the "minecraft:pig_variant" registry containing the vanilla contents.- See Also:
-
create
@NotNull static @NotNull PigVariant create(@NotNull @NotNull PigVariant.Model model, @NotNull @NotNull net.kyori.adventure.key.Key assetId) -
model
-
assetId
@NotNull @NotNull net.kyori.adventure.key.Key assetId()
-