-
Notifications
You must be signed in to change notification settings - Fork 97
Add unpick mappings to parchment #320
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
Draft
Earthcomputer
wants to merge
3
commits into
ParchmentMC:versions/1.21.x
Choose a base branch
from
Earthcomputer:unpick
base: versions/1.21.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #!/usr/bin/env sh | ||
| ./gradlew enigmaUnpicked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| @echo off | ||
| gradlew.bat enigma_unpicked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| # Blackstone requires a good chunk of memory to parse and hold. | ||
| # This ensures gradle doesn't run out of memory and should speed up exports as it doesn't have to GC as often. | ||
| org.gradle.jvmargs=-Xmx1G | ||
| org.gradle.jvmargs=-Xmx1G | ||
|
|
||
| unpick_version = 2.3.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/constants/java/org/parchmentmc/constants/package-info.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| /** | ||
| * A constants jar is required for unpick CLI to work. In practice it will be empty for all modern Minecraft versions | ||
| * since they no longer strip constants, unless we ever want to define our own constants that Mojang doesn't define. | ||
| */ | ||
| package org.parchmentmc.constants; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| v2 | ||
|
|
||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_ALL | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_ALL_IMMEDIATE | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_NEIGHBORS | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_CLIENTS | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_NONE | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_IMMEDIATE | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_KNOWN_SHAPE | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_SUPPRESS_DROPS | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_MOVE_BY_PISTON | ||
| flag set_block_flags net/minecraft/world/level/block/Block UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE | ||
|
|
||
| target_method net/minecraft/world/level/LevelWriter setBlock (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;I)Z | ||
| param 2 set_block_flags | ||
| target_method net/minecraft/world/level/LevelWriter setBlock (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;II)Z | ||
| param 2 set_block_flags | ||
| target_method net/minecraft/world/level/Level sendBlockUpdated (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/block/state/BlockState;I)V | ||
| param 3 set_block_flags | ||
| target_method net/minecraft/world/level/block/state/BlockBehaviour$BlockStateBase updateNeighbourShapes (Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;I)V | ||
| param 2 set_block_flags | ||
| target_method net/minecraft/world/level/block/state/BlockBehaviour$BlockStateBase updateNeighbourShapes (Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;II)V | ||
| param 2 set_block_flags | ||
| target_method net/minecraft/world/level/block/state/BlockBehaviour$BlockStateBase updateIndirectNeighbourShapes (Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;I)V | ||
| param 2 set_block_flags | ||
| target_method net/minecraft/world/level/block/state/BlockBehaviour$BlockStateBase updateIndirectNeighbourShapes (Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;II)V | ||
| param 2 set_block_flags | ||
| target_method net/minecraft/world/level/block/Block updateOrDestroy (Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;I)V | ||
| param 4 set_block_flags | ||
| target_method net/minecraft/world/level/block/Block updateOrDestroy (Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;II)V | ||
| param 4 set_block_flags | ||
| target_method net/minecraft/world/level/block/state/BlockBehaviour updateIndirectNeighbourShapes (Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;II)V | ||
| param 3 set_block_flags | ||
| target_method net/minecraft/world/level/block/DoublePlantBlock placeAt (Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/core/BlockPos;I)V | ||
| param 3 set_block_flags | ||
| target_method net/minecraft/world/level/block/MossyCarpetBlock placeAt (Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/BlockPos;Lnet/minecraft/util/RandomSource;I)V | ||
| param 3 set_block_flags | ||
| target_method net/minecraft/client/multiplayer/ClientPacketListener lambda$handleChunkBlocksUpdate$1 (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)V | ||
| param 0 set_block_flags | ||
| target_method net/minecraft/commands/arguments/blocks/BlockInput place (Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/core/BlockPos;I)Z | ||
| param 2 set_block_flags | ||
| target_method net/minecraft/world/level/levelgen/structure/templatesystem/StructureTemplate placeInWorld (Lnet/minecraft/world/level/ServerLevelAccessor;Lnet/minecraft/core/BlockPos;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/levelgen/structure/templatesystem/StructurePlaceSettings;Lnet/minecraft/util/RandomSource;I)Z | ||
| param 5 set_block_flags | ||
| target_method net/minecraft/world/level/levelgen/structure/templatesystem/StructureTemplate updateShapeAtEdge (Lnet/minecraft/world/level/LevelAccessor;ILnet/minecraft/world/phys/shapes/DiscreteVoxelShape;Lnet/minecraft/core/BlockPos;)V | ||
| param 1 set_block_flags | ||
| target_method net/minecraft/world/level/levelgen/structure/templatesystem/StructureTemplate updateShapeAtEdge (Lnet/minecraft/world/level/LevelAccessor;ILnet/minecraft/world/phys/shapes/DiscreteVoxelShape;III)V | ||
| param 1 set_block_flags | ||
| target_method net/minecraft/world/level/redstone/NeighborUpdater shapeUpdate (Lnet/minecraft/core/Direction;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/core/BlockPos;Lnet/minecraft/core/BlockPos;II)V | ||
| param 4 set_block_flags | ||
| target_method net/minecraft/world/level/redstone/NeighborUpdater executeShapeUpdate (Lnet/minecraft/world/level/LevelAccessor;Lnet/minecraft/core/Direction;Lnet/minecraft/core/BlockPos;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;II)V | ||
| param 5 set_block_flags | ||
| target_method net/minecraft/world/level/LevelAccessor neighborShapeChanged (Lnet/minecraft/core/Direction;Lnet/minecraft/core/BlockPos;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;II)V | ||
| param 4 set_block_flags | ||
| target_method net/minecraft/world/level/redstone/CollectingNeighborUpdater$ShapeUpdate <init> (Lnet/minecraft/core/Direction;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/core/BlockPos;Lnet/minecraft/core/BlockPos;II)V | ||
| param 4 set_block_flags | ||
| target_method net/minecraft/client/multiplayer/ClientLevel setServerVerifiedBlockState (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;I)V | ||
| param 2 set_block_flags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "version": 1, | ||
| "unpickGroup": "net.fabricmc.unpick", | ||
| "unpickVersion": "${version}" | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parchment shouldnt have this file, its purely a yarn + loom thing and wasnt designed to be used by other "none yarn like" mappings. Especially with the V2 spec of this file. Loom will need some changes to handle reading unpick from parchment anyway,