yarn/mappings/net/minecraft/world/entity/EntityLookup.mapping

31 lines
1.3 KiB
Plaintext

CLASS net/minecraft/class_5577 net/minecraft/world/entity/EntityLookup
COMMENT An interface for looking up entities.
COMMENT
COMMENT <p>It supports iteration, accessing by ID, or by intersection with boxes.
COMMENT
COMMENT @param <T> the type of indexed entity
METHOD method_31803 iterate ()Ljava/lang/Iterable;
COMMENT Returns an unmodifiable iterable over all entities in this lookup.
METHOD method_31804 get (I)Lnet/minecraft/class_5568;
COMMENT Returns an entity by its network ID, or {@code null} if none is found.
ARG 1 id
METHOD method_31805 forEachIntersects (Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Consumer;)V
ARG 1 filter
ARG 2 box
ARG 3 action
METHOD method_31806 forEach (Lnet/minecraft/class_5575;Ljava/util/function/Consumer;)V
COMMENT Performs an {@code action} on each entity of type {@code U} within this
COMMENT lookup.
COMMENT
COMMENT @param <U> the type of entity to perform action on
ARG 1 filter
COMMENT specifies the desired type of entity
ARG 2 action
COMMENT the action to perform
METHOD method_31807 forEachIntersects (Lnet/minecraft/class_238;Ljava/util/function/Consumer;)V
ARG 1 box
ARG 2 action
METHOD method_31808 get (Ljava/util/UUID;)Lnet/minecraft/class_5568;
COMMENT Returns an entity by its UUID, or {@code null} if none is found.
ARG 1 uuid