Package net.minecraft.world.entity
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 cyn
intermediary net/minecraft/class_5576
named net/minecraft/world/entity/EntityHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when an entity is newly created.void
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
updateLoadStatus
(T entity)
-
Method Details
-
create
Called when an entity is newly created.- Parameters:
entity
- the created entity- Mappings:
Namespace Name Mixin selector official g
Lcyn;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
Called when an entity is permanently destroyed.- Parameters:
entity
- the destroyed entity- Mappings:
Namespace Name Mixin selector official f
Lcyn;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
Registers an entity for ticking.- Parameters:
entity
- the entity to tick- Mappings:
Namespace Name Mixin selector official e
Lcyn;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
Unregisters an entity for ticking.- Parameters:
entity
- the ticked entity- Mappings:
Namespace Name Mixin selector official d
Lcyn;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
Registers an entity for tracking.- Parameters:
entity
- the entity to track- Mappings:
Namespace Name Mixin selector official c
Lcyn;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
Unregisters an entity for tracking.- Parameters:
entity
- the tracked entity- Mappings:
Namespace Name Mixin selector official b
Lcyn;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
- Mappings:
Namespace Name Mixin selector official a
Lcyn;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
-