From fbb44ecbb94300be1a1efe1108a12a3591cbea54 Mon Sep 17 00:00:00 2001 From: Thalia Nero Date: Sat, 7 Nov 2020 01:51:17 -0500 Subject: [PATCH] Some docs and mapping of methods called by the entity stuff. --- mappings/net/minecraft/entity/EntityLike.mapping | 9 +++++++++ .../net/minecraft/util/thread/MessageListener.mapping | 2 ++ .../minecraft/world/entity/EntityCollection.mapping | 11 ++++++----- .../net/minecraft/world/entity/EntityStore.mapping | 1 + .../minecraft/world/entity/EntityStoreImpl.mapping | 1 + .../world/entity/SectionedEntityCache.mapping | 1 + .../minecraft/world/storage/StorageIoWorker.mapping | 10 ++++++++++ 7 files changed, 30 insertions(+), 5 deletions(-) diff --git a/mappings/net/minecraft/entity/EntityLike.mapping b/mappings/net/minecraft/entity/EntityLike.mapping index a19ce0c2f3..dd0d575bf7 100644 --- a/mappings/net/minecraft/entity/EntityLike.mapping +++ b/mappings/net/minecraft/entity/EntityLike.mapping @@ -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. diff --git a/mappings/net/minecraft/util/thread/MessageListener.mapping b/mappings/net/minecraft/util/thread/MessageListener.mapping index 78823e7f2b..3b39ad06d0 100644 --- a/mappings/net/minecraft/util/thread/MessageListener.mapping +++ b/mappings/net/minecraft/util/thread/MessageListener.mapping @@ -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 diff --git a/mappings/net/minecraft/world/entity/EntityCollection.mapping b/mappings/net/minecraft/world/entity/EntityCollection.mapping index f866afe61c..a2c4763e4e 100644 --- a/mappings/net/minecraft/world/entity/EntityCollection.mapping +++ b/mappings/net/minecraft/world/entity/EntityCollection.mapping @@ -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 diff --git a/mappings/net/minecraft/world/entity/EntityStore.mapping b/mappings/net/minecraft/world/entity/EntityStore.mapping index 4f3b8b6534..04925d08bc 100644 --- a/mappings/net/minecraft/world/entity/EntityStore.mapping +++ b/mappings/net/minecraft/world/entity/EntityStore.mapping @@ -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 diff --git a/mappings/net/minecraft/world/entity/EntityStoreImpl.mapping b/mappings/net/minecraft/world/entity/EntityStoreImpl.mapping index 032126259b..9eb57cdb3b 100644 --- a/mappings/net/minecraft/world/entity/EntityStoreImpl.mapping +++ b/mappings/net/minecraft/world/entity/EntityStoreImpl.mapping @@ -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 (Lnet/minecraft/class_5570;Lnet/minecraft/class_5573;)V diff --git a/mappings/net/minecraft/world/entity/SectionedEntityCache.mapping b/mappings/net/minecraft/world/entity/SectionedEntityCache.mapping index 7602f21259..ab68d6ca03 100644 --- a/mappings/net/minecraft/world/entity/SectionedEntityCache.mapping +++ b/mappings/net/minecraft/world/entity/SectionedEntityCache.mapping @@ -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 diff --git a/mappings/net/minecraft/world/storage/StorageIoWorker.mapping b/mappings/net/minecraft/world/storage/StorageIoWorker.mapping index 6facd4d7a0..87f1950097 100644 --- a/mappings/net/minecraft/world/storage/StorageIoWorker.mapping +++ b/mappings/net/minecraft/world/storage/StorageIoWorker.mapping @@ -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 (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 (Lnet/minecraft/class_2487;)V + ARG 1 nbt CLASS class_5276 Priority