Interface BoundEntityVariant
- All Superinterfaces:
EntityVariant
Represents an
EntityVariant that is bound to an EntityInjection.
A bound variant is created internally when an UnboundEntityVariant is registered
to an injection (e.g., via EntityInjection.Builder.addVariant(UnboundEntityVariant)).
For more information about entity variants, see EntityVariant and UnboundEntityVariant.
-
Method Summary
Modifier and TypeMethodDescriptionEntityInjection<?, ?> Returns theEntityInjectionthis variant is bound to.Returns the full model name of this bound variant.Methods inherited from interface cz.jeme.bestium.api.inject.variant.EntityVariant
getId, getModelUrl
-
Method Details
-
getInjection
EntityInjection<?,?> getInjection()Returns theEntityInjectionthis variant is bound to.- Returns:
- the injection instance
-
getModelName
String getModelName()Returns the full model name of this bound variant.The model name is a fully-qualified string following the format:
For example:bestium.<entity_key_namespace>.<entity_key_value>.<variant_id>bestium.my_plugin.capybara.warmThe base of this string is derived from
EntityInjection.getModelPrefix(), which builds the prefix from the entity'sKey.- Returns:
- the model name string for this variant
- See Also:
-