Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk related mappings #279

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mappings/net/minecraft/BlockEntityProvider.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CLASS net/minecraft/class_0_206 net/minecraft/BlockEntityProvider
METHOD method_10123 createBlockEntity (Lnet/minecraft/class_1937;I)Lnet/minecraft/class_2586;
1 change: 1 addition & 0 deletions mappings/net/minecraft/block/Block.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ CLASS net/minecraft/class_2248 net/minecraft/block/Block
ARG 6 maxX
ARG 8 maxY
ARG 10 maxZ
METHOD method_9542 hasRandomTicks ()Z
METHOD method_9542 hasRandomTicks (Lnet/minecraft/class_2680;)Z
ARG 1 state
METHOD method_9543 hasDynamicBounds ()Z
Expand Down
9 changes: 9 additions & 0 deletions mappings/net/minecraft/world/WorldView.mapping
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
CLASS net/minecraft/class_0_105 net/minecraft/world/WorldView
METHOD method_0_481 getBiome (Lnet/minecraft/class_2338;)Lnet/minecraft/class_1959;
METHOD method_0_484 getBlockState (Lnet/minecraft/class_2338;)Lnet/minecraft/class_0_378;
ARG 1 pos
METHOD method_8321 getBlockEntity (Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
ARG 1 pos
METHOD method_8527 getGeneratorType ()Lnet/minecraft/class_1942;
METHOD method_8623 isAir (Lnet/minecraft/class_2338;)Z
ARG 1 pos
CLASS net/minecraft/class_4538 net/minecraft/world/WorldView
COMMENT Represents a scoped, read-only view of a world like structure that contains biomes, chunks and is bound to a dimension.
METHOD method_22339 getLightLevel (Lnet/minecraft/class_2338;)I
Expand Down
13 changes: 13 additions & 0 deletions mappings/net/minecraft/world/chunk/ChunkSection.mapping
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
CLASS net/minecraft/class_2826 net/minecraft/world/chunk/ChunkSection
FIELD field_12877 nonEmptyBlockCount I
FIELD field_12877 nonEmptyBlockCount S
FIELD field_12878 blockStateContainer Lnet/minecraft/class_2841;
FIELD field_12879 PALETTE Lnet/minecraft/class_2837;
FIELD field_12880 yOffset I
FIELD field_12881 randomTickableBlockCount I
FIELD field_12881 nonEmptyFluidCount S
FIELD field_12882 randomTickableBlockCount S
FIELD field_34556 biomeContainer Lnet/minecraft/class_2841;
Expand All @@ -14,7 +16,13 @@ CLASS net/minecraft/class_2826 net/minecraft/world/chunk/ChunkSection
ARG 1 chunkPos
ARG 2 blockStateContainer
ARG 3 biomeContainer
METHOD method_0_1426 getBlock (III)Lnet/minecraft/class_2248;
ARG 1 x
ARG 2 y
ARG 3 z
METHOD method_0_1429 getFluidState (III)I
METHOD method_12253 calculateCounts ()V
METHOD method_12254 getBlockState (III)Lnet/minecraft/class_0_378;
METHOD method_12254 getBlockState (III)Lnet/minecraft/class_2680;
ARG 1 x
ARG 2 y
Expand All @@ -23,6 +31,11 @@ CLASS net/minecraft/class_2826 net/minecraft/world/chunk/ChunkSection
ARG 1 x
ARG 2 y
ARG 3 z
METHOD method_12256 setBlockState (IIILnet/minecraft/class_0_378;)V
ARG 1 x
ARG 2 y
ARG 3 z
ARG 4 state
METHOD method_12256 setBlockState (IIILnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;
ARG 1 x
ARG 2 y
Expand Down
21 changes: 20 additions & 1 deletion mappings/net/minecraft/world/chunk/WorldChunk.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CLASS net/minecraft/class_2818 net/minecraft/world/chunk/WorldChunk
FIELD field_12838 structureStarts Ljava/util/Map;
FIELD field_12839 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_12839 LOGGER Lorg/slf4j/Logger;
FIELD field_12840 sections [Lnet/minecraft/class_2826;
FIELD field_12840 sectionArray [Lnet/minecraft/class_2826;
FIELD field_12841 blockTickScheduler Lnet/minecraft/class_1951;
FIELD field_12842 biomeArray [Lnet/minecraft/class_1959;
FIELD field_12843 inhabitedTime J
Expand Down Expand Up @@ -49,6 +49,25 @@ CLASS net/minecraft/class_2818 net/minecraft/world/chunk/WorldChunk
ARG 1 world
ARG 2 protoChunk
ARG 3 entityLoader
METHOD method_0_1350 getBlock (Lnet/minecraft/class_2338;)Lnet/minecraft/class_2248;
ARG 1 pos
METHOD method_0_1376 getFluidState (Lnet/minecraft/class_2338;)I
ARG 1 pos
METHOD method_0_1389 getBlock (III)Lnet/minecraft/class_2248;
ARG 1 x
ARG 2 y
ARG 3 z
METHOD method_0_1392 getHighestNonEmptySectionYOffset ()I
METHOD method_0_1393 getFluidState (III)I
ARG 1 x
ARG 2 y
ARG 3 z
METHOD method_0_1394 getBlockState (Lnet/minecraft/class_2338;)Lnet/minecraft/class_0_378;
ARG 1 pos
METHOD method_12006 getSectionArray ()[Lnet/minecraft/class_2826;
METHOD method_12010 setBlockState (Lnet/minecraft/class_2338;Lnet/minecraft/class_0_378;)Lnet/minecraft/class_0_378;
ARG 1 pos
ARG 2 state
METHOD method_12023 getLightingProvider ()Lnet/minecraft/class_3568;
METHOD method_12200 getWorld ()Lnet/minecraft/class_1937;
METHOD method_12201 getBlockEntity (Lnet/minecraft/class_2338;Lnet/minecraft/class_2818$class_2819;)Lnet/minecraft/class_2586;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CLASS net/minecraft/class_2891 net/minecraft/world/gen/chunk/DebugChunkGenerator
FIELD field_26747 biomeRegistry Lnet/minecraft/class_2378;
METHOD <init> (Lnet/minecraft/class_6880$class_6883;)V
ARG 1 biomeEntry
METHOD method_12578 getBlockState (II)Lnet/minecraft/class_0_378;
METHOD method_12578 getBlockState (II)Lnet/minecraft/class_2680;
ARG 0 x
ARG 1 z
Expand Down
Loading