simulation distance level propagator (#2714)

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2021-10-01 12:58:01 -05:00 committed by GitHub
parent 2a2bcc8eb8
commit 0f428dacb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 0 deletions

View File

@ -13,6 +13,8 @@ CLASS net/minecraft/class_3204 net/minecraft/server/world/ChunkTicketManager
FIELD field_17459 chunkPositions Lit/unimi/dsi/fastutil/longs/LongSet;
FIELD field_17460 mainThreadExecutor Ljava/util/concurrent/Executor;
FIELD field_18252 distanceFromTicketTracker Lnet/minecraft/class_3204$class_4077;
FIELD field_34886 simulationDistanceTracker Lnet/minecraft/class_6609;
FIELD field_34887 simulationDistance I
METHOD <init> (Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
ARG 1 workerExecutor
ARG 2 mainThreadExecutor
@ -68,6 +70,11 @@ CLASS net/minecraft/class_3204 net/minecraft/server/world/ChunkTicketManager
METHOD method_21623 getTicket (J)Ljava/lang/String;
ARG 1 pos
METHOD method_21683 toDumpString ()Ljava/lang/String;
METHOD method_38629 setSimulationDistance (I)V
ARG 1 simulationDistance
METHOD method_38630 isSimulating (J)Z
ARG 1 chunkPos
METHOD method_38633 getPlayerSimulationLevel ()I
CLASS class_3205 DistanceFromNearestPlayerTracker
FIELD field_13896 distanceFromNearestPlayer Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
FIELD field_17461 maxDistance I

View File

@ -98,6 +98,7 @@ CLASS net/minecraft/class_3215 net/minecraft/server/world/ServerChunkManager
METHOD method_37114 isTickingFutureReady (J)Z
ARG 1 pos
METHOD method_38634 applySimulationDistance (I)V
ARG 1 simulationDistance
CLASS class_4212 MainThreadExecutor
METHOD <init> (Lnet/minecraft/class_3215;Lnet/minecraft/class_1937;)V
ARG 2 world

View File

@ -0,0 +1,32 @@
CLASS net/minecraft/class_6609 net/minecraft/world/SimulationDistanceLevelPropagator
FIELD field_34888 levels Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
FIELD field_34890 tickets Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
METHOD method_38635 updateLevels ()V
METHOD method_38636 updatePlayerTickets (I)V
ARG 1 level
METHOD method_38637 add (JLnet/minecraft/class_3228;)V
ARG 1 pos
ARG 3 ticket
METHOD method_38638 add (Lnet/minecraft/class_3230;Lnet/minecraft/class_1923;ILjava/lang/Object;)V
ARG 1 type
ARG 2 pos
ARG 3 level
ARG 4 argument
METHOD method_38639 getLevel (Lnet/minecraft/class_4706;)I
ARG 1 ticket
METHOD method_38640 getLevel (Lnet/minecraft/class_1923;)I
ARG 1 pos
METHOD method_38641 remove (JLnet/minecraft/class_3228;)V
ARG 1 pos
ARG 3 ticket
METHOD method_38642 remove (Lnet/minecraft/class_3230;Lnet/minecraft/class_1923;ILjava/lang/Object;)V
ARG 1 type
ARG 2 pos
ARG 3 level
ARG 4 argument
METHOD method_38643 getTickingTicket (J)Ljava/lang/String;
ARG 1 pos
METHOD method_38644 getTickets (J)Lnet/minecraft/class_4706;
ARG 1 pos
METHOD method_38645 (J)Lnet/minecraft/class_4706;
ARG 0 p