-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
205 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
33 changes: 33 additions & 0 deletions
33
src/main/java/org/cloudburstmc/blockstateupdater/BlockStateUpdater_1_21_40.java
This file contains 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,33 @@ | ||
package org.cloudburstmc.blockstateupdater; | ||
|
||
import org.cloudburstmc.blockstateupdater.util.tagupdater.CompoundTagUpdaterContext; | ||
|
||
public class BlockStateUpdater_1_21_40 implements BlockStateUpdater { | ||
|
||
public static final BlockStateUpdater INSTANCE = new BlockStateUpdater_1_21_40(); | ||
|
||
@Override | ||
public void registerUpdaters(CompoundTagUpdaterContext ctx) { | ||
// Skull blocks was now split into individual blocks | ||
// however, skull type was determined by block entity or item data, and we do not have that information here | ||
ctx.addUpdater(1, 21, 40) | ||
.match("name", "minecraft:skull") | ||
.edit("name", helper -> { | ||
helper.replaceWith("name", "minecraft:skeleton_skull"); | ||
}); | ||
|
||
|
||
// these are not vanilla updaters | ||
// but use this one to bump the version to 18163713 as that's what vanilla does | ||
ctx.addUpdater(1, 21, 40) | ||
.match("name", "minecraft:cherry_wood") | ||
.visit("states") | ||
.remove("stripped_bit"); | ||
|
||
ctx.addUpdater(1, 21, 40, false, false) | ||
.match("name", "minecraft:mangrove_wood") | ||
.visit("states") | ||
.remove("stripped_bit"); | ||
|
||
} | ||
} |
This file contains 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 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