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
official dji
intermediary net/minecraft/class_5576
named net/minecraft/world/entity/EntityHandler
  • 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
      official g Ldji;g(Ljava/lang/Object;)V
      intermediary method_31802 Lnet/minecraft/class_5576;method_31802(Ljava/lang/Object;)V
      named create Lnet/minecraft/world/entity/EntityHandler;create(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
      official f Ldji;f(Ljava/lang/Object;)V
      intermediary method_31801 Lnet/minecraft/class_5576;method_31801(Ljava/lang/Object;)V
      named destroy Lnet/minecraft/world/entity/EntityHandler;destroy(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
      official e Ldji;e(Ljava/lang/Object;)V
      intermediary method_31800 Lnet/minecraft/class_5576;method_31800(Ljava/lang/Object;)V
      named startTicking Lnet/minecraft/world/entity/EntityHandler;startTicking(Ljava/lang/Object;)V
    • stopTicking

      void stopTicking(T entity)
      Unregisters an entity for ticking.
      Parameters:
      entity - the ticked entity
      Mappings:
      Namespace Name Mixin selector
      official d Ldji;d(Ljava/lang/Object;)V
      intermediary method_31799 Lnet/minecraft/class_5576;method_31799(Ljava/lang/Object;)V
      named stopTicking Lnet/minecraft/world/entity/EntityHandler;stopTicking(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
      official c Ldji;c(Ljava/lang/Object;)V
      intermediary method_31798 Lnet/minecraft/class_5576;method_31798(Ljava/lang/Object;)V
      named startTracking Lnet/minecraft/world/entity/EntityHandler;startTracking(Ljava/lang/Object;)V
    • stopTracking

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

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