Interface PigVariantRegistryEntry.Builder
- All Superinterfaces:
PigVariantRegistryEntry, RegistryBuilder<Pig.Variant>
- Enclosing interface:
PigVariantRegistryEntry
@Experimental
@NonExtendable
public static interface PigVariantRegistryEntry.Builder
extends PigVariantRegistryEntry, RegistryBuilder<Pig.Variant>
A mutable builder for the
PigVariantRegistryEntry plugins may change in applicable registry events.
The following values are required for each builder:
-
Nested Class Summary
Nested classes/interfaces inherited from interface PigVariantRegistryEntry
PigVariantRegistryEntry.Builder, PigVariantRegistryEntry.Model -
Method Summary
Modifier and TypeMethodDescriptionbabyClientTextureAsset(ClientTextureAsset babyClientTextureAsset) Sets the client texture asset of the baby pig variant, which is the location of the texture to use.clientTextureAsset(ClientTextureAsset clientTextureAsset) Sets the client texture asset of the pig variant, which is the location of the texture to use.Sets the model to use for this pig variant.Methods inherited from interface PigVariantRegistryEntry
babyClientTextureAsset, clientTextureAsset, model
-
Method Details
-
clientTextureAsset
@Contract(value="_ -> this", mutates="this") PigVariantRegistryEntry.Builder clientTextureAsset(ClientTextureAsset clientTextureAsset) Sets the client texture asset of the pig variant, which is the location of the texture to use.- Parameters:
clientTextureAsset- the client texture asset.- Returns:
- this builder instance.
- See Also:
-
babyClientTextureAsset
@Contract(value="_ -> this", mutates="this") PigVariantRegistryEntry.Builder babyClientTextureAsset(ClientTextureAsset babyClientTextureAsset) Sets the client texture asset of the baby pig variant, which is the location of the texture to use.- Parameters:
babyClientTextureAsset- the baby client texture asset.- Returns:
- this builder instance.
- See Also:
-
model
@Contract(value="_ -> this", mutates="this") PigVariantRegistryEntry.Builder model(PigVariantRegistryEntry.Model model) Sets the model to use for this pig variant.- Parameters:
model- the model.- Returns:
- this builder instance.
- See Also:
-