Interface PigVariant
- All Known Implementing Classes:
PigVariantImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NotNull Codec
<RegistryKey<PigVariant>> static final RegistryKey
<PigVariant> static final NetworkBuffer.Type
<RegistryKey<PigVariant>> static final @NotNull Codec
<PigVariant> static final RegistryKey
<PigVariant> static final RegistryKey
<PigVariant> -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.key.Key
assetId()
static @NotNull PigVariant
create
(@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.Model
model()
-
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()
-