Interface BoundEntityVariant

All Superinterfaces:
EntityVariant

public sealed interface BoundEntityVariant extends 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 Details

    • getInjection

      EntityInjection<?,?> getInjection()
      Returns the EntityInjection this 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:

      bestium.<entity_key_namespace>.<entity_key_value>.<variant_id>
      For example:
      bestium.my_plugin.capybara.warm

      The base of this string is derived from EntityInjection.getModelPrefix(), which builds the prefix from the entity's Key.

      Returns:
      the model name string for this variant
      See Also: