Class EntityField

java.lang.Object
mc.core.model.base.EntityField
All Implemented Interfaces:
Serializable, IEntityField, mc.core.system.util.misc.IParameter

public class EntityField extends Object implements IEntityField, Serializable
Reference to construct search filters or labels for entity fields.
See Also:
  • Constructor Details

    • EntityField

      public EntityField()
      This constructor is not part of the public API. It is possibly removed from core anytime.
    • EntityField

      public EntityField(Class<? extends IBaseEntity> entityClass, String name)
      Parameters:
      entityClass - Class of the entity that the field belongs to.
      name - Name of field, must equal name of Java property in most cases.
    • EntityField

      public EntityField(Class<? extends IBaseEntity> entityClass, IEntityField mappedField)
      Parameters:
      entityClass - Class of the entity that the field belongs to.
      mappedField - Field of base class the property is mapped to.
  • Method Details

    • getEntityClass

      public Class<? extends IBaseEntity> getEntityClass()
      Returns:
      Class of the entity that the field belongs to.
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEntityClassForField

      public static Class<? extends IBaseEntity> getEntityClassForField(IEntityField field)
      Determines entity class for passed field.
      Returns:
      Class of the entity that the field belongs to.