Interface EntityHandler<T>

Type Parameters:
T - the type of entity handled
All Known Implementing Classes:
ClientWorld.ClientEntityHandler, ServerWorld.ServerEntityHandler

public interface EntityHandler<T>
The entity handler exposes world's entity handling to entity managers.

Each handler is usually associated with a World.

Mappings:
Namespace Name
named net/minecraft/world/entity/EntityHandler
intermediary net/minecraft/class_5576
official ecf
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(T entity)
    Called when an entity is newly created.
    void
    destroy(T entity)
    Called when an entity is permanently destroyed.
    void
    startTicking(T entity)
    Registers an entity for ticking.
    void
    startTracking(T entity)
    Registers an entity for tracking.
    void
    stopTicking(T entity)
    Unregisters an entity for ticking.
    void
    stopTracking(T entity)
    Unregisters an entity for tracking.
    void
     
  • Method Details

    • create

      void create(T entity)
      Called when an entity is newly created.
      Parameters:
      entity - the created entity
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/entity/EntityHandler;create(Ljava/lang/Object;)V
      intermediary method_31802 Lnet/minecraft/class_5576;method_31802(Ljava/lang/Object;)V
      official g Lecf;g(Ljava/lang/Object;)V
    • destroy

      void destroy(T entity)
      Called when an entity is permanently destroyed.
      Parameters:
      entity - the destroyed entity
      Mappings:
      Namespace Name Mixin selector
      named destroy Lnet/minecraft/world/entity/EntityHandler;destroy(Ljava/lang/Object;)V
      intermediary method_31801 Lnet/minecraft/class_5576;method_31801(Ljava/lang/Object;)V
      official f Lecf;f(Ljava/lang/Object;)V
    • startTicking

      void startTicking(T entity)
      Registers an entity for ticking.
      Parameters:
      entity - the entity to tick
      Mappings:
      Namespace Name Mixin selector
      named startTicking Lnet/minecraft/world/entity/EntityHandler;startTicking(Ljava/lang/Object;)V
      intermediary method_31800 Lnet/minecraft/class_5576;method_31800(Ljava/lang/Object;)V
      official e Lecf;e(Ljava/lang/Object;)V
    • stopTicking

      void stopTicking(T entity)
      Unregisters an entity for ticking.
      Parameters:
      entity - the ticked entity
      Mappings:
      Namespace Name Mixin selector
      named stopTicking Lnet/minecraft/world/entity/EntityHandler;stopTicking(Ljava/lang/Object;)V
      intermediary method_31799 Lnet/minecraft/class_5576;method_31799(Ljava/lang/Object;)V
      official d Lecf;d(Ljava/lang/Object;)V
    • startTracking

      void startTracking(T entity)
      Registers an entity for tracking.
      Parameters:
      entity - the entity to track
      Mappings:
      Namespace Name Mixin selector
      named startTracking Lnet/minecraft/world/entity/EntityHandler;startTracking(Ljava/lang/Object;)V
      intermediary method_31798 Lnet/minecraft/class_5576;method_31798(Ljava/lang/Object;)V
      official c Lecf;c(Ljava/lang/Object;)V
    • stopTracking

      void stopTracking(T entity)
      Unregisters an entity for tracking.
      Parameters:
      entity - the tracked entity
      Mappings:
      Namespace Name Mixin selector
      named stopTracking Lnet/minecraft/world/entity/EntityHandler;stopTracking(Ljava/lang/Object;)V
      intermediary method_31797 Lnet/minecraft/class_5576;method_31797(Ljava/lang/Object;)V
      official b Lecf;b(Ljava/lang/Object;)V
    • updateLoadStatus

      void updateLoadStatus(T entity)
      Mappings:
      Namespace Name Mixin selector
      named updateLoadStatus Lnet/minecraft/world/entity/EntityHandler;updateLoadStatus(Ljava/lang/Object;)V
      intermediary method_43029 Lnet/minecraft/class_5576;method_43029(Ljava/lang/Object;)V
      official a Lecf;a(Ljava/lang/Object;)V