Class DefaultEntityDelegator

java.lang.Object
com.mewna.catnip.entity.delegate.DefaultEntityDelegator
All Implemented Interfaces:
EntityDelegator

public final class DefaultEntityDelegator extends Object implements EntityDelegator
Since:
2/13/20.
Author:
amy
  • Constructor Details

    • DefaultEntityDelegator

      public DefaultEntityDelegator()
  • Method Details

    • delegate

      public <T, R extends T> R delegate(@Nonnull Class<T> type, @Nonnull T data)
      Description copied from interface: EntityDelegator
      Delegates the provided entity.
      Specified by:
      delegate in interface EntityDelegator
      Type Parameters:
      T - The type of entity being delegated.
      R - The entity delegate. Must be a subclass of T.
      Parameters:
      type - The type of the entity being delegated.
      data - The entity to delegate.
      Returns:
      The delegated entity.