Some docs and mapping of methods called by the entity stuff.

This commit is contained in:
Thalia Nero 2020-11-07 01:51:17 -05:00
parent 095711c00a
commit fbb44ecbb9
7 changed files with 30 additions and 5 deletions

View File

@ -1,12 +1,21 @@
CLASS net/minecraft/class_5568 net/minecraft/entity/EntityLike
COMMENT A superinterface of {@link Entity}.
METHOD method_24515 getBlockPos ()Lnet/minecraft/class_2338;
COMMENT The entity's location in the world.
METHOD method_31744 setChangeHandler (Lnet/minecraft/class_5569;)V
COMMENT Sets the behavior to execute when an entity's state updates.
COMMENT
COMMENT @see EntityChangeHandler
ARG 1 listener
METHOD method_31745 setRemoved (Lnet/minecraft/class_1297$class_5529;)V
ARG 1 reason
METHOD method_31746 shouldSave ()Z
METHOD method_31747 isPlayer ()Z
METHOD method_31748 postfixPassengerStream ()Ljava/util/stream/Stream;
COMMENT The entity's passengers, recursively with the deepest nested passengers first, followed by this entity.
METHOD method_5628 getEntityId ()I
COMMENT The entity's transient network ID.
METHOD method_5667 getUuid ()Ljava/util/UUID;
COMMENT The entity's persistent universal unique identifier.
METHOD method_5829 getBoundingBox ()Lnet/minecraft/class_238;
COMMENT The entity's collision bounding box.

View File

@ -7,3 +7,5 @@ CLASS net/minecraft/class_3906 net/minecraft/util/thread/MessageListener
ARG 1 action
METHOD method_17345 ask (Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
ARG 1 messageProvider
METHOD method_27918 askFallible (Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
ARG 1 messageProvider

View File

@ -1,17 +1,18 @@
CLASS net/minecraft/class_5570 net/minecraft/world/entity/EntityCollection
COMMENT A collection of entities keyed by network ID and UUID.
FIELD field_27244 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_27245 entitiesById Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
FIELD field_27246 entitiesByUuid Ljava/util/Map;
METHOD method_31751 entities ()Ljava/lang/Iterable;
METHOD method_31752 getEntity (I)Lnet/minecraft/class_5568;
METHOD method_31752 get (I)Lnet/minecraft/class_5568;
ARG 1 id
METHOD method_31753 addEntity (Lnet/minecraft/class_5568;)V
METHOD method_31753 add (Lnet/minecraft/class_5568;)V
ARG 1 entity
METHOD method_31754 forEachEntity (Lnet/minecraft/class_5575;Ljava/util/function/Consumer;)V
ARG 1 filter
ARG 2 action
METHOD method_31755 getEntity (Ljava/util/UUID;)Lnet/minecraft/class_5568;
METHOD method_31755 get (Ljava/util/UUID;)Lnet/minecraft/class_5568;
ARG 1 uuid
METHOD method_31756 getEntityCount ()I
METHOD method_31757 removeEntity (Lnet/minecraft/class_5568;)V
METHOD method_31756 size ()I
METHOD method_31757 remove (Lnet/minecraft/class_5568;)V
ARG 1 entity

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_5577 net/minecraft/world/entity/EntityStore
COMMENT An interface exposing access to stored entities.
METHOD method_31803 entities ()Ljava/lang/Iterable;
METHOD method_31804 getEntityById (I)Lnet/minecraft/class_5568;
ARG 1 id

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_5578 net/minecraft/world/entity/EntityStoreImpl
COMMENT The implementing class of {@link EntityStore}.
FIELD field_27258 entities Lnet/minecraft/class_5570;
FIELD field_27259 sectionedEntities Lnet/minecraft/class_5573;
METHOD <init> (Lnet/minecraft/class_5570;Lnet/minecraft/class_5573;)V

View File

@ -20,6 +20,7 @@ CLASS net/minecraft/class_5573 net/minecraft/world/entity/SectionedEntityCache
METHOD method_31775 intersecting (Lnet/minecraft/class_238;)Ljava/util/function/Predicate;
ARG 0 box
METHOD method_31777 forEachEntityByChunkSection (Lnet/minecraft/class_238;Ljava/util/function/Consumer;)V
COMMENT Runs the given action on each collection of entities in the chunk sections within the given box.
ARG 1 box
ARG 2 action
METHOD method_31779 toPackedChunkSectionPos (Lnet/minecraft/class_2338;)J

View File

@ -3,19 +3,29 @@ CLASS net/minecraft/class_4698 net/minecraft/world/storage/StorageIoWorker
FIELD field_21497 closed Ljava/util/concurrent/atomic/AtomicBoolean;
FIELD field_21499 storage Lnet/minecraft/class_2867;
FIELD field_21500 results Ljava/util/Map;
FIELD field_24468 taskExecutor Lnet/minecraft/class_3846;
METHOD <init> (Ljava/io/File;ZLjava/lang/String;)V
ARG 1 file
ARG 2 dsync
ARG 3 workerName
METHOD method_23698 completeAll ()Ljava/util/concurrent/CompletableFuture;
METHOD method_23700 getNbt (Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;
ARG 1 pos
METHOD method_23701 write (Lnet/minecraft/class_1923;Lnet/minecraft/class_4698$class_4699;)V
ARG 1 pos
ARG 2 result
METHOD method_23703 setResult (Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/concurrent/CompletableFuture;
ARG 1 pos
ARG 2 nbt
METHOD method_23709 run (Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
ARG 1 task
METHOD method_23719 writeResult ()V
METHOD method_27945 writeRemainingResults ()V
METHOD method_31738 readChunkData (Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
ARG 1 pos
CLASS class_4699 Result
FIELD field_21503 nbt Lnet/minecraft/class_2487;
FIELD field_21504 future Ljava/util/concurrent/CompletableFuture;
METHOD <init> (Lnet/minecraft/class_2487;)V
ARG 1 nbt
CLASS class_5276 Priority