Apply some cleanup from code review

Also removes some bits not present in 20w51a

Co-authored-by: YanisBft <doublecraft.official@gmail.com>
This commit is contained in:
Henry 2021-01-01 18:06:37 +00:00 committed by GitHub
parent e9f0cea6e7
commit b9e91de684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 16 deletions

View File

@ -37,7 +37,6 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
FIELD field_5979 passengerList Lcom/google/common/collect/ImmutableList;
FIELD field_5981 uuidString Ljava/lang/String;
FIELD field_5982 prevYaw F
FIELD field_5983 teleporting Z
FIELD field_5985 ignoreCameraFrustum Z
FIELD field_5986 entityId I
FIELD field_5989 lastRenderZ D
@ -511,9 +510,6 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
METHOD method_5756 isInvisibleTo (Lnet/minecraft/class_1657;)Z
ARG 1 player
METHOD method_5757 isInsideWall ()Z
METHOD method_5758 equip (ILnet/minecraft/class_1799;)Z
ARG 1 slot
ARG 2 item
METHOD method_5759 updateTrackedPositionAndAngles (DDDFFIZ)V
ARG 1 x
ARG 3 y
@ -684,8 +680,6 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
METHOD method_5864 getType ()Lnet/minecraft/class_1299;
METHOD method_5865 updatePassengerPosition (Lnet/minecraft/class_1297;)V
ARG 1 passenger
METHOD method_5866 setWorld (Lnet/minecraft/class_1937;)V
ARG 1 world
METHOD method_5867 calculateNextStepSoundDistance ()F
METHOD method_5869 isSubmergedInWater ()Z
COMMENT Returns whether this entity's hitbox is fully submerged in water.

View File

@ -24,7 +24,7 @@ CLASS net/minecraft/class_5579 net/minecraft/server/world/ServerEntityManager
COMMENT Attempts to write the entity data for entities at the given {@link ChunkPos}, and runs the given
COMMENT action for each entity after saving.
COMMENT
COMMENT @return True if the entities were written, false if they were not.
COMMENT @return {@code true} if the entities were written, {@code false} if they were not
ARG 1 chunkPos
ARG 3 postWriteCallback
METHOD method_31813 (Lnet/minecraft/class_4456;J)V
@ -57,7 +57,7 @@ CLASS net/minecraft/class_5579 net/minecraft/server/world/ServerEntityManager
ARG 1 entities
METHOD method_31836 flushChunks ()V
METHOD method_31837 tryUnloadChunk (J)Z
COMMENT Attempts to save the chunk, unloading all entities if successful
COMMENT Attempts to save the chunk, unloading all entities if successful.
ARG 1 chunkPos
METHOD method_31838 startTicking (Lnet/minecraft/class_5568;)V
ARG 1 entity

View File

@ -6,5 +6,5 @@ CLASS net/minecraft/class_5575 net/minecraft/util/TypeFilter
COMMENT Creates a filter whose filtering condition is whether the object is an instance of the given class.
ARG 0 cls
METHOD method_31796 downcast (Ljava/lang/Object;)Ljava/lang/Object;
COMMENT If the argument can be converted to the type {@code T}, return the argument, otherwise {@code null}.
COMMENT Checks if the argument can be converted to the type {@code T} and returns the argument, or {@code null} otherwise.
ARG 1 obj

View File

@ -6,14 +6,14 @@ CLASS net/minecraft/class_3906 net/minecraft/util/thread/MessageListener
ARG 0 name
ARG 1 action
METHOD method_17345 ask (Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
COMMENT Ask a message provider for a message.
COMMENT Asks a message provider for a message.
COMMENT
COMMENT The {@link CompletableFuture} returned from this function will never complete exceptionally.
COMMENT
COMMENT @return CompletableFuture future that completes with the received message
ARG 1 messageProvider
METHOD method_27918 askFallible (Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
COMMENT Ask a falliable message provider for a message.
COMMENT Asks a fallible message provider for a message.
COMMENT
COMMENT The provider is given a MessageListener that accepts a {@link Either} representing either
COMMENT a valid response (generic parameter Source) or an Exception, which decides whether the

View File

@ -1,6 +1,6 @@
CLASS net/minecraft/class_5577 net/minecraft/world/entity/EntityIdMap
COMMENT An interface exposing access to stored entities.
METHOD method_31803 entities ()Ljava/lang/Iterable;
METHOD method_31803 iterate ()Ljava/lang/Iterable;
METHOD method_31804 getEntityById (I)Lnet/minecraft/class_5568;
ARG 1 id
METHOD method_31805 forEachIntersects (Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Consumer;)V

View File

@ -1,7 +1,6 @@
CLASS net/minecraft/class_5578 net/minecraft/world/entity/EntityIdMapSet
COMMENT
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
ARG 1 entityStore
ARG 1 entities
ARG 2 sectionedEntities

View File

@ -3,7 +3,7 @@ CLASS net/minecraft/class_5570 net/minecraft/world/entity/EntitySet
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_31751 iterate ()Ljava/lang/Iterable;
METHOD method_31752 get (I)Lnet/minecraft/class_5568;
ARG 1 id
METHOD method_31753 add (Lnet/minecraft/class_5568;)V

View File

@ -3,7 +3,7 @@ CLASS net/minecraft/class_5572 net/minecraft/world/entity/EntityTrackingGroup
FIELD field_27248 backingList Lnet/minecraft/class_3509;
FIELD field_27249 chunkStatus Lnet/minecraft/class_5584;
METHOD <init> (Ljava/lang/Class;Lnet/minecraft/class_5584;)V
ARG 1 cls
ARG 1 entityClass
ARG 2 status
METHOD method_31761 isEmpty ()Z
METHOD method_31762 forEachFiltered (Lnet/minecraft/class_5575;Ljava/util/function/Predicate;Ljava/util/function/Consumer;)V