diff --git a/build.gradle b/build.gradle index 49a47483df..d88d6fedbb 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ plugins { id 'de.undercouch.download' version '4.1.1' id 'maven-publish' id 'org.cadixdev.licenser' version '0.6.1' - id 'net.fabricmc.filament' version '0.3.1' + id 'net.fabricmc.filament' version '0.3.0' } def minecraft_version = "1.18_experimental-snapshot-1" diff --git a/gradle.properties b/gradle.properties index 3e646c5158..d57392e374 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G -enigma_version=1.4.1 +enigma_version=1.3.4 stitch_version=0.6.1 unpick_version=2.2.0 cfr_version=0.0.6 diff --git a/mappings/net/minecraft/client/color/block/BlockColorProvider.mapping b/mappings/net/minecraft/client/color/block/BlockColorProvider.mapping index dbf37e4ec6..ae65aa1e9b 100644 --- a/mappings/net/minecraft/client/color/block/BlockColorProvider.mapping +++ b/mappings/net/minecraft/client/color/block/BlockColorProvider.mapping @@ -1,5 +1,7 @@ CLASS net/minecraft/class_322 net/minecraft/client/color/block/BlockColorProvider METHOD getColor (Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;I)I + COMMENT {@return the color of the block state for the specified tint index, + COMMENT or -1 if not tinted} ARG 1 state ARG 2 world ARG 3 pos diff --git a/mappings/net/minecraft/client/color/block/BlockColors.mapping b/mappings/net/minecraft/client/color/block/BlockColors.mapping index 2fa4bd4890..e233446a30 100644 --- a/mappings/net/minecraft/client/color/block/BlockColors.mapping +++ b/mappings/net/minecraft/client/color/block/BlockColors.mapping @@ -1,6 +1,7 @@ CLASS net/minecraft/class_324 net/minecraft/client/color/block/BlockColors FIELD field_1995 providers Lnet/minecraft/class_2361; FIELD field_20271 properties Ljava/util/Map; + FIELD field_32163 NO_COLOR I METHOD method_1684 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;I)I ARG 0 state ARG 1 world @@ -30,7 +31,11 @@ CLASS net/minecraft/class_324 net/minecraft/client/color/block/BlockColors METHOD method_1690 registerColorProvider (Lnet/minecraft/class_322;[Lnet/minecraft/class_2248;)V ARG 1 provider ARG 2 blocks - METHOD method_1691 getColor (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I + METHOD method_1691 getParticleColor (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I + COMMENT {@return the particle color of the block state} + COMMENT + COMMENT @implSpec If there's no color provider for the specified block, + COMMENT falls back to its map color. ARG 1 state ARG 2 world ARG 3 pos @@ -63,7 +68,7 @@ CLASS net/minecraft/class_324 net/minecraft/client/color/block/BlockColors ARG 1 state ARG 2 world ARG 3 pos - ARG 4 tint + ARG 4 tintIndex METHOD method_1698 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;I)I ARG 0 state ARG 1 world diff --git a/mappings/net/minecraft/client/color/item/ItemColorProvider.mapping b/mappings/net/minecraft/client/color/item/ItemColorProvider.mapping index e0aa2d5c42..4c54d8a3ad 100644 --- a/mappings/net/minecraft/client/color/item/ItemColorProvider.mapping +++ b/mappings/net/minecraft/client/color/item/ItemColorProvider.mapping @@ -1,4 +1,6 @@ CLASS net/minecraft/class_326 net/minecraft/client/color/item/ItemColorProvider METHOD getColor (Lnet/minecraft/class_1799;I)I + COMMENT {@return the color of the item stack for the specified tint index, + COMMENT or -1 if not tinted} ARG 1 stack ARG 2 tintIndex diff --git a/mappings/net/minecraft/client/color/item/ItemColors.mapping b/mappings/net/minecraft/client/color/item/ItemColors.mapping index c8672c2c12..a69c120800 100644 --- a/mappings/net/minecraft/client/color/item/ItemColors.mapping +++ b/mappings/net/minecraft/client/color/item/ItemColors.mapping @@ -1,5 +1,6 @@ CLASS net/minecraft/class_325 net/minecraft/client/color/item/ItemColors FIELD field_1996 providers Lnet/minecraft/class_2361; + FIELD field_32165 NO_COLOR I METHOD method_1699 (Lnet/minecraft/class_1826;Lnet/minecraft/class_1799;I)I ARG 1 stack ARG 2 tintIndex @@ -15,7 +16,7 @@ CLASS net/minecraft/class_325 net/minecraft/client/color/item/ItemColors METHOD method_1703 (Lnet/minecraft/class_1799;I)I ARG 0 stack ARG 1 tintIndex - METHOD method_1704 getColorMultiplier (Lnet/minecraft/class_1799;I)I + METHOD method_1704 getColor (Lnet/minecraft/class_1799;I)I ARG 1 item ARG 2 tintIndex METHOD method_1705 (Lnet/minecraft/class_1799;I)I @@ -27,7 +28,7 @@ CLASS net/minecraft/class_325 net/minecraft/client/color/item/ItemColors ARG 0 stack ARG 1 tintIndex METHOD method_1708 register (Lnet/minecraft/class_326;[Lnet/minecraft/class_1935;)V - ARG 1 mapper + ARG 1 provider ARG 2 items METHOD method_1709 (Lnet/minecraft/class_1799;I)I ARG 0 stack diff --git a/mappings/net/minecraft/client/render/block/BlockModelRenderer.mapping b/mappings/net/minecraft/client/render/block/BlockModelRenderer.mapping index 8617155299..5c1ad78d62 100644 --- a/mappings/net/minecraft/client/render/block/BlockModelRenderer.mapping +++ b/mappings/net/minecraft/client/render/block/BlockModelRenderer.mapping @@ -1,10 +1,10 @@ CLASS net/minecraft/class_778 net/minecraft/client/render/block/BlockModelRenderer FIELD field_27743 DIRECTIONS [Lnet/minecraft/class_2350; FIELD field_32784 BRIGHTNESS_CACHE_MAX_SIZE I - FIELD field_4178 colorMap Lnet/minecraft/class_324; + FIELD field_4178 colors Lnet/minecraft/class_324; FIELD field_4179 brightnessCache Ljava/lang/ThreadLocal; METHOD (Lnet/minecraft/class_324;)V - ARG 1 colorMap + ARG 1 colors METHOD method_20544 enableBrightnessCache ()V METHOD method_20545 disableBrightnessCache ()V METHOD method_23073 renderQuad (Lnet/minecraft/class_1920;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_4588;Lnet/minecraft/class_4587$class_4665;Lnet/minecraft/class_777;FFFFIIIII)V diff --git a/mappings/net/minecraft/client/render/item/ItemRenderer.mapping b/mappings/net/minecraft/client/render/item/ItemRenderer.mapping index b50426efa6..11c5de9ec5 100644 --- a/mappings/net/minecraft/client/render/item/ItemRenderer.mapping +++ b/mappings/net/minecraft/client/render/item/ItemRenderer.mapping @@ -7,11 +7,11 @@ CLASS net/minecraft/class_918 net/minecraft/client/render/item/ItemRenderer FIELD field_4729 textureManager Lnet/minecraft/class_1060; FIELD field_4730 zOffset F FIELD field_4732 models Lnet/minecraft/class_763; - FIELD field_4733 colorMap Lnet/minecraft/class_325; + FIELD field_4733 colors Lnet/minecraft/class_325; METHOD (Lnet/minecraft/class_1060;Lnet/minecraft/class_1092;Lnet/minecraft/class_325;Lnet/minecraft/class_756;)V ARG 1 manager ARG 2 bakery - ARG 3 colorMap + ARG 3 colors ARG 4 builtinModelItemRenderer METHOD method_23177 renderItem (Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_809$class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_1937;III)V ARG 1 entity diff --git a/mappings/net/minecraft/item/ArmorMaterials.mapping b/mappings/net/minecraft/item/ArmorMaterials.mapping index fa87c38b0f..11ce37273e 100644 --- a/mappings/net/minecraft/item/ArmorMaterials.mapping +++ b/mappings/net/minecraft/item/ArmorMaterials.mapping @@ -4,6 +4,7 @@ CLASS net/minecraft/class_1740 net/minecraft/item/ArmorMaterials FIELD field_7884 name Ljava/lang/String; FIELD field_7885 repairIngredientSupplier Lnet/minecraft/class_3528; FIELD field_7886 equipSound Lnet/minecraft/class_3414; + FIELD field_7887 CHAIN Lnet/minecraft/class_1740; FIELD field_7891 BASE_DURABILITY [I FIELD field_7893 protectionAmounts [I FIELD field_7894 toughness F diff --git a/mappings/net/minecraft/screen/slot/SlotActionType.mapping b/mappings/net/minecraft/screen/slot/SlotActionType.mapping index effcfbf4ef..304359b496 100644 --- a/mappings/net/minecraft/screen/slot/SlotActionType.mapping +++ b/mappings/net/minecraft/screen/slot/SlotActionType.mapping @@ -1,23 +1,23 @@ CLASS net/minecraft/class_1713 net/minecraft/screen/slot/SlotActionType - FIELD field_7789 Lnet/minecraft/class_1713; + FIELD field_7789 QUICK_CRAFT Lnet/minecraft/class_1713; COMMENT Drags items between multiple slots. This is usually triggered by the player clicking and dragging between slots. COMMENT COMMENT

This action happens in 3 stages. Stage 0 signals that the drag has begun, and stage 2 signals that the drag has ended. In between multiple stage 1s signal which slots were dragged on. COMMENT COMMENT

The stage is packed into the click data along with the mouse button that was clicked. See {@link net.minecraft.screen.ScreenHandler#packQuickCraftData(int, int) ScreenHandler.packQuickCraftData(int, int)} for details. - FIELD field_7790 Lnet/minecraft/class_1713; + FIELD field_7790 PICKUP Lnet/minecraft/class_1713; COMMENT Performs a normal slot click. This can pickup or place items in the slot, possibly merging the cursor stack into the slot, or swapping the slot stack with the cursor stack if they can't be merged. - FIELD field_7791 Lnet/minecraft/class_1713; + FIELD field_7791 SWAP Lnet/minecraft/class_1713; COMMENT Exchanges items between a slot and a hotbar slot. This is usually triggered by the player pressing a 1-9 number key while hovering over a slot. COMMENT COMMENT

When the action type is swap, the click data is the hotbar slot to swap with (0-8). - FIELD field_7793 Lnet/minecraft/class_1713; + FIELD field_7793 PICKUP_ALL Lnet/minecraft/class_1713; COMMENT Replenishes the cursor stack with items from the screen handler. This is usually triggered by the player double clicking. - FIELD field_7794 Lnet/minecraft/class_1713; + FIELD field_7794 QUICK_MOVE Lnet/minecraft/class_1713; COMMENT Performs a shift-click. This usually quickly moves items between the player's inventory and the open screen handler. - FIELD field_7795 Lnet/minecraft/class_1713; + FIELD field_7795 THROW Lnet/minecraft/class_1713; COMMENT Throws the item out of the inventory. This is usually triggered by the player pressing Q while hovering over a slot, or clicking outside the window. COMMENT COMMENT

When the action type is throw, the click data determines whether to throw a whole stack (1) or a single item from that stack (0). - FIELD field_7796 Lnet/minecraft/class_1713; + FIELD field_7796 CLONE Lnet/minecraft/class_1713; COMMENT Clones the item in the slot. Usually triggered by middle clicking an item in creative mode. diff --git a/mappings/net/minecraft/util/ActionResult.mapping b/mappings/net/minecraft/util/ActionResult.mapping index db285546df..53844c78b7 100644 --- a/mappings/net/minecraft/util/ActionResult.mapping +++ b/mappings/net/minecraft/util/ActionResult.mapping @@ -1,14 +1,14 @@ CLASS net/minecraft/class_1269 net/minecraft/util/ActionResult - FIELD field_21466 Lnet/minecraft/class_1269; + FIELD field_21466 CONSUME Lnet/minecraft/class_1269; COMMENT Indicates an action is performed but no animation should accompany the COMMENT performance. - FIELD field_5811 Lnet/minecraft/class_1269; + FIELD field_5811 PASS Lnet/minecraft/class_1269; COMMENT Indicates an action is not performed but allows other actions to COMMENT perform. - FIELD field_5812 Lnet/minecraft/class_1269; + FIELD field_5812 SUCCESS Lnet/minecraft/class_1269; COMMENT Indicates an action is performed and the actor's hand should swing to COMMENT indicate the performance. - FIELD field_5814 Lnet/minecraft/class_1269; + FIELD field_5814 FAIL Lnet/minecraft/class_1269; COMMENT Indicates that an action is not performed and prevents other actions COMMENT from performing. METHOD method_23665 isAccepted ()Z diff --git a/mappings/net/minecraft/world/GameRules.mapping b/mappings/net/minecraft/world/GameRules.mapping index c4426bfa9a..2b28a83740 100644 --- a/mappings/net/minecraft/world/GameRules.mapping +++ b/mappings/net/minecraft/world/GameRules.mapping @@ -1,5 +1,5 @@ CLASS net/minecraft/class_1928 net/minecraft/world/GameRules - FIELD field_19388 Lnet/minecraft/class_1928$class_4313; + FIELD field_19388 DO_MOB_GRIEFING Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether mobs can modify the world. COMMENT COMMENT

Generally one is expected to test this rule before an entity modifies the world. @@ -10,29 +10,29 @@ CLASS net/minecraft/class_1928 net/minecraft/world/GameRules COMMENT

  • Whether a zombie can break down a door COMMENT
  • Whether a wither killing an entity will place or drop a wither rose COMMENT - FIELD field_19389 Lnet/minecraft/class_1928$class_4313; + FIELD field_19389 KEEP_INVENTORY Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether player inventories should be persist through respawning. - FIELD field_19390 Lnet/minecraft/class_1928$class_4313; + FIELD field_19390 DO_MOB_SPAWNING Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether mobs can spawn naturally. - FIELD field_19391 Lnet/minecraft/class_1928$class_4313; + FIELD field_19391 DO_MOB_LOOT Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether mobs should drop loot on death. - FIELD field_19392 Lnet/minecraft/class_1928$class_4313; + FIELD field_19392 DO_TILE_DROPS Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether blocks should drop their items when broken. - FIELD field_19401 Lnet/minecraft/class_1928$class_4313; + FIELD field_19401 REDUCED_DEBUG_INFO Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether clients' {@linkplain net.minecraft.client.gui.hud.DebugHud debug HUD}s show reduced information. COMMENT COMMENT

    When the value of this rule is changed, all connected clients will be notified to update their display. COMMENT In vanilla, this includes the visibility of coordinates on the clients' debug HUDs. - FIELD field_19405 Lnet/minecraft/class_1928$class_4313; + FIELD field_19405 MAX_ENTITY_CRAMMING Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates the number of entities that can be crammed into a block space before they incur cramming damage. - FIELD field_19409 Lnet/minecraft/class_1928$class_4313; + FIELD field_19409 ANNOUNCE_ADVANCEMENTS Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether a player's advancements should be announced in chat. FIELD field_19410 LOGGER Lorg/apache/logging/log4j/Logger; - FIELD field_19422 Lnet/minecraft/class_1928$class_4313; + FIELD field_19422 DISABLE_RAIDS Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether raids should occur. COMMENT COMMENT

    If this rule is set to {@code true} while raids are occurring, the raids will be stopped. - FIELD field_20638 Lnet/minecraft/class_1928$class_4313; + FIELD field_20638 DO_IMMEDIATE_RESPAWN Lnet/minecraft/class_1928$class_4313; COMMENT A {@linkplain Rule game rule} which regulates whether a player should immediately respawn upon death. FIELD field_30963 DEFAULT_RANDOM_TICK_SPEED I FIELD field_9196 rules Ljava/util/Map; diff --git a/mappings/net/minecraft/world/chunk/ChunkStatus.mapping b/mappings/net/minecraft/world/chunk/ChunkStatus.mapping index d2472be739..a477568069 100644 --- a/mappings/net/minecraft/world/chunk/ChunkStatus.mapping +++ b/mappings/net/minecraft/world/chunk/ChunkStatus.mapping @@ -114,9 +114,9 @@ CLASS net/minecraft/class_2806 net/minecraft/world/chunk/ChunkStatus ARG 6 lightingProvider CLASS class_2808 ChunkType COMMENT Specifies the type of a chunk - FIELD field_12807 Lnet/minecraft/class_2806$class_2808; + FIELD field_12807 LEVELCHUNK Lnet/minecraft/class_2806$class_2808; COMMENT A chunk which is complete and bound to a world. - FIELD field_12808 Lnet/minecraft/class_2806$class_2808; + FIELD field_12808 PROTOCHUNK Lnet/minecraft/class_2806$class_2808; COMMENT A chunk which is incomplete and not loaded to the world yet. CLASS class_3768 SimpleGenerationTask METHOD doWork (Lnet/minecraft/class_2806;Lnet/minecraft/class_3218;Lnet/minecraft/class_2794;Ljava/util/List;Lnet/minecraft/class_2791;)V