Package io.papermc.paper.registry.data
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 io.papermc.paper.registry.data.PigVariantRegistryEntry
PigVariantRegistryEntry.Builder, PigVariantRegistryEntry.Model
-
Method Summary
Modifier and TypeMethodDescriptionclientTextureAsset
(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 io.papermc.paper.registry.data.PigVariantRegistryEntry
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:
-
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:
-