ChunkRegion block placement validation mappings (#2620)

* ChunkRegion block placement validation mappings

* Fix ChunkRegion placementRadius spelling mistake

* Update mappings/net/minecraft/world/ChunkRegion.mapping

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

* Update mappings/net/minecraft/world/ChunkRegion.mapping

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

* Update mappings/net/minecraft/world/StructureWorldAccess.mapping

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
This commit is contained in:
Jakob K 2021-08-07 12:01:56 +02:00 committed by GitHub
parent 56ae93966e
commit 9dc7addd86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -14,8 +14,17 @@ CLASS net/minecraft/class_3233 net/minecraft/world/ChunkRegion
FIELD field_23789 upperCorner Lnet/minecraft/class_1923;
FIELD field_26822 structureAccessor Lnet/minecraft/class_5138;
FIELD field_28557 centerPos Lnet/minecraft/class_1923;
FIELD field_33755 placementRadius I
COMMENT The number of neighboring chunks which can be accessed for block
COMMENT placement.
COMMENT
COMMENT <p>A value of {@code 0} means that only this chunk is accessible. A
COMMENT positive value means that the given amount of neighbors are accessible
COMMENT in each direction. A negative value means that this region shouldn't be
COMMENT used for block placement.
METHOD <init> (Lnet/minecraft/class_3218;Ljava/util/List;Lnet/minecraft/class_2806;I)V
ARG 1 world
ARG 4 placementRadius
METHOD method_14337 (Lnet/minecraft/class_2338;)Lnet/minecraft/class_1951;
ARG 1 pos
METHOD method_14338 markBlockForPostProcessing (Lnet/minecraft/class_2338;)V

View File

@ -2,4 +2,8 @@ CLASS net/minecraft/class_5281 net/minecraft/world/StructureWorldAccess
METHOD method_30275 getStructures (Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)Ljava/util/stream/Stream;
ARG 1 pos
ARG 2 feature
METHOD method_37368 isValidForSetBlock (Lnet/minecraft/class_2338;)Z
COMMENT {@return {@code true} if the given position is an accessible position
COMMENT for the {@code setBlockState} function}
ARG 1 pos
METHOD method_8412 getSeed ()J