A couple of additions to PointOfInterestStorage (#1139)

* A couple of additions to PointOfInterestStorage

* getX -> getInX
This commit is contained in:
Joseph Burton 2020-02-28 18:57:37 +00:00 committed by GitHub
parent d924b03325
commit 5f9669e04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,6 @@
CLASS net/minecraft/class_4153 net/minecraft/world/poi/PointOfInterestStorage
FIELD field_18484 pointOfInterestDistanceTracker Lnet/minecraft/class_4153$class_4154;
FIELD field_20688 preloadedChunks Lit/unimi/dsi/fastutil/longs/LongSet;
METHOD method_19112 remove (Lnet/minecraft/class_2338;)V
ARG 1 pos
METHOD method_19115 add (Lnet/minecraft/class_2338;Lnet/minecraft/class_4158;)V
@ -10,15 +11,15 @@ CLASS net/minecraft/class_4153 net/minecraft/world/poi/PointOfInterestStorage
ARG 2 predicate
METHOD method_19118 getDistanceFromNearestOccupied (Lnet/minecraft/class_4076;)I
ARG 1 pos
METHOD method_19119 get (Ljava/util/function/Predicate;JLnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
METHOD method_19119 getInChunkSection (Ljava/util/function/Predicate;JLnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
ARG 1 typePredicate
ARG 2 pos
ARG 4 occupationStatus
METHOD method_19123 get (Ljava/util/function/Predicate;Lnet/minecraft/class_1923;Lnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
METHOD method_19123 getInChunk (Ljava/util/function/Predicate;Lnet/minecraft/class_1923;Lnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
ARG 1 typePredicate
ARG 2 pos
ARG 3 occupationStatus
METHOD method_19125 get (Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
METHOD method_19125 getInCircle (Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
ARG 1 typePredicate
ARG 2 pos
ARG 3 radius
@ -62,6 +63,16 @@ CLASS net/minecraft/class_4153 net/minecraft/world/poi/PointOfInterestStorage
ARG 3 pos
ARG 4 radius
ARG 5 occupationStatus
METHOD method_22383 getInSquare (Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
ARG 1 typePredicate
ARG 2 pos
ARG 3 radius
METHOD method_22439 preloadChunks (Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;I)V
COMMENT Preloads chunks in a square area with the given radius. Loads the chunks with {@code ChunkStatus.EMPTY}.
ARG 1 world
ARG 2 pos
ARG 3 radius
COMMENT The radius in blocks
CLASS class_4154 PointOfInterestDistanceTracker
FIELD field_18486 distances Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
METHOD method_19134 update ()V