Interface VariantIntHolder
- All Superinterfaces:
VariantHolder<VariantIntHolder.BuiltIn>
- All Known Implementing Classes:
CatEntity,FrogEntity,WolfEntity
Extension to
VariantHolder to make it easier to implement on mobs that use bedrock's metadata system to set their variants, which are quite common.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe enum constants should be ordered in the order of their bedrock network ID. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidShould set the variant for bedrock.voidsetBedrockVariantId(int bedrockId) Should set the variant on bedrock's metadata.Methods inherited from interface org.geysermc.geyser.entity.type.living.animal.VariantHolder
getSession, setVariant, setVariantFromJavaId, variantRegistry
-
Method Details
-
setBedrockVariant
Description copied from interface:VariantHolderShould set the variant for bedrock.- Specified by:
setBedrockVariantin interfaceVariantHolder<VariantIntHolder.BuiltIn>
-
setBedrockVariantId
void setBedrockVariantId(int bedrockId) Should set the variant on bedrock's metadata. The bedrock ID has already been checked and is always valid.
-