Interface Component

All Superinterfaces:
Serializable

public interface Component extends Serializable
An ECB Component. Components hold data for entities. Each component should only hold data for ONE SPECIFIC ATTRIBUTE of an entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Component
    Creates a copy of this component.
  • Method Details

    • copy

      default Component copy()
      Creates a copy of this component. Returns this instance by default, but is recommended to be overridden if the component contains information critical to the application's state, like positions of enemies, player items or score.
      Returns:
      copy of this component