mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
1.16.2
- My IJ is broke but this should work. Dunno if I got all nms changes, but we will see.
This commit is contained in:
@ -74,7 +74,7 @@ public final class BiomeTypes {
|
||||
@Nullable public static final BiomeType MOUNTAINS = get("minecraft:mountains");
|
||||
@Nullable public static final BiomeType MUSHROOM_FIELD_SHORE = get("minecraft:mushroom_field_shore");
|
||||
@Nullable public static final BiomeType MUSHROOM_FIELDS = get("minecraft:mushroom_fields");
|
||||
@Nullable @Deprecated public static final BiomeType NETHER = get("minecraft:nether");
|
||||
@Deprecated @Nullable public static final BiomeType NETHER = get("minecraft:nether");
|
||||
@Nullable public static final BiomeType NETHER_WASTES = get("minecraft:nether_wastes");
|
||||
@Nullable public static final BiomeType OCEAN = get("minecraft:ocean");
|
||||
@Nullable public static final BiomeType PLAINS = get("minecraft:plains");
|
||||
|
@ -28,6 +28,8 @@ public final class BlockCategories {
|
||||
public static final BlockCategory ANVIL = get("minecraft:anvil");
|
||||
public static final BlockCategory BAMBOO_PLANTABLE_ON = get("minecraft:bamboo_plantable_on");
|
||||
public static final BlockCategory BANNERS = get("minecraft:banners");
|
||||
public static final BlockCategory BASE_STONE_NETHER = get("minecraft:base_stone_nether");
|
||||
public static final BlockCategory BASE_STONE_OVERWORLD = get("minecraft:base_stone_overworld");
|
||||
public static final BlockCategory BEDS = get("minecraft:beds");
|
||||
public static final BlockCategory BEE_GROWABLES = get("minecraft:bee_growables");
|
||||
public static final BlockCategory BEEHIVES = get("minecraft:beehives");
|
||||
@ -51,6 +53,8 @@ public final class BlockCategories {
|
||||
public static final BlockCategory JUNGLE_LOGS = get("minecraft:jungle_logs");
|
||||
public static final BlockCategory LEAVES = get("minecraft:leaves");
|
||||
public static final BlockCategory LOGS = get("minecraft:logs");
|
||||
public static final BlockCategory LOGS_THAT_BURN = get("minecraft:logs_that_burn");
|
||||
public static final BlockCategory MUSHROOM_GROW_BLOCK = get("minecraft:mushroom_grow_block");
|
||||
public static final BlockCategory OAK_LOGS = get("minecraft:oak_logs");
|
||||
public static final BlockCategory PLANKS = get("minecraft:planks");
|
||||
public static final BlockCategory PORTALS = get("minecraft:portals");
|
||||
|
@ -87,6 +87,7 @@ public class EntityTypes {
|
||||
@Nullable public static final EntityType PHANTOM = get("minecraft:phantom");
|
||||
@Nullable public static final EntityType PIG = get("minecraft:pig");
|
||||
@Nullable public static final EntityType PIGLIN = get("minecraft:piglin");
|
||||
@Nullable public static final EntityType PIGLIN_BRUTE = get("minecraft:piglin_brute");
|
||||
@Nullable public static final EntityType PILLAGER = get("minecraft:pillager");
|
||||
@Nullable public static final EntityType PLAYER = get("minecraft:player");
|
||||
@Nullable public static final EntityType POLAR_BEAR = get("minecraft:polar_bear");
|
||||
|
@ -42,7 +42,7 @@ public final class ItemCategories {
|
||||
public static final ItemCategory FENCES = get("minecraft:fences");
|
||||
public static final ItemCategory FISHES = get("minecraft:fishes");
|
||||
public static final ItemCategory FLOWERS = get("minecraft:flowers");
|
||||
public static final ItemCategory FURNACE_MATERIALS = get("minecraft:furnace_materials");
|
||||
@Deprecated public static final ItemCategory FURNACE_MATERIALS = get("minecraft:furnace_materials");
|
||||
public static final ItemCategory GOLD_ORES = get("minecraft:gold_ores");
|
||||
public static final ItemCategory JUNGLE_LOGS = get("minecraft:jungle_logs");
|
||||
public static final ItemCategory LEAVES = get("minecraft:leaves");
|
||||
@ -65,6 +65,7 @@ public final class ItemCategories {
|
||||
public static final ItemCategory SPRUCE_LOGS = get("minecraft:spruce_logs");
|
||||
public static final ItemCategory STAIRS = get("minecraft:stairs");
|
||||
public static final ItemCategory STONE_BRICKS = get("minecraft:stone_bricks");
|
||||
public static final ItemCategory STONE_CRAFTING_MATERIALS = get("minecraft:stone_crafting_materials");
|
||||
public static final ItemCategory STONE_TOOL_MATERIALS = get("minecraft:stone_tool_materials");
|
||||
public static final ItemCategory TALL_FLOWERS = get("minecraft:tall_flowers");
|
||||
public static final ItemCategory TRAPDOORS = get("minecraft:trapdoors");
|
||||
|
@ -629,6 +629,8 @@ public final class ItemTypes {
|
||||
@Nullable public static final ItemType PHANTOM_MEMBRANE = init();
|
||||
@Nullable public static final ItemType PHANTOM_SPAWN_EGG = init();
|
||||
@Nullable public static final ItemType PIG_SPAWN_EGG = init();
|
||||
@Nullable public static final ItemType PIGLIN_BRUTE_SPAWN_EGG = init();
|
||||
@Nullable public static final ItemType PIGLIN_BANNER_PATTERN = init();
|
||||
@Nullable public static final ItemType PILLAGER_SPAWN_EGG = init();
|
||||
@Nullable public static final ItemType PINK_BANNER = init();
|
||||
@Nullable public static final ItemType PINK_BED = init();
|
||||
|
@ -90,7 +90,9 @@ public final class BundledBlockData {
|
||||
Gson gson = gsonBuilder.create();
|
||||
URL url = null;
|
||||
final int dataVersion = WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.WORLD_EDITING).getDataVersion();
|
||||
if (dataVersion > 2224) { // > MC 1.14
|
||||
if (dataVersion > 2577) { // > MC 1.15
|
||||
url = ResourceLoader.getResource(BundledBlockData.class, "blocks.116.json");
|
||||
} else if (dataVersion > 2224) { // > MC 1.14
|
||||
url = ResourceLoader.getResource(BundledBlockData.class, "blocks.115.json");
|
||||
} else if (dataVersion > 1900) { // > MC 1.13
|
||||
url = ResourceLoader.getResource(BundledBlockData.class, "blocks.114.json");
|
||||
|
@ -79,7 +79,9 @@ public final class BundledItemData {
|
||||
Gson gson = gsonBuilder.create();
|
||||
URL url = null;
|
||||
final int dataVersion = WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.WORLD_EDITING).getDataVersion();
|
||||
if (dataVersion > 2224) { // > MC 1.14
|
||||
if (dataVersion > 2577) { // > MC 1.15
|
||||
url = ResourceLoader.getResource(BundledBlockData.class, "items.116.json");
|
||||
} else if (dataVersion > 2224) { // > MC 1.14
|
||||
url = ResourceLoader.getResource(BundledBlockData.class, "items.115.json");
|
||||
} else if (dataVersion > 1900) { // > MC 1.13
|
||||
url = ResourceLoader.getResource(BundledBlockData.class, "items.114.json");
|
||||
|
@ -93,7 +93,11 @@ public class FileSystemSnapshotDatabase implements SnapshotDatabase {
|
||||
|
||||
public FileSystemSnapshotDatabase(Path root, ArchiveNioSupport archiveNioSupport) {
|
||||
checkArgument(Files.isDirectory(root), "Database root is not a directory");
|
||||
this.root = root.toAbsolutePath();
|
||||
try {
|
||||
this.root = root.toRealPath();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Failed to resolve snapshot database path", e);
|
||||
}
|
||||
this.archiveNioSupport = archiveNioSupport;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user