From 1b101740feadd10f425677b9da02ee511f26d3c4 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 16 Feb 2019 17:27:00 +1000 Subject: [PATCH 1/6] Use a proper registry for biomes --- .../sk89q/worldedit/bukkit/BukkitAdapter.java | 27 +++- .../worldedit/bukkit/BukkitBiomeRegistry.java | 39 +----- .../sk89q/worldedit/bukkit/BukkitWorld.java | 26 +--- .../bukkit/adapter/BukkitImplAdapter.java | 23 +--- .../java/com/sk89q/worldedit/EditSession.java | 15 +-- .../worldedit/command/BiomeCommands.java | 18 +-- .../worldedit/command/GenerationCommands.java | 4 +- .../factory/parser/mask/BiomeMaskParser.java | 10 +- .../extent/AbstractDelegateExtent.java | 6 +- .../worldedit/extent/ChangeSetExtent.java | 8 +- .../sk89q/worldedit/extent/InputExtent.java | 4 +- .../sk89q/worldedit/extent/NullExtent.java | 10 +- .../sk89q/worldedit/extent/OutputExtent.java | 4 +- .../extent/clipboard/BlockArrayClipboard.java | 9 +- .../function/biome/BiomeReplace.java | 6 +- .../worldedit/function/mask/BiomeMask2D.java | 16 +-- .../worldedit/history/change/BiomeChange.java | 12 +- .../internal/command/WorldEditBinding.java | 14 +-- .../regions/shape/ArbitraryBiomeShape.java | 49 +++----- .../com/sk89q/worldedit/world/NullWorld.java | 12 +- .../worldedit/world/biome/BiomeName.java | 4 +- .../biome/{BaseBiome.java => BiomeType.java} | 60 +++------ .../worldedit/world/biome/BiomeTypes.java | 117 ++++++++++++++++++ .../sk89q/worldedit/world/biome/Biomes.java | 8 +- .../world/registry/BiomeRegistry.java | 22 +--- .../world/registry/NullBiomeRegistry.java | 18 +-- .../sk89q/worldedit/forge/ForgeAdapter.java | 12 ++ .../worldedit/forge/ForgeBiomeRegistry.java | 22 +--- .../com/sk89q/worldedit/forge/ForgeWorld.java | 11 +- .../sk89q/worldedit/sponge/SpongeAdapter.java | 10 ++ .../worldedit/sponge/SpongeBiomeRegistry.java | 24 +--- .../sk89q/worldedit/sponge/SpongeWorld.java | 10 +- .../sponge/adapter/SpongeImplAdapter.java | 10 -- 33 files changed, 314 insertions(+), 326 deletions(-) rename worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/{BaseBiome.java => BiomeType.java} (50%) create mode 100644 worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java index 44095bea9..e6b290125 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java @@ -33,6 +33,8 @@ import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.Vector3; import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.world.World; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.biome.BiomeTypes; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; import com.sk89q.worldedit.world.block.BlockType; @@ -43,9 +45,9 @@ import com.sk89q.worldedit.world.gamemode.GameMode; import com.sk89q.worldedit.world.gamemode.GameModes; import com.sk89q.worldedit.world.item.ItemType; import com.sk89q.worldedit.world.item.ItemTypes; - import org.bukkit.Bukkit; import org.bukkit.Material; +import org.bukkit.block.Biome; import org.bukkit.block.data.BlockData; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; @@ -304,6 +306,27 @@ public class BukkitAdapter { return GameModes.get(gameMode.name().toLowerCase()); } + /** + * Create a WorldEdit BiomeType from a Bukkit one. + * + * @param biome Bukkit Biome + * @return WorldEdit BiomeType + */ + public static BiomeType adapt(Biome biome) { + return BiomeTypes.get(biome.name().toLowerCase()); + } + + public static Biome adapt(BiomeType biomeType) { + if (!biomeType.getId().startsWith("minecraft:")) { + throw new IllegalArgumentException("Bukkit only supports vanilla biomes"); + } + try { + return Biome.valueOf(biomeType.getId().substring(10).toUpperCase()); + } catch (IllegalArgumentException e) { + return null; + } + } + /** * Create a WorldEdit EntityType from a Bukkit one. * @@ -318,7 +341,7 @@ public class BukkitAdapter { if (!entityType.getId().startsWith("minecraft:")) { throw new IllegalArgumentException("Bukkit only supports vanilla entities"); } - return org.bukkit.entity.EntityType.fromName(entityType.getId().substring(10).toLowerCase()); + return org.bukkit.entity.EntityType.fromName(entityType.getId().substring(10)); } /** diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitBiomeRegistry.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitBiomeRegistry.java index cb0fea4de..27474678f 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitBiomeRegistry.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitBiomeRegistry.java @@ -19,16 +19,11 @@ package com.sk89q.worldedit.bukkit; -import com.sk89q.worldedit.bukkit.adapter.BukkitImplAdapter; -import com.sk89q.worldedit.world.biome.BaseBiome; import com.sk89q.worldedit.world.biome.BiomeData; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.registry.BiomeRegistry; import org.bukkit.block.Biome; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - import javax.annotation.Nullable; /** @@ -41,35 +36,9 @@ class BukkitBiomeRegistry implements BiomeRegistry { @Nullable @Override - public BaseBiome createFromId(int id) { - return new BaseBiome(id); - } - - @Override - public List getBiomes() { - BukkitImplAdapter adapter = WorldEditPlugin.getInstance().getBukkitImplAdapter(); - if (adapter != null) { - List biomes = new ArrayList<>(); - for (Biome biome : Biome.values()) { - int biomeId = adapter.getBiomeId(biome); - biomes.add(new BaseBiome(biomeId)); - } - return biomes; - } else { - return Collections.emptyList(); - } - } - - @Nullable - @Override - public BiomeData getData(BaseBiome biome) { - BukkitImplAdapter adapter = WorldEditPlugin.getInstance().getBukkitImplAdapter(); - if (adapter != null) { - final Biome bukkitBiome = adapter.getBiome(biome.getId()); - return bukkitBiome::name; - } else { - return null; - } + public BiomeData getData(BiomeType biome) { + final Biome bukkitBiome = BukkitAdapter.adapt(biome); + return bukkitBiome == null ? null : bukkitBiome::name; } } diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java index 5b7caad66..8490c891e 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java @@ -34,16 +34,14 @@ import com.sk89q.worldedit.math.Vector3; import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.util.TreeGenerator; import com.sk89q.worldedit.world.AbstractWorld; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockStateHolder; import com.sk89q.worldedit.world.weather.WeatherType; import com.sk89q.worldedit.world.weather.WeatherTypes; - import org.bukkit.Effect; import org.bukkit.TreeType; import org.bukkit.World; -import org.bukkit.block.Biome; import org.bukkit.block.Block; import org.bukkit.block.BlockState; import org.bukkit.block.Chest; @@ -465,25 +463,13 @@ public class BukkitWorld extends AbstractWorld { } @Override - public BaseBiome getBiome(BlockVector2 position) { - BukkitImplAdapter adapter = WorldEditPlugin.getInstance().getBukkitImplAdapter(); - if (adapter != null) { - int id = adapter.getBiomeId(getWorld().getBiome(position.getBlockX(), position.getBlockZ())); - return new BaseBiome(id); - } else { - return new BaseBiome(0); - } + public BiomeType getBiome(BlockVector2 position) { + return BukkitAdapter.adapt(getWorld().getBiome(position.getBlockX(), position.getBlockZ())); } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { - BukkitImplAdapter adapter = WorldEditPlugin.getInstance().getBukkitImplAdapter(); - if (adapter != null) { - Biome bukkitBiome = adapter.getBiome(biome.getId()); - getWorld().setBiome(position.getBlockX(), position.getBlockZ(), bukkitBiome); - return true; - } else { - return false; - } + public boolean setBiome(BlockVector2 position, BiomeType biome) { + getWorld().setBiome(position.getBlockX(), position.getBlockZ(), BukkitAdapter.adapt(biome)); + return true; } } diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplAdapter.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplAdapter.java index 789e60f82..1a4329a4f 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplAdapter.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplAdapter.java @@ -20,15 +20,14 @@ package com.sk89q.worldedit.bukkit.adapter; import com.sk89q.jnbt.CompoundTag; -import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.entity.BaseEntity; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.registry.state.Property; +import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; import com.sk89q.worldedit.world.block.BlockType; import org.bukkit.Location; -import org.bukkit.block.Biome; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; @@ -41,26 +40,6 @@ import javax.annotation.Nullable; */ public interface BukkitImplAdapter { - /** - * Get the biome ID for the given biome. - * - *

Returns 0 if it is not known or it doesn't exist.

- * - * @param biome biome - * @return the biome ID - */ - int getBiomeId(Biome biome); - - /** - * Get the biome ID for the given biome ID.. - * - *

Returns {@link Biome#OCEAN} if it is not known or it doesn't exist.

- * - * @param id the biome ID - * @return the biome - */ - Biome getBiome(int id); - /** * Get the block at the given location. * diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java index f44a217ac..c36f2625f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -52,8 +52,8 @@ import com.sk89q.worldedit.function.block.Counter; import com.sk89q.worldedit.function.block.Naturalizer; import com.sk89q.worldedit.function.generator.GardenPatchGenerator; import com.sk89q.worldedit.function.mask.BlockMask; -import com.sk89q.worldedit.function.mask.BlockTypeMask; import com.sk89q.worldedit.function.mask.BlockStateMask; +import com.sk89q.worldedit.function.mask.BlockTypeMask; import com.sk89q.worldedit.function.mask.BoundedHeightMask; import com.sk89q.worldedit.function.mask.ExistingBlockMask; import com.sk89q.worldedit.function.mask.Mask; @@ -108,7 +108,7 @@ import com.sk89q.worldedit.util.collection.DoubleArrayList; import com.sk89q.worldedit.util.eventbus.EventBus; import com.sk89q.worldedit.world.NullWorld; import com.sk89q.worldedit.world.World; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockCategories; import com.sk89q.worldedit.world.block.BlockState; @@ -117,7 +117,6 @@ import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.block.BlockTypes; import com.sk89q.worldedit.world.registry.LegacyMapper; -import javax.annotation.Nullable; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; @@ -129,6 +128,8 @@ import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; +import javax.annotation.Nullable; + /** * An {@link Extent} that handles history, {@link BlockBag}s, change limits, * block re-ordering, and much more. Most operations in WorldEdit use this class. @@ -562,12 +563,12 @@ public class EditSession implements Extent, AutoCloseable { } @Override - public BaseBiome getBiome(BlockVector2 position) { + public BiomeType getBiome(BlockVector2 position) { return bypassNone.getBiome(position); } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { + public boolean setBiome(BlockVector2 position, BiomeType biome) { return bypassNone.setBiome(position, biome); } @@ -2202,7 +2203,7 @@ public class EditSession implements Extent, AutoCloseable { } } - public int makeBiomeShape(final Region region, final Vector3 zero, final Vector3 unit, final BaseBiome biomeType, final String expressionString, final boolean hollow) throws ExpressionException, MaxChangedBlocksException { + public int makeBiomeShape(final Region region, final Vector3 zero, final Vector3 unit, final BiomeType biomeType, final String expressionString, final boolean hollow) throws ExpressionException, MaxChangedBlocksException { final Vector2 zero2D = zero.toVector2(); final Vector2 unit2D = unit.toVector2(); @@ -2215,7 +2216,7 @@ public class EditSession implements Extent, AutoCloseable { final ArbitraryBiomeShape shape = new ArbitraryBiomeShape(region) { @Override - protected BaseBiome getBiome(int x, int z, BaseBiome defaultBiomeType) { + protected BiomeType getBiome(int x, int z, BiomeType defaultBiomeType) { final Vector2 current = Vector2.at(x, z); environment.setCurrentBlock(current.toVector3(0)); final Vector2 scaled = current.subtract(zero2D).divide(unit2D); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java index 8d94ae739..f3d9e9694 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java @@ -48,12 +48,12 @@ import com.sk89q.worldedit.regions.Regions; import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.util.command.binding.Switch; import com.sk89q.worldedit.world.World; -import com.sk89q.worldedit.world.biome.BaseBiome; import com.sk89q.worldedit.world.biome.BiomeData; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.registry.BiomeRegistry; +import java.util.Collection; import java.util.HashSet; -import java.util.List; import java.util.Set; /** @@ -94,10 +94,10 @@ public class BiomeCommands { BiomeRegistry biomeRegistry = WorldEdit.getInstance().getPlatformManager() .queryCapability(Capability.GAME_HOOKS).getRegistries().getBiomeRegistry(); - List biomes = biomeRegistry.getBiomes(); + Collection biomes = BiomeType.REGISTRY.values(); int totalPages = biomes.size() / 19 + 1; player.print("Available Biomes (page " + page + "/" + totalPages + ") :"); - for (BaseBiome biome : biomes) { + for (BiomeType biome : biomes) { if (offset > 0) { offset--; } else { @@ -129,7 +129,7 @@ public class BiomeCommands { public void biomeInfo(Player player, LocalSession session, CommandContext args) throws WorldEditException { BiomeRegistry biomeRegistry = WorldEdit.getInstance().getPlatformManager() .queryCapability(Capability.GAME_HOOKS).getRegistries().getBiomeRegistry(); - Set biomes = new HashSet<>(); + Set biomes = new HashSet<>(); String qualifier; if (args.hasFlag('t')) { @@ -139,12 +139,12 @@ public class BiomeCommands { return; } - BaseBiome biome = player.getWorld().getBiome(blockPosition.toVector().toBlockPoint().toBlockVector2()); + BiomeType biome = player.getWorld().getBiome(blockPosition.toVector().toBlockPoint().toBlockVector2()); biomes.add(biome); qualifier = "at line of sight point"; } else if (args.hasFlag('p')) { - BaseBiome biome = player.getWorld().getBiome(player.getLocation().toVector().toBlockPoint().toBlockVector2()); + BiomeType biome = player.getWorld().getBiome(player.getLocation().toVector().toBlockPoint().toBlockVector2()); biomes.add(biome); qualifier = "at your position"; @@ -166,7 +166,7 @@ public class BiomeCommands { } player.print(biomes.size() != 1 ? "Biomes " + qualifier + ":" : "Biome " + qualifier + ":"); - for (BaseBiome biome : biomes) { + for (BiomeType biome : biomes) { BiomeData data = biomeRegistry.getData(biome); if (data != null) { player.print(" " + data.getName()); @@ -188,7 +188,7 @@ public class BiomeCommands { ) @Logging(REGION) @CommandPermissions("worldedit.biome.set") - public void setBiome(Player player, LocalSession session, EditSession editSession, BaseBiome target, @Switch('p') boolean atPosition) throws WorldEditException { + public void setBiome(Player player, LocalSession session, EditSession editSession, BiomeType target, @Switch('p') boolean atPosition) throws WorldEditException { World world = player.getWorld(); Region region; Mask mask = editSession.getMask(); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java index 5e0a6139c..5d48ac3d9 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java @@ -43,7 +43,7 @@ import com.sk89q.worldedit.util.command.binding.Range; import com.sk89q.worldedit.util.command.binding.Switch; import com.sk89q.worldedit.util.command.binding.Text; import com.sk89q.worldedit.util.command.parametric.Optional; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; /** * Commands for the generation of shapes and other objects. @@ -337,7 +337,7 @@ public class GenerationCommands { @Logging(ALL) public void generateBiome(Player player, LocalSession session, EditSession editSession, @Selection Region region, - BaseBiome target, + BiomeType target, @Text String expression, @Switch('h') boolean hollow, @Switch('r') boolean useRawCoords, diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/BiomeMaskParser.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/BiomeMaskParser.java index e1ceaca52..bc4f81455 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/BiomeMaskParser.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/BiomeMaskParser.java @@ -28,12 +28,12 @@ import com.sk89q.worldedit.function.mask.BiomeMask2D; import com.sk89q.worldedit.function.mask.Mask; import com.sk89q.worldedit.function.mask.Masks; import com.sk89q.worldedit.internal.registry.InputParser; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.biome.Biomes; import com.sk89q.worldedit.world.registry.BiomeRegistry; +import java.util.Collection; import java.util.HashSet; -import java.util.List; import java.util.Set; public class BiomeMaskParser extends InputParser { @@ -48,11 +48,11 @@ public class BiomeMaskParser extends InputParser { return null; } - Set biomes = new HashSet<>(); + Set biomes = new HashSet<>(); BiomeRegistry biomeRegistry = worldEdit.getPlatformManager().queryCapability(Capability.GAME_HOOKS).getRegistries().getBiomeRegistry(); - List knownBiomes = biomeRegistry.getBiomes(); + Collection knownBiomes = BiomeType.REGISTRY.values(); for (String biomeName : Splitter.on(",").split(input.substring(1))) { - BaseBiome biome = Biomes.findBiomeByName(knownBiomes, biomeName, biomeRegistry); + BiomeType biome = Biomes.findBiomeByName(knownBiomes, biomeName, biomeRegistry); if (biome == null) { throw new InputParseException("Unknown biome '" + biomeName + '\''); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/AbstractDelegateExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/AbstractDelegateExtent.java index 1a11899ca..91310b9a0 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/AbstractDelegateExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/AbstractDelegateExtent.java @@ -30,7 +30,7 @@ import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.util.Location; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; @@ -97,12 +97,12 @@ public abstract class AbstractDelegateExtent implements Extent { } @Override - public BaseBiome getBiome(BlockVector2 position) { + public BiomeType getBiome(BlockVector2 position) { return extent.getBiome(position); } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { + public boolean setBiome(BlockVector2 position, BiomeType biome) { return extent.setBiome(position, biome); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java index 2516b4252..ba6fd0abd 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java @@ -33,7 +33,7 @@ import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.util.Location; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockStateHolder; @@ -69,9 +69,9 @@ public class ChangeSetExtent extends AbstractDelegateExtent { } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { - BaseBiome previous = getBiome(position); - changeSet.add(new BiomeChange(position, previous, new BaseBiome(biome))); + public boolean setBiome(BlockVector2 position, BiomeType biome) { + BiomeType previous = getBiome(position); + changeSet.add(new BiomeChange(position, previous, biome)); return super.setBiome(position, biome); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/InputExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/InputExtent.java index 8b0fd2d48..2c2e91467 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/InputExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/InputExtent.java @@ -22,7 +22,7 @@ package com.sk89q.worldedit.extent; import com.sk89q.worldedit.function.pattern.Pattern; import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; @@ -64,6 +64,6 @@ public interface InputExtent { * @param position the (x, z) location to check the biome at * @return the biome at the location */ - BaseBiome getBiome(BlockVector2 position); + BiomeType getBiome(BlockVector2 position); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/NullExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/NullExtent.java index 056e7fade..52a3d854c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/NullExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/NullExtent.java @@ -27,7 +27,8 @@ import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.util.Location; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.biome.BiomeTypes; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; @@ -80,10 +81,9 @@ public class NullExtent implements Extent { return getBlock(position).toBaseBlock(); } - @Nullable @Override - public BaseBiome getBiome(BlockVector2 position) { - return null; + public BiomeType getBiome(BlockVector2 position) { + return BiomeTypes.THE_VOID; } @Override @@ -92,7 +92,7 @@ public class NullExtent implements Extent { } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { + public boolean setBiome(BlockVector2 position, BiomeType biome) { return false; } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/OutputExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/OutputExtent.java index 63bf8c951..53351e0b0 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/OutputExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/OutputExtent.java @@ -23,7 +23,7 @@ import com.sk89q.worldedit.WorldEditException; import com.sk89q.worldedit.function.operation.Operation; import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BlockStateHolder; import javax.annotation.Nullable; @@ -59,7 +59,7 @@ public interface OutputExtent { * @param biome the biome to set to * @return true if the biome was successfully set (return value may not be accurate) */ - boolean setBiome(BlockVector2 position, BaseBiome biome); + boolean setBiome(BlockVector2 position, BiomeType biome); /** * Return an {@link Operation} that should be called to tie up loose ends diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/BlockArrayClipboard.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/BlockArrayClipboard.java index 2ccc168f9..d4ecc26b3 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/BlockArrayClipboard.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/BlockArrayClipboard.java @@ -29,7 +29,8 @@ import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.util.Location; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.biome.BiomeTypes; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; @@ -160,12 +161,12 @@ public class BlockArrayClipboard implements Clipboard { } @Override - public BaseBiome getBiome(BlockVector2 position) { - return new BaseBiome(0); + public BiomeType getBiome(BlockVector2 position) { + return BiomeTypes.OCEAN; } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { + public boolean setBiome(BlockVector2 position, BiomeType biome) { return false; } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/function/biome/BiomeReplace.java b/worldedit-core/src/main/java/com/sk89q/worldedit/function/biome/BiomeReplace.java index 444f0e4e1..efa53f45a 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/function/biome/BiomeReplace.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/function/biome/BiomeReplace.java @@ -25,7 +25,7 @@ import com.sk89q.worldedit.WorldEditException; import com.sk89q.worldedit.extent.Extent; import com.sk89q.worldedit.function.FlatRegionFunction; import com.sk89q.worldedit.math.BlockVector2; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; /** * Replaces the biome at the locations that this function is applied to. @@ -33,7 +33,7 @@ import com.sk89q.worldedit.world.biome.BaseBiome; public class BiomeReplace implements FlatRegionFunction { private final Extent extent; - private BaseBiome biome; + private BiomeType biome; /** * Create a new instance. @@ -41,7 +41,7 @@ public class BiomeReplace implements FlatRegionFunction { * @param extent an extent * @param biome a biome */ - public BiomeReplace(Extent extent, BaseBiome biome) { + public BiomeReplace(Extent extent, BiomeType biome) { checkNotNull(extent); checkNotNull(biome); this.extent = extent; diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/BiomeMask2D.java b/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/BiomeMask2D.java index 9b04d871d..633159acb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/BiomeMask2D.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/BiomeMask2D.java @@ -23,7 +23,7 @@ import static com.google.common.base.Preconditions.checkNotNull; import com.sk89q.worldedit.extent.Extent; import com.sk89q.worldedit.math.BlockVector2; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import java.util.Arrays; import java.util.Collection; @@ -36,7 +36,7 @@ import java.util.Set; public class BiomeMask2D extends AbstractMask2D { private final Extent extent; - private final Set biomes = new HashSet<>(); + private final Set biomes = new HashSet<>(); /** * Create a new biome mask. @@ -44,7 +44,7 @@ public class BiomeMask2D extends AbstractMask2D { * @param extent the extent * @param biomes a list of biomes to match */ - public BiomeMask2D(Extent extent, Collection biomes) { + public BiomeMask2D(Extent extent, Collection biomes) { checkNotNull(extent); checkNotNull(biomes); this.extent = extent; @@ -57,7 +57,7 @@ public class BiomeMask2D extends AbstractMask2D { * @param extent the extent * @param biome an array of biomes to match */ - public BiomeMask2D(Extent extent, BaseBiome... biome) { + public BiomeMask2D(Extent extent, BiomeType... biome) { this(extent, Arrays.asList(checkNotNull(biome))); } @@ -66,7 +66,7 @@ public class BiomeMask2D extends AbstractMask2D { * * @param biomes a list of biomes */ - public void add(Collection biomes) { + public void add(Collection biomes) { checkNotNull(biomes); this.biomes.addAll(biomes); } @@ -76,7 +76,7 @@ public class BiomeMask2D extends AbstractMask2D { * * @param biome an array of biomes */ - public void add(BaseBiome... biome) { + public void add(BiomeType... biome) { add(Arrays.asList(checkNotNull(biome))); } @@ -85,13 +85,13 @@ public class BiomeMask2D extends AbstractMask2D { * * @return a list of biomes */ - public Collection getBiomes() { + public Collection getBiomes() { return biomes; } @Override public boolean test(BlockVector2 vector) { - BaseBiome biome = extent.getBiome(vector); + BiomeType biome = extent.getBiome(vector); return biomes.contains(biome); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/history/change/BiomeChange.java b/worldedit-core/src/main/java/com/sk89q/worldedit/history/change/BiomeChange.java index 133f38f7f..f8c0ef597 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/history/change/BiomeChange.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/history/change/BiomeChange.java @@ -25,7 +25,7 @@ import com.sk89q.worldedit.WorldEditException; import com.sk89q.worldedit.extent.Extent; import com.sk89q.worldedit.history.UndoContext; import com.sk89q.worldedit.math.BlockVector2; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; /** * Represents a biome change that may be undone or replayed. @@ -37,8 +37,8 @@ import com.sk89q.worldedit.world.biome.BaseBiome; public class BiomeChange implements Change { private final BlockVector2 position; - private final BaseBiome previous; - private final BaseBiome current; + private final BiomeType previous; + private final BiomeType current; /** * Create a new biome change. @@ -47,7 +47,7 @@ public class BiomeChange implements Change { * @param previous the previous biome * @param current the current biome */ - public BiomeChange(BlockVector2 position, BaseBiome previous, BaseBiome current) { + public BiomeChange(BlockVector2 position, BiomeType previous, BiomeType current) { checkNotNull(position); checkNotNull(previous); checkNotNull(current); @@ -70,7 +70,7 @@ public class BiomeChange implements Change { * * @return the previous biome */ - public BaseBiome getPrevious() { + public BiomeType getPrevious() { return previous; } @@ -79,7 +79,7 @@ public class BiomeChange implements Change { * * @return the current biome */ - public BaseBiome getCurrent() { + public BiomeType getCurrent() { return current; } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java index 691eb35ba..267dfb7bf 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java @@ -46,7 +46,7 @@ import com.sk89q.worldedit.util.command.parametric.BindingHelper; import com.sk89q.worldedit.util.command.parametric.BindingMatch; import com.sk89q.worldedit.util.command.parametric.ParameterException; import com.sk89q.worldedit.world.World; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.biome.Biomes; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; @@ -54,7 +54,7 @@ import com.sk89q.worldedit.world.block.BlockStateHolder; import com.sk89q.worldedit.world.registry.BiomeRegistry; import java.util.Arrays; -import java.util.List; +import java.util.Collection; /** * Binds standard WorldEdit classes such as {@link Player} and {@link LocalSession}. @@ -298,23 +298,23 @@ public class WorldEditBinding extends BindingHelper { } /** - * Gets an {@link BaseBiome} from a {@link ArgumentStack}. + * Gets an {@link BiomeType} from a {@link ArgumentStack}. * * @param context the context * @return a pattern * @throws ParameterException on error * @throws WorldEditException on error */ - @BindingMatch(type = BaseBiome.class, + @BindingMatch(type = BiomeType.class, behavior = BindingBehavior.CONSUMES, consumedCount = 1) - public BaseBiome getBiomeType(ArgumentStack context) throws ParameterException, WorldEditException { + public BiomeType getBiomeType(ArgumentStack context) throws ParameterException, WorldEditException { String input = context.next(); if (input != null) { BiomeRegistry biomeRegistry = WorldEdit.getInstance().getPlatformManager() .queryCapability(Capability.GAME_HOOKS).getRegistries().getBiomeRegistry(); - List knownBiomes = biomeRegistry.getBiomes(); - BaseBiome biome = Biomes.findBiomeByName(knownBiomes, input, biomeRegistry); + Collection knownBiomes = BiomeType.REGISTRY.values(); + BiomeType biome = Biomes.findBiomeByName(knownBiomes, input, biomeRegistry); if (biome != null) { return biome; } else { diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java index 0ebdc7393..de1324852 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java @@ -24,7 +24,8 @@ import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.regions.CuboidRegion; import com.sk89q.worldedit.regions.FlatRegion; import com.sk89q.worldedit.regions.Region; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.biome.BiomeTypes; /** * Generates solid and hollow shapes according to materials returned by the @@ -54,10 +55,10 @@ public abstract class ArbitraryBiomeShape { cacheOffsetX = min.getBlockX() - 1; cacheOffsetZ = min.getBlockZ() - 1; - cacheSizeX = (int) (max.getX() - cacheOffsetX + 2); - cacheSizeZ = (int) (max.getZ() - cacheOffsetZ + 2); + cacheSizeX = max.getX() - cacheOffsetX + 2; + cacheSizeZ = max.getZ() - cacheOffsetZ + 2; - cache = new BaseBiome[cacheSizeX * cacheSizeZ]; + cache = new BiomeType[cacheSizeX * cacheSizeZ]; } protected Iterable getExtent() { @@ -71,7 +72,7 @@ public abstract class ArbitraryBiomeShape { * OUTSIDE = outside * else = inside */ - private final BaseBiome[] cache; + private final BiomeType[] cache; /** * Override this function to specify the shape to generate. @@ -81,17 +82,17 @@ public abstract class ArbitraryBiomeShape { * @param defaultBaseBiome The default biome for the current column. * @return material to place or null to not place anything. */ - protected abstract BaseBiome getBiome(int x, int z, BaseBiome defaultBaseBiome); + protected abstract BiomeType getBiome(int x, int z, BiomeType defaultBaseBiome); - private BaseBiome getBiomeCached(int x, int z, BaseBiome baseBiome) { + private BiomeType getBiomeCached(int x, int z, BiomeType baseBiome) { final int index = (z - cacheOffsetZ) + (x - cacheOffsetX) * cacheSizeZ; - final BaseBiome cacheEntry = cache[index]; + final BiomeType cacheEntry = cache[index]; if (cacheEntry == null) {// unknown, fetch material - final BaseBiome material = getBiome(x, z, baseBiome); + final BiomeType material = getBiome(x, z, baseBiome); if (material == null) { // outside - cache[index] = OUTSIDE; + cache[index] = BiomeTypes.THE_VOID; return null; } @@ -99,7 +100,7 @@ public abstract class ArbitraryBiomeShape { return material; } - if (cacheEntry == OUTSIDE) { + if (cacheEntry == BiomeTypes.THE_VOID) { // outside return null; } @@ -107,16 +108,16 @@ public abstract class ArbitraryBiomeShape { return cacheEntry; } - private boolean isInsideCached(int x, int z, BaseBiome baseBiome) { + private boolean isInsideCached(int x, int z, BiomeType baseBiome) { final int index = (z - cacheOffsetZ) + (x - cacheOffsetX) * cacheSizeZ; - final BaseBiome cacheEntry = cache[index]; + final BiomeType cacheEntry = cache[index]; if (cacheEntry == null) { // unknown block, meaning they must be outside the extent at this stage, but might still be inside the shape return getBiomeCached(x, z, baseBiome) != null; } - return cacheEntry != OUTSIDE; + return cacheEntry != BiomeTypes.THE_VOID; } /** @@ -127,7 +128,7 @@ public abstract class ArbitraryBiomeShape { * @param hollow Specifies whether to generate a hollow shape. * @return number of affected blocks. */ - public int generate(EditSession editSession, BaseBiome baseBiome, boolean hollow) { + public int generate(EditSession editSession, BiomeType baseBiome, boolean hollow) { int affected = 0; for (BlockVector2 position : getExtent()) { @@ -135,8 +136,8 @@ public abstract class ArbitraryBiomeShape { int z = position.getBlockZ(); if (!hollow) { - final BaseBiome material = getBiome(x, z, baseBiome); - if (material != null && material != OUTSIDE) { + final BiomeType material = getBiome(x, z, baseBiome); + if (material != null && material != BiomeTypes.THE_VOID) { editSession.getWorld().setBiome(position, material); ++affected; } @@ -144,7 +145,7 @@ public abstract class ArbitraryBiomeShape { continue; } - final BaseBiome material = getBiomeCached(x, z, baseBiome); + final BiomeType material = getBiomeCached(x, z, baseBiome); if (material == null) { continue; } @@ -180,16 +181,4 @@ public abstract class ArbitraryBiomeShape { return affected; } - private static final BaseBiome OUTSIDE = new BaseBiome(0) { - @Override - public int hashCode() { - return 0; - } - - @Override - public boolean equals(Object o) { - return this == o; - } - }; - } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/NullWorld.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/NullWorld.java index 3a9153bd7..f8a286dfd 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/NullWorld.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/NullWorld.java @@ -31,12 +31,14 @@ import com.sk89q.worldedit.math.Vector3; import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.util.TreeGenerator.TreeType; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.biome.BiomeTypes; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; import com.sk89q.worldedit.world.block.BlockTypes; import com.sk89q.worldedit.world.weather.WeatherType; +import com.sk89q.worldedit.world.weather.WeatherTypes; import java.util.Collections; import java.util.List; @@ -80,12 +82,12 @@ public class NullWorld extends AbstractWorld { } @Override - public BaseBiome getBiome(BlockVector2 position) { - return null; + public BiomeType getBiome(BlockVector2 position) { + return BiomeTypes.THE_VOID; } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { + public boolean setBiome(BlockVector2 position, BiomeType biome) { return false; } @@ -109,7 +111,7 @@ public class NullWorld extends AbstractWorld { @Override public WeatherType getWeather() { - return null; + return WeatherTypes.CLEAR; } @Override diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeName.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeName.java index 45018ed41..83c3faa58 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeName.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeName.java @@ -29,7 +29,7 @@ import javax.annotation.Nullable; /** * Returns the name of a biome using a given {@code BiomeRegistry}. */ -class BiomeName implements Function { +class BiomeName implements Function { private final BiomeRegistry registry; @@ -45,7 +45,7 @@ class BiomeName implements Function { @Nullable @Override - public String apply(BaseBiome input) { + public String apply(BiomeType input) { BiomeData data = registry.getData(input); if (data != null) { return data.getName(); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BaseBiome.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeType.java similarity index 50% rename from worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BaseBiome.java rename to worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeType.java index f60299f66..7dc155253 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BaseBiome.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeType.java @@ -19,64 +19,42 @@ package com.sk89q.worldedit.world.biome; -import static com.google.common.base.Preconditions.checkNotNull; +import com.sk89q.worldedit.registry.NamespacedRegistry; /** - * Basic storage object to represent a given biome. + * All the types of biomes in the game. */ -public class BaseBiome { +public class BiomeType { - private int id; + public static final NamespacedRegistry REGISTRY = new NamespacedRegistry<>("biome type"); - /** - * Create a new biome with the given biome ID. - * - * @param id the biome ID - */ - public BaseBiome(int id) { + private String id; + + public BiomeType(String id) { this.id = id; } /** - * Create a clone of the given biome. + * Gets the ID of this biome. * - * @param biome the biome to clone + * @return The id */ - public BaseBiome(BaseBiome biome) { - checkNotNull(biome); - this.id = biome.getId(); - } - - /** - * Get the biome ID. - * - * @return the biome ID - */ - public int getId() { - return id; - } - - /** - * Set the biome id. - * - * @param id the biome ID - */ - public void setId(int id) { - this.id = id; + public String getId() { + return this.id; } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - BaseBiome baseBiome = (BaseBiome) o; - - return id == baseBiome.id; + public String toString() { + return getId(); } @Override public int hashCode() { - return id; + return this.id.hashCode(); + } + + @Override + public boolean equals(Object obj) { + return obj instanceof BiomeType && this.id.equals(((BiomeType) obj).id); } } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java new file mode 100644 index 000000000..732c4926e --- /dev/null +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java @@ -0,0 +1,117 @@ +/* + * WorldEdit, a Minecraft world manipulation toolkit + * Copyright (C) sk89q + * Copyright (C) WorldEdit team and contributors + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + +package com.sk89q.worldedit.world.biome; + +import javax.annotation.Nullable; + +/** + * Stores a list of common Biome String IDs. + */ +public class BiomeTypes { + + public static final BiomeType BADLANDS = register("minecraft:badlands"); + public static final BiomeType BADLANDS_PLATEAU = register("minecraft:badlands_plateau"); + public static final BiomeType BEACH = register("minecraft:beach"); + public static final BiomeType BIRCH_FOREST = register("minecraft:birch_forest"); + public static final BiomeType BIRCH_FOREST_HILLS = register("minecraft:birch_forest_hills"); + public static final BiomeType COLD_OCEAN = register("minecraft:cold_ocean"); + public static final BiomeType DARK_FOREST = register("minecraft:dark_forest"); + public static final BiomeType DARK_FOREST_HILLS = register("minecraft:dark_forest_hills"); + public static final BiomeType DEEP_COLD_OCEAN = register("minecraft:deep_cold_ocean"); + public static final BiomeType DEEP_FROZEN_OCEAN = register("minecraft:deep_frozen_ocean"); + public static final BiomeType DEEP_LUKEWARM_OCEAN = register("minecraft:deep_lukewarm_ocean"); + public static final BiomeType DEEP_OCEAN = register("minecraft:deep_ocean"); + public static final BiomeType DEEP_WARM_OCEAN = register("minecraft:deep_warm_ocean"); + public static final BiomeType DESERT = register("minecraft:desert"); + public static final BiomeType DESERT_HILLS = register("minecraft:desert_hills"); + public static final BiomeType DESERT_LAKES = register("minecraft:desert_lakes"); + public static final BiomeType END_BARRENS = register("minecraft:end_barrens"); + public static final BiomeType END_HIGHLANDS = register("minecraft:end_highlands"); + public static final BiomeType END_MIDLANDS = register("minecraft:end_midlands"); + public static final BiomeType ERODED_BADLANDS = register("minecraft:eroded_badlands"); + public static final BiomeType FLOWER_FOREST = register("minecraft:flower_forest"); + public static final BiomeType FOREST = register("minecraft:forest"); + public static final BiomeType FROZEN_OCEAN = register("minecraft:frozen_ocean"); + public static final BiomeType FROZEN_RIVER = register("minecraft:frozen_river"); + public static final BiomeType GIANT_SPRUCE_TAIGA = register("minecraft:giant_spruce_taiga"); + public static final BiomeType GIANT_SPRUCE_TAIGA_HILLS = register("minecraft:giant_spruce_taiga_hills"); + public static final BiomeType GIANT_TREE_TAIGA = register("minecraft:giant_tree_taiga"); + public static final BiomeType GIANT_TREE_TAIGA_HILLS = register("minecraft:giant_tree_taiga_hills"); + public static final BiomeType GRAVELLY_MOUNTAINS = register("minecraft:gravelly_mountains"); + public static final BiomeType ICE_SPIKES = register("minecraft:ice_spikes"); + public static final BiomeType JUNGLE = register("minecraft:jungle"); + public static final BiomeType JUNGLE_EDGE = register("minecraft:jungle_edge"); + public static final BiomeType JUNGLE_HILLS = register("minecraft:jungle_hills"); + public static final BiomeType LUKEWARM_OCEAN = register("minecraft:lukewarm_ocean"); + public static final BiomeType MODIFIED_BADLANDS_PLATEAU = register("minecraft:modified_badlands_plateau"); + public static final BiomeType MODIFIED_GRAVELLY_MOUNTAINS = register("minecraft:modified_gravelly_mountains"); + public static final BiomeType MODIFIED_JUNGLE = register("minecraft:modified_jungle"); + public static final BiomeType MODIFIED_JUNGLE_EDGE = register("minecraft:modified_jungle_edge"); + public static final BiomeType MODIFIED_WOODED_BADLANDS_PLATEAU = register("minecraft:modified_wooded_badlands_plateau"); + public static final BiomeType MOUNTAIN_EDGE = register("minecraft:mountain_edge"); + public static final BiomeType MOUNTAINS = register("minecraft:mountains"); + public static final BiomeType MUSHROOM_FIELD_SHORE = register("minecraft:mushroom_field_shore"); + public static final BiomeType MUSHROOM_FIELDS = register("minecraft:mushroom_fields"); + public static final BiomeType NETHER = register("minecraft:nether"); + public static final BiomeType OCEAN = register("minecraft:ocean"); + public static final BiomeType PLAINS = register("minecraft:plains"); + public static final BiomeType RIVER = register("minecraft:river"); + public static final BiomeType SAVANNA = register("minecraft:savanna"); + public static final BiomeType SAVANNA_PLATEAU = register("minecraft:savanna_plateau"); + public static final BiomeType SHATTERED_SAVANNA = register("minecraft:shattered_savanna"); + public static final BiomeType SHATTERED_SAVANNA_PLATEAU = register("minecraft:shattered_savanna_plateau"); + public static final BiomeType SMALL_END_ISLANDS = register("minecraft:small_end_islands"); + public static final BiomeType SNOWY_BEACH = register("minecraft:snowy_beach"); + public static final BiomeType SNOWY_MOUNTAINS = register("minecraft:snowy_mountains"); + public static final BiomeType SNOWY_TAIGA = register("minecraft:snowy_taiga"); + public static final BiomeType SNOWY_TAIGA_HILLS = register("minecraft:snowy_taiga_hills"); + public static final BiomeType SNOWY_TAIGA_MOUNTAINS = register("minecraft:snowy_taiga_mountains"); + public static final BiomeType SNOWY_TUNDRA = register("minecraft:snowy_tundra"); + public static final BiomeType STONE_SHORE = register("minecraft:stone_shore"); + public static final BiomeType SUNFLOWER_PLAINS = register("minecraft:sunflower_plains"); + public static final BiomeType SWAMP = register("minecraft:swamp"); + public static final BiomeType SWAMP_HILLS = register("minecraft:swamp_hills"); + public static final BiomeType TAIGA = register("minecraft:taiga"); + public static final BiomeType TAIGA_HILLS = register("minecraft:taiga_hills"); + public static final BiomeType TAIGA_MOUNTAINS = register("minecraft:taiga_mountains"); + public static final BiomeType TALL_BIRCH_FOREST = register("minecraft:tall_birch_forest"); + public static final BiomeType TALL_BIRCH_HILLS = register("minecraft:tall_birch_hills"); + public static final BiomeType THE_END = register("minecraft:the_end"); + public static final BiomeType THE_VOID = register("minecraft:the_void"); + public static final BiomeType WARM_OCEAN = register("minecraft:warm_ocean"); + public static final BiomeType WOODED_BADLANDS_PLATEAU = register("minecraft:wooded_badlands_plateau"); + public static final BiomeType WOODED_HILLS = register("minecraft:wooded_hills"); + public static final BiomeType WOODED_MOUNTAINS = register("minecraft:wooded_mountains"); + + private BiomeTypes() { + } + + private static BiomeType register(final String id) { + return register(new BiomeType(id)); + } + + public static BiomeType register(final BiomeType biome) { + return BiomeType.REGISTRY.register(biome.getId(), biome); + } + + public static @Nullable BiomeType get(final String id) { + return BiomeType.REGISTRY.get(id); + } +} diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/Biomes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/Biomes.java index 0282227db..8c73ddf01 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/Biomes.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/Biomes.java @@ -50,17 +50,17 @@ public final class Biomes { * @return a biome or null */ @Nullable - public static BaseBiome findBiomeByName(Collection biomes, String name, BiomeRegistry registry) { + public static BiomeType findBiomeByName(Collection biomes, String name, BiomeRegistry registry) { checkNotNull(biomes); checkNotNull(name); checkNotNull(registry); Function compare = new LevenshteinDistance(name, false, LevenshteinDistance.STANDARD_CHARS); - WeightedChoice chooser = new WeightedChoice<>(Functions.compose(compare::apply, new BiomeName(registry)), 0); - for (BaseBiome biome : biomes) { + WeightedChoice chooser = new WeightedChoice<>(Functions.compose(compare::apply, new BiomeName(registry)), 0); + for (BiomeType biome : biomes) { chooser.consider(biome); } - Optional> choice = chooser.getChoice(); + Optional> choice = chooser.getChoice(); if (choice.isPresent() && choice.get().getScore() <= 1) { return choice.get().getValue(); } else { diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/BiomeRegistry.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/BiomeRegistry.java index 8a581b7a6..52874d034 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/BiomeRegistry.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/BiomeRegistry.java @@ -19,10 +19,8 @@ package com.sk89q.worldedit.world.registry; -import com.sk89q.worldedit.world.biome.BaseBiome; import com.sk89q.worldedit.world.biome.BiomeData; - -import java.util.List; +import com.sk89q.worldedit.world.biome.BiomeType; import javax.annotation.Nullable; @@ -31,22 +29,6 @@ import javax.annotation.Nullable; */ public interface BiomeRegistry { - /** - * Create a new biome given its biome ID. - * - * @param id its biome ID - * @return a new biome or null if it can't be created - */ - @Nullable - BaseBiome createFromId(int id); - - /** - * Get a list of available biomes. - * - * @return a list of biomes - */ - List getBiomes(); - /** * Get data about a biome. * @@ -54,6 +36,6 @@ public interface BiomeRegistry { * @return a data object or null if information is not known */ @Nullable - BiomeData getData(BaseBiome biome); + BiomeData getData(BiomeType biome); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/NullBiomeRegistry.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/NullBiomeRegistry.java index 551cbc039..ac0d95240 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/NullBiomeRegistry.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/NullBiomeRegistry.java @@ -19,11 +19,8 @@ package com.sk89q.worldedit.world.registry; -import com.sk89q.worldedit.world.biome.BaseBiome; import com.sk89q.worldedit.world.biome.BiomeData; - -import java.util.Collections; -import java.util.List; +import com.sk89q.worldedit.world.biome.BiomeType; import javax.annotation.Nullable; @@ -40,18 +37,7 @@ public class NullBiomeRegistry implements BiomeRegistry { @Nullable @Override - public BaseBiome createFromId(int id) { - return null; - } - - @Override - public List getBiomes() { - return Collections.emptyList(); - } - - @Nullable - @Override - public BiomeData getData(BaseBiome biome) { + public BiomeData getData(BiomeType biome) { return null; } diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeAdapter.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeAdapter.java index e0f319cee..f28e35a0b 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeAdapter.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeAdapter.java @@ -30,14 +30,18 @@ import com.sk89q.worldedit.registry.state.Property; import com.sk89q.worldedit.util.Direction; import com.sk89q.worldedit.world.World; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.biome.BiomeTypes; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.properties.PropertyEnum; import net.minecraft.block.properties.PropertyInteger; import net.minecraft.util.EnumFacing; +import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Vec3d; +import net.minecraft.world.biome.Biome; import java.util.stream.Collectors; @@ -50,6 +54,14 @@ final class ForgeAdapter { return new ForgeWorld(world); } + public static Biome adapt(BiomeType biomeType) { + return Biome.REGISTRY.getObject(new ResourceLocation(biomeType.getId())); + } + + public static BiomeType adapt(Biome biome) { + return BiomeTypes.get(biome.getRegistryName().toString()); + } + public static Vector3 adapt(Vec3d vector) { return Vector3.at(vector.x, vector.y, vector.z); } diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeBiomeRegistry.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeBiomeRegistry.java index 06a11ea76..986a3afc2 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeBiomeRegistry.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeBiomeRegistry.java @@ -19,36 +19,20 @@ package com.sk89q.worldedit.forge; -import com.sk89q.worldedit.world.biome.BaseBiome; import com.sk89q.worldedit.world.biome.BiomeData; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.registry.BiomeRegistry; import net.minecraft.world.biome.Biome; -import java.util.ArrayList; -import java.util.List; - /** * Provides access to biome data in Forge. */ class ForgeBiomeRegistry implements BiomeRegistry { - @Override - public BaseBiome createFromId(int id) { - return new BaseBiome(id); - } @Override - public List getBiomes() { - List list = new ArrayList<>(); - for (Biome biome : Biome.REGISTRY) { - list.add(new BaseBiome(Biome.getIdForBiome(biome))); - } - return list; - } - - @Override - public BiomeData getData(BaseBiome biome) { - return new ForgeBiomeData(Biome.getBiome(biome.getId())); + public BiomeData getData(BiomeType biome) { + return new ForgeBiomeData(ForgeAdapter.adapt(biome)); } /** diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java index d63d8673a..09fcc4241 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java @@ -41,7 +41,7 @@ import com.sk89q.worldedit.util.Direction; import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.util.TreeGenerator.TreeType; import com.sk89q.worldedit.world.AbstractWorld; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; @@ -49,7 +49,6 @@ import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.item.ItemTypes; import com.sk89q.worldedit.world.weather.WeatherType; import com.sk89q.worldedit.world.weather.WeatherTypes; - import net.minecraft.block.Block; import net.minecraft.block.BlockLeaves; import net.minecraft.block.BlockOldLeaf; @@ -262,19 +261,19 @@ public class ForgeWorld extends AbstractWorld { } @Override - public BaseBiome getBiome(BlockVector2 position) { + public BiomeType getBiome(BlockVector2 position) { checkNotNull(position); - return new BaseBiome(Biome.getIdForBiome(getWorld().getBiomeForCoordsBody(new BlockPos(position.getBlockX(), 0, position.getBlockZ())))); + return ForgeAdapter.adapt(getWorld().getBiomeForCoordsBody(new BlockPos(position.getBlockX(), 0, position.getBlockZ()))); } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { + public boolean setBiome(BlockVector2 position, BiomeType biome) { checkNotNull(position); checkNotNull(biome); Chunk chunk = getWorld().getChunkFromBlockCoords(new BlockPos(position.getBlockX(), 0, position.getBlockZ())); if (chunk.isLoaded()) { - chunk.getBiomeArray()[((position.getBlockZ() & 0xF) << 4 | position.getBlockX() & 0xF)] = (byte) biome.getId(); + chunk.getBiomeArray()[((position.getBlockZ() & 0xF) << 4 | position.getBlockX() & 0xF)] = (byte) Biome.getIdForBiome(ForgeAdapter.adapt(biome)); return true; } diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeAdapter.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeAdapter.java index f5df77298..d8dc2760f 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeAdapter.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeAdapter.java @@ -26,6 +26,8 @@ import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.Vector3; import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.world.World; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.biome.BiomeTypes; import org.spongepowered.api.Sponge; import org.spongepowered.api.entity.living.player.Player; @@ -103,6 +105,14 @@ public class SpongeAdapter { } } + public static BiomeType adapt(org.spongepowered.api.world.biome.BiomeType biomeType) { + return BiomeTypes.get(biomeType.getId()); + } + + public static org.spongepowered.api.world.biome.BiomeType adapt(BiomeType biomeType) { + return Sponge.getRegistry().getType(org.spongepowered.api.world.biome.BiomeType.class, biomeType.getId()).orElse(null); + } + /** * Create a WorldEdit location from a Sponge location. * diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeBiomeRegistry.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeBiomeRegistry.java index 1b1955bdb..b44d13aae 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeBiomeRegistry.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeBiomeRegistry.java @@ -19,15 +19,10 @@ package com.sk89q.worldedit.sponge; -import com.sk89q.worldedit.world.biome.BaseBiome; import com.sk89q.worldedit.world.biome.BiomeData; import com.sk89q.worldedit.world.registry.BiomeRegistry; -import org.spongepowered.api.Sponge; import org.spongepowered.api.world.biome.BiomeType; -import java.util.ArrayList; -import java.util.List; - import javax.annotation.Nullable; /** @@ -37,23 +32,8 @@ class SpongeBiomeRegistry implements BiomeRegistry { @Nullable @Override - public BaseBiome createFromId(int id) { - return new BaseBiome(id); - } - - @Override - public List getBiomes() { - List list = new ArrayList<>(); - for (BiomeType biome : Sponge.getGame().getRegistry().getAllOf(BiomeType.class)) { - list.add(new BaseBiome(SpongeWorldEdit.inst().getAdapter().resolve(biome))); - } - return list; - } - - @Nullable - @Override - public BiomeData getData(BaseBiome biome) { - return new SpongeBiomeData(SpongeWorldEdit.inst().getAdapter().resolveBiome(biome.getId())); + public BiomeData getData(com.sk89q.worldedit.world.biome.BiomeType biome) { + return new SpongeBiomeData(SpongeAdapter.adapt(biome)); } private static class SpongeBiomeData implements BiomeData { diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java index 293f5f604..743bf7198 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java @@ -35,7 +35,7 @@ import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.registry.state.Property; import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.world.AbstractWorld; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockStateHolder; import com.sk89q.worldedit.world.item.ItemTypes; @@ -192,17 +192,17 @@ public abstract class SpongeWorld extends AbstractWorld { } @Override - public BaseBiome getBiome(BlockVector2 position) { + public BiomeType getBiome(BlockVector2 position) { checkNotNull(position); - return new BaseBiome(SpongeWorldEdit.inst().getAdapter().resolve(getWorld().getBiome(position.getBlockX(), 0, position.getBlockZ()))); + return SpongeAdapter.adapt(getWorld().getBiome(position.getBlockX(), 0, position.getBlockZ())); } @Override - public boolean setBiome(BlockVector2 position, BaseBiome biome) { + public boolean setBiome(BlockVector2 position, BiomeType biome) { checkNotNull(position); checkNotNull(biome); - getWorld().setBiome(position.getBlockX(), 0, position.getBlockZ(), SpongeWorldEdit.inst().getAdapter().resolveBiome(biome.getId())); + getWorld().setBiome(position.getBlockX(), 0, position.getBlockZ(), SpongeAdapter.adapt(biome)); return true; } diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/adapter/SpongeImplAdapter.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/adapter/SpongeImplAdapter.java index d6cb96f8e..d2ddf99e5 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/adapter/SpongeImplAdapter.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/adapter/SpongeImplAdapter.java @@ -36,16 +36,6 @@ import org.spongepowered.api.world.biome.BiomeType; */ public interface SpongeImplAdapter { - /** - * Resolves the numerical ID from this {@link BiomeType} - * - * @param type The biometype - * @return The numerical ID - */ - int resolve(BiomeType type); - - BiomeType resolveBiome(int intID); - BaseEntity createBaseEntity(Entity entity); ItemStack makeSpongeStack(BaseItemStack itemStack); From db1315e04319130ac5082b23972c95c83f5d2e2d Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 16 Feb 2019 19:35:13 +1000 Subject: [PATCH 2/6] Refactor registries to entirely use the platform --- .../worldedit/bukkit/WorldEditPlugin.java | 53 +- .../sk89q/worldedit/LocalConfiguration.java | 142 +- .../util/PropertiesConfiguration.java | 2 +- .../worldedit/util/YAMLConfiguration.java | 2 +- .../worldedit/world/biome/BiomeTypes.java | 146 +- .../worldedit/world/block/BlockTypes.java | 1212 +++++++------ .../world/block/FuzzyBlockState.java | 7 +- .../worldedit/world/entity/EntityTypes.java | 198 +- .../sk89q/worldedit/world/item/ItemTypes.java | 1588 ++++++++--------- .../transform/BlockTransformExtentTest.java | 2 +- .../sk89q/worldedit/forge/ForgeWorldEdit.java | 4 +- .../worldedit/sponge/SpongeWorldEdit.java | 5 +- 12 files changed, 1695 insertions(+), 1666 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 3899db50f..2a05d9c2d 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -33,12 +33,22 @@ import com.sk89q.worldedit.bukkit.adapter.BukkitImplLoader; import com.sk89q.worldedit.event.platform.CommandEvent; import com.sk89q.worldedit.event.platform.CommandSuggestionEvent; import com.sk89q.worldedit.event.platform.PlatformReadyEvent; +import com.sk89q.worldedit.extension.input.InputParseException; +import com.sk89q.worldedit.extension.input.ParserContext; import com.sk89q.worldedit.extension.platform.Actor; import com.sk89q.worldedit.extension.platform.Capability; import com.sk89q.worldedit.extension.platform.Platform; import com.sk89q.worldedit.extent.inventory.BlockBag; - +import com.sk89q.worldedit.registry.state.Property; +import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.block.BlockState; +import com.sk89q.worldedit.world.block.BlockType; +import com.sk89q.worldedit.world.block.FuzzyBlockState; +import com.sk89q.worldedit.world.entity.EntityType; +import com.sk89q.worldedit.world.item.ItemType; import org.bstats.bukkit.Metrics; +import org.bukkit.Material; +import org.bukkit.block.Biome; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.TabCompleter; @@ -51,6 +61,7 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.List; +import java.util.Map; import java.util.jar.JarFile; import java.util.logging.Level; import java.util.logging.Logger; @@ -88,6 +99,7 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter { server = new BukkitServerInterface(this, getServer()); worldEdit.getPlatformManager().register(server); loadAdapter(); // Need an adapter to work with special blocks with NBT data + setupRegistries(); worldEdit.loadMappings(); loadConfig(); // Load configuration @@ -109,6 +121,45 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter { new Metrics(this); } + public void setupRegistries() { + // Biome + for (Biome biome : Biome.values()) { + BiomeType.REGISTRY.register("minecraft:" + biome.name().toLowerCase(), new BiomeType("minecraft:" + biome.name().toLowerCase())); + } + // Block & Item + for (Material material : Material.values()) { + if (material.isBlock()) { + BlockType.REGISTRY.register(material.getKey().toString(), new BlockType(material.getKey().toString(), blockState -> { + // TODO Use something way less hacky than this. + ParserContext context = new ParserContext(); + context.setPreferringWildcard(true); + context.setTryLegacy(false); + context.setRestricted(false); + try { + FuzzyBlockState state = (FuzzyBlockState) WorldEdit.getInstance().getBlockFactory().parseFromInput( + BukkitAdapter.adapt(blockState.getBlockType()).createBlockData().getAsString(), context + ).toImmutableState(); + BlockState defaultState = blockState.getBlockType().getAllStates().get(0); + for (Map.Entry, Object> propertyObjectEntry : state.getStates().entrySet()) { + defaultState = defaultState.with((Property) propertyObjectEntry.getKey(), propertyObjectEntry.getValue()); + } + return defaultState; + } catch (InputParseException e) { + e.printStackTrace(); + return blockState; + } + })); + } + if (material.isItem()) { + ItemType.REGISTRY.register(material.getKey().toString(), new ItemType(material.getKey().toString())); + } + } + // Entity + for (org.bukkit.entity.EntityType entityType : org.bukkit.entity.EntityType.values()) { + EntityType.REGISTRY.register("minecraft:" + entityType.name().toLowerCase(), new EntityType("minecraft:" + entityType.name().toLowerCase())); + } + } + private void loadConfig() { createDefaultConfiguration("config.yml"); // Create the default configuration file diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java index a56e2f06e..120d4ddb4 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java @@ -19,86 +19,25 @@ package com.sk89q.worldedit; +import com.google.common.collect.Lists; import com.sk89q.worldedit.util.logging.LogFormat; +import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.block.BlockTypes; -import com.sk89q.worldedit.world.item.ItemTypes; import com.sk89q.worldedit.world.registry.LegacyMapper; import com.sk89q.worldedit.world.snapshot.SnapshotRepository; import java.io.File; import java.util.HashSet; +import java.util.List; +import java.util.Objects; import java.util.Set; +import java.util.function.IntFunction; /** * Represents WorldEdit's configuration. */ public abstract class LocalConfiguration { - protected static final String[] defaultDisallowedBlocks = new String[] { - // dangerous stuff (physics/drops items) - BlockTypes.OAK_SAPLING.getId(), - BlockTypes.JUNGLE_SAPLING.getId(), - BlockTypes.DARK_OAK_SAPLING.getId(), - BlockTypes.SPRUCE_SAPLING.getId(), - BlockTypes.BIRCH_SAPLING.getId(), - BlockTypes.ACACIA_SAPLING.getId(), - BlockTypes.BLACK_BED.getId(), - BlockTypes.BLUE_BED.getId(), - BlockTypes.BROWN_BED.getId(), - BlockTypes.CYAN_BED.getId(), - BlockTypes.GRAY_BED.getId(), - BlockTypes.GREEN_BED.getId(), - BlockTypes.LIGHT_BLUE_BED.getId(), - BlockTypes.LIGHT_GRAY_BED.getId(), - BlockTypes.LIME_BED.getId(), - BlockTypes.MAGENTA_BED.getId(), - BlockTypes.ORANGE_BED.getId(), - BlockTypes.PINK_BED.getId(), - BlockTypes.PURPLE_BED.getId(), - BlockTypes.RED_BED.getId(), - BlockTypes.WHITE_BED.getId(), - BlockTypes.YELLOW_BED.getId(), - BlockTypes.POWERED_RAIL.getId(), - BlockTypes.DETECTOR_RAIL.getId(), - BlockTypes.GRASS.getId(), - BlockTypes.DEAD_BUSH.getId(), - BlockTypes.MOVING_PISTON.getId(), - BlockTypes.PISTON_HEAD.getId(), - BlockTypes.SUNFLOWER.getId(), - BlockTypes.ROSE_BUSH.getId(), - BlockTypes.DANDELION.getId(), - BlockTypes.POPPY.getId(), - BlockTypes.BROWN_MUSHROOM.getId(), - BlockTypes.RED_MUSHROOM.getId(), - BlockTypes.TNT.getId(), - BlockTypes.TORCH.getId(), - BlockTypes.FIRE.getId(), - BlockTypes.REDSTONE_WIRE.getId(), - BlockTypes.WHEAT.getId(), - BlockTypes.POTATOES.getId(), - BlockTypes.CARROTS.getId(), - BlockTypes.MELON_STEM.getId(), - BlockTypes.PUMPKIN_STEM.getId(), - BlockTypes.BEETROOTS.getId(), - BlockTypes.RAIL.getId(), - BlockTypes.LEVER.getId(), - BlockTypes.REDSTONE_TORCH.getId(), - BlockTypes.REDSTONE_WALL_TORCH.getId(), - BlockTypes.REPEATER.getId(), - BlockTypes.COMPARATOR.getId(), - BlockTypes.STONE_BUTTON.getId(), - BlockTypes.BIRCH_BUTTON.getId(), - BlockTypes.ACACIA_BUTTON.getId(), - BlockTypes.DARK_OAK_BUTTON.getId(), - BlockTypes.JUNGLE_BUTTON.getId(), - BlockTypes.OAK_BUTTON.getId(), - BlockTypes.SPRUCE_BUTTON.getId(), - BlockTypes.CACTUS.getId(), - BlockTypes.SUGAR_CANE.getId(), - // ores and stuff - BlockTypes.BEDROCK.getId(), - }; - public boolean profile = false; public boolean traceUnflushedSessions = false; public Set disallowedBlocks = new HashSet<>(); @@ -117,7 +56,7 @@ public abstract class LocalConfiguration { public String logFile = ""; public String logFormat = LogFormat.DEFAULT_FORMAT; public boolean registerHelp = true; // what is the point of this, it's not even used - public String wandItem = ItemTypes.WOODEN_AXE.getId(); + public String wandItem = "minecraft:wooden_axe"; public boolean superPickaxeDrop = true; public boolean superPickaxeManyDrop = true; public boolean noDoubleSlash = false; @@ -125,7 +64,7 @@ public abstract class LocalConfiguration { public boolean useInventoryOverride = false; public boolean useInventoryCreativeOverride = false; public boolean navigationUseGlass = true; - public String navigationWand = ItemTypes.COMPASS.getId(); + public String navigationWand = "minecraft:compass"; public int navigationWandMaxDistance = 50; public int scriptTimeout = 3000; public int calculationTimeout = 100; @@ -138,6 +77,73 @@ public abstract class LocalConfiguration { public boolean allowSymlinks = false; public boolean serverSideCUI = true; + protected String[] getDefaultDisallowedBlocks() { + List blockTypes = Lists.newArrayList( + BlockTypes.OAK_SAPLING, + BlockTypes.JUNGLE_SAPLING, + BlockTypes.DARK_OAK_SAPLING, + BlockTypes.SPRUCE_SAPLING, + BlockTypes.BIRCH_SAPLING, + BlockTypes.ACACIA_SAPLING, + BlockTypes.BLACK_BED, + BlockTypes.BLUE_BED, + BlockTypes.BROWN_BED, + BlockTypes.CYAN_BED, + BlockTypes.GRAY_BED, + BlockTypes.GREEN_BED, + BlockTypes.LIGHT_BLUE_BED, + BlockTypes.LIGHT_GRAY_BED, + BlockTypes.LIME_BED, + BlockTypes.MAGENTA_BED, + BlockTypes.ORANGE_BED, + BlockTypes.PINK_BED, + BlockTypes.PURPLE_BED, + BlockTypes.RED_BED, + BlockTypes.WHITE_BED, + BlockTypes.YELLOW_BED, + BlockTypes.POWERED_RAIL, + BlockTypes.DETECTOR_RAIL, + BlockTypes.GRASS, + BlockTypes.DEAD_BUSH, + BlockTypes.MOVING_PISTON, + BlockTypes.PISTON_HEAD, + BlockTypes.SUNFLOWER, + BlockTypes.ROSE_BUSH, + BlockTypes.DANDELION, + BlockTypes.POPPY, + BlockTypes.BROWN_MUSHROOM, + BlockTypes.RED_MUSHROOM, + BlockTypes.TNT, + BlockTypes.TORCH, + BlockTypes.FIRE, + BlockTypes.REDSTONE_WIRE, + BlockTypes.WHEAT, + BlockTypes.POTATOES, + BlockTypes.CARROTS, + BlockTypes.MELON_STEM, + BlockTypes.PUMPKIN_STEM, + BlockTypes.BEETROOTS, + BlockTypes.RAIL, + BlockTypes.LEVER, + BlockTypes.REDSTONE_TORCH, + BlockTypes.REDSTONE_WALL_TORCH, + BlockTypes.REPEATER, + BlockTypes.COMPARATOR, + BlockTypes.STONE_BUTTON, + BlockTypes.BIRCH_BUTTON, + BlockTypes.ACACIA_BUTTON, + BlockTypes.DARK_OAK_BUTTON, + BlockTypes.JUNGLE_BUTTON, + BlockTypes.OAK_BUTTON, + BlockTypes.SPRUCE_BUTTON, + BlockTypes.CACTUS, + BlockTypes.SUGAR_CANE, + // ores and stuff + BlockTypes.BEDROCK + ); + return blockTypes.stream().filter(type -> !Objects.isNull(type)).map(BlockType::getId).toArray(String[]::new); + } + /** * Load the configuration. */ diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/PropertiesConfiguration.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/PropertiesConfiguration.java index 9ec39e35e..b9dc1cece 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/PropertiesConfiguration.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/PropertiesConfiguration.java @@ -77,7 +77,7 @@ public class PropertiesConfiguration extends LocalConfiguration { profile = getBool("profile", profile); traceUnflushedSessions = getBool("trace-unflushed-sessions", traceUnflushedSessions); - disallowedBlocks = getStringSet("disallowed-blocks", defaultDisallowedBlocks); + disallowedBlocks = getStringSet("disallowed-blocks", getDefaultDisallowedBlocks()); defaultChangeLimit = getInt("default-max-changed-blocks", defaultChangeLimit); maxChangeLimit = getInt("max-changed-blocks", maxChangeLimit); defaultMaxPolygonalPoints = getInt("default-max-polygon-points", defaultMaxPolygonalPoints); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/YAMLConfiguration.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/YAMLConfiguration.java index dfbd586b2..fcfa35fd6 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/YAMLConfiguration.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/YAMLConfiguration.java @@ -79,7 +79,7 @@ public class YAMLConfiguration extends LocalConfiguration { butcherDefaultRadius = Math.max(-1, config.getInt("limits.butcher-radius.default", butcherDefaultRadius)); butcherMaxRadius = Math.max(-1, config.getInt("limits.butcher-radius.maximum", butcherMaxRadius)); - disallowedBlocks = new HashSet<>(config.getStringList("limits.disallowed-blocks", Lists.newArrayList(defaultDisallowedBlocks))); + disallowedBlocks = new HashSet<>(config.getStringList("limits.disallowed-blocks", Lists.newArrayList(getDefaultDisallowedBlocks()))); allowedDataCycleBlocks = new HashSet<>(config.getStringList("limits.allowed-data-cycle-blocks", null)); registerHelp = config.getBoolean("register-help", true); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java index 732c4926e..a9d07a5fc 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/biome/BiomeTypes.java @@ -26,79 +26,79 @@ import javax.annotation.Nullable; */ public class BiomeTypes { - public static final BiomeType BADLANDS = register("minecraft:badlands"); - public static final BiomeType BADLANDS_PLATEAU = register("minecraft:badlands_plateau"); - public static final BiomeType BEACH = register("minecraft:beach"); - public static final BiomeType BIRCH_FOREST = register("minecraft:birch_forest"); - public static final BiomeType BIRCH_FOREST_HILLS = register("minecraft:birch_forest_hills"); - public static final BiomeType COLD_OCEAN = register("minecraft:cold_ocean"); - public static final BiomeType DARK_FOREST = register("minecraft:dark_forest"); - public static final BiomeType DARK_FOREST_HILLS = register("minecraft:dark_forest_hills"); - public static final BiomeType DEEP_COLD_OCEAN = register("minecraft:deep_cold_ocean"); - public static final BiomeType DEEP_FROZEN_OCEAN = register("minecraft:deep_frozen_ocean"); - public static final BiomeType DEEP_LUKEWARM_OCEAN = register("minecraft:deep_lukewarm_ocean"); - public static final BiomeType DEEP_OCEAN = register("minecraft:deep_ocean"); - public static final BiomeType DEEP_WARM_OCEAN = register("minecraft:deep_warm_ocean"); - public static final BiomeType DESERT = register("minecraft:desert"); - public static final BiomeType DESERT_HILLS = register("minecraft:desert_hills"); - public static final BiomeType DESERT_LAKES = register("minecraft:desert_lakes"); - public static final BiomeType END_BARRENS = register("minecraft:end_barrens"); - public static final BiomeType END_HIGHLANDS = register("minecraft:end_highlands"); - public static final BiomeType END_MIDLANDS = register("minecraft:end_midlands"); - public static final BiomeType ERODED_BADLANDS = register("minecraft:eroded_badlands"); - public static final BiomeType FLOWER_FOREST = register("minecraft:flower_forest"); - public static final BiomeType FOREST = register("minecraft:forest"); - public static final BiomeType FROZEN_OCEAN = register("minecraft:frozen_ocean"); - public static final BiomeType FROZEN_RIVER = register("minecraft:frozen_river"); - public static final BiomeType GIANT_SPRUCE_TAIGA = register("minecraft:giant_spruce_taiga"); - public static final BiomeType GIANT_SPRUCE_TAIGA_HILLS = register("minecraft:giant_spruce_taiga_hills"); - public static final BiomeType GIANT_TREE_TAIGA = register("minecraft:giant_tree_taiga"); - public static final BiomeType GIANT_TREE_TAIGA_HILLS = register("minecraft:giant_tree_taiga_hills"); - public static final BiomeType GRAVELLY_MOUNTAINS = register("minecraft:gravelly_mountains"); - public static final BiomeType ICE_SPIKES = register("minecraft:ice_spikes"); - public static final BiomeType JUNGLE = register("minecraft:jungle"); - public static final BiomeType JUNGLE_EDGE = register("minecraft:jungle_edge"); - public static final BiomeType JUNGLE_HILLS = register("minecraft:jungle_hills"); - public static final BiomeType LUKEWARM_OCEAN = register("minecraft:lukewarm_ocean"); - public static final BiomeType MODIFIED_BADLANDS_PLATEAU = register("minecraft:modified_badlands_plateau"); - public static final BiomeType MODIFIED_GRAVELLY_MOUNTAINS = register("minecraft:modified_gravelly_mountains"); - public static final BiomeType MODIFIED_JUNGLE = register("minecraft:modified_jungle"); - public static final BiomeType MODIFIED_JUNGLE_EDGE = register("minecraft:modified_jungle_edge"); - public static final BiomeType MODIFIED_WOODED_BADLANDS_PLATEAU = register("minecraft:modified_wooded_badlands_plateau"); - public static final BiomeType MOUNTAIN_EDGE = register("minecraft:mountain_edge"); - public static final BiomeType MOUNTAINS = register("minecraft:mountains"); - public static final BiomeType MUSHROOM_FIELD_SHORE = register("minecraft:mushroom_field_shore"); - public static final BiomeType MUSHROOM_FIELDS = register("minecraft:mushroom_fields"); - public static final BiomeType NETHER = register("minecraft:nether"); - public static final BiomeType OCEAN = register("minecraft:ocean"); - public static final BiomeType PLAINS = register("minecraft:plains"); - public static final BiomeType RIVER = register("minecraft:river"); - public static final BiomeType SAVANNA = register("minecraft:savanna"); - public static final BiomeType SAVANNA_PLATEAU = register("minecraft:savanna_plateau"); - public static final BiomeType SHATTERED_SAVANNA = register("minecraft:shattered_savanna"); - public static final BiomeType SHATTERED_SAVANNA_PLATEAU = register("minecraft:shattered_savanna_plateau"); - public static final BiomeType SMALL_END_ISLANDS = register("minecraft:small_end_islands"); - public static final BiomeType SNOWY_BEACH = register("minecraft:snowy_beach"); - public static final BiomeType SNOWY_MOUNTAINS = register("minecraft:snowy_mountains"); - public static final BiomeType SNOWY_TAIGA = register("minecraft:snowy_taiga"); - public static final BiomeType SNOWY_TAIGA_HILLS = register("minecraft:snowy_taiga_hills"); - public static final BiomeType SNOWY_TAIGA_MOUNTAINS = register("minecraft:snowy_taiga_mountains"); - public static final BiomeType SNOWY_TUNDRA = register("minecraft:snowy_tundra"); - public static final BiomeType STONE_SHORE = register("minecraft:stone_shore"); - public static final BiomeType SUNFLOWER_PLAINS = register("minecraft:sunflower_plains"); - public static final BiomeType SWAMP = register("minecraft:swamp"); - public static final BiomeType SWAMP_HILLS = register("minecraft:swamp_hills"); - public static final BiomeType TAIGA = register("minecraft:taiga"); - public static final BiomeType TAIGA_HILLS = register("minecraft:taiga_hills"); - public static final BiomeType TAIGA_MOUNTAINS = register("minecraft:taiga_mountains"); - public static final BiomeType TALL_BIRCH_FOREST = register("minecraft:tall_birch_forest"); - public static final BiomeType TALL_BIRCH_HILLS = register("minecraft:tall_birch_hills"); - public static final BiomeType THE_END = register("minecraft:the_end"); - public static final BiomeType THE_VOID = register("minecraft:the_void"); - public static final BiomeType WARM_OCEAN = register("minecraft:warm_ocean"); - public static final BiomeType WOODED_BADLANDS_PLATEAU = register("minecraft:wooded_badlands_plateau"); - public static final BiomeType WOODED_HILLS = register("minecraft:wooded_hills"); - public static final BiomeType WOODED_MOUNTAINS = register("minecraft:wooded_mountains"); + @Nullable public static final BiomeType BADLANDS = get("minecraft:badlands"); + @Nullable public static final BiomeType BADLANDS_PLATEAU = get("minecraft:badlands_plateau"); + @Nullable public static final BiomeType BEACH = get("minecraft:beach"); + @Nullable public static final BiomeType BIRCH_FOREST = get("minecraft:birch_forest"); + @Nullable public static final BiomeType BIRCH_FOREST_HILLS = get("minecraft:birch_forest_hills"); + @Nullable public static final BiomeType COLD_OCEAN = get("minecraft:cold_ocean"); + @Nullable public static final BiomeType DARK_FOREST = get("minecraft:dark_forest"); + @Nullable public static final BiomeType DARK_FOREST_HILLS = get("minecraft:dark_forest_hills"); + @Nullable public static final BiomeType DEEP_COLD_OCEAN = get("minecraft:deep_cold_ocean"); + @Nullable public static final BiomeType DEEP_FROZEN_OCEAN = get("minecraft:deep_frozen_ocean"); + @Nullable public static final BiomeType DEEP_LUKEWARM_OCEAN = get("minecraft:deep_lukewarm_ocean"); + @Nullable public static final BiomeType DEEP_OCEAN = get("minecraft:deep_ocean"); + @Nullable public static final BiomeType DEEP_WARM_OCEAN = get("minecraft:deep_warm_ocean"); + @Nullable public static final BiomeType DESERT = get("minecraft:desert"); + @Nullable public static final BiomeType DESERT_HILLS = get("minecraft:desert_hills"); + @Nullable public static final BiomeType DESERT_LAKES = get("minecraft:desert_lakes"); + @Nullable public static final BiomeType END_BARRENS = get("minecraft:end_barrens"); + @Nullable public static final BiomeType END_HIGHLANDS = get("minecraft:end_highlands"); + @Nullable public static final BiomeType END_MIDLANDS = get("minecraft:end_midlands"); + @Nullable public static final BiomeType ERODED_BADLANDS = get("minecraft:eroded_badlands"); + @Nullable public static final BiomeType FLOWER_FOREST = get("minecraft:flower_forest"); + @Nullable public static final BiomeType FOREST = get("minecraft:forest"); + @Nullable public static final BiomeType FROZEN_OCEAN = get("minecraft:frozen_ocean"); + @Nullable public static final BiomeType FROZEN_RIVER = get("minecraft:frozen_river"); + @Nullable public static final BiomeType GIANT_SPRUCE_TAIGA = get("minecraft:giant_spruce_taiga"); + @Nullable public static final BiomeType GIANT_SPRUCE_TAIGA_HILLS = get("minecraft:giant_spruce_taiga_hills"); + @Nullable public static final BiomeType GIANT_TREE_TAIGA = get("minecraft:giant_tree_taiga"); + @Nullable public static final BiomeType GIANT_TREE_TAIGA_HILLS = get("minecraft:giant_tree_taiga_hills"); + @Nullable public static final BiomeType GRAVELLY_MOUNTAINS = get("minecraft:gravelly_mountains"); + @Nullable public static final BiomeType ICE_SPIKES = get("minecraft:ice_spikes"); + @Nullable public static final BiomeType JUNGLE = get("minecraft:jungle"); + @Nullable public static final BiomeType JUNGLE_EDGE = get("minecraft:jungle_edge"); + @Nullable public static final BiomeType JUNGLE_HILLS = get("minecraft:jungle_hills"); + @Nullable public static final BiomeType LUKEWARM_OCEAN = get("minecraft:lukewarm_ocean"); + @Nullable public static final BiomeType MODIFIED_BADLANDS_PLATEAU = get("minecraft:modified_badlands_plateau"); + @Nullable public static final BiomeType MODIFIED_GRAVELLY_MOUNTAINS = get("minecraft:modified_gravelly_mountains"); + @Nullable public static final BiomeType MODIFIED_JUNGLE = get("minecraft:modified_jungle"); + @Nullable public static final BiomeType MODIFIED_JUNGLE_EDGE = get("minecraft:modified_jungle_edge"); + @Nullable public static final BiomeType MODIFIED_WOODED_BADLANDS_PLATEAU = get("minecraft:modified_wooded_badlands_plateau"); + @Nullable public static final BiomeType MOUNTAIN_EDGE = get("minecraft:mountain_edge"); + @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 public static final BiomeType NETHER = get("minecraft:nether"); + @Nullable public static final BiomeType OCEAN = get("minecraft:ocean"); + @Nullable public static final BiomeType PLAINS = get("minecraft:plains"); + @Nullable public static final BiomeType RIVER = get("minecraft:river"); + @Nullable public static final BiomeType SAVANNA = get("minecraft:savanna"); + @Nullable public static final BiomeType SAVANNA_PLATEAU = get("minecraft:savanna_plateau"); + @Nullable public static final BiomeType SHATTERED_SAVANNA = get("minecraft:shattered_savanna"); + @Nullable public static final BiomeType SHATTERED_SAVANNA_PLATEAU = get("minecraft:shattered_savanna_plateau"); + @Nullable public static final BiomeType SMALL_END_ISLANDS = get("minecraft:small_end_islands"); + @Nullable public static final BiomeType SNOWY_BEACH = get("minecraft:snowy_beach"); + @Nullable public static final BiomeType SNOWY_MOUNTAINS = get("minecraft:snowy_mountains"); + @Nullable public static final BiomeType SNOWY_TAIGA = get("minecraft:snowy_taiga"); + @Nullable public static final BiomeType SNOWY_TAIGA_HILLS = get("minecraft:snowy_taiga_hills"); + @Nullable public static final BiomeType SNOWY_TAIGA_MOUNTAINS = get("minecraft:snowy_taiga_mountains"); + @Nullable public static final BiomeType SNOWY_TUNDRA = get("minecraft:snowy_tundra"); + @Nullable public static final BiomeType STONE_SHORE = get("minecraft:stone_shore"); + @Nullable public static final BiomeType SUNFLOWER_PLAINS = get("minecraft:sunflower_plains"); + @Nullable public static final BiomeType SWAMP = get("minecraft:swamp"); + @Nullable public static final BiomeType SWAMP_HILLS = get("minecraft:swamp_hills"); + @Nullable public static final BiomeType TAIGA = get("minecraft:taiga"); + @Nullable public static final BiomeType TAIGA_HILLS = get("minecraft:taiga_hills"); + @Nullable public static final BiomeType TAIGA_MOUNTAINS = get("minecraft:taiga_mountains"); + @Nullable public static final BiomeType TALL_BIRCH_FOREST = get("minecraft:tall_birch_forest"); + @Nullable public static final BiomeType TALL_BIRCH_HILLS = get("minecraft:tall_birch_hills"); + @Nullable public static final BiomeType THE_END = get("minecraft:the_end"); + @Nullable public static final BiomeType THE_VOID = get("minecraft:the_void"); + @Nullable public static final BiomeType WARM_OCEAN = get("minecraft:warm_ocean"); + @Nullable public static final BiomeType WOODED_BADLANDS_PLATEAU = get("minecraft:wooded_badlands_plateau"); + @Nullable public static final BiomeType WOODED_HILLS = get("minecraft:wooded_hills"); + @Nullable public static final BiomeType WOODED_MOUNTAINS = get("minecraft:wooded_mountains"); private BiomeTypes() { } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java index aec13e4aa..2d9f1a4ba 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java @@ -19,10 +19,6 @@ package com.sk89q.worldedit.world.block; -import com.sk89q.worldedit.util.Direction; - -import java.util.function.Function; - import javax.annotation.Nullable; /** @@ -30,620 +26,608 @@ import javax.annotation.Nullable; */ public final class BlockTypes { - public static final BlockType ACACIA_BUTTON = register("minecraft:acacia_button", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType ACACIA_DOOR = register("minecraft:acacia_door", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "lower").with(state.getBlockType().getProperty("hinge"), "left").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType ACACIA_FENCE = register("minecraft:acacia_fence", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType ACACIA_FENCE_GATE = register("minecraft:acacia_fence_gate", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("in_wall"), false).with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType ACACIA_LEAVES = register("minecraft:acacia_leaves", state -> state.with(state.getBlockType().getProperty("distance"), 7).with(state.getBlockType().getProperty("persistent"), false)); - public static final BlockType ACACIA_LOG = register("minecraft:acacia_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType ACACIA_PLANKS = register("minecraft:acacia_planks"); - public static final BlockType ACACIA_PRESSURE_PLATE = register("minecraft:acacia_pressure_plate", state -> state.with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType ACACIA_SAPLING = register("minecraft:acacia_sapling", state -> state.with(state.getBlockType().getProperty("stage"), 0)); - public static final BlockType ACACIA_SLAB = register("minecraft:acacia_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType ACACIA_STAIRS = register("minecraft:acacia_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType ACACIA_TRAPDOOR = register("minecraft:acacia_trapdoor", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType ACACIA_WOOD = register("minecraft:acacia_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType ACTIVATOR_RAIL = register("minecraft:activator_rail", state -> state.with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("shape"), "north_south")); - public static final BlockType AIR = register("minecraft:air"); - public static final BlockType ALLIUM = register("minecraft:allium"); - public static final BlockType ANDESITE = register("minecraft:andesite"); - public static final BlockType ANVIL = register("minecraft:anvil", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType ATTACHED_MELON_STEM = register("minecraft:attached_melon_stem", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType ATTACHED_PUMPKIN_STEM = register("minecraft:attached_pumpkin_stem", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType AZURE_BLUET = register("minecraft:azure_bluet"); - public static final BlockType BARRIER = register("minecraft:barrier"); - public static final BlockType BEACON = register("minecraft:beacon"); - public static final BlockType BEDROCK = register("minecraft:bedrock"); - public static final BlockType BEETROOTS = register("minecraft:beetroots", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType BIRCH_BUTTON = register("minecraft:birch_button", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType BIRCH_DOOR = register("minecraft:birch_door", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "lower").with(state.getBlockType().getProperty("hinge"), "left").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType BIRCH_FENCE = register("minecraft:birch_fence", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType BIRCH_FENCE_GATE = register("minecraft:birch_fence_gate", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("in_wall"), false).with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType BIRCH_LEAVES = register("minecraft:birch_leaves", state -> state.with(state.getBlockType().getProperty("distance"), 7).with(state.getBlockType().getProperty("persistent"), false)); - public static final BlockType BIRCH_LOG = register("minecraft:birch_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType BIRCH_PLANKS = register("minecraft:birch_planks"); - public static final BlockType BIRCH_PRESSURE_PLATE = register("minecraft:birch_pressure_plate", state -> state.with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType BIRCH_SAPLING = register("minecraft:birch_sapling", state -> state.with(state.getBlockType().getProperty("stage"), 0)); - public static final BlockType BIRCH_SLAB = register("minecraft:birch_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType BIRCH_STAIRS = register("minecraft:birch_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType BIRCH_TRAPDOOR = register("minecraft:birch_trapdoor", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType BIRCH_WOOD = register("minecraft:birch_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType BLACK_BANNER = register("minecraft:black_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType BLACK_BED = register("minecraft:black_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType BLACK_CARPET = register("minecraft:black_carpet"); - public static final BlockType BLACK_CONCRETE = register("minecraft:black_concrete"); - public static final BlockType BLACK_CONCRETE_POWDER = register("minecraft:black_concrete_powder"); - public static final BlockType BLACK_GLAZED_TERRACOTTA = register("minecraft:black_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType BLACK_SHULKER_BOX = register("minecraft:black_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType BLACK_STAINED_GLASS = register("minecraft:black_stained_glass"); - public static final BlockType BLACK_STAINED_GLASS_PANE = register("minecraft:black_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType BLACK_TERRACOTTA = register("minecraft:black_terracotta"); - public static final BlockType BLACK_WALL_BANNER = register("minecraft:black_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType BLACK_WOOL = register("minecraft:black_wool"); - public static final BlockType BLUE_BANNER = register("minecraft:blue_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType BLUE_BED = register("minecraft:blue_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType BLUE_CARPET = register("minecraft:blue_carpet"); - public static final BlockType BLUE_CONCRETE = register("minecraft:blue_concrete"); - public static final BlockType BLUE_CONCRETE_POWDER = register("minecraft:blue_concrete_powder"); - public static final BlockType BLUE_GLAZED_TERRACOTTA = register("minecraft:blue_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType BLUE_ICE = register("minecraft:blue_ice"); - public static final BlockType BLUE_ORCHID = register("minecraft:blue_orchid"); - public static final BlockType BLUE_SHULKER_BOX = register("minecraft:blue_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType BLUE_STAINED_GLASS = register("minecraft:blue_stained_glass"); - public static final BlockType BLUE_STAINED_GLASS_PANE = register("minecraft:blue_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType BLUE_TERRACOTTA = register("minecraft:blue_terracotta"); - public static final BlockType BLUE_WALL_BANNER = register("minecraft:blue_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType BLUE_WOOL = register("minecraft:blue_wool"); - public static final BlockType BONE_BLOCK = register("minecraft:bone_block", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType BOOKSHELF = register("minecraft:bookshelf"); - public static final BlockType BRAIN_CORAL = register("minecraft:brain_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType BRAIN_CORAL_BLOCK = register("minecraft:brain_coral_block"); - public static final BlockType BRAIN_CORAL_FAN = register("minecraft:brain_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType BRAIN_CORAL_WALL_FAN = register("minecraft:brain_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType BREWING_STAND = register("minecraft:brewing_stand", state -> state.with(state.getBlockType().getProperty("has_bottle_0"), false).with(state.getBlockType().getProperty("has_bottle_1"), false).with(state.getBlockType().getProperty("has_bottle_2"), false)); - public static final BlockType BRICK_SLAB = register("minecraft:brick_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType BRICK_STAIRS = register("minecraft:brick_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType BRICKS = register("minecraft:bricks"); - public static final BlockType BROWN_BANNER = register("minecraft:brown_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType BROWN_BED = register("minecraft:brown_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType BROWN_CARPET = register("minecraft:brown_carpet"); - public static final BlockType BROWN_CONCRETE = register("minecraft:brown_concrete"); - public static final BlockType BROWN_CONCRETE_POWDER = register("minecraft:brown_concrete_powder"); - public static final BlockType BROWN_GLAZED_TERRACOTTA = register("minecraft:brown_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType BROWN_MUSHROOM = register("minecraft:brown_mushroom"); - public static final BlockType BROWN_MUSHROOM_BLOCK = register("minecraft:brown_mushroom_block", state -> state.with(state.getBlockType().getProperty("down"), true).with(state.getBlockType().getProperty("east"), true).with(state.getBlockType().getProperty("north"), true).with(state.getBlockType().getProperty("south"), true).with(state.getBlockType().getProperty("up"), true).with(state.getBlockType().getProperty("west"), true)); - public static final BlockType BROWN_SHULKER_BOX = register("minecraft:brown_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType BROWN_STAINED_GLASS = register("minecraft:brown_stained_glass"); - public static final BlockType BROWN_STAINED_GLASS_PANE = register("minecraft:brown_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType BROWN_TERRACOTTA = register("minecraft:brown_terracotta"); - public static final BlockType BROWN_WALL_BANNER = register("minecraft:brown_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType BROWN_WOOL = register("minecraft:brown_wool"); - public static final BlockType BUBBLE_COLUMN = register("minecraft:bubble_column", state -> state.with(state.getBlockType().getProperty("drag"), true)); - public static final BlockType BUBBLE_CORAL = register("minecraft:bubble_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType BUBBLE_CORAL_BLOCK = register("minecraft:bubble_coral_block"); - public static final BlockType BUBBLE_CORAL_FAN = register("minecraft:bubble_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType BUBBLE_CORAL_WALL_FAN = register("minecraft:bubble_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType CACTUS = register("minecraft:cactus", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType CAKE = register("minecraft:cake", state -> state.with(state.getBlockType().getProperty("bites"), 0)); - public static final BlockType CARROTS = register("minecraft:carrots", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType CARVED_PUMPKIN = register("minecraft:carved_pumpkin", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType CAULDRON = register("minecraft:cauldron", state -> state.with(state.getBlockType().getProperty("level"), 0)); - public static final BlockType CAVE_AIR = register("minecraft:cave_air"); - public static final BlockType CHAIN_COMMAND_BLOCK = register("minecraft:chain_command_block", state -> state.with(state.getBlockType().getProperty("conditional"), false).with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType CHEST = register("minecraft:chest", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("type"), "SINGLE").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType CHIPPED_ANVIL = register("minecraft:chipped_anvil", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType CHISELED_QUARTZ_BLOCK = register("minecraft:chiseled_quartz_block"); - public static final BlockType CHISELED_RED_SANDSTONE = register("minecraft:chiseled_red_sandstone"); - public static final BlockType CHISELED_SANDSTONE = register("minecraft:chiseled_sandstone"); - public static final BlockType CHISELED_STONE_BRICKS = register("minecraft:chiseled_stone_bricks"); - public static final BlockType CHORUS_FLOWER = register("minecraft:chorus_flower", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType CHORUS_PLANT = register("minecraft:chorus_plant", state -> state.with(state.getBlockType().getProperty("down"), false).with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("up"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType CLAY = register("minecraft:clay"); - public static final BlockType COAL_BLOCK = register("minecraft:coal_block"); - public static final BlockType COAL_ORE = register("minecraft:coal_ore"); - public static final BlockType COARSE_DIRT = register("minecraft:coarse_dirt"); - public static final BlockType COBBLESTONE = register("minecraft:cobblestone"); - public static final BlockType COBBLESTONE_SLAB = register("minecraft:cobblestone_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType COBBLESTONE_STAIRS = register("minecraft:cobblestone_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType COBBLESTONE_WALL = register("minecraft:cobblestone_wall", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("up"), true).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType COBWEB = register("minecraft:cobweb"); - public static final BlockType COCOA = register("minecraft:cocoa", state -> state.with(state.getBlockType().getProperty("age"), 0).with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType COMMAND_BLOCK = register("minecraft:command_block", state -> state.with(state.getBlockType().getProperty("conditional"), false).with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType COMPARATOR = register("minecraft:comparator", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("mode"), "compare").with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType CONDUIT = register("minecraft:conduit", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType CRACKED_STONE_BRICKS = register("minecraft:cracked_stone_bricks"); - public static final BlockType CRAFTING_TABLE = register("minecraft:crafting_table"); - public static final BlockType CREEPER_HEAD = register("minecraft:creeper_head", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType CREEPER_WALL_HEAD = register("minecraft:creeper_wall_head", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType CUT_RED_SANDSTONE = register("minecraft:cut_red_sandstone"); - public static final BlockType CUT_SANDSTONE = register("minecraft:cut_sandstone"); - public static final BlockType CYAN_BANNER = register("minecraft:cyan_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType CYAN_BED = register("minecraft:cyan_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType CYAN_CARPET = register("minecraft:cyan_carpet"); - public static final BlockType CYAN_CONCRETE = register("minecraft:cyan_concrete"); - public static final BlockType CYAN_CONCRETE_POWDER = register("minecraft:cyan_concrete_powder"); - public static final BlockType CYAN_GLAZED_TERRACOTTA = register("minecraft:cyan_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType CYAN_SHULKER_BOX = register("minecraft:cyan_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType CYAN_STAINED_GLASS = register("minecraft:cyan_stained_glass"); - public static final BlockType CYAN_STAINED_GLASS_PANE = register("minecraft:cyan_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType CYAN_TERRACOTTA = register("minecraft:cyan_terracotta"); - public static final BlockType CYAN_WALL_BANNER = register("minecraft:cyan_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType CYAN_WOOL = register("minecraft:cyan_wool"); - public static final BlockType DAMAGED_ANVIL = register("minecraft:damaged_anvil", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType DANDELION = register("minecraft:dandelion"); - public static final BlockType DARK_OAK_BUTTON = register("minecraft:dark_oak_button", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType DARK_OAK_DOOR = register("minecraft:dark_oak_door", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "lower").with(state.getBlockType().getProperty("hinge"), "left").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType DARK_OAK_FENCE = register("minecraft:dark_oak_fence", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType DARK_OAK_FENCE_GATE = register("minecraft:dark_oak_fence_gate", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("in_wall"), false).with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType DARK_OAK_LEAVES = register("minecraft:dark_oak_leaves", state -> state.with(state.getBlockType().getProperty("distance"), 7).with(state.getBlockType().getProperty("persistent"), false)); - public static final BlockType DARK_OAK_LOG = register("minecraft:dark_oak_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType DARK_OAK_PLANKS = register("minecraft:dark_oak_planks"); - public static final BlockType DARK_OAK_PRESSURE_PLATE = register("minecraft:dark_oak_pressure_plate", state -> state.with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType DARK_OAK_SAPLING = register("minecraft:dark_oak_sapling", state -> state.with(state.getBlockType().getProperty("stage"), 0)); - public static final BlockType DARK_OAK_SLAB = register("minecraft:dark_oak_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType DARK_OAK_STAIRS = register("minecraft:dark_oak_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType DARK_OAK_TRAPDOOR = register("minecraft:dark_oak_trapdoor", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType DARK_OAK_WOOD = register("minecraft:dark_oak_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType DARK_PRISMARINE = register("minecraft:dark_prismarine"); - public static final BlockType DARK_PRISMARINE_SLAB = register("minecraft:dark_prismarine_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType DARK_PRISMARINE_STAIRS = register("minecraft:dark_prismarine_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType DAYLIGHT_DETECTOR = register("minecraft:daylight_detector", state -> state.with(state.getBlockType().getProperty("inverted"), false).with(state.getBlockType().getProperty("power"), 0)); - public static final BlockType DEAD_BRAIN_CORAL = register("minecraft:dead_brain_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_BRAIN_CORAL_BLOCK = register("minecraft:dead_brain_coral_block"); - public static final BlockType DEAD_BRAIN_CORAL_FAN = register("minecraft:dead_brain_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_BRAIN_CORAL_WALL_FAN = register("minecraft:dead_brain_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_BUBBLE_CORAL = register("minecraft:dead_bubble_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_BUBBLE_CORAL_BLOCK = register("minecraft:dead_bubble_coral_block"); - public static final BlockType DEAD_BUBBLE_CORAL_FAN = register("minecraft:dead_bubble_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_BUBBLE_CORAL_WALL_FAN = register("minecraft:dead_bubble_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_BUSH = register("minecraft:dead_bush"); - public static final BlockType DEAD_FIRE_CORAL = register("minecraft:dead_fire_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_FIRE_CORAL_BLOCK = register("minecraft:dead_fire_coral_block"); - public static final BlockType DEAD_FIRE_CORAL_FAN = register("minecraft:dead_fire_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_FIRE_CORAL_WALL_FAN = register("minecraft:dead_fire_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_HORN_CORAL = register("minecraft:dead_horn_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_HORN_CORAL_BLOCK = register("minecraft:dead_horn_coral_block"); - public static final BlockType DEAD_HORN_CORAL_FAN = register("minecraft:dead_horn_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_HORN_CORAL_WALL_FAN = register("minecraft:dead_horn_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_TUBE_CORAL = register("minecraft:dead_tube_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_TUBE_CORAL_BLOCK = register("minecraft:dead_tube_coral_block"); - public static final BlockType DEAD_TUBE_CORAL_FAN = register("minecraft:dead_tube_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DEAD_TUBE_CORAL_WALL_FAN = register("minecraft:dead_tube_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType DETECTOR_RAIL = register("minecraft:detector_rail", state -> state.with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("shape"), "north_south")); - public static final BlockType DIAMOND_BLOCK = register("minecraft:diamond_block"); - public static final BlockType DIAMOND_ORE = register("minecraft:diamond_ore"); - public static final BlockType DIORITE = register("minecraft:diorite"); - public static final BlockType DIRT = register("minecraft:dirt"); - public static final BlockType DISPENSER = register("minecraft:dispenser", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("triggered"), false)); - public static final BlockType DRAGON_EGG = register("minecraft:dragon_egg"); - public static final BlockType DRAGON_HEAD = register("minecraft:dragon_head", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType DRAGON_WALL_HEAD = register("minecraft:dragon_wall_head", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType DRIED_KELP_BLOCK = register("minecraft:dried_kelp_block"); - public static final BlockType DROPPER = register("minecraft:dropper", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("triggered"), false)); - public static final BlockType EMERALD_BLOCK = register("minecraft:emerald_block"); - public static final BlockType EMERALD_ORE = register("minecraft:emerald_ore"); - public static final BlockType ENCHANTING_TABLE = register("minecraft:enchanting_table"); - public static final BlockType END_GATEWAY = register("minecraft:end_gateway"); - public static final BlockType END_PORTAL = register("minecraft:end_portal"); - public static final BlockType END_PORTAL_FRAME = register("minecraft:end_portal_frame", state -> state.with(state.getBlockType().getProperty("eye"), false).with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType END_ROD = register("minecraft:end_rod", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType END_STONE = register("minecraft:end_stone"); - public static final BlockType END_STONE_BRICKS = register("minecraft:end_stone_bricks"); - public static final BlockType ENDER_CHEST = register("minecraft:ender_chest", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType FARMLAND = register("minecraft:farmland", state -> state.with(state.getBlockType().getProperty("moisture"), 0)); - public static final BlockType FERN = register("minecraft:fern"); - public static final BlockType FIRE = register("minecraft:fire", state -> state.with(state.getBlockType().getProperty("age"), 0).with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("up"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType FIRE_CORAL = register("minecraft:fire_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType FIRE_CORAL_BLOCK = register("minecraft:fire_coral_block"); - public static final BlockType FIRE_CORAL_FAN = register("minecraft:fire_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType FIRE_CORAL_WALL_FAN = register("minecraft:fire_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType FLOWER_POT = register("minecraft:flower_pot"); - public static final BlockType FROSTED_ICE = register("minecraft:frosted_ice", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType FURNACE = register("minecraft:furnace", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("lit"), false)); - public static final BlockType GLASS = register("minecraft:glass"); - public static final BlockType GLASS_PANE = register("minecraft:glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType GLOWSTONE = register("minecraft:glowstone"); - public static final BlockType GOLD_BLOCK = register("minecraft:gold_block"); - public static final BlockType GOLD_ORE = register("minecraft:gold_ore"); - public static final BlockType GRANITE = register("minecraft:granite"); - public static final BlockType GRASS = register("minecraft:grass"); - public static final BlockType GRASS_BLOCK = register("minecraft:grass_block", state -> state.with(state.getBlockType().getProperty("snowy"), false)); - public static final BlockType GRASS_PATH = register("minecraft:grass_path"); - public static final BlockType GRAVEL = register("minecraft:gravel"); - public static final BlockType GRAY_BANNER = register("minecraft:gray_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType GRAY_BED = register("minecraft:gray_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType GRAY_CARPET = register("minecraft:gray_carpet"); - public static final BlockType GRAY_CONCRETE = register("minecraft:gray_concrete"); - public static final BlockType GRAY_CONCRETE_POWDER = register("minecraft:gray_concrete_powder"); - public static final BlockType GRAY_GLAZED_TERRACOTTA = register("minecraft:gray_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType GRAY_SHULKER_BOX = register("minecraft:gray_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType GRAY_STAINED_GLASS = register("minecraft:gray_stained_glass"); - public static final BlockType GRAY_STAINED_GLASS_PANE = register("minecraft:gray_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType GRAY_TERRACOTTA = register("minecraft:gray_terracotta"); - public static final BlockType GRAY_WALL_BANNER = register("minecraft:gray_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType GRAY_WOOL = register("minecraft:gray_wool"); - public static final BlockType GREEN_BANNER = register("minecraft:green_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType GREEN_BED = register("minecraft:green_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType GREEN_CARPET = register("minecraft:green_carpet"); - public static final BlockType GREEN_CONCRETE = register("minecraft:green_concrete"); - public static final BlockType GREEN_CONCRETE_POWDER = register("minecraft:green_concrete_powder"); - public static final BlockType GREEN_GLAZED_TERRACOTTA = register("minecraft:green_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType GREEN_SHULKER_BOX = register("minecraft:green_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType GREEN_STAINED_GLASS = register("minecraft:green_stained_glass"); - public static final BlockType GREEN_STAINED_GLASS_PANE = register("minecraft:green_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType GREEN_TERRACOTTA = register("minecraft:green_terracotta"); - public static final BlockType GREEN_WALL_BANNER = register("minecraft:green_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType GREEN_WOOL = register("minecraft:green_wool"); - public static final BlockType HAY_BLOCK = register("minecraft:hay_block", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType HEAVY_WEIGHTED_PRESSURE_PLATE = register("minecraft:heavy_weighted_pressure_plate", state -> state.with(state.getBlockType().getProperty("power"), 0)); - public static final BlockType HOPPER = register("minecraft:hopper", state -> state.with(state.getBlockType().getProperty("enabled"), true).with(state.getBlockType().getProperty("facing"), Direction.DOWN)); - public static final BlockType HORN_CORAL = register("minecraft:horn_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType HORN_CORAL_BLOCK = register("minecraft:horn_coral_block"); - public static final BlockType HORN_CORAL_FAN = register("minecraft:horn_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType HORN_CORAL_WALL_FAN = register("minecraft:horn_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType ICE = register("minecraft:ice"); - public static final BlockType INFESTED_CHISELED_STONE_BRICKS = register("minecraft:infested_chiseled_stone_bricks"); - public static final BlockType INFESTED_COBBLESTONE = register("minecraft:infested_cobblestone"); - public static final BlockType INFESTED_CRACKED_STONE_BRICKS = register("minecraft:infested_cracked_stone_bricks"); - public static final BlockType INFESTED_MOSSY_STONE_BRICKS = register("minecraft:infested_mossy_stone_bricks"); - public static final BlockType INFESTED_STONE = register("minecraft:infested_stone"); - public static final BlockType INFESTED_STONE_BRICKS = register("minecraft:infested_stone_bricks"); - public static final BlockType IRON_BARS = register("minecraft:iron_bars", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType IRON_BLOCK = register("minecraft:iron_block"); - public static final BlockType IRON_DOOR = register("minecraft:iron_door", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "lower").with(state.getBlockType().getProperty("hinge"), "left").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType IRON_ORE = register("minecraft:iron_ore"); - public static final BlockType IRON_TRAPDOOR = register("minecraft:iron_trapdoor", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType JACK_O_LANTERN = register("minecraft:jack_o_lantern", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType JUKEBOX = register("minecraft:jukebox", state -> state.with(state.getBlockType().getProperty("has_record"), false)); - public static final BlockType JUNGLE_BUTTON = register("minecraft:jungle_button", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType JUNGLE_DOOR = register("minecraft:jungle_door", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "lower").with(state.getBlockType().getProperty("hinge"), "left").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType JUNGLE_FENCE = register("minecraft:jungle_fence", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType JUNGLE_FENCE_GATE = register("minecraft:jungle_fence_gate", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("in_wall"), false).with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType JUNGLE_LEAVES = register("minecraft:jungle_leaves", state -> state.with(state.getBlockType().getProperty("distance"), 7).with(state.getBlockType().getProperty("persistent"), false)); - public static final BlockType JUNGLE_LOG = register("minecraft:jungle_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType JUNGLE_PLANKS = register("minecraft:jungle_planks"); - public static final BlockType JUNGLE_PRESSURE_PLATE = register("minecraft:jungle_pressure_plate", state -> state.with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType JUNGLE_SAPLING = register("minecraft:jungle_sapling", state -> state.with(state.getBlockType().getProperty("stage"), 0)); - public static final BlockType JUNGLE_SLAB = register("minecraft:jungle_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType JUNGLE_STAIRS = register("minecraft:jungle_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType JUNGLE_TRAPDOOR = register("minecraft:jungle_trapdoor", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType JUNGLE_WOOD = register("minecraft:jungle_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType KELP = register("minecraft:kelp", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType KELP_PLANT = register("minecraft:kelp_plant"); - public static final BlockType LADDER = register("minecraft:ladder", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType LAPIS_BLOCK = register("minecraft:lapis_block"); - public static final BlockType LAPIS_ORE = register("minecraft:lapis_ore"); - public static final BlockType LARGE_FERN = register("minecraft:large_fern", state -> state.with(state.getBlockType().getProperty("half"), "lower")); - public static final BlockType LAVA = register("minecraft:lava", state -> state.with(state.getBlockType().getProperty("level"), 0)); - public static final BlockType LEVER = register("minecraft:lever", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType LIGHT_BLUE_BANNER = register("minecraft:light_blue_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType LIGHT_BLUE_BED = register("minecraft:light_blue_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType LIGHT_BLUE_CARPET = register("minecraft:light_blue_carpet"); - public static final BlockType LIGHT_BLUE_CONCRETE = register("minecraft:light_blue_concrete"); - public static final BlockType LIGHT_BLUE_CONCRETE_POWDER = register("minecraft:light_blue_concrete_powder"); - public static final BlockType LIGHT_BLUE_GLAZED_TERRACOTTA = register("minecraft:light_blue_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType LIGHT_BLUE_SHULKER_BOX = register("minecraft:light_blue_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType LIGHT_BLUE_STAINED_GLASS = register("minecraft:light_blue_stained_glass"); - public static final BlockType LIGHT_BLUE_STAINED_GLASS_PANE = register("minecraft:light_blue_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType LIGHT_BLUE_TERRACOTTA = register("minecraft:light_blue_terracotta"); - public static final BlockType LIGHT_BLUE_WALL_BANNER = register("minecraft:light_blue_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType LIGHT_BLUE_WOOL = register("minecraft:light_blue_wool"); - public static final BlockType LIGHT_GRAY_BANNER = register("minecraft:light_gray_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType LIGHT_GRAY_BED = register("minecraft:light_gray_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType LIGHT_GRAY_CARPET = register("minecraft:light_gray_carpet"); - public static final BlockType LIGHT_GRAY_CONCRETE = register("minecraft:light_gray_concrete"); - public static final BlockType LIGHT_GRAY_CONCRETE_POWDER = register("minecraft:light_gray_concrete_powder"); - public static final BlockType LIGHT_GRAY_GLAZED_TERRACOTTA = register("minecraft:light_gray_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType LIGHT_GRAY_SHULKER_BOX = register("minecraft:light_gray_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType LIGHT_GRAY_STAINED_GLASS = register("minecraft:light_gray_stained_glass"); - public static final BlockType LIGHT_GRAY_STAINED_GLASS_PANE = register("minecraft:light_gray_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType LIGHT_GRAY_TERRACOTTA = register("minecraft:light_gray_terracotta"); - public static final BlockType LIGHT_GRAY_WALL_BANNER = register("minecraft:light_gray_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType LIGHT_GRAY_WOOL = register("minecraft:light_gray_wool"); - public static final BlockType LIGHT_WEIGHTED_PRESSURE_PLATE = register("minecraft:light_weighted_pressure_plate", state -> state.with(state.getBlockType().getProperty("power"), 0)); - public static final BlockType LILAC = register("minecraft:lilac", state -> state.with(state.getBlockType().getProperty("half"), "lower")); - public static final BlockType LILY_PAD = register("minecraft:lily_pad"); - public static final BlockType LIME_BANNER = register("minecraft:lime_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType LIME_BED = register("minecraft:lime_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType LIME_CARPET = register("minecraft:lime_carpet"); - public static final BlockType LIME_CONCRETE = register("minecraft:lime_concrete"); - public static final BlockType LIME_CONCRETE_POWDER = register("minecraft:lime_concrete_powder"); - public static final BlockType LIME_GLAZED_TERRACOTTA = register("minecraft:lime_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType LIME_SHULKER_BOX = register("minecraft:lime_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType LIME_STAINED_GLASS = register("minecraft:lime_stained_glass"); - public static final BlockType LIME_STAINED_GLASS_PANE = register("minecraft:lime_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType LIME_TERRACOTTA = register("minecraft:lime_terracotta"); - public static final BlockType LIME_WALL_BANNER = register("minecraft:lime_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType LIME_WOOL = register("minecraft:lime_wool"); - public static final BlockType MAGENTA_BANNER = register("minecraft:magenta_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType MAGENTA_BED = register("minecraft:magenta_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType MAGENTA_CARPET = register("minecraft:magenta_carpet"); - public static final BlockType MAGENTA_CONCRETE = register("minecraft:magenta_concrete"); - public static final BlockType MAGENTA_CONCRETE_POWDER = register("minecraft:magenta_concrete_powder"); - public static final BlockType MAGENTA_GLAZED_TERRACOTTA = register("minecraft:magenta_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType MAGENTA_SHULKER_BOX = register("minecraft:magenta_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType MAGENTA_STAINED_GLASS = register("minecraft:magenta_stained_glass"); - public static final BlockType MAGENTA_STAINED_GLASS_PANE = register("minecraft:magenta_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType MAGENTA_TERRACOTTA = register("minecraft:magenta_terracotta"); - public static final BlockType MAGENTA_WALL_BANNER = register("minecraft:magenta_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType MAGENTA_WOOL = register("minecraft:magenta_wool"); - public static final BlockType MAGMA_BLOCK = register("minecraft:magma_block"); - public static final BlockType MELON = register("minecraft:melon"); - public static final BlockType MELON_STEM = register("minecraft:melon_stem", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType MOSSY_COBBLESTONE = register("minecraft:mossy_cobblestone"); - public static final BlockType MOSSY_COBBLESTONE_WALL = register("minecraft:mossy_cobblestone_wall", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("up"), true).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType MOSSY_STONE_BRICKS = register("minecraft:mossy_stone_bricks"); - public static final BlockType MOVING_PISTON = register("minecraft:moving_piston", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("type"), "normal")); - public static final BlockType MUSHROOM_STEM = register("minecraft:mushroom_stem", state -> state.with(state.getBlockType().getProperty("down"), true).with(state.getBlockType().getProperty("east"), true).with(state.getBlockType().getProperty("north"), true).with(state.getBlockType().getProperty("south"), true).with(state.getBlockType().getProperty("up"), true).with(state.getBlockType().getProperty("west"), true)); - public static final BlockType MYCELIUM = register("minecraft:mycelium", state -> state.with(state.getBlockType().getProperty("snowy"), false)); - public static final BlockType NETHER_BRICK_FENCE = register("minecraft:nether_brick_fence", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType NETHER_BRICK_SLAB = register("minecraft:nether_brick_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType NETHER_BRICK_STAIRS = register("minecraft:nether_brick_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType NETHER_BRICKS = register("minecraft:nether_bricks"); - public static final BlockType NETHER_PORTAL = register("minecraft:nether_portal", state -> state.with(state.getBlockType().getProperty("axis"), "x")); - public static final BlockType NETHER_QUARTZ_ORE = register("minecraft:nether_quartz_ore"); - public static final BlockType NETHER_WART = register("minecraft:nether_wart", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType NETHER_WART_BLOCK = register("minecraft:nether_wart_block"); - public static final BlockType NETHERRACK = register("minecraft:netherrack"); - public static final BlockType NOTE_BLOCK = register("minecraft:note_block", state -> state.with(state.getBlockType().getProperty("instrument"), "HARP").with(state.getBlockType().getProperty("note"), 0).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType OAK_BUTTON = register("minecraft:oak_button", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType OAK_DOOR = register("minecraft:oak_door", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "lower").with(state.getBlockType().getProperty("hinge"), "left").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType OAK_FENCE = register("minecraft:oak_fence", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType OAK_FENCE_GATE = register("minecraft:oak_fence_gate", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("in_wall"), false).with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType OAK_LEAVES = register("minecraft:oak_leaves", state -> state.with(state.getBlockType().getProperty("distance"), 7).with(state.getBlockType().getProperty("persistent"), false)); - public static final BlockType OAK_LOG = register("minecraft:oak_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType OAK_PLANKS = register("minecraft:oak_planks"); - public static final BlockType OAK_PRESSURE_PLATE = register("minecraft:oak_pressure_plate", state -> state.with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType OAK_SAPLING = register("minecraft:oak_sapling", state -> state.with(state.getBlockType().getProperty("stage"), 0)); - public static final BlockType OAK_SLAB = register("minecraft:oak_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType OAK_STAIRS = register("minecraft:oak_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType OAK_TRAPDOOR = register("minecraft:oak_trapdoor", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType OAK_WOOD = register("minecraft:oak_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType OBSERVER = register("minecraft:observer", state -> state.with(state.getBlockType().getProperty("facing"), Direction.SOUTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType OBSIDIAN = register("minecraft:obsidian"); - public static final BlockType ORANGE_BANNER = register("minecraft:orange_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType ORANGE_BED = register("minecraft:orange_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType ORANGE_CARPET = register("minecraft:orange_carpet"); - public static final BlockType ORANGE_CONCRETE = register("minecraft:orange_concrete"); - public static final BlockType ORANGE_CONCRETE_POWDER = register("minecraft:orange_concrete_powder"); - public static final BlockType ORANGE_GLAZED_TERRACOTTA = register("minecraft:orange_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType ORANGE_SHULKER_BOX = register("minecraft:orange_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType ORANGE_STAINED_GLASS = register("minecraft:orange_stained_glass"); - public static final BlockType ORANGE_STAINED_GLASS_PANE = register("minecraft:orange_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType ORANGE_TERRACOTTA = register("minecraft:orange_terracotta"); - public static final BlockType ORANGE_TULIP = register("minecraft:orange_tulip"); - public static final BlockType ORANGE_WALL_BANNER = register("minecraft:orange_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType ORANGE_WOOL = register("minecraft:orange_wool"); - public static final BlockType OXEYE_DAISY = register("minecraft:oxeye_daisy"); - public static final BlockType PACKED_ICE = register("minecraft:packed_ice"); - public static final BlockType PEONY = register("minecraft:peony", state -> state.with(state.getBlockType().getProperty("half"), "lower")); - public static final BlockType PETRIFIED_OAK_SLAB = register("minecraft:petrified_oak_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType PINK_BANNER = register("minecraft:pink_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType PINK_BED = register("minecraft:pink_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType PINK_CARPET = register("minecraft:pink_carpet"); - public static final BlockType PINK_CONCRETE = register("minecraft:pink_concrete"); - public static final BlockType PINK_CONCRETE_POWDER = register("minecraft:pink_concrete_powder"); - public static final BlockType PINK_GLAZED_TERRACOTTA = register("minecraft:pink_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType PINK_SHULKER_BOX = register("minecraft:pink_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType PINK_STAINED_GLASS = register("minecraft:pink_stained_glass"); - public static final BlockType PINK_STAINED_GLASS_PANE = register("minecraft:pink_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType PINK_TERRACOTTA = register("minecraft:pink_terracotta"); - public static final BlockType PINK_TULIP = register("minecraft:pink_tulip"); - public static final BlockType PINK_WALL_BANNER = register("minecraft:pink_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType PINK_WOOL = register("minecraft:pink_wool"); - public static final BlockType PISTON = register("minecraft:piston", state -> state.with(state.getBlockType().getProperty("extended"), false).with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType PISTON_HEAD = register("minecraft:piston_head", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("short"), false).with(state.getBlockType().getProperty("type"), "normal")); - public static final BlockType PLAYER_HEAD = register("minecraft:player_head", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType PLAYER_WALL_HEAD = register("minecraft:player_wall_head", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType PODZOL = register("minecraft:podzol", state -> state.with(state.getBlockType().getProperty("snowy"), false)); - public static final BlockType POLISHED_ANDESITE = register("minecraft:polished_andesite"); - public static final BlockType POLISHED_DIORITE = register("minecraft:polished_diorite"); - public static final BlockType POLISHED_GRANITE = register("minecraft:polished_granite"); - public static final BlockType POPPY = register("minecraft:poppy"); - public static final BlockType POTATOES = register("minecraft:potatoes", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType POTTED_ACACIA_SAPLING = register("minecraft:potted_acacia_sapling"); - public static final BlockType POTTED_ALLIUM = register("minecraft:potted_allium"); - public static final BlockType POTTED_AZURE_BLUET = register("minecraft:potted_azure_bluet"); - public static final BlockType POTTED_BIRCH_SAPLING = register("minecraft:potted_birch_sapling"); - public static final BlockType POTTED_BLUE_ORCHID = register("minecraft:potted_blue_orchid"); - public static final BlockType POTTED_BROWN_MUSHROOM = register("minecraft:potted_brown_mushroom"); - public static final BlockType POTTED_CACTUS = register("minecraft:potted_cactus"); - public static final BlockType POTTED_DANDELION = register("minecraft:potted_dandelion"); - public static final BlockType POTTED_DARK_OAK_SAPLING = register("minecraft:potted_dark_oak_sapling"); - public static final BlockType POTTED_DEAD_BUSH = register("minecraft:potted_dead_bush"); - public static final BlockType POTTED_FERN = register("minecraft:potted_fern"); - public static final BlockType POTTED_JUNGLE_SAPLING = register("minecraft:potted_jungle_sapling"); - public static final BlockType POTTED_OAK_SAPLING = register("minecraft:potted_oak_sapling"); - public static final BlockType POTTED_ORANGE_TULIP = register("minecraft:potted_orange_tulip"); - public static final BlockType POTTED_OXEYE_DAISY = register("minecraft:potted_oxeye_daisy"); - public static final BlockType POTTED_PINK_TULIP = register("minecraft:potted_pink_tulip"); - public static final BlockType POTTED_POPPY = register("minecraft:potted_poppy"); - public static final BlockType POTTED_RED_MUSHROOM = register("minecraft:potted_red_mushroom"); - public static final BlockType POTTED_RED_TULIP = register("minecraft:potted_red_tulip"); - public static final BlockType POTTED_SPRUCE_SAPLING = register("minecraft:potted_spruce_sapling"); - public static final BlockType POTTED_WHITE_TULIP = register("minecraft:potted_white_tulip"); - public static final BlockType POWERED_RAIL = register("minecraft:powered_rail", state -> state.with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("shape"), "north_south")); - public static final BlockType PRISMARINE = register("minecraft:prismarine"); - public static final BlockType PRISMARINE_BRICK_SLAB = register("minecraft:prismarine_brick_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType PRISMARINE_BRICK_STAIRS = register("minecraft:prismarine_brick_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType PRISMARINE_BRICKS = register("minecraft:prismarine_bricks"); - public static final BlockType PRISMARINE_SLAB = register("minecraft:prismarine_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType PRISMARINE_STAIRS = register("minecraft:prismarine_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType PUMPKIN = register("minecraft:pumpkin"); - public static final BlockType PUMPKIN_STEM = register("minecraft:pumpkin_stem", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType PURPLE_BANNER = register("minecraft:purple_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType PURPLE_BED = register("minecraft:purple_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType PURPLE_CARPET = register("minecraft:purple_carpet"); - public static final BlockType PURPLE_CONCRETE = register("minecraft:purple_concrete"); - public static final BlockType PURPLE_CONCRETE_POWDER = register("minecraft:purple_concrete_powder"); - public static final BlockType PURPLE_GLAZED_TERRACOTTA = register("minecraft:purple_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType PURPLE_SHULKER_BOX = register("minecraft:purple_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType PURPLE_STAINED_GLASS = register("minecraft:purple_stained_glass"); - public static final BlockType PURPLE_STAINED_GLASS_PANE = register("minecraft:purple_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType PURPLE_TERRACOTTA = register("minecraft:purple_terracotta"); - public static final BlockType PURPLE_WALL_BANNER = register("minecraft:purple_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType PURPLE_WOOL = register("minecraft:purple_wool"); - public static final BlockType PURPUR_BLOCK = register("minecraft:purpur_block"); - public static final BlockType PURPUR_PILLAR = register("minecraft:purpur_pillar", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType PURPUR_SLAB = register("minecraft:purpur_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType PURPUR_STAIRS = register("minecraft:purpur_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType QUARTZ_BLOCK = register("minecraft:quartz_block"); - public static final BlockType QUARTZ_PILLAR = register("minecraft:quartz_pillar", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType QUARTZ_SLAB = register("minecraft:quartz_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType QUARTZ_STAIRS = register("minecraft:quartz_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType RAIL = register("minecraft:rail", state -> state.with(state.getBlockType().getProperty("shape"), "north_south")); - public static final BlockType RED_BANNER = register("minecraft:red_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType RED_BED = register("minecraft:red_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType RED_CARPET = register("minecraft:red_carpet"); - public static final BlockType RED_CONCRETE = register("minecraft:red_concrete"); - public static final BlockType RED_CONCRETE_POWDER = register("minecraft:red_concrete_powder"); - public static final BlockType RED_GLAZED_TERRACOTTA = register("minecraft:red_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType RED_MUSHROOM = register("minecraft:red_mushroom"); - public static final BlockType RED_MUSHROOM_BLOCK = register("minecraft:red_mushroom_block", state -> state.with(state.getBlockType().getProperty("down"), true).with(state.getBlockType().getProperty("east"), true).with(state.getBlockType().getProperty("north"), true).with(state.getBlockType().getProperty("south"), true).with(state.getBlockType().getProperty("up"), true).with(state.getBlockType().getProperty("west"), true)); - public static final BlockType RED_NETHER_BRICKS = register("minecraft:red_nether_bricks"); - public static final BlockType RED_SAND = register("minecraft:red_sand"); - public static final BlockType RED_SANDSTONE = register("minecraft:red_sandstone"); - public static final BlockType RED_SANDSTONE_SLAB = register("minecraft:red_sandstone_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType RED_SANDSTONE_STAIRS = register("minecraft:red_sandstone_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType RED_SHULKER_BOX = register("minecraft:red_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType RED_STAINED_GLASS = register("minecraft:red_stained_glass"); - public static final BlockType RED_STAINED_GLASS_PANE = register("minecraft:red_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType RED_TERRACOTTA = register("minecraft:red_terracotta"); - public static final BlockType RED_TULIP = register("minecraft:red_tulip"); - public static final BlockType RED_WALL_BANNER = register("minecraft:red_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType RED_WOOL = register("minecraft:red_wool"); - public static final BlockType REDSTONE_BLOCK = register("minecraft:redstone_block"); - public static final BlockType REDSTONE_LAMP = register("minecraft:redstone_lamp", state -> state.with(state.getBlockType().getProperty("lit"), false)); - public static final BlockType REDSTONE_ORE = register("minecraft:redstone_ore", state -> state.with(state.getBlockType().getProperty("lit"), false)); - public static final BlockType REDSTONE_TORCH = register("minecraft:redstone_torch", state -> state.with(state.getBlockType().getProperty("lit"), true)); - public static final BlockType REDSTONE_WALL_TORCH = register("minecraft:redstone_wall_torch", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("lit"), true)); - public static final BlockType REDSTONE_WIRE = register("minecraft:redstone_wire", state -> state.with(state.getBlockType().getProperty("east"), "none").with(state.getBlockType().getProperty("north"), "none").with(state.getBlockType().getProperty("power"), 0).with(state.getBlockType().getProperty("south"), "none").with(state.getBlockType().getProperty("west"), "none")); - public static final BlockType REPEATER = register("minecraft:repeater", state -> state.with(state.getBlockType().getProperty("delay"), 1).with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("locked"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType REPEATING_COMMAND_BLOCK = register("minecraft:repeating_command_block", state -> state.with(state.getBlockType().getProperty("conditional"), false).with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType ROSE_BUSH = register("minecraft:rose_bush", state -> state.with(state.getBlockType().getProperty("half"), "lower")); - public static final BlockType SAND = register("minecraft:sand"); - public static final BlockType SANDSTONE = register("minecraft:sandstone"); - public static final BlockType SANDSTONE_SLAB = register("minecraft:sandstone_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType SANDSTONE_STAIRS = register("minecraft:sandstone_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType SEA_LANTERN = register("minecraft:sea_lantern"); - public static final BlockType SEA_PICKLE = register("minecraft:sea_pickle", state -> state.with(state.getBlockType().getProperty("pickles"), 1).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType SEAGRASS = register("minecraft:seagrass"); - public static final BlockType SHULKER_BOX = register("minecraft:shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType SIGN = register("minecraft:sign", state -> state.with(state.getBlockType().getProperty("rotation"), 0).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType SKELETON_SKULL = register("minecraft:skeleton_skull", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType SKELETON_WALL_SKULL = register("minecraft:skeleton_wall_skull", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType SLIME_BLOCK = register("minecraft:slime_block"); - public static final BlockType SMOOTH_QUARTZ = register("minecraft:smooth_quartz"); - public static final BlockType SMOOTH_RED_SANDSTONE = register("minecraft:smooth_red_sandstone"); - public static final BlockType SMOOTH_SANDSTONE = register("minecraft:smooth_sandstone"); - public static final BlockType SMOOTH_STONE = register("minecraft:smooth_stone"); - public static final BlockType SNOW = register("minecraft:snow", state -> state.with(state.getBlockType().getProperty("layers"), 1)); - public static final BlockType SNOW_BLOCK = register("minecraft:snow_block"); - public static final BlockType SOUL_SAND = register("minecraft:soul_sand"); - public static final BlockType SPAWNER = register("minecraft:spawner"); - public static final BlockType SPONGE = register("minecraft:sponge"); - public static final BlockType SPRUCE_BUTTON = register("minecraft:spruce_button", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType SPRUCE_DOOR = register("minecraft:spruce_door", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "lower").with(state.getBlockType().getProperty("hinge"), "left").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType SPRUCE_FENCE = register("minecraft:spruce_fence", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType SPRUCE_FENCE_GATE = register("minecraft:spruce_fence_gate", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("in_wall"), false).with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType SPRUCE_LEAVES = register("minecraft:spruce_leaves", state -> state.with(state.getBlockType().getProperty("distance"), 7).with(state.getBlockType().getProperty("persistent"), false)); - public static final BlockType SPRUCE_LOG = register("minecraft:spruce_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType SPRUCE_PLANKS = register("minecraft:spruce_planks"); - public static final BlockType SPRUCE_PRESSURE_PLATE = register("minecraft:spruce_pressure_plate", state -> state.with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType SPRUCE_SAPLING = register("minecraft:spruce_sapling", state -> state.with(state.getBlockType().getProperty("stage"), 0)); - public static final BlockType SPRUCE_SLAB = register("minecraft:spruce_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType SPRUCE_STAIRS = register("minecraft:spruce_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType SPRUCE_TRAPDOOR = register("minecraft:spruce_trapdoor", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("open"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType SPRUCE_WOOD = register("minecraft:spruce_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STICKY_PISTON = register("minecraft:sticky_piston", state -> state.with(state.getBlockType().getProperty("extended"), false).with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType STONE = register("minecraft:stone"); - public static final BlockType STONE_BRICK_SLAB = register("minecraft:stone_brick_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType STONE_BRICK_STAIRS = register("minecraft:stone_brick_stairs", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("half"), "bottom").with(state.getBlockType().getProperty("shape"), "straight").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType STONE_BRICKS = register("minecraft:stone_bricks"); - public static final BlockType STONE_BUTTON = register("minecraft:stone_button", state -> state.with(state.getBlockType().getProperty("face"), "WALL").with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType STONE_PRESSURE_PLATE = register("minecraft:stone_pressure_plate", state -> state.with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType STONE_SLAB = register("minecraft:stone_slab", state -> state.with(state.getBlockType().getProperty("type"), "bottom").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType STRIPPED_ACACIA_LOG = register("minecraft:stripped_acacia_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_ACACIA_WOOD = register("minecraft:stripped_acacia_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_BIRCH_LOG = register("minecraft:stripped_birch_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_BIRCH_WOOD = register("minecraft:stripped_birch_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_DARK_OAK_LOG = register("minecraft:stripped_dark_oak_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_DARK_OAK_WOOD = register("minecraft:stripped_dark_oak_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_JUNGLE_LOG = register("minecraft:stripped_jungle_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_JUNGLE_WOOD = register("minecraft:stripped_jungle_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_OAK_LOG = register("minecraft:stripped_oak_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_OAK_WOOD = register("minecraft:stripped_oak_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_SPRUCE_LOG = register("minecraft:stripped_spruce_log", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRIPPED_SPRUCE_WOOD = register("minecraft:stripped_spruce_wood", state -> state.with(state.getBlockType().getProperty("axis"), "y")); - public static final BlockType STRUCTURE_BLOCK = register("minecraft:structure_block", state -> state.with(state.getBlockType().getProperty("mode"), "SAVE")); - public static final BlockType STRUCTURE_VOID = register("minecraft:structure_void"); - public static final BlockType SUGAR_CANE = register("minecraft:sugar_cane", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType SUNFLOWER = register("minecraft:sunflower", state -> state.with(state.getBlockType().getProperty("half"), "lower")); - public static final BlockType TALL_GRASS = register("minecraft:tall_grass", state -> state.with(state.getBlockType().getProperty("half"), "lower")); - public static final BlockType TALL_SEAGRASS = register("minecraft:tall_seagrass", state -> state.with(state.getBlockType().getProperty("half"), "lower")); - public static final BlockType TERRACOTTA = register("minecraft:terracotta"); - public static final BlockType TNT = register("minecraft:tnt", state -> state.with(state.getBlockType().getProperty("unstable"), false)); - public static final BlockType TORCH = register("minecraft:torch"); - public static final BlockType TRAPPED_CHEST = register("minecraft:trapped_chest", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("type"), "SINGLE").with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType TRIPWIRE = register("minecraft:tripwire", state -> state.with(state.getBlockType().getProperty("attached"), false).with(state.getBlockType().getProperty("disarmed"), false).with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("powered"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType TRIPWIRE_HOOK = register("minecraft:tripwire_hook", state -> state.with(state.getBlockType().getProperty("attached"), false).with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("powered"), false)); - public static final BlockType TUBE_CORAL = register("minecraft:tube_coral", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType TUBE_CORAL_BLOCK = register("minecraft:tube_coral_block"); - public static final BlockType TUBE_CORAL_FAN = register("minecraft:tube_coral_fan", state -> state.with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType TUBE_CORAL_WALL_FAN = register("minecraft:tube_coral_wall_fan", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), true)); - public static final BlockType TURTLE_EGG = register("minecraft:turtle_egg", state -> state.with(state.getBlockType().getProperty("eggs"), 1).with(state.getBlockType().getProperty("hatch"), 0)); - public static final BlockType VINE = register("minecraft:vine", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("up"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType VOID_AIR = register("minecraft:void_air"); - public static final BlockType WALL_SIGN = register("minecraft:wall_sign", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("waterlogged"), false)); - public static final BlockType WALL_TORCH = register("minecraft:wall_torch", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType WATER = register("minecraft:water", state -> state.with(state.getBlockType().getProperty("level"), 0)); - public static final BlockType WET_SPONGE = register("minecraft:wet_sponge"); - public static final BlockType WHEAT = register("minecraft:wheat", state -> state.with(state.getBlockType().getProperty("age"), 0)); - public static final BlockType WHITE_BANNER = register("minecraft:white_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType WHITE_BED = register("minecraft:white_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType WHITE_CARPET = register("minecraft:white_carpet"); - public static final BlockType WHITE_CONCRETE = register("minecraft:white_concrete"); - public static final BlockType WHITE_CONCRETE_POWDER = register("minecraft:white_concrete_powder"); - public static final BlockType WHITE_GLAZED_TERRACOTTA = register("minecraft:white_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType WHITE_SHULKER_BOX = register("minecraft:white_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType WHITE_STAINED_GLASS = register("minecraft:white_stained_glass"); - public static final BlockType WHITE_STAINED_GLASS_PANE = register("minecraft:white_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType WHITE_TERRACOTTA = register("minecraft:white_terracotta"); - public static final BlockType WHITE_TULIP = register("minecraft:white_tulip"); - public static final BlockType WHITE_WALL_BANNER = register("minecraft:white_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType WHITE_WOOL = register("minecraft:white_wool"); - public static final BlockType WITHER_SKELETON_SKULL = register("minecraft:wither_skeleton_skull", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType WITHER_SKELETON_WALL_SKULL = register("minecraft:wither_skeleton_wall_skull", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType YELLOW_BANNER = register("minecraft:yellow_banner", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType YELLOW_BED = register("minecraft:yellow_bed", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH).with(state.getBlockType().getProperty("occupied"), false).with(state.getBlockType().getProperty("part"), "foot")); - public static final BlockType YELLOW_CARPET = register("minecraft:yellow_carpet"); - public static final BlockType YELLOW_CONCRETE = register("minecraft:yellow_concrete"); - public static final BlockType YELLOW_CONCRETE_POWDER = register("minecraft:yellow_concrete_powder"); - public static final BlockType YELLOW_GLAZED_TERRACOTTA = register("minecraft:yellow_glazed_terracotta", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType YELLOW_SHULKER_BOX = register("minecraft:yellow_shulker_box", state -> state.with(state.getBlockType().getProperty("facing"), Direction.UP)); - public static final BlockType YELLOW_STAINED_GLASS = register("minecraft:yellow_stained_glass"); - public static final BlockType YELLOW_STAINED_GLASS_PANE = register("minecraft:yellow_stained_glass_pane", state -> state.with(state.getBlockType().getProperty("east"), false).with(state.getBlockType().getProperty("north"), false).with(state.getBlockType().getProperty("south"), false).with(state.getBlockType().getProperty("waterlogged"), false).with(state.getBlockType().getProperty("west"), false)); - public static final BlockType YELLOW_TERRACOTTA = register("minecraft:yellow_terracotta"); - public static final BlockType YELLOW_WALL_BANNER = register("minecraft:yellow_wall_banner", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); - public static final BlockType YELLOW_WOOL = register("minecraft:yellow_wool"); - public static final BlockType ZOMBIE_HEAD = register("minecraft:zombie_head", state -> state.with(state.getBlockType().getProperty("rotation"), 0)); - public static final BlockType ZOMBIE_WALL_HEAD = register("minecraft:zombie_wall_head", state -> state.with(state.getBlockType().getProperty("facing"), Direction.NORTH)); + @Nullable public static final BlockType ACACIA_BUTTON = get("minecraft:acacia_button"); + @Nullable public static final BlockType ACACIA_DOOR = get("minecraft:acacia_door"); + @Nullable public static final BlockType ACACIA_FENCE = get("minecraft:acacia_fence"); + @Nullable public static final BlockType ACACIA_FENCE_GATE = get("minecraft:acacia_fence_gate"); + @Nullable public static final BlockType ACACIA_LEAVES = get("minecraft:acacia_leaves"); + @Nullable public static final BlockType ACACIA_LOG = get("minecraft:acacia_log"); + @Nullable public static final BlockType ACACIA_PLANKS = get("minecraft:acacia_planks"); + @Nullable public static final BlockType ACACIA_PRESSURE_PLATE = get("minecraft:acacia_pressure_plate"); + @Nullable public static final BlockType ACACIA_SAPLING = get("minecraft:acacia_sapling"); + @Nullable public static final BlockType ACACIA_SLAB = get("minecraft:acacia_slab"); + @Nullable public static final BlockType ACACIA_STAIRS = get("minecraft:acacia_stairs"); + @Nullable public static final BlockType ACACIA_TRAPDOOR = get("minecraft:acacia_trapdoor"); + @Nullable public static final BlockType ACACIA_WOOD = get("minecraft:acacia_wood"); + @Nullable public static final BlockType ACTIVATOR_RAIL = get("minecraft:activator_rail"); + @Nullable public static final BlockType AIR = get("minecraft:air"); + @Nullable public static final BlockType ALLIUM = get("minecraft:allium"); + @Nullable public static final BlockType ANDESITE = get("minecraft:andesite"); + @Nullable public static final BlockType ANVIL = get("minecraft:anvil"); + @Nullable public static final BlockType ATTACHED_MELON_STEM = get("minecraft:attached_melon_stem"); + @Nullable public static final BlockType ATTACHED_PUMPKIN_STEM = get("minecraft:attached_pumpkin_stem"); + @Nullable public static final BlockType AZURE_BLUET = get("minecraft:azure_bluet"); + @Nullable public static final BlockType BARRIER = get("minecraft:barrier"); + @Nullable public static final BlockType BEACON = get("minecraft:beacon"); + @Nullable public static final BlockType BEDROCK = get("minecraft:bedrock"); + @Nullable public static final BlockType BEETROOTS = get("minecraft:beetroots"); + @Nullable public static final BlockType BIRCH_BUTTON = get("minecraft:birch_button"); + @Nullable public static final BlockType BIRCH_DOOR = get("minecraft:birch_door"); + @Nullable public static final BlockType BIRCH_FENCE = get("minecraft:birch_fence"); + @Nullable public static final BlockType BIRCH_FENCE_GATE = get("minecraft:birch_fence_gate"); + @Nullable public static final BlockType BIRCH_LEAVES = get("minecraft:birch_leaves"); + @Nullable public static final BlockType BIRCH_LOG = get("minecraft:birch_log"); + @Nullable public static final BlockType BIRCH_PLANKS = get("minecraft:birch_planks"); + @Nullable public static final BlockType BIRCH_PRESSURE_PLATE = get("minecraft:birch_pressure_plate"); + @Nullable public static final BlockType BIRCH_SAPLING = get("minecraft:birch_sapling"); + @Nullable public static final BlockType BIRCH_SLAB = get("minecraft:birch_slab"); + @Nullable public static final BlockType BIRCH_STAIRS = get("minecraft:birch_stairs"); + @Nullable public static final BlockType BIRCH_TRAPDOOR = get("minecraft:birch_trapdoor"); + @Nullable public static final BlockType BIRCH_WOOD = get("minecraft:birch_wood"); + @Nullable public static final BlockType BLACK_BANNER = get("minecraft:black_banner"); + @Nullable public static final BlockType BLACK_BED = get("minecraft:black_bed"); + @Nullable public static final BlockType BLACK_CARPET = get("minecraft:black_carpet"); + @Nullable public static final BlockType BLACK_CONCRETE = get("minecraft:black_concrete"); + @Nullable public static final BlockType BLACK_CONCRETE_POWDER = get("minecraft:black_concrete_powder"); + @Nullable public static final BlockType BLACK_GLAZED_TERRACOTTA = get("minecraft:black_glazed_terracotta"); + @Nullable public static final BlockType BLACK_SHULKER_BOX = get("minecraft:black_shulker_box"); + @Nullable public static final BlockType BLACK_STAINED_GLASS = get("minecraft:black_stained_glass"); + @Nullable public static final BlockType BLACK_STAINED_GLASS_PANE = get("minecraft:black_stained_glass_pane"); + @Nullable public static final BlockType BLACK_TERRACOTTA = get("minecraft:black_terracotta"); + @Nullable public static final BlockType BLACK_WALL_BANNER = get("minecraft:black_wall_banner"); + @Nullable public static final BlockType BLACK_WOOL = get("minecraft:black_wool"); + @Nullable public static final BlockType BLUE_BANNER = get("minecraft:blue_banner"); + @Nullable public static final BlockType BLUE_BED = get("minecraft:blue_bed"); + @Nullable public static final BlockType BLUE_CARPET = get("minecraft:blue_carpet"); + @Nullable public static final BlockType BLUE_CONCRETE = get("minecraft:blue_concrete"); + @Nullable public static final BlockType BLUE_CONCRETE_POWDER = get("minecraft:blue_concrete_powder"); + @Nullable public static final BlockType BLUE_GLAZED_TERRACOTTA = get("minecraft:blue_glazed_terracotta"); + @Nullable public static final BlockType BLUE_ICE = get("minecraft:blue_ice"); + @Nullable public static final BlockType BLUE_ORCHID = get("minecraft:blue_orchid"); + @Nullable public static final BlockType BLUE_SHULKER_BOX = get("minecraft:blue_shulker_box"); + @Nullable public static final BlockType BLUE_STAINED_GLASS = get("minecraft:blue_stained_glass"); + @Nullable public static final BlockType BLUE_STAINED_GLASS_PANE = get("minecraft:blue_stained_glass_pane"); + @Nullable public static final BlockType BLUE_TERRACOTTA = get("minecraft:blue_terracotta"); + @Nullable public static final BlockType BLUE_WALL_BANNER = get("minecraft:blue_wall_banner"); + @Nullable public static final BlockType BLUE_WOOL = get("minecraft:blue_wool"); + @Nullable public static final BlockType BONE_BLOCK = get("minecraft:bone_block"); + @Nullable public static final BlockType BOOKSHELF = get("minecraft:bookshelf"); + @Nullable public static final BlockType BRAIN_CORAL = get("minecraft:brain_coral"); + @Nullable public static final BlockType BRAIN_CORAL_BLOCK = get("minecraft:brain_coral_block"); + @Nullable public static final BlockType BRAIN_CORAL_FAN = get("minecraft:brain_coral_fan"); + @Nullable public static final BlockType BRAIN_CORAL_WALL_FAN = get("minecraft:brain_coral_wall_fan"); + @Nullable public static final BlockType BREWING_STAND = get("minecraft:brewing_stand"); + @Nullable public static final BlockType BRICK_SLAB = get("minecraft:brick_slab"); + @Nullable public static final BlockType BRICK_STAIRS = get("minecraft:brick_stairs"); + @Nullable public static final BlockType BRICKS = get("minecraft:bricks"); + @Nullable public static final BlockType BROWN_BANNER = get("minecraft:brown_banner"); + @Nullable public static final BlockType BROWN_BED = get("minecraft:brown_bed"); + @Nullable public static final BlockType BROWN_CARPET = get("minecraft:brown_carpet"); + @Nullable public static final BlockType BROWN_CONCRETE = get("minecraft:brown_concrete"); + @Nullable public static final BlockType BROWN_CONCRETE_POWDER = get("minecraft:brown_concrete_powder"); + @Nullable public static final BlockType BROWN_GLAZED_TERRACOTTA = get("minecraft:brown_glazed_terracotta"); + @Nullable public static final BlockType BROWN_MUSHROOM = get("minecraft:brown_mushroom"); + @Nullable public static final BlockType BROWN_MUSHROOM_BLOCK = get("minecraft:brown_mushroom_block"); + @Nullable public static final BlockType BROWN_SHULKER_BOX = get("minecraft:brown_shulker_box"); + @Nullable public static final BlockType BROWN_STAINED_GLASS = get("minecraft:brown_stained_glass"); + @Nullable public static final BlockType BROWN_STAINED_GLASS_PANE = get("minecraft:brown_stained_glass_pane"); + @Nullable public static final BlockType BROWN_TERRACOTTA = get("minecraft:brown_terracotta"); + @Nullable public static final BlockType BROWN_WALL_BANNER = get("minecraft:brown_wall_banner"); + @Nullable public static final BlockType BROWN_WOOL = get("minecraft:brown_wool"); + @Nullable public static final BlockType BUBBLE_COLUMN = get("minecraft:bubble_column"); + @Nullable public static final BlockType BUBBLE_CORAL = get("minecraft:bubble_coral"); + @Nullable public static final BlockType BUBBLE_CORAL_BLOCK = get("minecraft:bubble_coral_block"); + @Nullable public static final BlockType BUBBLE_CORAL_FAN = get("minecraft:bubble_coral_fan"); + @Nullable public static final BlockType BUBBLE_CORAL_WALL_FAN = get("minecraft:bubble_coral_wall_fan"); + @Nullable public static final BlockType CACTUS = get("minecraft:cactus"); + @Nullable public static final BlockType CAKE = get("minecraft:cake"); + @Nullable public static final BlockType CARROTS = get("minecraft:carrots"); + @Nullable public static final BlockType CARVED_PUMPKIN = get("minecraft:carved_pumpkin"); + @Nullable public static final BlockType CAULDRON = get("minecraft:cauldron"); + @Nullable public static final BlockType CAVE_AIR = get("minecraft:cave_air"); + @Nullable public static final BlockType CHAIN_COMMAND_BLOCK = get("minecraft:chain_command_block"); + @Nullable public static final BlockType CHEST = get("minecraft:chest"); + @Nullable public static final BlockType CHIPPED_ANVIL = get("minecraft:chipped_anvil"); + @Nullable public static final BlockType CHISELED_QUARTZ_BLOCK = get("minecraft:chiseled_quartz_block"); + @Nullable public static final BlockType CHISELED_RED_SANDSTONE = get("minecraft:chiseled_red_sandstone"); + @Nullable public static final BlockType CHISELED_SANDSTONE = get("minecraft:chiseled_sandstone"); + @Nullable public static final BlockType CHISELED_STONE_BRICKS = get("minecraft:chiseled_stone_bricks"); + @Nullable public static final BlockType CHORUS_FLOWER = get("minecraft:chorus_flower"); + @Nullable public static final BlockType CHORUS_PLANT = get("minecraft:chorus_plant"); + @Nullable public static final BlockType CLAY = get("minecraft:clay"); + @Nullable public static final BlockType COAL_BLOCK = get("minecraft:coal_block"); + @Nullable public static final BlockType COAL_ORE = get("minecraft:coal_ore"); + @Nullable public static final BlockType COARSE_DIRT = get("minecraft:coarse_dirt"); + @Nullable public static final BlockType COBBLESTONE = get("minecraft:cobblestone"); + @Nullable public static final BlockType COBBLESTONE_SLAB = get("minecraft:cobblestone_slab"); + @Nullable public static final BlockType COBBLESTONE_STAIRS = get("minecraft:cobblestone_stairs"); + @Nullable public static final BlockType COBBLESTONE_WALL = get("minecraft:cobblestone_wall"); + @Nullable public static final BlockType COBWEB = get("minecraft:cobweb"); + @Nullable public static final BlockType COCOA = get("minecraft:cocoa"); + @Nullable public static final BlockType COMMAND_BLOCK = get("minecraft:command_block"); + @Nullable public static final BlockType COMPARATOR = get("minecraft:comparator"); + @Nullable public static final BlockType CONDUIT = get("minecraft:conduit"); + @Nullable public static final BlockType CRACKED_STONE_BRICKS = get("minecraft:cracked_stone_bricks"); + @Nullable public static final BlockType CRAFTING_TABLE = get("minecraft:crafting_table"); + @Nullable public static final BlockType CREEPER_HEAD = get("minecraft:creeper_head"); + @Nullable public static final BlockType CREEPER_WALL_HEAD = get("minecraft:creeper_wall_head"); + @Nullable public static final BlockType CUT_RED_SANDSTONE = get("minecraft:cut_red_sandstone"); + @Nullable public static final BlockType CUT_SANDSTONE = get("minecraft:cut_sandstone"); + @Nullable public static final BlockType CYAN_BANNER = get("minecraft:cyan_banner"); + @Nullable public static final BlockType CYAN_BED = get("minecraft:cyan_bed"); + @Nullable public static final BlockType CYAN_CARPET = get("minecraft:cyan_carpet"); + @Nullable public static final BlockType CYAN_CONCRETE = get("minecraft:cyan_concrete"); + @Nullable public static final BlockType CYAN_CONCRETE_POWDER = get("minecraft:cyan_concrete_powder"); + @Nullable public static final BlockType CYAN_GLAZED_TERRACOTTA = get("minecraft:cyan_glazed_terracotta"); + @Nullable public static final BlockType CYAN_SHULKER_BOX = get("minecraft:cyan_shulker_box"); + @Nullable public static final BlockType CYAN_STAINED_GLASS = get("minecraft:cyan_stained_glass"); + @Nullable public static final BlockType CYAN_STAINED_GLASS_PANE = get("minecraft:cyan_stained_glass_pane"); + @Nullable public static final BlockType CYAN_TERRACOTTA = get("minecraft:cyan_terracotta"); + @Nullable public static final BlockType CYAN_WALL_BANNER = get("minecraft:cyan_wall_banner"); + @Nullable public static final BlockType CYAN_WOOL = get("minecraft:cyan_wool"); + @Nullable public static final BlockType DAMAGED_ANVIL = get("minecraft:damaged_anvil"); + @Nullable public static final BlockType DANDELION = get("minecraft:dandelion"); + @Nullable public static final BlockType DARK_OAK_BUTTON = get("minecraft:dark_oak_button"); + @Nullable public static final BlockType DARK_OAK_DOOR = get("minecraft:dark_oak_door"); + @Nullable public static final BlockType DARK_OAK_FENCE = get("minecraft:dark_oak_fence"); + @Nullable public static final BlockType DARK_OAK_FENCE_GATE = get("minecraft:dark_oak_fence_gate"); + @Nullable public static final BlockType DARK_OAK_LEAVES = get("minecraft:dark_oak_leaves"); + @Nullable public static final BlockType DARK_OAK_LOG = get("minecraft:dark_oak_log"); + @Nullable public static final BlockType DARK_OAK_PLANKS = get("minecraft:dark_oak_planks"); + @Nullable public static final BlockType DARK_OAK_PRESSURE_PLATE = get("minecraft:dark_oak_pressure_plate"); + @Nullable public static final BlockType DARK_OAK_SAPLING = get("minecraft:dark_oak_sapling"); + @Nullable public static final BlockType DARK_OAK_SLAB = get("minecraft:dark_oak_slab"); + @Nullable public static final BlockType DARK_OAK_STAIRS = get("minecraft:dark_oak_stairs"); + @Nullable public static final BlockType DARK_OAK_TRAPDOOR = get("minecraft:dark_oak_trapdoor"); + @Nullable public static final BlockType DARK_OAK_WOOD = get("minecraft:dark_oak_wood"); + @Nullable public static final BlockType DARK_PRISMARINE = get("minecraft:dark_prismarine"); + @Nullable public static final BlockType DARK_PRISMARINE_SLAB = get("minecraft:dark_prismarine_slab"); + @Nullable public static final BlockType DARK_PRISMARINE_STAIRS = get("minecraft:dark_prismarine_stairs"); + @Nullable public static final BlockType DAYLIGHT_DETECTOR = get("minecraft:daylight_detector"); + @Nullable public static final BlockType DEAD_BRAIN_CORAL = get("minecraft:dead_brain_coral"); + @Nullable public static final BlockType DEAD_BRAIN_CORAL_BLOCK = get("minecraft:dead_brain_coral_block"); + @Nullable public static final BlockType DEAD_BRAIN_CORAL_FAN = get("minecraft:dead_brain_coral_fan"); + @Nullable public static final BlockType DEAD_BRAIN_CORAL_WALL_FAN = get("minecraft:dead_brain_coral_wall_fan"); + @Nullable public static final BlockType DEAD_BUBBLE_CORAL = get("minecraft:dead_bubble_coral"); + @Nullable public static final BlockType DEAD_BUBBLE_CORAL_BLOCK = get("minecraft:dead_bubble_coral_block"); + @Nullable public static final BlockType DEAD_BUBBLE_CORAL_FAN = get("minecraft:dead_bubble_coral_fan"); + @Nullable public static final BlockType DEAD_BUBBLE_CORAL_WALL_FAN = get("minecraft:dead_bubble_coral_wall_fan"); + @Nullable public static final BlockType DEAD_BUSH = get("minecraft:dead_bush"); + @Nullable public static final BlockType DEAD_FIRE_CORAL = get("minecraft:dead_fire_coral"); + @Nullable public static final BlockType DEAD_FIRE_CORAL_BLOCK = get("minecraft:dead_fire_coral_block"); + @Nullable public static final BlockType DEAD_FIRE_CORAL_FAN = get("minecraft:dead_fire_coral_fan"); + @Nullable public static final BlockType DEAD_FIRE_CORAL_WALL_FAN = get("minecraft:dead_fire_coral_wall_fan"); + @Nullable public static final BlockType DEAD_HORN_CORAL = get("minecraft:dead_horn_coral"); + @Nullable public static final BlockType DEAD_HORN_CORAL_BLOCK = get("minecraft:dead_horn_coral_block"); + @Nullable public static final BlockType DEAD_HORN_CORAL_FAN = get("minecraft:dead_horn_coral_fan"); + @Nullable public static final BlockType DEAD_HORN_CORAL_WALL_FAN = get("minecraft:dead_horn_coral_wall_fan"); + @Nullable public static final BlockType DEAD_TUBE_CORAL = get("minecraft:dead_tube_coral"); + @Nullable public static final BlockType DEAD_TUBE_CORAL_BLOCK = get("minecraft:dead_tube_coral_block"); + @Nullable public static final BlockType DEAD_TUBE_CORAL_FAN = get("minecraft:dead_tube_coral_fan"); + @Nullable public static final BlockType DEAD_TUBE_CORAL_WALL_FAN = get("minecraft:dead_tube_coral_wall_fan"); + @Nullable public static final BlockType DETECTOR_RAIL = get("minecraft:detector_rail"); + @Nullable public static final BlockType DIAMOND_BLOCK = get("minecraft:diamond_block"); + @Nullable public static final BlockType DIAMOND_ORE = get("minecraft:diamond_ore"); + @Nullable public static final BlockType DIORITE = get("minecraft:diorite"); + @Nullable public static final BlockType DIRT = get("minecraft:dirt"); + @Nullable public static final BlockType DISPENSER = get("minecraft:dispenser"); + @Nullable public static final BlockType DRAGON_EGG = get("minecraft:dragon_egg"); + @Nullable public static final BlockType DRAGON_HEAD = get("minecraft:dragon_head"); + @Nullable public static final BlockType DRAGON_WALL_HEAD = get("minecraft:dragon_wall_head"); + @Nullable public static final BlockType DRIED_KELP_BLOCK = get("minecraft:dried_kelp_block"); + @Nullable public static final BlockType DROPPER = get("minecraft:dropper"); + @Nullable public static final BlockType EMERALD_BLOCK = get("minecraft:emerald_block"); + @Nullable public static final BlockType EMERALD_ORE = get("minecraft:emerald_ore"); + @Nullable public static final BlockType ENCHANTING_TABLE = get("minecraft:enchanting_table"); + @Nullable public static final BlockType END_GATEWAY = get("minecraft:end_gateway"); + @Nullable public static final BlockType END_PORTAL = get("minecraft:end_portal"); + @Nullable public static final BlockType END_PORTAL_FRAME = get("minecraft:end_portal_frame"); + @Nullable public static final BlockType END_ROD = get("minecraft:end_rod"); + @Nullable public static final BlockType END_STONE = get("minecraft:end_stone"); + @Nullable public static final BlockType END_STONE_BRICKS = get("minecraft:end_stone_bricks"); + @Nullable public static final BlockType ENDER_CHEST = get("minecraft:ender_chest"); + @Nullable public static final BlockType FARMLAND = get("minecraft:farmland"); + @Nullable public static final BlockType FERN = get("minecraft:fern"); + @Nullable public static final BlockType FIRE = get("minecraft:fire"); + @Nullable public static final BlockType FIRE_CORAL = get("minecraft:fire_coral"); + @Nullable public static final BlockType FIRE_CORAL_BLOCK = get("minecraft:fire_coral_block"); + @Nullable public static final BlockType FIRE_CORAL_FAN = get("minecraft:fire_coral_fan"); + @Nullable public static final BlockType FIRE_CORAL_WALL_FAN = get("minecraft:fire_coral_wall_fan"); + @Nullable public static final BlockType FLOWER_POT = get("minecraft:flower_pot"); + @Nullable public static final BlockType FROSTED_ICE = get("minecraft:frosted_ice"); + @Nullable public static final BlockType FURNACE = get("minecraft:furnace"); + @Nullable public static final BlockType GLASS = get("minecraft:glass"); + @Nullable public static final BlockType GLASS_PANE = get("minecraft:glass_pane"); + @Nullable public static final BlockType GLOWSTONE = get("minecraft:glowstone"); + @Nullable public static final BlockType GOLD_BLOCK = get("minecraft:gold_block"); + @Nullable public static final BlockType GOLD_ORE = get("minecraft:gold_ore"); + @Nullable public static final BlockType GRANITE = get("minecraft:granite"); + @Nullable public static final BlockType GRASS = get("minecraft:grass"); + @Nullable public static final BlockType GRASS_BLOCK = get("minecraft:grass_block"); + @Nullable public static final BlockType GRASS_PATH = get("minecraft:grass_path"); + @Nullable public static final BlockType GRAVEL = get("minecraft:gravel"); + @Nullable public static final BlockType GRAY_BANNER = get("minecraft:gray_banner"); + @Nullable public static final BlockType GRAY_BED = get("minecraft:gray_bed"); + @Nullable public static final BlockType GRAY_CARPET = get("minecraft:gray_carpet"); + @Nullable public static final BlockType GRAY_CONCRETE = get("minecraft:gray_concrete"); + @Nullable public static final BlockType GRAY_CONCRETE_POWDER = get("minecraft:gray_concrete_powder"); + @Nullable public static final BlockType GRAY_GLAZED_TERRACOTTA = get("minecraft:gray_glazed_terracotta"); + @Nullable public static final BlockType GRAY_SHULKER_BOX = get("minecraft:gray_shulker_box"); + @Nullable public static final BlockType GRAY_STAINED_GLASS = get("minecraft:gray_stained_glass"); + @Nullable public static final BlockType GRAY_STAINED_GLASS_PANE = get("minecraft:gray_stained_glass_pane"); + @Nullable public static final BlockType GRAY_TERRACOTTA = get("minecraft:gray_terracotta"); + @Nullable public static final BlockType GRAY_WALL_BANNER = get("minecraft:gray_wall_banner"); + @Nullable public static final BlockType GRAY_WOOL = get("minecraft:gray_wool"); + @Nullable public static final BlockType GREEN_BANNER = get("minecraft:green_banner"); + @Nullable public static final BlockType GREEN_BED = get("minecraft:green_bed"); + @Nullable public static final BlockType GREEN_CARPET = get("minecraft:green_carpet"); + @Nullable public static final BlockType GREEN_CONCRETE = get("minecraft:green_concrete"); + @Nullable public static final BlockType GREEN_CONCRETE_POWDER = get("minecraft:green_concrete_powder"); + @Nullable public static final BlockType GREEN_GLAZED_TERRACOTTA = get("minecraft:green_glazed_terracotta"); + @Nullable public static final BlockType GREEN_SHULKER_BOX = get("minecraft:green_shulker_box"); + @Nullable public static final BlockType GREEN_STAINED_GLASS = get("minecraft:green_stained_glass"); + @Nullable public static final BlockType GREEN_STAINED_GLASS_PANE = get("minecraft:green_stained_glass_pane"); + @Nullable public static final BlockType GREEN_TERRACOTTA = get("minecraft:green_terracotta"); + @Nullable public static final BlockType GREEN_WALL_BANNER = get("minecraft:green_wall_banner"); + @Nullable public static final BlockType GREEN_WOOL = get("minecraft:green_wool"); + @Nullable public static final BlockType HAY_BLOCK = get("minecraft:hay_block"); + @Nullable public static final BlockType HEAVY_WEIGHTED_PRESSURE_PLATE = get("minecraft:heavy_weighted_pressure_plate"); + @Nullable public static final BlockType HOPPER = get("minecraft:hopper"); + @Nullable public static final BlockType HORN_CORAL = get("minecraft:horn_coral"); + @Nullable public static final BlockType HORN_CORAL_BLOCK = get("minecraft:horn_coral_block"); + @Nullable public static final BlockType HORN_CORAL_FAN = get("minecraft:horn_coral_fan"); + @Nullable public static final BlockType HORN_CORAL_WALL_FAN = get("minecraft:horn_coral_wall_fan"); + @Nullable public static final BlockType ICE = get("minecraft:ice"); + @Nullable public static final BlockType INFESTED_CHISELED_STONE_BRICKS = get("minecraft:infested_chiseled_stone_bricks"); + @Nullable public static final BlockType INFESTED_COBBLESTONE = get("minecraft:infested_cobblestone"); + @Nullable public static final BlockType INFESTED_CRACKED_STONE_BRICKS = get("minecraft:infested_cracked_stone_bricks"); + @Nullable public static final BlockType INFESTED_MOSSY_STONE_BRICKS = get("minecraft:infested_mossy_stone_bricks"); + @Nullable public static final BlockType INFESTED_STONE = get("minecraft:infested_stone"); + @Nullable public static final BlockType INFESTED_STONE_BRICKS = get("minecraft:infested_stone_bricks"); + @Nullable public static final BlockType IRON_BARS = get("minecraft:iron_bars"); + @Nullable public static final BlockType IRON_BLOCK = get("minecraft:iron_block"); + @Nullable public static final BlockType IRON_DOOR = get("minecraft:iron_door"); + @Nullable public static final BlockType IRON_ORE = get("minecraft:iron_ore"); + @Nullable public static final BlockType IRON_TRAPDOOR = get("minecraft:iron_trapdoor"); + @Nullable public static final BlockType JACK_O_LANTERN = get("minecraft:jack_o_lantern"); + @Nullable public static final BlockType JUKEBOX = get("minecraft:jukebox"); + @Nullable public static final BlockType JUNGLE_BUTTON = get("minecraft:jungle_button"); + @Nullable public static final BlockType JUNGLE_DOOR = get("minecraft:jungle_door"); + @Nullable public static final BlockType JUNGLE_FENCE = get("minecraft:jungle_fence"); + @Nullable public static final BlockType JUNGLE_FENCE_GATE = get("minecraft:jungle_fence_gate"); + @Nullable public static final BlockType JUNGLE_LEAVES = get("minecraft:jungle_leaves"); + @Nullable public static final BlockType JUNGLE_LOG = get("minecraft:jungle_log"); + @Nullable public static final BlockType JUNGLE_PLANKS = get("minecraft:jungle_planks"); + @Nullable public static final BlockType JUNGLE_PRESSURE_PLATE = get("minecraft:jungle_pressure_plate"); + @Nullable public static final BlockType JUNGLE_SAPLING = get("minecraft:jungle_sapling"); + @Nullable public static final BlockType JUNGLE_SLAB = get("minecraft:jungle_slab"); + @Nullable public static final BlockType JUNGLE_STAIRS = get("minecraft:jungle_stairs"); + @Nullable public static final BlockType JUNGLE_TRAPDOOR = get("minecraft:jungle_trapdoor"); + @Nullable public static final BlockType JUNGLE_WOOD = get("minecraft:jungle_wood"); + @Nullable public static final BlockType KELP = get("minecraft:kelp"); + @Nullable public static final BlockType KELP_PLANT = get("minecraft:kelp_plant"); + @Nullable public static final BlockType LADDER = get("minecraft:ladder"); + @Nullable public static final BlockType LAPIS_BLOCK = get("minecraft:lapis_block"); + @Nullable public static final BlockType LAPIS_ORE = get("minecraft:lapis_ore"); + @Nullable public static final BlockType LARGE_FERN = get("minecraft:large_fern"); + @Nullable public static final BlockType LAVA = get("minecraft:lava"); + @Nullable public static final BlockType LEVER = get("minecraft:lever"); + @Nullable public static final BlockType LIGHT_BLUE_BANNER = get("minecraft:light_blue_banner"); + @Nullable public static final BlockType LIGHT_BLUE_BED = get("minecraft:light_blue_bed"); + @Nullable public static final BlockType LIGHT_BLUE_CARPET = get("minecraft:light_blue_carpet"); + @Nullable public static final BlockType LIGHT_BLUE_CONCRETE = get("minecraft:light_blue_concrete"); + @Nullable public static final BlockType LIGHT_BLUE_CONCRETE_POWDER = get("minecraft:light_blue_concrete_powder"); + @Nullable public static final BlockType LIGHT_BLUE_GLAZED_TERRACOTTA = get("minecraft:light_blue_glazed_terracotta"); + @Nullable public static final BlockType LIGHT_BLUE_SHULKER_BOX = get("minecraft:light_blue_shulker_box"); + @Nullable public static final BlockType LIGHT_BLUE_STAINED_GLASS = get("minecraft:light_blue_stained_glass"); + @Nullable public static final BlockType LIGHT_BLUE_STAINED_GLASS_PANE = get("minecraft:light_blue_stained_glass_pane"); + @Nullable public static final BlockType LIGHT_BLUE_TERRACOTTA = get("minecraft:light_blue_terracotta"); + @Nullable public static final BlockType LIGHT_BLUE_WALL_BANNER = get("minecraft:light_blue_wall_banner"); + @Nullable public static final BlockType LIGHT_BLUE_WOOL = get("minecraft:light_blue_wool"); + @Nullable public static final BlockType LIGHT_GRAY_BANNER = get("minecraft:light_gray_banner"); + @Nullable public static final BlockType LIGHT_GRAY_BED = get("minecraft:light_gray_bed"); + @Nullable public static final BlockType LIGHT_GRAY_CARPET = get("minecraft:light_gray_carpet"); + @Nullable public static final BlockType LIGHT_GRAY_CONCRETE = get("minecraft:light_gray_concrete"); + @Nullable public static final BlockType LIGHT_GRAY_CONCRETE_POWDER = get("minecraft:light_gray_concrete_powder"); + @Nullable public static final BlockType LIGHT_GRAY_GLAZED_TERRACOTTA = get("minecraft:light_gray_glazed_terracotta"); + @Nullable public static final BlockType LIGHT_GRAY_SHULKER_BOX = get("minecraft:light_gray_shulker_box"); + @Nullable public static final BlockType LIGHT_GRAY_STAINED_GLASS = get("minecraft:light_gray_stained_glass"); + @Nullable public static final BlockType LIGHT_GRAY_STAINED_GLASS_PANE = get("minecraft:light_gray_stained_glass_pane"); + @Nullable public static final BlockType LIGHT_GRAY_TERRACOTTA = get("minecraft:light_gray_terracotta"); + @Nullable public static final BlockType LIGHT_GRAY_WALL_BANNER = get("minecraft:light_gray_wall_banner"); + @Nullable public static final BlockType LIGHT_GRAY_WOOL = get("minecraft:light_gray_wool"); + @Nullable public static final BlockType LIGHT_WEIGHTED_PRESSURE_PLATE = get("minecraft:light_weighted_pressure_plate"); + @Nullable public static final BlockType LILAC = get("minecraft:lilac"); + @Nullable public static final BlockType LILY_PAD = get("minecraft:lily_pad"); + @Nullable public static final BlockType LIME_BANNER = get("minecraft:lime_banner"); + @Nullable public static final BlockType LIME_BED = get("minecraft:lime_bed"); + @Nullable public static final BlockType LIME_CARPET = get("minecraft:lime_carpet"); + @Nullable public static final BlockType LIME_CONCRETE = get("minecraft:lime_concrete"); + @Nullable public static final BlockType LIME_CONCRETE_POWDER = get("minecraft:lime_concrete_powder"); + @Nullable public static final BlockType LIME_GLAZED_TERRACOTTA = get("minecraft:lime_glazed_terracotta"); + @Nullable public static final BlockType LIME_SHULKER_BOX = get("minecraft:lime_shulker_box"); + @Nullable public static final BlockType LIME_STAINED_GLASS = get("minecraft:lime_stained_glass"); + @Nullable public static final BlockType LIME_STAINED_GLASS_PANE = get("minecraft:lime_stained_glass_pane"); + @Nullable public static final BlockType LIME_TERRACOTTA = get("minecraft:lime_terracotta"); + @Nullable public static final BlockType LIME_WALL_BANNER = get("minecraft:lime_wall_banner"); + @Nullable public static final BlockType LIME_WOOL = get("minecraft:lime_wool"); + @Nullable public static final BlockType MAGENTA_BANNER = get("minecraft:magenta_banner"); + @Nullable public static final BlockType MAGENTA_BED = get("minecraft:magenta_bed"); + @Nullable public static final BlockType MAGENTA_CARPET = get("minecraft:magenta_carpet"); + @Nullable public static final BlockType MAGENTA_CONCRETE = get("minecraft:magenta_concrete"); + @Nullable public static final BlockType MAGENTA_CONCRETE_POWDER = get("minecraft:magenta_concrete_powder"); + @Nullable public static final BlockType MAGENTA_GLAZED_TERRACOTTA = get("minecraft:magenta_glazed_terracotta"); + @Nullable public static final BlockType MAGENTA_SHULKER_BOX = get("minecraft:magenta_shulker_box"); + @Nullable public static final BlockType MAGENTA_STAINED_GLASS = get("minecraft:magenta_stained_glass"); + @Nullable public static final BlockType MAGENTA_STAINED_GLASS_PANE = get("minecraft:magenta_stained_glass_pane"); + @Nullable public static final BlockType MAGENTA_TERRACOTTA = get("minecraft:magenta_terracotta"); + @Nullable public static final BlockType MAGENTA_WALL_BANNER = get("minecraft:magenta_wall_banner"); + @Nullable public static final BlockType MAGENTA_WOOL = get("minecraft:magenta_wool"); + @Nullable public static final BlockType MAGMA_BLOCK = get("minecraft:magma_block"); + @Nullable public static final BlockType MELON = get("minecraft:melon"); + @Nullable public static final BlockType MELON_STEM = get("minecraft:melon_stem"); + @Nullable public static final BlockType MOSSY_COBBLESTONE = get("minecraft:mossy_cobblestone"); + @Nullable public static final BlockType MOSSY_COBBLESTONE_WALL = get("minecraft:mossy_cobblestone_wall"); + @Nullable public static final BlockType MOSSY_STONE_BRICKS = get("minecraft:mossy_stone_bricks"); + @Nullable public static final BlockType MOVING_PISTON = get("minecraft:moving_piston"); + @Nullable public static final BlockType MUSHROOM_STEM = get("minecraft:mushroom_stem"); + @Nullable public static final BlockType MYCELIUM = get("minecraft:mycelium"); + @Nullable public static final BlockType NETHER_BRICK_FENCE = get("minecraft:nether_brick_fence"); + @Nullable public static final BlockType NETHER_BRICK_SLAB = get("minecraft:nether_brick_slab"); + @Nullable public static final BlockType NETHER_BRICK_STAIRS = get("minecraft:nether_brick_stairs"); + @Nullable public static final BlockType NETHER_BRICKS = get("minecraft:nether_bricks"); + @Nullable public static final BlockType NETHER_PORTAL = get("minecraft:nether_portal"); + @Nullable public static final BlockType NETHER_QUARTZ_ORE = get("minecraft:nether_quartz_ore"); + @Nullable public static final BlockType NETHER_WART = get("minecraft:nether_wart"); + @Nullable public static final BlockType NETHER_WART_BLOCK = get("minecraft:nether_wart_block"); + @Nullable public static final BlockType NETHERRACK = get("minecraft:netherrack"); + @Nullable public static final BlockType NOTE_BLOCK = get("minecraft:note_block"); + @Nullable public static final BlockType OAK_BUTTON = get("minecraft:oak_button"); + @Nullable public static final BlockType OAK_DOOR = get("minecraft:oak_door"); + @Nullable public static final BlockType OAK_FENCE = get("minecraft:oak_fence"); + @Nullable public static final BlockType OAK_FENCE_GATE = get("minecraft:oak_fence_gate"); + @Nullable public static final BlockType OAK_LEAVES = get("minecraft:oak_leaves"); + @Nullable public static final BlockType OAK_LOG = get("minecraft:oak_log"); + @Nullable public static final BlockType OAK_PLANKS = get("minecraft:oak_planks"); + @Nullable public static final BlockType OAK_PRESSURE_PLATE = get("minecraft:oak_pressure_plate"); + @Nullable public static final BlockType OAK_SAPLING = get("minecraft:oak_sapling"); + @Nullable public static final BlockType OAK_SLAB = get("minecraft:oak_slab"); + @Nullable public static final BlockType OAK_STAIRS = get("minecraft:oak_stairs"); + @Nullable public static final BlockType OAK_TRAPDOOR = get("minecraft:oak_trapdoor"); + @Nullable public static final BlockType OAK_WOOD = get("minecraft:oak_wood"); + @Nullable public static final BlockType OBSERVER = get("minecraft:observer"); + @Nullable public static final BlockType OBSIDIAN = get("minecraft:obsidian"); + @Nullable public static final BlockType ORANGE_BANNER = get("minecraft:orange_banner"); + @Nullable public static final BlockType ORANGE_BED = get("minecraft:orange_bed"); + @Nullable public static final BlockType ORANGE_CARPET = get("minecraft:orange_carpet"); + @Nullable public static final BlockType ORANGE_CONCRETE = get("minecraft:orange_concrete"); + @Nullable public static final BlockType ORANGE_CONCRETE_POWDER = get("minecraft:orange_concrete_powder"); + @Nullable public static final BlockType ORANGE_GLAZED_TERRACOTTA = get("minecraft:orange_glazed_terracotta"); + @Nullable public static final BlockType ORANGE_SHULKER_BOX = get("minecraft:orange_shulker_box"); + @Nullable public static final BlockType ORANGE_STAINED_GLASS = get("minecraft:orange_stained_glass"); + @Nullable public static final BlockType ORANGE_STAINED_GLASS_PANE = get("minecraft:orange_stained_glass_pane"); + @Nullable public static final BlockType ORANGE_TERRACOTTA = get("minecraft:orange_terracotta"); + @Nullable public static final BlockType ORANGE_TULIP = get("minecraft:orange_tulip"); + @Nullable public static final BlockType ORANGE_WALL_BANNER = get("minecraft:orange_wall_banner"); + @Nullable public static final BlockType ORANGE_WOOL = get("minecraft:orange_wool"); + @Nullable public static final BlockType OXEYE_DAISY = get("minecraft:oxeye_daisy"); + @Nullable public static final BlockType PACKED_ICE = get("minecraft:packed_ice"); + @Nullable public static final BlockType PEONY = get("minecraft:peony"); + @Nullable public static final BlockType PETRIFIED_OAK_SLAB = get("minecraft:petrified_oak_slab"); + @Nullable public static final BlockType PINK_BANNER = get("minecraft:pink_banner"); + @Nullable public static final BlockType PINK_BED = get("minecraft:pink_bed"); + @Nullable public static final BlockType PINK_CARPET = get("minecraft:pink_carpet"); + @Nullable public static final BlockType PINK_CONCRETE = get("minecraft:pink_concrete"); + @Nullable public static final BlockType PINK_CONCRETE_POWDER = get("minecraft:pink_concrete_powder"); + @Nullable public static final BlockType PINK_GLAZED_TERRACOTTA = get("minecraft:pink_glazed_terracotta"); + @Nullable public static final BlockType PINK_SHULKER_BOX = get("minecraft:pink_shulker_box"); + @Nullable public static final BlockType PINK_STAINED_GLASS = get("minecraft:pink_stained_glass"); + @Nullable public static final BlockType PINK_STAINED_GLASS_PANE = get("minecraft:pink_stained_glass_pane"); + @Nullable public static final BlockType PINK_TERRACOTTA = get("minecraft:pink_terracotta"); + @Nullable public static final BlockType PINK_TULIP = get("minecraft:pink_tulip"); + @Nullable public static final BlockType PINK_WALL_BANNER = get("minecraft:pink_wall_banner"); + @Nullable public static final BlockType PINK_WOOL = get("minecraft:pink_wool"); + @Nullable public static final BlockType PISTON = get("minecraft:piston"); + @Nullable public static final BlockType PISTON_HEAD = get("minecraft:piston_head"); + @Nullable public static final BlockType PLAYER_HEAD = get("minecraft:player_head"); + @Nullable public static final BlockType PLAYER_WALL_HEAD = get("minecraft:player_wall_head"); + @Nullable public static final BlockType PODZOL = get("minecraft:podzol"); + @Nullable public static final BlockType POLISHED_ANDESITE = get("minecraft:polished_andesite"); + @Nullable public static final BlockType POLISHED_DIORITE = get("minecraft:polished_diorite"); + @Nullable public static final BlockType POLISHED_GRANITE = get("minecraft:polished_granite"); + @Nullable public static final BlockType POPPY = get("minecraft:poppy"); + @Nullable public static final BlockType POTATOES = get("minecraft:potatoes"); + @Nullable public static final BlockType POTTED_ACACIA_SAPLING = get("minecraft:potted_acacia_sapling"); + @Nullable public static final BlockType POTTED_ALLIUM = get("minecraft:potted_allium"); + @Nullable public static final BlockType POTTED_AZURE_BLUET = get("minecraft:potted_azure_bluet"); + @Nullable public static final BlockType POTTED_BIRCH_SAPLING = get("minecraft:potted_birch_sapling"); + @Nullable public static final BlockType POTTED_BLUE_ORCHID = get("minecraft:potted_blue_orchid"); + @Nullable public static final BlockType POTTED_BROWN_MUSHROOM = get("minecraft:potted_brown_mushroom"); + @Nullable public static final BlockType POTTED_CACTUS = get("minecraft:potted_cactus"); + @Nullable public static final BlockType POTTED_DANDELION = get("minecraft:potted_dandelion"); + @Nullable public static final BlockType POTTED_DARK_OAK_SAPLING = get("minecraft:potted_dark_oak_sapling"); + @Nullable public static final BlockType POTTED_DEAD_BUSH = get("minecraft:potted_dead_bush"); + @Nullable public static final BlockType POTTED_FERN = get("minecraft:potted_fern"); + @Nullable public static final BlockType POTTED_JUNGLE_SAPLING = get("minecraft:potted_jungle_sapling"); + @Nullable public static final BlockType POTTED_OAK_SAPLING = get("minecraft:potted_oak_sapling"); + @Nullable public static final BlockType POTTED_ORANGE_TULIP = get("minecraft:potted_orange_tulip"); + @Nullable public static final BlockType POTTED_OXEYE_DAISY = get("minecraft:potted_oxeye_daisy"); + @Nullable public static final BlockType POTTED_PINK_TULIP = get("minecraft:potted_pink_tulip"); + @Nullable public static final BlockType POTTED_POPPY = get("minecraft:potted_poppy"); + @Nullable public static final BlockType POTTED_RED_MUSHROOM = get("minecraft:potted_red_mushroom"); + @Nullable public static final BlockType POTTED_RED_TULIP = get("minecraft:potted_red_tulip"); + @Nullable public static final BlockType POTTED_SPRUCE_SAPLING = get("minecraft:potted_spruce_sapling"); + @Nullable public static final BlockType POTTED_WHITE_TULIP = get("minecraft:potted_white_tulip"); + @Nullable public static final BlockType POWERED_RAIL = get("minecraft:powered_rail"); + @Nullable public static final BlockType PRISMARINE = get("minecraft:prismarine"); + @Nullable public static final BlockType PRISMARINE_BRICK_SLAB = get("minecraft:prismarine_brick_slab"); + @Nullable public static final BlockType PRISMARINE_BRICK_STAIRS = get("minecraft:prismarine_brick_stairs"); + @Nullable public static final BlockType PRISMARINE_BRICKS = get("minecraft:prismarine_bricks"); + @Nullable public static final BlockType PRISMARINE_SLAB = get("minecraft:prismarine_slab"); + @Nullable public static final BlockType PRISMARINE_STAIRS = get("minecraft:prismarine_stairs"); + @Nullable public static final BlockType PUMPKIN = get("minecraft:pumpkin"); + @Nullable public static final BlockType PUMPKIN_STEM = get("minecraft:pumpkin_stem"); + @Nullable public static final BlockType PURPLE_BANNER = get("minecraft:purple_banner"); + @Nullable public static final BlockType PURPLE_BED = get("minecraft:purple_bed"); + @Nullable public static final BlockType PURPLE_CARPET = get("minecraft:purple_carpet"); + @Nullable public static final BlockType PURPLE_CONCRETE = get("minecraft:purple_concrete"); + @Nullable public static final BlockType PURPLE_CONCRETE_POWDER = get("minecraft:purple_concrete_powder"); + @Nullable public static final BlockType PURPLE_GLAZED_TERRACOTTA = get("minecraft:purple_glazed_terracotta"); + @Nullable public static final BlockType PURPLE_SHULKER_BOX = get("minecraft:purple_shulker_box"); + @Nullable public static final BlockType PURPLE_STAINED_GLASS = get("minecraft:purple_stained_glass"); + @Nullable public static final BlockType PURPLE_STAINED_GLASS_PANE = get("minecraft:purple_stained_glass_pane"); + @Nullable public static final BlockType PURPLE_TERRACOTTA = get("minecraft:purple_terracotta"); + @Nullable public static final BlockType PURPLE_WALL_BANNER = get("minecraft:purple_wall_banner"); + @Nullable public static final BlockType PURPLE_WOOL = get("minecraft:purple_wool"); + @Nullable public static final BlockType PURPUR_BLOCK = get("minecraft:purpur_block"); + @Nullable public static final BlockType PURPUR_PILLAR = get("minecraft:purpur_pillar"); + @Nullable public static final BlockType PURPUR_SLAB = get("minecraft:purpur_slab"); + @Nullable public static final BlockType PURPUR_STAIRS = get("minecraft:purpur_stairs"); + @Nullable public static final BlockType QUARTZ_BLOCK = get("minecraft:quartz_block"); + @Nullable public static final BlockType QUARTZ_PILLAR = get("minecraft:quartz_pillar"); + @Nullable public static final BlockType QUARTZ_SLAB = get("minecraft:quartz_slab"); + @Nullable public static final BlockType QUARTZ_STAIRS = get("minecraft:quartz_stairs"); + @Nullable public static final BlockType RAIL = get("minecraft:rail"); + @Nullable public static final BlockType RED_BANNER = get("minecraft:red_banner"); + @Nullable public static final BlockType RED_BED = get("minecraft:red_bed"); + @Nullable public static final BlockType RED_CARPET = get("minecraft:red_carpet"); + @Nullable public static final BlockType RED_CONCRETE = get("minecraft:red_concrete"); + @Nullable public static final BlockType RED_CONCRETE_POWDER = get("minecraft:red_concrete_powder"); + @Nullable public static final BlockType RED_GLAZED_TERRACOTTA = get("minecraft:red_glazed_terracotta"); + @Nullable public static final BlockType RED_MUSHROOM = get("minecraft:red_mushroom"); + @Nullable public static final BlockType RED_MUSHROOM_BLOCK = get("minecraft:red_mushroom_block"); + @Nullable public static final BlockType RED_NETHER_BRICKS = get("minecraft:red_nether_bricks"); + @Nullable public static final BlockType RED_SAND = get("minecraft:red_sand"); + @Nullable public static final BlockType RED_SANDSTONE = get("minecraft:red_sandstone"); + @Nullable public static final BlockType RED_SANDSTONE_SLAB = get("minecraft:red_sandstone_slab"); + @Nullable public static final BlockType RED_SANDSTONE_STAIRS = get("minecraft:red_sandstone_stairs"); + @Nullable public static final BlockType RED_SHULKER_BOX = get("minecraft:red_shulker_box"); + @Nullable public static final BlockType RED_STAINED_GLASS = get("minecraft:red_stained_glass"); + @Nullable public static final BlockType RED_STAINED_GLASS_PANE = get("minecraft:red_stained_glass_pane"); + @Nullable public static final BlockType RED_TERRACOTTA = get("minecraft:red_terracotta"); + @Nullable public static final BlockType RED_TULIP = get("minecraft:red_tulip"); + @Nullable public static final BlockType RED_WALL_BANNER = get("minecraft:red_wall_banner"); + @Nullable public static final BlockType RED_WOOL = get("minecraft:red_wool"); + @Nullable public static final BlockType REDSTONE_BLOCK = get("minecraft:redstone_block"); + @Nullable public static final BlockType REDSTONE_LAMP = get("minecraft:redstone_lamp"); + @Nullable public static final BlockType REDSTONE_ORE = get("minecraft:redstone_ore"); + @Nullable public static final BlockType REDSTONE_TORCH = get("minecraft:redstone_torch"); + @Nullable public static final BlockType REDSTONE_WALL_TORCH = get("minecraft:redstone_wall_torch"); + @Nullable public static final BlockType REDSTONE_WIRE = get("minecraft:redstone_wire"); + @Nullable public static final BlockType REPEATER = get("minecraft:repeater"); + @Nullable public static final BlockType REPEATING_COMMAND_BLOCK = get("minecraft:repeating_command_block"); + @Nullable public static final BlockType ROSE_BUSH = get("minecraft:rose_bush"); + @Nullable public static final BlockType SAND = get("minecraft:sand"); + @Nullable public static final BlockType SANDSTONE = get("minecraft:sandstone"); + @Nullable public static final BlockType SANDSTONE_SLAB = get("minecraft:sandstone_slab"); + @Nullable public static final BlockType SANDSTONE_STAIRS = get("minecraft:sandstone_stairs"); + @Nullable public static final BlockType SEA_LANTERN = get("minecraft:sea_lantern"); + @Nullable public static final BlockType SEA_PICKLE = get("minecraft:sea_pickle"); + @Nullable public static final BlockType SEAGRASS = get("minecraft:seagrass"); + @Nullable public static final BlockType SHULKER_BOX = get("minecraft:shulker_box"); + @Nullable public static final BlockType SIGN = get("minecraft:sign"); + @Nullable public static final BlockType SKELETON_SKULL = get("minecraft:skeleton_skull"); + @Nullable public static final BlockType SKELETON_WALL_SKULL = get("minecraft:skeleton_wall_skull"); + @Nullable public static final BlockType SLIME_BLOCK = get("minecraft:slime_block"); + @Nullable public static final BlockType SMOOTH_QUARTZ = get("minecraft:smooth_quartz"); + @Nullable public static final BlockType SMOOTH_RED_SANDSTONE = get("minecraft:smooth_red_sandstone"); + @Nullable public static final BlockType SMOOTH_SANDSTONE = get("minecraft:smooth_sandstone"); + @Nullable public static final BlockType SMOOTH_STONE = get("minecraft:smooth_stone"); + @Nullable public static final BlockType SNOW = get("minecraft:snow"); + @Nullable public static final BlockType SNOW_BLOCK = get("minecraft:snow_block"); + @Nullable public static final BlockType SOUL_SAND = get("minecraft:soul_sand"); + @Nullable public static final BlockType SPAWNER = get("minecraft:spawner"); + @Nullable public static final BlockType SPONGE = get("minecraft:sponge"); + @Nullable public static final BlockType SPRUCE_BUTTON = get("minecraft:spruce_button"); + @Nullable public static final BlockType SPRUCE_DOOR = get("minecraft:spruce_door"); + @Nullable public static final BlockType SPRUCE_FENCE = get("minecraft:spruce_fence"); + @Nullable public static final BlockType SPRUCE_FENCE_GATE = get("minecraft:spruce_fence_gate"); + @Nullable public static final BlockType SPRUCE_LEAVES = get("minecraft:spruce_leaves"); + @Nullable public static final BlockType SPRUCE_LOG = get("minecraft:spruce_log"); + @Nullable public static final BlockType SPRUCE_PLANKS = get("minecraft:spruce_planks"); + @Nullable public static final BlockType SPRUCE_PRESSURE_PLATE = get("minecraft:spruce_pressure_plate"); + @Nullable public static final BlockType SPRUCE_SAPLING = get("minecraft:spruce_sapling"); + @Nullable public static final BlockType SPRUCE_SLAB = get("minecraft:spruce_slab"); + @Nullable public static final BlockType SPRUCE_STAIRS = get("minecraft:spruce_stairs"); + @Nullable public static final BlockType SPRUCE_TRAPDOOR = get("minecraft:spruce_trapdoor"); + @Nullable public static final BlockType SPRUCE_WOOD = get("minecraft:spruce_wood"); + @Nullable public static final BlockType STICKY_PISTON = get("minecraft:sticky_piston"); + @Nullable public static final BlockType STONE = get("minecraft:stone"); + @Nullable public static final BlockType STONE_BRICK_SLAB = get("minecraft:stone_brick_slab"); + @Nullable public static final BlockType STONE_BRICK_STAIRS = get("minecraft:stone_brick_stairs"); + @Nullable public static final BlockType STONE_BRICKS = get("minecraft:stone_bricks"); + @Nullable public static final BlockType STONE_BUTTON = get("minecraft:stone_button"); + @Nullable public static final BlockType STONE_PRESSURE_PLATE = get("minecraft:stone_pressure_plate"); + @Nullable public static final BlockType STONE_SLAB = get("minecraft:stone_slab"); + @Nullable public static final BlockType STRIPPED_ACACIA_LOG = get("minecraft:stripped_acacia_log"); + @Nullable public static final BlockType STRIPPED_ACACIA_WOOD = get("minecraft:stripped_acacia_wood"); + @Nullable public static final BlockType STRIPPED_BIRCH_LOG = get("minecraft:stripped_birch_log"); + @Nullable public static final BlockType STRIPPED_BIRCH_WOOD = get("minecraft:stripped_birch_wood"); + @Nullable public static final BlockType STRIPPED_DARK_OAK_LOG = get("minecraft:stripped_dark_oak_log"); + @Nullable public static final BlockType STRIPPED_DARK_OAK_WOOD = get("minecraft:stripped_dark_oak_wood"); + @Nullable public static final BlockType STRIPPED_JUNGLE_LOG = get("minecraft:stripped_jungle_log"); + @Nullable public static final BlockType STRIPPED_JUNGLE_WOOD = get("minecraft:stripped_jungle_wood"); + @Nullable public static final BlockType STRIPPED_OAK_LOG = get("minecraft:stripped_oak_log"); + @Nullable public static final BlockType STRIPPED_OAK_WOOD = get("minecraft:stripped_oak_wood"); + @Nullable public static final BlockType STRIPPED_SPRUCE_LOG = get("minecraft:stripped_spruce_log"); + @Nullable public static final BlockType STRIPPED_SPRUCE_WOOD = get("minecraft:stripped_spruce_wood"); + @Nullable public static final BlockType STRUCTURE_BLOCK = get("minecraft:structure_block"); + @Nullable public static final BlockType STRUCTURE_VOID = get("minecraft:structure_void"); + @Nullable public static final BlockType SUGAR_CANE = get("minecraft:sugar_cane"); + @Nullable public static final BlockType SUNFLOWER = get("minecraft:sunflower"); + @Nullable public static final BlockType TALL_GRASS = get("minecraft:tall_grass"); + @Nullable public static final BlockType TALL_SEAGRASS = get("minecraft:tall_seagrass"); + @Nullable public static final BlockType TERRACOTTA = get("minecraft:terracotta"); + @Nullable public static final BlockType TNT = get("minecraft:tnt"); + @Nullable public static final BlockType TORCH = get("minecraft:torch"); + @Nullable public static final BlockType TRAPPED_CHEST = get("minecraft:trapped_chest"); + @Nullable public static final BlockType TRIPWIRE = get("minecraft:tripwire"); + @Nullable public static final BlockType TRIPWIRE_HOOK = get("minecraft:tripwire_hook"); + @Nullable public static final BlockType TUBE_CORAL = get("minecraft:tube_coral"); + @Nullable public static final BlockType TUBE_CORAL_BLOCK = get("minecraft:tube_coral_block"); + @Nullable public static final BlockType TUBE_CORAL_FAN = get("minecraft:tube_coral_fan"); + @Nullable public static final BlockType TUBE_CORAL_WALL_FAN = get("minecraft:tube_coral_wall_fan"); + @Nullable public static final BlockType TURTLE_EGG = get("minecraft:turtle_egg"); + @Nullable public static final BlockType VINE = get("minecraft:vine"); + @Nullable public static final BlockType VOID_AIR = get("minecraft:void_air"); + @Nullable public static final BlockType WALL_SIGN = get("minecraft:wall_sign"); + @Nullable public static final BlockType WALL_TORCH = get("minecraft:wall_torch"); + @Nullable public static final BlockType WATER = get("minecraft:water"); + @Nullable public static final BlockType WET_SPONGE = get("minecraft:wet_sponge"); + @Nullable public static final BlockType WHEAT = get("minecraft:wheat"); + @Nullable public static final BlockType WHITE_BANNER = get("minecraft:white_banner"); + @Nullable public static final BlockType WHITE_BED = get("minecraft:white_bed"); + @Nullable public static final BlockType WHITE_CARPET = get("minecraft:white_carpet"); + @Nullable public static final BlockType WHITE_CONCRETE = get("minecraft:white_concrete"); + @Nullable public static final BlockType WHITE_CONCRETE_POWDER = get("minecraft:white_concrete_powder"); + @Nullable public static final BlockType WHITE_GLAZED_TERRACOTTA = get("minecraft:white_glazed_terracotta"); + @Nullable public static final BlockType WHITE_SHULKER_BOX = get("minecraft:white_shulker_box"); + @Nullable public static final BlockType WHITE_STAINED_GLASS = get("minecraft:white_stained_glass"); + @Nullable public static final BlockType WHITE_STAINED_GLASS_PANE = get("minecraft:white_stained_glass_pane"); + @Nullable public static final BlockType WHITE_TERRACOTTA = get("minecraft:white_terracotta"); + @Nullable public static final BlockType WHITE_TULIP = get("minecraft:white_tulip"); + @Nullable public static final BlockType WHITE_WALL_BANNER = get("minecraft:white_wall_banner"); + @Nullable public static final BlockType WHITE_WOOL = get("minecraft:white_wool"); + @Nullable public static final BlockType WITHER_SKELETON_SKULL = get("minecraft:wither_skeleton_skull"); + @Nullable public static final BlockType WITHER_SKELETON_WALL_SKULL = get("minecraft:wither_skeleton_wall_skull"); + @Nullable public static final BlockType YELLOW_BANNER = get("minecraft:yellow_banner"); + @Nullable public static final BlockType YELLOW_BED = get("minecraft:yellow_bed"); + @Nullable public static final BlockType YELLOW_CARPET = get("minecraft:yellow_carpet"); + @Nullable public static final BlockType YELLOW_CONCRETE = get("minecraft:yellow_concrete"); + @Nullable public static final BlockType YELLOW_CONCRETE_POWDER = get("minecraft:yellow_concrete_powder"); + @Nullable public static final BlockType YELLOW_GLAZED_TERRACOTTA = get("minecraft:yellow_glazed_terracotta"); + @Nullable public static final BlockType YELLOW_SHULKER_BOX = get("minecraft:yellow_shulker_box"); + @Nullable public static final BlockType YELLOW_STAINED_GLASS = get("minecraft:yellow_stained_glass"); + @Nullable public static final BlockType YELLOW_STAINED_GLASS_PANE = get("minecraft:yellow_stained_glass_pane"); + @Nullable public static final BlockType YELLOW_TERRACOTTA = get("minecraft:yellow_terracotta"); + @Nullable public static final BlockType YELLOW_WALL_BANNER = get("minecraft:yellow_wall_banner"); + @Nullable public static final BlockType YELLOW_WOOL = get("minecraft:yellow_wool"); + @Nullable public static final BlockType ZOMBIE_HEAD = get("minecraft:zombie_head"); + @Nullable public static final BlockType ZOMBIE_WALL_HEAD = get("minecraft:zombie_wall_head"); private BlockTypes() { } - private static BlockType register(final String id) { - return register(new BlockType(id)); - } - - private static BlockType register(final String id, Function values) { - return register(new BlockType(id, values)); - } - - public static BlockType register(final BlockType block) { - return BlockType.REGISTRY.register(block.getId(), block); - } - public static @Nullable BlockType get(final String id) { return BlockType.REGISTRY.get(id); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/FuzzyBlockState.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/FuzzyBlockState.java index b9c557fd4..580bf8c1a 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/FuzzyBlockState.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/FuzzyBlockState.java @@ -57,7 +57,12 @@ public class FuzzyBlockState extends BlockState { Property objKey = (Property) entry.getKey(); state = state.with(objKey, entry.getValue()); } - return getBlockType().getDefaultState(); + return state; + } + + @Override + public BlockState toImmutableState() { + return getFullState(); } /** diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/entity/EntityTypes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/entity/EntityTypes.java index 9c8d44210..f98fd96c2 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/entity/EntityTypes.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/entity/EntityTypes.java @@ -23,113 +23,105 @@ import javax.annotation.Nullable; public class EntityTypes { - public static final EntityType AREA_EFFECT_CLOUD = register("minecraft:area_effect_cloud"); - public static final EntityType ARMOR_STAND = register("minecraft:armor_stand"); - public static final EntityType ARROW = register("minecraft:arrow"); - public static final EntityType BAT = register("minecraft:bat"); - public static final EntityType BLAZE = register("minecraft:blaze"); - public static final EntityType BOAT = register("minecraft:boat"); - public static final EntityType CAVE_SPIDER = register("minecraft:cave_spider"); - public static final EntityType CHEST_MINECART = register("minecraft:chest_minecart"); - public static final EntityType CHICKEN = register("minecraft:chicken"); - public static final EntityType COD = register("minecraft:cod"); - public static final EntityType COMMAND_BLOCK_MINECART = register("minecraft:command_block_minecart"); - public static final EntityType COW = register("minecraft:cow"); - public static final EntityType CREEPER = register("minecraft:creeper"); - public static final EntityType DOLPHIN = register("minecraft:dolphin"); - public static final EntityType DONKEY = register("minecraft:donkey"); - public static final EntityType DRAGON_FIREBALL = register("minecraft:dragon_fireball"); - public static final EntityType DROWNED = register("minecraft:drowned"); - public static final EntityType EGG = register("minecraft:egg"); - public static final EntityType ELDER_GUARDIAN = register("minecraft:elder_guardian"); - public static final EntityType END_CRYSTAL = register("minecraft:end_crystal"); - public static final EntityType ENDER_DRAGON = register("minecraft:ender_dragon"); - public static final EntityType ENDER_PEARL = register("minecraft:ender_pearl"); - public static final EntityType ENDERMAN = register("minecraft:enderman"); - public static final EntityType ENDERMITE = register("minecraft:endermite"); - public static final EntityType EVOKER = register("minecraft:evoker"); - public static final EntityType EVOKER_FANGS = register("minecraft:evoker_fangs"); - public static final EntityType EXPERIENCE_BOTTLE = register("minecraft:experience_bottle"); - public static final EntityType EXPERIENCE_ORB = register("minecraft:experience_orb"); - public static final EntityType EYE_OF_ENDER = register("minecraft:eye_of_ender"); - public static final EntityType FALLING_BLOCK = register("minecraft:falling_block"); - public static final EntityType FIREBALL = register("minecraft:fireball"); - public static final EntityType FIREWORK_ROCKET = register("minecraft:firework_rocket"); - public static final EntityType FISHING_BOBBER = register("minecraft:fishing_bobber"); - public static final EntityType FURNACE_MINECART = register("minecraft:furnace_minecart"); - public static final EntityType GHAST = register("minecraft:ghast"); - public static final EntityType GIANT = register("minecraft:giant"); - public static final EntityType GUARDIAN = register("minecraft:guardian"); - public static final EntityType HOPPER_MINECART = register("minecraft:hopper_minecart"); - public static final EntityType HORSE = register("minecraft:horse"); - public static final EntityType HUSK = register("minecraft:husk"); - public static final EntityType ILLUSIONER = register("minecraft:illusioner"); - public static final EntityType IRON_GOLEM = register("minecraft:iron_golem"); - public static final EntityType ITEM = register("minecraft:item"); - public static final EntityType ITEM_FRAME = register("minecraft:item_frame"); - public static final EntityType LEASH_KNOT = register("minecraft:leash_knot"); - public static final EntityType LIGHTNING_BOLT = register("minecraft:lightning_bolt"); - public static final EntityType LLAMA = register("minecraft:llama"); - public static final EntityType LLAMA_SPIT = register("minecraft:llama_spit"); - public static final EntityType MAGMA_CUBE = register("minecraft:magma_cube"); - public static final EntityType MINECART = register("minecraft:minecart"); - public static final EntityType MOOSHROOM = register("minecraft:mooshroom"); - public static final EntityType MULE = register("minecraft:mule"); - public static final EntityType OCELOT = register("minecraft:ocelot"); - public static final EntityType PAINTING = register("minecraft:painting"); - public static final EntityType PARROT = register("minecraft:parrot"); - public static final EntityType PHANTOM = register("minecraft:phantom"); - public static final EntityType PIG = register("minecraft:pig"); - public static final EntityType PLAYER = register("minecraft:player"); - public static final EntityType POLAR_BEAR = register("minecraft:polar_bear"); - public static final EntityType POTION = register("minecraft:potion"); - public static final EntityType PUFFERFISH = register("minecraft:pufferfish"); - public static final EntityType RABBIT = register("minecraft:rabbit"); - public static final EntityType SALMON = register("minecraft:salmon"); - public static final EntityType SHEEP = register("minecraft:sheep"); - public static final EntityType SHULKER = register("minecraft:shulker"); - public static final EntityType SHULKER_BULLET = register("minecraft:shulker_bullet"); - public static final EntityType SILVERFISH = register("minecraft:silverfish"); - public static final EntityType SKELETON = register("minecraft:skeleton"); - public static final EntityType SKELETON_HORSE = register("minecraft:skeleton_horse"); - public static final EntityType SLIME = register("minecraft:slime"); - public static final EntityType SMALL_FIREBALL = register("minecraft:small_fireball"); - public static final EntityType SNOW_GOLEM = register("minecraft:snow_golem"); - public static final EntityType SNOWBALL = register("minecraft:snowball"); - public static final EntityType SPAWNER_MINECART = register("minecraft:spawner_minecart"); - public static final EntityType SPECTRAL_ARROW = register("minecraft:spectral_arrow"); - public static final EntityType SPIDER = register("minecraft:spider"); - public static final EntityType SQUID = register("minecraft:squid"); - public static final EntityType STRAY = register("minecraft:stray"); - public static final EntityType TNT = register("minecraft:tnt"); - public static final EntityType TNT_MINECART = register("minecraft:tnt_minecart"); - public static final EntityType TRIDENT = register("minecraft:trident"); - public static final EntityType TROPICAL_FISH = register("minecraft:tropical_fish"); - public static final EntityType TURTLE = register("minecraft:turtle"); - public static final EntityType VEX = register("minecraft:vex"); - public static final EntityType VILLAGER = register("minecraft:villager"); - public static final EntityType VINDICATOR = register("minecraft:vindicator"); - public static final EntityType WITCH = register("minecraft:witch"); - public static final EntityType WITHER = register("minecraft:wither"); - public static final EntityType WITHER_SKELETON = register("minecraft:wither_skeleton"); - public static final EntityType WITHER_SKULL = register("minecraft:wither_skull"); - public static final EntityType WOLF = register("minecraft:wolf"); - public static final EntityType ZOMBIE = register("minecraft:zombie"); - public static final EntityType ZOMBIE_HORSE = register("minecraft:zombie_horse"); - public static final EntityType ZOMBIE_PIGMAN = register("minecraft:zombie_pigman"); - public static final EntityType ZOMBIE_VILLAGER = register("minecraft:zombie_villager"); + @Nullable public static final EntityType AREA_EFFECT_CLOUD = get("minecraft:area_effect_cloud"); + @Nullable public static final EntityType ARMOR_STAND = get("minecraft:armor_stand"); + @Nullable public static final EntityType ARROW = get("minecraft:arrow"); + @Nullable public static final EntityType BAT = get("minecraft:bat"); + @Nullable public static final EntityType BLAZE = get("minecraft:blaze"); + @Nullable public static final EntityType BOAT = get("minecraft:boat"); + @Nullable public static final EntityType CAVE_SPIDER = get("minecraft:cave_spider"); + @Nullable public static final EntityType CHEST_MINECART = get("minecraft:chest_minecart"); + @Nullable public static final EntityType CHICKEN = get("minecraft:chicken"); + @Nullable public static final EntityType COD = get("minecraft:cod"); + @Nullable public static final EntityType COMMAND_BLOCK_MINECART = get("minecraft:command_block_minecart"); + @Nullable public static final EntityType COW = get("minecraft:cow"); + @Nullable public static final EntityType CREEPER = get("minecraft:creeper"); + @Nullable public static final EntityType DOLPHIN = get("minecraft:dolphin"); + @Nullable public static final EntityType DONKEY = get("minecraft:donkey"); + @Nullable public static final EntityType DRAGON_FIREBALL = get("minecraft:dragon_fireball"); + @Nullable public static final EntityType DROWNED = get("minecraft:drowned"); + @Nullable public static final EntityType EGG = get("minecraft:egg"); + @Nullable public static final EntityType ELDER_GUARDIAN = get("minecraft:elder_guardian"); + @Nullable public static final EntityType END_CRYSTAL = get("minecraft:end_crystal"); + @Nullable public static final EntityType ENDER_DRAGON = get("minecraft:ender_dragon"); + @Nullable public static final EntityType ENDER_PEARL = get("minecraft:ender_pearl"); + @Nullable public static final EntityType ENDERMAN = get("minecraft:enderman"); + @Nullable public static final EntityType ENDERMITE = get("minecraft:endermite"); + @Nullable public static final EntityType EVOKER = get("minecraft:evoker"); + @Nullable public static final EntityType EVOKER_FANGS = get("minecraft:evoker_fangs"); + @Nullable public static final EntityType EXPERIENCE_BOTTLE = get("minecraft:experience_bottle"); + @Nullable public static final EntityType EXPERIENCE_ORB = get("minecraft:experience_orb"); + @Nullable public static final EntityType EYE_OF_ENDER = get("minecraft:eye_of_ender"); + @Nullable public static final EntityType FALLING_BLOCK = get("minecraft:falling_block"); + @Nullable public static final EntityType FIREBALL = get("minecraft:fireball"); + @Nullable public static final EntityType FIREWORK_ROCKET = get("minecraft:firework_rocket"); + @Nullable public static final EntityType FISHING_BOBBER = get("minecraft:fishing_bobber"); + @Nullable public static final EntityType FURNACE_MINECART = get("minecraft:furnace_minecart"); + @Nullable public static final EntityType GHAST = get("minecraft:ghast"); + @Nullable public static final EntityType GIANT = get("minecraft:giant"); + @Nullable public static final EntityType GUARDIAN = get("minecraft:guardian"); + @Nullable public static final EntityType HOPPER_MINECART = get("minecraft:hopper_minecart"); + @Nullable public static final EntityType HORSE = get("minecraft:horse"); + @Nullable public static final EntityType HUSK = get("minecraft:husk"); + @Nullable public static final EntityType ILLUSIONER = get("minecraft:illusioner"); + @Nullable public static final EntityType IRON_GOLEM = get("minecraft:iron_golem"); + @Nullable public static final EntityType ITEM = get("minecraft:item"); + @Nullable public static final EntityType ITEM_FRAME = get("minecraft:item_frame"); + @Nullable public static final EntityType LEASH_KNOT = get("minecraft:leash_knot"); + @Nullable public static final EntityType LIGHTNING_BOLT = get("minecraft:lightning_bolt"); + @Nullable public static final EntityType LLAMA = get("minecraft:llama"); + @Nullable public static final EntityType LLAMA_SPIT = get("minecraft:llama_spit"); + @Nullable public static final EntityType MAGMA_CUBE = get("minecraft:magma_cube"); + @Nullable public static final EntityType MINECART = get("minecraft:minecart"); + @Nullable public static final EntityType MOOSHROOM = get("minecraft:mooshroom"); + @Nullable public static final EntityType MULE = get("minecraft:mule"); + @Nullable public static final EntityType OCELOT = get("minecraft:ocelot"); + @Nullable public static final EntityType PAINTING = get("minecraft:painting"); + @Nullable public static final EntityType PARROT = get("minecraft:parrot"); + @Nullable public static final EntityType PHANTOM = get("minecraft:phantom"); + @Nullable public static final EntityType PIG = get("minecraft:pig"); + @Nullable public static final EntityType PLAYER = get("minecraft:player"); + @Nullable public static final EntityType POLAR_BEAR = get("minecraft:polar_bear"); + @Nullable public static final EntityType POTION = get("minecraft:potion"); + @Nullable public static final EntityType PUFFERFISH = get("minecraft:pufferfish"); + @Nullable public static final EntityType RABBIT = get("minecraft:rabbit"); + @Nullable public static final EntityType SALMON = get("minecraft:salmon"); + @Nullable public static final EntityType SHEEP = get("minecraft:sheep"); + @Nullable public static final EntityType SHULKER = get("minecraft:shulker"); + @Nullable public static final EntityType SHULKER_BULLET = get("minecraft:shulker_bullet"); + @Nullable public static final EntityType SILVERFISH = get("minecraft:silverfish"); + @Nullable public static final EntityType SKELETON = get("minecraft:skeleton"); + @Nullable public static final EntityType SKELETON_HORSE = get("minecraft:skeleton_horse"); + @Nullable public static final EntityType SLIME = get("minecraft:slime"); + @Nullable public static final EntityType SMALL_FIREBALL = get("minecraft:small_fireball"); + @Nullable public static final EntityType SNOW_GOLEM = get("minecraft:snow_golem"); + @Nullable public static final EntityType SNOWBALL = get("minecraft:snowball"); + @Nullable public static final EntityType SPAWNER_MINECART = get("minecraft:spawner_minecart"); + @Nullable public static final EntityType SPECTRAL_ARROW = get("minecraft:spectral_arrow"); + @Nullable public static final EntityType SPIDER = get("minecraft:spider"); + @Nullable public static final EntityType SQUID = get("minecraft:squid"); + @Nullable public static final EntityType STRAY = get("minecraft:stray"); + @Nullable public static final EntityType TNT = get("minecraft:tnt"); + @Nullable public static final EntityType TNT_MINECART = get("minecraft:tnt_minecart"); + @Nullable public static final EntityType TRIDENT = get("minecraft:trident"); + @Nullable public static final EntityType TROPICAL_FISH = get("minecraft:tropical_fish"); + @Nullable public static final EntityType TURTLE = get("minecraft:turtle"); + @Nullable public static final EntityType VEX = get("minecraft:vex"); + @Nullable public static final EntityType VILLAGER = get("minecraft:villager"); + @Nullable public static final EntityType VINDICATOR = get("minecraft:vindicator"); + @Nullable public static final EntityType WITCH = get("minecraft:witch"); + @Nullable public static final EntityType WITHER = get("minecraft:wither"); + @Nullable public static final EntityType WITHER_SKELETON = get("minecraft:wither_skeleton"); + @Nullable public static final EntityType WITHER_SKULL = get("minecraft:wither_skull"); + @Nullable public static final EntityType WOLF = get("minecraft:wolf"); + @Nullable public static final EntityType ZOMBIE = get("minecraft:zombie"); + @Nullable public static final EntityType ZOMBIE_HORSE = get("minecraft:zombie_horse"); + @Nullable public static final EntityType ZOMBIE_PIGMAN = get("minecraft:zombie_pigman"); + @Nullable public static final EntityType ZOMBIE_VILLAGER = get("minecraft:zombie_villager"); private EntityTypes() { } - private static EntityType register(final String id) { - return register(new EntityType(id)); - } - - public static EntityType register(final EntityType entityType) { - return EntityType.REGISTRY.register(entityType.getId(), entityType); - } - public static @Nullable EntityType get(final String id) { return EntityType.REGISTRY.get(id); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemTypes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemTypes.java index 96ff8897f..677ed2a8e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemTypes.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemTypes.java @@ -23,808 +23,800 @@ import javax.annotation.Nullable; public final class ItemTypes { - public static final ItemType ACACIA_BOAT = register("minecraft:acacia_boat"); - public static final ItemType ACACIA_BUTTON = register("minecraft:acacia_button"); - public static final ItemType ACACIA_DOOR = register("minecraft:acacia_door"); - public static final ItemType ACACIA_FENCE = register("minecraft:acacia_fence"); - public static final ItemType ACACIA_FENCE_GATE = register("minecraft:acacia_fence_gate"); - public static final ItemType ACACIA_LEAVES = register("minecraft:acacia_leaves"); - public static final ItemType ACACIA_LOG = register("minecraft:acacia_log"); - public static final ItemType ACACIA_PLANKS = register("minecraft:acacia_planks"); - public static final ItemType ACACIA_PRESSURE_PLATE = register("minecraft:acacia_pressure_plate"); - public static final ItemType ACACIA_SAPLING = register("minecraft:acacia_sapling"); - public static final ItemType ACACIA_SLAB = register("minecraft:acacia_slab"); - public static final ItemType ACACIA_STAIRS = register("minecraft:acacia_stairs"); - public static final ItemType ACACIA_TRAPDOOR = register("minecraft:acacia_trapdoor"); - public static final ItemType ACACIA_WOOD = register("minecraft:acacia_wood"); - public static final ItemType ACTIVATOR_RAIL = register("minecraft:activator_rail"); - public static final ItemType AIR = register("minecraft:air"); - public static final ItemType ALLIUM = register("minecraft:allium"); - public static final ItemType ANDESITE = register("minecraft:andesite"); - public static final ItemType ANVIL = register("minecraft:anvil"); - public static final ItemType APPLE = register("minecraft:apple"); - public static final ItemType ARMOR_STAND = register("minecraft:armor_stand"); - public static final ItemType ARROW = register("minecraft:arrow"); - public static final ItemType AZURE_BLUET = register("minecraft:azure_bluet"); - public static final ItemType BAKED_POTATO = register("minecraft:baked_potato"); - public static final ItemType BARRIER = register("minecraft:barrier"); - public static final ItemType BAT_SPAWN_EGG = register("minecraft:bat_spawn_egg"); - public static final ItemType BEACON = register("minecraft:beacon"); - public static final ItemType BEDROCK = register("minecraft:bedrock"); - public static final ItemType BEEF = register("minecraft:beef"); - public static final ItemType BEETROOT = register("minecraft:beetroot"); - public static final ItemType BEETROOT_SEEDS = register("minecraft:beetroot_seeds"); - public static final ItemType BEETROOT_SOUP = register("minecraft:beetroot_soup"); - public static final ItemType BIRCH_BOAT = register("minecraft:birch_boat"); - public static final ItemType BIRCH_BUTTON = register("minecraft:birch_button"); - public static final ItemType BIRCH_DOOR = register("minecraft:birch_door"); - public static final ItemType BIRCH_FENCE = register("minecraft:birch_fence"); - public static final ItemType BIRCH_FENCE_GATE = register("minecraft:birch_fence_gate"); - public static final ItemType BIRCH_LEAVES = register("minecraft:birch_leaves"); - public static final ItemType BIRCH_LOG = register("minecraft:birch_log"); - public static final ItemType BIRCH_PLANKS = register("minecraft:birch_planks"); - public static final ItemType BIRCH_PRESSURE_PLATE = register("minecraft:birch_pressure_plate"); - public static final ItemType BIRCH_SAPLING = register("minecraft:birch_sapling"); - public static final ItemType BIRCH_SLAB = register("minecraft:birch_slab"); - public static final ItemType BIRCH_STAIRS = register("minecraft:birch_stairs"); - public static final ItemType BIRCH_TRAPDOOR = register("minecraft:birch_trapdoor"); - public static final ItemType BIRCH_WOOD = register("minecraft:birch_wood"); - public static final ItemType BLACK_BANNER = register("minecraft:black_banner"); - public static final ItemType BLACK_BED = register("minecraft:black_bed"); - public static final ItemType BLACK_CARPET = register("minecraft:black_carpet"); - public static final ItemType BLACK_CONCRETE = register("minecraft:black_concrete"); - public static final ItemType BLACK_CONCRETE_POWDER = register("minecraft:black_concrete_powder"); - public static final ItemType BLACK_GLAZED_TERRACOTTA = register("minecraft:black_glazed_terracotta"); - public static final ItemType BLACK_SHULKER_BOX = register("minecraft:black_shulker_box"); - public static final ItemType BLACK_STAINED_GLASS = register("minecraft:black_stained_glass"); - public static final ItemType BLACK_STAINED_GLASS_PANE = register("minecraft:black_stained_glass_pane"); - public static final ItemType BLACK_TERRACOTTA = register("minecraft:black_terracotta"); - public static final ItemType BLACK_WOOL = register("minecraft:black_wool"); - public static final ItemType BLAZE_POWDER = register("minecraft:blaze_powder"); - public static final ItemType BLAZE_ROD = register("minecraft:blaze_rod"); - public static final ItemType BLAZE_SPAWN_EGG = register("minecraft:blaze_spawn_egg"); - public static final ItemType BLUE_BANNER = register("minecraft:blue_banner"); - public static final ItemType BLUE_BED = register("minecraft:blue_bed"); - public static final ItemType BLUE_CARPET = register("minecraft:blue_carpet"); - public static final ItemType BLUE_CONCRETE = register("minecraft:blue_concrete"); - public static final ItemType BLUE_CONCRETE_POWDER = register("minecraft:blue_concrete_powder"); - public static final ItemType BLUE_GLAZED_TERRACOTTA = register("minecraft:blue_glazed_terracotta"); - public static final ItemType BLUE_ICE = register("minecraft:blue_ice"); - public static final ItemType BLUE_ORCHID = register("minecraft:blue_orchid"); - public static final ItemType BLUE_SHULKER_BOX = register("minecraft:blue_shulker_box"); - public static final ItemType BLUE_STAINED_GLASS = register("minecraft:blue_stained_glass"); - public static final ItemType BLUE_STAINED_GLASS_PANE = register("minecraft:blue_stained_glass_pane"); - public static final ItemType BLUE_TERRACOTTA = register("minecraft:blue_terracotta"); - public static final ItemType BLUE_WOOL = register("minecraft:blue_wool"); - public static final ItemType BONE = register("minecraft:bone"); - public static final ItemType BONE_BLOCK = register("minecraft:bone_block"); - public static final ItemType BONE_MEAL = register("minecraft:bone_meal"); - public static final ItemType BOOK = register("minecraft:book"); - public static final ItemType BOOKSHELF = register("minecraft:bookshelf"); - public static final ItemType BOW = register("minecraft:bow"); - public static final ItemType BOWL = register("minecraft:bowl"); - public static final ItemType BRAIN_CORAL = register("minecraft:brain_coral"); - public static final ItemType BRAIN_CORAL_BLOCK = register("minecraft:brain_coral_block"); - public static final ItemType BRAIN_CORAL_FAN = register("minecraft:brain_coral_fan"); - public static final ItemType BREAD = register("minecraft:bread"); - public static final ItemType BREWING_STAND = register("minecraft:brewing_stand"); - public static final ItemType BRICK = register("minecraft:brick"); - public static final ItemType BRICK_SLAB = register("minecraft:brick_slab"); - public static final ItemType BRICK_STAIRS = register("minecraft:brick_stairs"); - public static final ItemType BRICKS = register("minecraft:bricks"); - public static final ItemType BROWN_BANNER = register("minecraft:brown_banner"); - public static final ItemType BROWN_BED = register("minecraft:brown_bed"); - public static final ItemType BROWN_CARPET = register("minecraft:brown_carpet"); - public static final ItemType BROWN_CONCRETE = register("minecraft:brown_concrete"); - public static final ItemType BROWN_CONCRETE_POWDER = register("minecraft:brown_concrete_powder"); - public static final ItemType BROWN_GLAZED_TERRACOTTA = register("minecraft:brown_glazed_terracotta"); - public static final ItemType BROWN_MUSHROOM = register("minecraft:brown_mushroom"); - public static final ItemType BROWN_MUSHROOM_BLOCK = register("minecraft:brown_mushroom_block"); - public static final ItemType BROWN_SHULKER_BOX = register("minecraft:brown_shulker_box"); - public static final ItemType BROWN_STAINED_GLASS = register("minecraft:brown_stained_glass"); - public static final ItemType BROWN_STAINED_GLASS_PANE = register("minecraft:brown_stained_glass_pane"); - public static final ItemType BROWN_TERRACOTTA = register("minecraft:brown_terracotta"); - public static final ItemType BROWN_WOOL = register("minecraft:brown_wool"); - public static final ItemType BUBBLE_CORAL = register("minecraft:bubble_coral"); - public static final ItemType BUBBLE_CORAL_BLOCK = register("minecraft:bubble_coral_block"); - public static final ItemType BUBBLE_CORAL_FAN = register("minecraft:bubble_coral_fan"); - public static final ItemType BUCKET = register("minecraft:bucket"); - public static final ItemType CACTUS = register("minecraft:cactus"); - public static final ItemType CACTUS_GREEN = register("minecraft:cactus_green"); - public static final ItemType CAKE = register("minecraft:cake"); - public static final ItemType CARROT = register("minecraft:carrot"); - public static final ItemType CARROT_ON_A_STICK = register("minecraft:carrot_on_a_stick"); - public static final ItemType CARVED_PUMPKIN = register("minecraft:carved_pumpkin"); - public static final ItemType CAULDRON = register("minecraft:cauldron"); - public static final ItemType CAVE_SPIDER_SPAWN_EGG = register("minecraft:cave_spider_spawn_egg"); - public static final ItemType CHAIN_COMMAND_BLOCK = register("minecraft:chain_command_block"); - public static final ItemType CHAINMAIL_BOOTS = register("minecraft:chainmail_boots"); - public static final ItemType CHAINMAIL_CHESTPLATE = register("minecraft:chainmail_chestplate"); - public static final ItemType CHAINMAIL_HELMET = register("minecraft:chainmail_helmet"); - public static final ItemType CHAINMAIL_LEGGINGS = register("minecraft:chainmail_leggings"); - public static final ItemType CHARCOAL = register("minecraft:charcoal"); - public static final ItemType CHEST = register("minecraft:chest"); - public static final ItemType CHEST_MINECART = register("minecraft:chest_minecart"); - public static final ItemType CHICKEN = register("minecraft:chicken"); - public static final ItemType CHICKEN_SPAWN_EGG = register("minecraft:chicken_spawn_egg"); - public static final ItemType CHIPPED_ANVIL = register("minecraft:chipped_anvil"); - public static final ItemType CHISELED_QUARTZ_BLOCK = register("minecraft:chiseled_quartz_block"); - public static final ItemType CHISELED_RED_SANDSTONE = register("minecraft:chiseled_red_sandstone"); - public static final ItemType CHISELED_SANDSTONE = register("minecraft:chiseled_sandstone"); - public static final ItemType CHISELED_STONE_BRICKS = register("minecraft:chiseled_stone_bricks"); - public static final ItemType CHORUS_FLOWER = register("minecraft:chorus_flower"); - public static final ItemType CHORUS_FRUIT = register("minecraft:chorus_fruit"); - public static final ItemType CHORUS_PLANT = register("minecraft:chorus_plant"); - public static final ItemType CLAY = register("minecraft:clay"); - public static final ItemType CLAY_BALL = register("minecraft:clay_ball"); - public static final ItemType CLOCK = register("minecraft:clock"); - public static final ItemType COAL = register("minecraft:coal"); - public static final ItemType COAL_BLOCK = register("minecraft:coal_block"); - public static final ItemType COAL_ORE = register("minecraft:coal_ore"); - public static final ItemType COARSE_DIRT = register("minecraft:coarse_dirt"); - public static final ItemType COBBLESTONE = register("minecraft:cobblestone"); - public static final ItemType COBBLESTONE_SLAB = register("minecraft:cobblestone_slab"); - public static final ItemType COBBLESTONE_STAIRS = register("minecraft:cobblestone_stairs"); - public static final ItemType COBBLESTONE_WALL = register("minecraft:cobblestone_wall"); - public static final ItemType COBWEB = register("minecraft:cobweb"); - public static final ItemType COCOA_BEANS = register("minecraft:cocoa_beans"); - public static final ItemType COD = register("minecraft:cod"); - public static final ItemType COD_BUCKET = register("minecraft:cod_bucket"); - public static final ItemType COD_SPAWN_EGG = register("minecraft:cod_spawn_egg"); - public static final ItemType COMMAND_BLOCK = register("minecraft:command_block"); - public static final ItemType COMMAND_BLOCK_MINECART = register("minecraft:command_block_minecart"); - public static final ItemType COMPARATOR = register("minecraft:comparator"); - public static final ItemType COMPASS = register("minecraft:compass"); - public static final ItemType CONDUIT = register("minecraft:conduit"); - public static final ItemType COOKED_BEEF = register("minecraft:cooked_beef"); - public static final ItemType COOKED_CHICKEN = register("minecraft:cooked_chicken"); - public static final ItemType COOKED_COD = register("minecraft:cooked_cod"); - public static final ItemType COOKED_MUTTON = register("minecraft:cooked_mutton"); - public static final ItemType COOKED_PORKCHOP = register("minecraft:cooked_porkchop"); - public static final ItemType COOKED_RABBIT = register("minecraft:cooked_rabbit"); - public static final ItemType COOKED_SALMON = register("minecraft:cooked_salmon"); - public static final ItemType COOKIE = register("minecraft:cookie"); - public static final ItemType COW_SPAWN_EGG = register("minecraft:cow_spawn_egg"); - public static final ItemType CRACKED_STONE_BRICKS = register("minecraft:cracked_stone_bricks"); - public static final ItemType CRAFTING_TABLE = register("minecraft:crafting_table"); - public static final ItemType CREEPER_HEAD = register("minecraft:creeper_head"); - public static final ItemType CREEPER_SPAWN_EGG = register("minecraft:creeper_spawn_egg"); - public static final ItemType CUT_RED_SANDSTONE = register("minecraft:cut_red_sandstone"); - public static final ItemType CUT_SANDSTONE = register("minecraft:cut_sandstone"); - public static final ItemType CYAN_BANNER = register("minecraft:cyan_banner"); - public static final ItemType CYAN_BED = register("minecraft:cyan_bed"); - public static final ItemType CYAN_CARPET = register("minecraft:cyan_carpet"); - public static final ItemType CYAN_CONCRETE = register("minecraft:cyan_concrete"); - public static final ItemType CYAN_CONCRETE_POWDER = register("minecraft:cyan_concrete_powder"); - public static final ItemType CYAN_DYE = register("minecraft:cyan_dye"); - public static final ItemType CYAN_GLAZED_TERRACOTTA = register("minecraft:cyan_glazed_terracotta"); - public static final ItemType CYAN_SHULKER_BOX = register("minecraft:cyan_shulker_box"); - public static final ItemType CYAN_STAINED_GLASS = register("minecraft:cyan_stained_glass"); - public static final ItemType CYAN_STAINED_GLASS_PANE = register("minecraft:cyan_stained_glass_pane"); - public static final ItemType CYAN_TERRACOTTA = register("minecraft:cyan_terracotta"); - public static final ItemType CYAN_WOOL = register("minecraft:cyan_wool"); - public static final ItemType DAMAGED_ANVIL = register("minecraft:damaged_anvil"); - public static final ItemType DANDELION = register("minecraft:dandelion"); - public static final ItemType DANDELION_YELLOW = register("minecraft:dandelion_yellow"); - public static final ItemType DARK_OAK_BOAT = register("minecraft:dark_oak_boat"); - public static final ItemType DARK_OAK_BUTTON = register("minecraft:dark_oak_button"); - public static final ItemType DARK_OAK_DOOR = register("minecraft:dark_oak_door"); - public static final ItemType DARK_OAK_FENCE = register("minecraft:dark_oak_fence"); - public static final ItemType DARK_OAK_FENCE_GATE = register("minecraft:dark_oak_fence_gate"); - public static final ItemType DARK_OAK_LEAVES = register("minecraft:dark_oak_leaves"); - public static final ItemType DARK_OAK_LOG = register("minecraft:dark_oak_log"); - public static final ItemType DARK_OAK_PLANKS = register("minecraft:dark_oak_planks"); - public static final ItemType DARK_OAK_PRESSURE_PLATE = register("minecraft:dark_oak_pressure_plate"); - public static final ItemType DARK_OAK_SAPLING = register("minecraft:dark_oak_sapling"); - public static final ItemType DARK_OAK_SLAB = register("minecraft:dark_oak_slab"); - public static final ItemType DARK_OAK_STAIRS = register("minecraft:dark_oak_stairs"); - public static final ItemType DARK_OAK_TRAPDOOR = register("minecraft:dark_oak_trapdoor"); - public static final ItemType DARK_OAK_WOOD = register("minecraft:dark_oak_wood"); - public static final ItemType DARK_PRISMARINE = register("minecraft:dark_prismarine"); - public static final ItemType DARK_PRISMARINE_SLAB = register("minecraft:dark_prismarine_slab"); - public static final ItemType DARK_PRISMARINE_STAIRS = register("minecraft:dark_prismarine_stairs"); - public static final ItemType DAYLIGHT_DETECTOR = register("minecraft:daylight_detector"); - public static final ItemType DEAD_BRAIN_CORAL = register("minecraft:dead_brain_coral"); - public static final ItemType DEAD_BRAIN_CORAL_BLOCK = register("minecraft:dead_brain_coral_block"); - public static final ItemType DEAD_BRAIN_CORAL_FAN = register("minecraft:dead_brain_coral_fan"); - public static final ItemType DEAD_BUBBLE_CORAL = register("minecraft:dead_bubble_coral"); - public static final ItemType DEAD_BUBBLE_CORAL_BLOCK = register("minecraft:dead_bubble_coral_block"); - public static final ItemType DEAD_BUBBLE_CORAL_FAN = register("minecraft:dead_bubble_coral_fan"); - public static final ItemType DEAD_BUSH = register("minecraft:dead_bush"); - public static final ItemType DEAD_FIRE_CORAL = register("minecraft:dead_fire_coral"); - public static final ItemType DEAD_FIRE_CORAL_BLOCK = register("minecraft:dead_fire_coral_block"); - public static final ItemType DEAD_FIRE_CORAL_FAN = register("minecraft:dead_fire_coral_fan"); - public static final ItemType DEAD_HORN_CORAL = register("minecraft:dead_horn_coral"); - public static final ItemType DEAD_HORN_CORAL_BLOCK = register("minecraft:dead_horn_coral_block"); - public static final ItemType DEAD_HORN_CORAL_FAN = register("minecraft:dead_horn_coral_fan"); - public static final ItemType DEAD_TUBE_CORAL = register("minecraft:dead_tube_coral"); - public static final ItemType DEAD_TUBE_CORAL_BLOCK = register("minecraft:dead_tube_coral_block"); - public static final ItemType DEAD_TUBE_CORAL_FAN = register("minecraft:dead_tube_coral_fan"); - public static final ItemType DEBUG_STICK = register("minecraft:debug_stick"); - public static final ItemType DETECTOR_RAIL = register("minecraft:detector_rail"); - public static final ItemType DIAMOND = register("minecraft:diamond"); - public static final ItemType DIAMOND_AXE = register("minecraft:diamond_axe"); - public static final ItemType DIAMOND_BLOCK = register("minecraft:diamond_block"); - public static final ItemType DIAMOND_BOOTS = register("minecraft:diamond_boots"); - public static final ItemType DIAMOND_CHESTPLATE = register("minecraft:diamond_chestplate"); - public static final ItemType DIAMOND_HELMET = register("minecraft:diamond_helmet"); - public static final ItemType DIAMOND_HOE = register("minecraft:diamond_hoe"); - public static final ItemType DIAMOND_HORSE_ARMOR = register("minecraft:diamond_horse_armor"); - public static final ItemType DIAMOND_LEGGINGS = register("minecraft:diamond_leggings"); - public static final ItemType DIAMOND_ORE = register("minecraft:diamond_ore"); - public static final ItemType DIAMOND_PICKAXE = register("minecraft:diamond_pickaxe"); - public static final ItemType DIAMOND_SHOVEL = register("minecraft:diamond_shovel"); - public static final ItemType DIAMOND_SWORD = register("minecraft:diamond_sword"); - public static final ItemType DIORITE = register("minecraft:diorite"); - public static final ItemType DIRT = register("minecraft:dirt"); - public static final ItemType DISPENSER = register("minecraft:dispenser"); - public static final ItemType DOLPHIN_SPAWN_EGG = register("minecraft:dolphin_spawn_egg"); - public static final ItemType DONKEY_SPAWN_EGG = register("minecraft:donkey_spawn_egg"); - public static final ItemType DRAGON_BREATH = register("minecraft:dragon_breath"); - public static final ItemType DRAGON_EGG = register("minecraft:dragon_egg"); - public static final ItemType DRAGON_HEAD = register("minecraft:dragon_head"); - public static final ItemType DRIED_KELP = register("minecraft:dried_kelp"); - public static final ItemType DRIED_KELP_BLOCK = register("minecraft:dried_kelp_block"); - public static final ItemType DROPPER = register("minecraft:dropper"); - public static final ItemType DROWNED_SPAWN_EGG = register("minecraft:drowned_spawn_egg"); - public static final ItemType EGG = register("minecraft:egg"); - public static final ItemType ELDER_GUARDIAN_SPAWN_EGG = register("minecraft:elder_guardian_spawn_egg"); - public static final ItemType ELYTRA = register("minecraft:elytra"); - public static final ItemType EMERALD = register("minecraft:emerald"); - public static final ItemType EMERALD_BLOCK = register("minecraft:emerald_block"); - public static final ItemType EMERALD_ORE = register("minecraft:emerald_ore"); - public static final ItemType ENCHANTED_BOOK = register("minecraft:enchanted_book"); - public static final ItemType ENCHANTED_GOLDEN_APPLE = register("minecraft:enchanted_golden_apple"); - public static final ItemType ENCHANTING_TABLE = register("minecraft:enchanting_table"); - public static final ItemType END_CRYSTAL = register("minecraft:end_crystal"); - public static final ItemType END_PORTAL_FRAME = register("minecraft:end_portal_frame"); - public static final ItemType END_ROD = register("minecraft:end_rod"); - public static final ItemType END_STONE = register("minecraft:end_stone"); - public static final ItemType END_STONE_BRICKS = register("minecraft:end_stone_bricks"); - public static final ItemType ENDER_CHEST = register("minecraft:ender_chest"); - public static final ItemType ENDER_EYE = register("minecraft:ender_eye"); - public static final ItemType ENDER_PEARL = register("minecraft:ender_pearl"); - public static final ItemType ENDERMAN_SPAWN_EGG = register("minecraft:enderman_spawn_egg"); - public static final ItemType ENDERMITE_SPAWN_EGG = register("minecraft:endermite_spawn_egg"); - public static final ItemType EVOKER_SPAWN_EGG = register("minecraft:evoker_spawn_egg"); - public static final ItemType EXPERIENCE_BOTTLE = register("minecraft:experience_bottle"); - public static final ItemType FARMLAND = register("minecraft:farmland"); - public static final ItemType FEATHER = register("minecraft:feather"); - public static final ItemType FERMENTED_SPIDER_EYE = register("minecraft:fermented_spider_eye"); - public static final ItemType FERN = register("minecraft:fern"); - public static final ItemType FILLED_MAP = register("minecraft:filled_map"); - public static final ItemType FIRE_CHARGE = register("minecraft:fire_charge"); - public static final ItemType FIRE_CORAL = register("minecraft:fire_coral"); - public static final ItemType FIRE_CORAL_BLOCK = register("minecraft:fire_coral_block"); - public static final ItemType FIRE_CORAL_FAN = register("minecraft:fire_coral_fan"); - public static final ItemType FIREWORK_ROCKET = register("minecraft:firework_rocket"); - public static final ItemType FIREWORK_STAR = register("minecraft:firework_star"); - public static final ItemType FISHING_ROD = register("minecraft:fishing_rod"); - public static final ItemType FLINT = register("minecraft:flint"); - public static final ItemType FLINT_AND_STEEL = register("minecraft:flint_and_steel"); - public static final ItemType FLOWER_POT = register("minecraft:flower_pot"); - public static final ItemType FURNACE = register("minecraft:furnace"); - public static final ItemType FURNACE_MINECART = register("minecraft:furnace_minecart"); - public static final ItemType GHAST_SPAWN_EGG = register("minecraft:ghast_spawn_egg"); - public static final ItemType GHAST_TEAR = register("minecraft:ghast_tear"); - public static final ItemType GLASS = register("minecraft:glass"); - public static final ItemType GLASS_BOTTLE = register("minecraft:glass_bottle"); - public static final ItemType GLASS_PANE = register("minecraft:glass_pane"); - public static final ItemType GLISTERING_MELON_SLICE = register("minecraft:glistering_melon_slice"); - public static final ItemType GLOWSTONE = register("minecraft:glowstone"); - public static final ItemType GLOWSTONE_DUST = register("minecraft:glowstone_dust"); - public static final ItemType GOLD_BLOCK = register("minecraft:gold_block"); - public static final ItemType GOLD_INGOT = register("minecraft:gold_ingot"); - public static final ItemType GOLD_NUGGET = register("minecraft:gold_nugget"); - public static final ItemType GOLD_ORE = register("minecraft:gold_ore"); - public static final ItemType GOLDEN_APPLE = register("minecraft:golden_apple"); - public static final ItemType GOLDEN_AXE = register("minecraft:golden_axe"); - public static final ItemType GOLDEN_BOOTS = register("minecraft:golden_boots"); - public static final ItemType GOLDEN_CARROT = register("minecraft:golden_carrot"); - public static final ItemType GOLDEN_CHESTPLATE = register("minecraft:golden_chestplate"); - public static final ItemType GOLDEN_HELMET = register("minecraft:golden_helmet"); - public static final ItemType GOLDEN_HOE = register("minecraft:golden_hoe"); - public static final ItemType GOLDEN_HORSE_ARMOR = register("minecraft:golden_horse_armor"); - public static final ItemType GOLDEN_LEGGINGS = register("minecraft:golden_leggings"); - public static final ItemType GOLDEN_PICKAXE = register("minecraft:golden_pickaxe"); - public static final ItemType GOLDEN_SHOVEL = register("minecraft:golden_shovel"); - public static final ItemType GOLDEN_SWORD = register("minecraft:golden_sword"); - public static final ItemType GRANITE = register("minecraft:granite"); - public static final ItemType GRASS = register("minecraft:grass"); - public static final ItemType GRASS_BLOCK = register("minecraft:grass_block"); - public static final ItemType GRASS_PATH = register("minecraft:grass_path"); - public static final ItemType GRAVEL = register("minecraft:gravel"); - public static final ItemType GRAY_BANNER = register("minecraft:gray_banner"); - public static final ItemType GRAY_BED = register("minecraft:gray_bed"); - public static final ItemType GRAY_CARPET = register("minecraft:gray_carpet"); - public static final ItemType GRAY_CONCRETE = register("minecraft:gray_concrete"); - public static final ItemType GRAY_CONCRETE_POWDER = register("minecraft:gray_concrete_powder"); - public static final ItemType GRAY_DYE = register("minecraft:gray_dye"); - public static final ItemType GRAY_GLAZED_TERRACOTTA = register("minecraft:gray_glazed_terracotta"); - public static final ItemType GRAY_SHULKER_BOX = register("minecraft:gray_shulker_box"); - public static final ItemType GRAY_STAINED_GLASS = register("minecraft:gray_stained_glass"); - public static final ItemType GRAY_STAINED_GLASS_PANE = register("minecraft:gray_stained_glass_pane"); - public static final ItemType GRAY_TERRACOTTA = register("minecraft:gray_terracotta"); - public static final ItemType GRAY_WOOL = register("minecraft:gray_wool"); - public static final ItemType GREEN_BANNER = register("minecraft:green_banner"); - public static final ItemType GREEN_BED = register("minecraft:green_bed"); - public static final ItemType GREEN_CARPET = register("minecraft:green_carpet"); - public static final ItemType GREEN_CONCRETE = register("minecraft:green_concrete"); - public static final ItemType GREEN_CONCRETE_POWDER = register("minecraft:green_concrete_powder"); - public static final ItemType GREEN_GLAZED_TERRACOTTA = register("minecraft:green_glazed_terracotta"); - public static final ItemType GREEN_SHULKER_BOX = register("minecraft:green_shulker_box"); - public static final ItemType GREEN_STAINED_GLASS = register("minecraft:green_stained_glass"); - public static final ItemType GREEN_STAINED_GLASS_PANE = register("minecraft:green_stained_glass_pane"); - public static final ItemType GREEN_TERRACOTTA = register("minecraft:green_terracotta"); - public static final ItemType GREEN_WOOL = register("minecraft:green_wool"); - public static final ItemType GUARDIAN_SPAWN_EGG = register("minecraft:guardian_spawn_egg"); - public static final ItemType GUNPOWDER = register("minecraft:gunpowder"); - public static final ItemType HAY_BLOCK = register("minecraft:hay_block"); - public static final ItemType HEART_OF_THE_SEA = register("minecraft:heart_of_the_sea"); - public static final ItemType HEAVY_WEIGHTED_PRESSURE_PLATE = register("minecraft:heavy_weighted_pressure_plate"); - public static final ItemType HOPPER = register("minecraft:hopper"); - public static final ItemType HOPPER_MINECART = register("minecraft:hopper_minecart"); - public static final ItemType HORN_CORAL = register("minecraft:horn_coral"); - public static final ItemType HORN_CORAL_BLOCK = register("minecraft:horn_coral_block"); - public static final ItemType HORN_CORAL_FAN = register("minecraft:horn_coral_fan"); - public static final ItemType HORSE_SPAWN_EGG = register("minecraft:horse_spawn_egg"); - public static final ItemType HUSK_SPAWN_EGG = register("minecraft:husk_spawn_egg"); - public static final ItemType ICE = register("minecraft:ice"); - public static final ItemType INFESTED_CHISELED_STONE_BRICKS = register("minecraft:infested_chiseled_stone_bricks"); - public static final ItemType INFESTED_COBBLESTONE = register("minecraft:infested_cobblestone"); - public static final ItemType INFESTED_CRACKED_STONE_BRICKS = register("minecraft:infested_cracked_stone_bricks"); - public static final ItemType INFESTED_MOSSY_STONE_BRICKS = register("minecraft:infested_mossy_stone_bricks"); - public static final ItemType INFESTED_STONE = register("minecraft:infested_stone"); - public static final ItemType INFESTED_STONE_BRICKS = register("minecraft:infested_stone_bricks"); - public static final ItemType INK_SAC = register("minecraft:ink_sac"); - public static final ItemType IRON_AXE = register("minecraft:iron_axe"); - public static final ItemType IRON_BARS = register("minecraft:iron_bars"); - public static final ItemType IRON_BLOCK = register("minecraft:iron_block"); - public static final ItemType IRON_BOOTS = register("minecraft:iron_boots"); - public static final ItemType IRON_CHESTPLATE = register("minecraft:iron_chestplate"); - public static final ItemType IRON_DOOR = register("minecraft:iron_door"); - public static final ItemType IRON_HELMET = register("minecraft:iron_helmet"); - public static final ItemType IRON_HOE = register("minecraft:iron_hoe"); - public static final ItemType IRON_HORSE_ARMOR = register("minecraft:iron_horse_armor"); - public static final ItemType IRON_INGOT = register("minecraft:iron_ingot"); - public static final ItemType IRON_LEGGINGS = register("minecraft:iron_leggings"); - public static final ItemType IRON_NUGGET = register("minecraft:iron_nugget"); - public static final ItemType IRON_ORE = register("minecraft:iron_ore"); - public static final ItemType IRON_PICKAXE = register("minecraft:iron_pickaxe"); - public static final ItemType IRON_SHOVEL = register("minecraft:iron_shovel"); - public static final ItemType IRON_SWORD = register("minecraft:iron_sword"); - public static final ItemType IRON_TRAPDOOR = register("minecraft:iron_trapdoor"); - public static final ItemType ITEM_FRAME = register("minecraft:item_frame"); - public static final ItemType JACK_O_LANTERN = register("minecraft:jack_o_lantern"); - public static final ItemType JUKEBOX = register("minecraft:jukebox"); - public static final ItemType JUNGLE_BOAT = register("minecraft:jungle_boat"); - public static final ItemType JUNGLE_BUTTON = register("minecraft:jungle_button"); - public static final ItemType JUNGLE_DOOR = register("minecraft:jungle_door"); - public static final ItemType JUNGLE_FENCE = register("minecraft:jungle_fence"); - public static final ItemType JUNGLE_FENCE_GATE = register("minecraft:jungle_fence_gate"); - public static final ItemType JUNGLE_LEAVES = register("minecraft:jungle_leaves"); - public static final ItemType JUNGLE_LOG = register("minecraft:jungle_log"); - public static final ItemType JUNGLE_PLANKS = register("minecraft:jungle_planks"); - public static final ItemType JUNGLE_PRESSURE_PLATE = register("minecraft:jungle_pressure_plate"); - public static final ItemType JUNGLE_SAPLING = register("minecraft:jungle_sapling"); - public static final ItemType JUNGLE_SLAB = register("minecraft:jungle_slab"); - public static final ItemType JUNGLE_STAIRS = register("minecraft:jungle_stairs"); - public static final ItemType JUNGLE_TRAPDOOR = register("minecraft:jungle_trapdoor"); - public static final ItemType JUNGLE_WOOD = register("minecraft:jungle_wood"); - public static final ItemType KELP = register("minecraft:kelp"); - public static final ItemType KNOWLEDGE_BOOK = register("minecraft:knowledge_book"); - public static final ItemType LADDER = register("minecraft:ladder"); - public static final ItemType LAPIS_BLOCK = register("minecraft:lapis_block"); - public static final ItemType LAPIS_LAZULI = register("minecraft:lapis_lazuli"); - public static final ItemType LAPIS_ORE = register("minecraft:lapis_ore"); - public static final ItemType LARGE_FERN = register("minecraft:large_fern"); - public static final ItemType LAVA_BUCKET = register("minecraft:lava_bucket"); - public static final ItemType LEAD = register("minecraft:lead"); - public static final ItemType LEATHER = register("minecraft:leather"); - public static final ItemType LEATHER_BOOTS = register("minecraft:leather_boots"); - public static final ItemType LEATHER_CHESTPLATE = register("minecraft:leather_chestplate"); - public static final ItemType LEATHER_HELMET = register("minecraft:leather_helmet"); - public static final ItemType LEATHER_LEGGINGS = register("minecraft:leather_leggings"); - public static final ItemType LEVER = register("minecraft:lever"); - public static final ItemType LIGHT_BLUE_BANNER = register("minecraft:light_blue_banner"); - public static final ItemType LIGHT_BLUE_BED = register("minecraft:light_blue_bed"); - public static final ItemType LIGHT_BLUE_CARPET = register("minecraft:light_blue_carpet"); - public static final ItemType LIGHT_BLUE_CONCRETE = register("minecraft:light_blue_concrete"); - public static final ItemType LIGHT_BLUE_CONCRETE_POWDER = register("minecraft:light_blue_concrete_powder"); - public static final ItemType LIGHT_BLUE_DYE = register("minecraft:light_blue_dye"); - public static final ItemType LIGHT_BLUE_GLAZED_TERRACOTTA = register("minecraft:light_blue_glazed_terracotta"); - public static final ItemType LIGHT_BLUE_SHULKER_BOX = register("minecraft:light_blue_shulker_box"); - public static final ItemType LIGHT_BLUE_STAINED_GLASS = register("minecraft:light_blue_stained_glass"); - public static final ItemType LIGHT_BLUE_STAINED_GLASS_PANE = register("minecraft:light_blue_stained_glass_pane"); - public static final ItemType LIGHT_BLUE_TERRACOTTA = register("minecraft:light_blue_terracotta"); - public static final ItemType LIGHT_BLUE_WOOL = register("minecraft:light_blue_wool"); - public static final ItemType LIGHT_GRAY_BANNER = register("minecraft:light_gray_banner"); - public static final ItemType LIGHT_GRAY_BED = register("minecraft:light_gray_bed"); - public static final ItemType LIGHT_GRAY_CARPET = register("minecraft:light_gray_carpet"); - public static final ItemType LIGHT_GRAY_CONCRETE = register("minecraft:light_gray_concrete"); - public static final ItemType LIGHT_GRAY_CONCRETE_POWDER = register("minecraft:light_gray_concrete_powder"); - public static final ItemType LIGHT_GRAY_DYE = register("minecraft:light_gray_dye"); - public static final ItemType LIGHT_GRAY_GLAZED_TERRACOTTA = register("minecraft:light_gray_glazed_terracotta"); - public static final ItemType LIGHT_GRAY_SHULKER_BOX = register("minecraft:light_gray_shulker_box"); - public static final ItemType LIGHT_GRAY_STAINED_GLASS = register("minecraft:light_gray_stained_glass"); - public static final ItemType LIGHT_GRAY_STAINED_GLASS_PANE = register("minecraft:light_gray_stained_glass_pane"); - public static final ItemType LIGHT_GRAY_TERRACOTTA = register("minecraft:light_gray_terracotta"); - public static final ItemType LIGHT_GRAY_WOOL = register("minecraft:light_gray_wool"); - public static final ItemType LIGHT_WEIGHTED_PRESSURE_PLATE = register("minecraft:light_weighted_pressure_plate"); - public static final ItemType LILAC = register("minecraft:lilac"); - public static final ItemType LILY_PAD = register("minecraft:lily_pad"); - public static final ItemType LIME_BANNER = register("minecraft:lime_banner"); - public static final ItemType LIME_BED = register("minecraft:lime_bed"); - public static final ItemType LIME_CARPET = register("minecraft:lime_carpet"); - public static final ItemType LIME_CONCRETE = register("minecraft:lime_concrete"); - public static final ItemType LIME_CONCRETE_POWDER = register("minecraft:lime_concrete_powder"); - public static final ItemType LIME_DYE = register("minecraft:lime_dye"); - public static final ItemType LIME_GLAZED_TERRACOTTA = register("minecraft:lime_glazed_terracotta"); - public static final ItemType LIME_SHULKER_BOX = register("minecraft:lime_shulker_box"); - public static final ItemType LIME_STAINED_GLASS = register("minecraft:lime_stained_glass"); - public static final ItemType LIME_STAINED_GLASS_PANE = register("minecraft:lime_stained_glass_pane"); - public static final ItemType LIME_TERRACOTTA = register("minecraft:lime_terracotta"); - public static final ItemType LIME_WOOL = register("minecraft:lime_wool"); - public static final ItemType LINGERING_POTION = register("minecraft:lingering_potion"); - public static final ItemType LLAMA_SPAWN_EGG = register("minecraft:llama_spawn_egg"); - public static final ItemType MAGENTA_BANNER = register("minecraft:magenta_banner"); - public static final ItemType MAGENTA_BED = register("minecraft:magenta_bed"); - public static final ItemType MAGENTA_CARPET = register("minecraft:magenta_carpet"); - public static final ItemType MAGENTA_CONCRETE = register("minecraft:magenta_concrete"); - public static final ItemType MAGENTA_CONCRETE_POWDER = register("minecraft:magenta_concrete_powder"); - public static final ItemType MAGENTA_DYE = register("minecraft:magenta_dye"); - public static final ItemType MAGENTA_GLAZED_TERRACOTTA = register("minecraft:magenta_glazed_terracotta"); - public static final ItemType MAGENTA_SHULKER_BOX = register("minecraft:magenta_shulker_box"); - public static final ItemType MAGENTA_STAINED_GLASS = register("minecraft:magenta_stained_glass"); - public static final ItemType MAGENTA_STAINED_GLASS_PANE = register("minecraft:magenta_stained_glass_pane"); - public static final ItemType MAGENTA_TERRACOTTA = register("minecraft:magenta_terracotta"); - public static final ItemType MAGENTA_WOOL = register("minecraft:magenta_wool"); - public static final ItemType MAGMA_BLOCK = register("minecraft:magma_block"); - public static final ItemType MAGMA_CREAM = register("minecraft:magma_cream"); - public static final ItemType MAGMA_CUBE_SPAWN_EGG = register("minecraft:magma_cube_spawn_egg"); - public static final ItemType MAP = register("minecraft:map"); - public static final ItemType MELON = register("minecraft:melon"); - public static final ItemType MELON_SEEDS = register("minecraft:melon_seeds"); - public static final ItemType MELON_SLICE = register("minecraft:melon_slice"); - public static final ItemType MILK_BUCKET = register("minecraft:milk_bucket"); - public static final ItemType MINECART = register("minecraft:minecart"); - public static final ItemType MOOSHROOM_SPAWN_EGG = register("minecraft:mooshroom_spawn_egg"); - public static final ItemType MOSSY_COBBLESTONE = register("minecraft:mossy_cobblestone"); - public static final ItemType MOSSY_COBBLESTONE_WALL = register("minecraft:mossy_cobblestone_wall"); - public static final ItemType MOSSY_STONE_BRICKS = register("minecraft:mossy_stone_bricks"); - public static final ItemType MULE_SPAWN_EGG = register("minecraft:mule_spawn_egg"); - public static final ItemType MUSHROOM_STEM = register("minecraft:mushroom_stem"); - public static final ItemType MUSHROOM_STEW = register("minecraft:mushroom_stew"); - public static final ItemType MUSIC_DISC_11 = register("minecraft:music_disc_11"); - public static final ItemType MUSIC_DISC_13 = register("minecraft:music_disc_13"); - public static final ItemType MUSIC_DISC_BLOCKS = register("minecraft:music_disc_blocks"); - public static final ItemType MUSIC_DISC_CAT = register("minecraft:music_disc_cat"); - public static final ItemType MUSIC_DISC_CHIRP = register("minecraft:music_disc_chirp"); - public static final ItemType MUSIC_DISC_FAR = register("minecraft:music_disc_far"); - public static final ItemType MUSIC_DISC_MALL = register("minecraft:music_disc_mall"); - public static final ItemType MUSIC_DISC_MELLOHI = register("minecraft:music_disc_mellohi"); - public static final ItemType MUSIC_DISC_STAL = register("minecraft:music_disc_stal"); - public static final ItemType MUSIC_DISC_STRAD = register("minecraft:music_disc_strad"); - public static final ItemType MUSIC_DISC_WAIT = register("minecraft:music_disc_wait"); - public static final ItemType MUSIC_DISC_WARD = register("minecraft:music_disc_ward"); - public static final ItemType MUTTON = register("minecraft:mutton"); - public static final ItemType MYCELIUM = register("minecraft:mycelium"); - public static final ItemType NAME_TAG = register("minecraft:name_tag"); - public static final ItemType NAUTILUS_SHELL = register("minecraft:nautilus_shell"); - public static final ItemType NETHER_BRICK = register("minecraft:nether_brick"); - public static final ItemType NETHER_BRICK_FENCE = register("minecraft:nether_brick_fence"); - public static final ItemType NETHER_BRICK_SLAB = register("minecraft:nether_brick_slab"); - public static final ItemType NETHER_BRICK_STAIRS = register("minecraft:nether_brick_stairs"); - public static final ItemType NETHER_BRICKS = register("minecraft:nether_bricks"); - public static final ItemType NETHER_QUARTZ_ORE = register("minecraft:nether_quartz_ore"); - public static final ItemType NETHER_STAR = register("minecraft:nether_star"); - public static final ItemType NETHER_WART = register("minecraft:nether_wart"); - public static final ItemType NETHER_WART_BLOCK = register("minecraft:nether_wart_block"); - public static final ItemType NETHERRACK = register("minecraft:netherrack"); - public static final ItemType NOTE_BLOCK = register("minecraft:note_block"); - public static final ItemType OAK_BOAT = register("minecraft:oak_boat"); - public static final ItemType OAK_BUTTON = register("minecraft:oak_button"); - public static final ItemType OAK_DOOR = register("minecraft:oak_door"); - public static final ItemType OAK_FENCE = register("minecraft:oak_fence"); - public static final ItemType OAK_FENCE_GATE = register("minecraft:oak_fence_gate"); - public static final ItemType OAK_LEAVES = register("minecraft:oak_leaves"); - public static final ItemType OAK_LOG = register("minecraft:oak_log"); - public static final ItemType OAK_PLANKS = register("minecraft:oak_planks"); - public static final ItemType OAK_PRESSURE_PLATE = register("minecraft:oak_pressure_plate"); - public static final ItemType OAK_SAPLING = register("minecraft:oak_sapling"); - public static final ItemType OAK_SLAB = register("minecraft:oak_slab"); - public static final ItemType OAK_STAIRS = register("minecraft:oak_stairs"); - public static final ItemType OAK_TRAPDOOR = register("minecraft:oak_trapdoor"); - public static final ItemType OAK_WOOD = register("minecraft:oak_wood"); - public static final ItemType OBSERVER = register("minecraft:observer"); - public static final ItemType OBSIDIAN = register("minecraft:obsidian"); - public static final ItemType OCELOT_SPAWN_EGG = register("minecraft:ocelot_spawn_egg"); - public static final ItemType ORANGE_BANNER = register("minecraft:orange_banner"); - public static final ItemType ORANGE_BED = register("minecraft:orange_bed"); - public static final ItemType ORANGE_CARPET = register("minecraft:orange_carpet"); - public static final ItemType ORANGE_CONCRETE = register("minecraft:orange_concrete"); - public static final ItemType ORANGE_CONCRETE_POWDER = register("minecraft:orange_concrete_powder"); - public static final ItemType ORANGE_DYE = register("minecraft:orange_dye"); - public static final ItemType ORANGE_GLAZED_TERRACOTTA = register("minecraft:orange_glazed_terracotta"); - public static final ItemType ORANGE_SHULKER_BOX = register("minecraft:orange_shulker_box"); - public static final ItemType ORANGE_STAINED_GLASS = register("minecraft:orange_stained_glass"); - public static final ItemType ORANGE_STAINED_GLASS_PANE = register("minecraft:orange_stained_glass_pane"); - public static final ItemType ORANGE_TERRACOTTA = register("minecraft:orange_terracotta"); - public static final ItemType ORANGE_TULIP = register("minecraft:orange_tulip"); - public static final ItemType ORANGE_WOOL = register("minecraft:orange_wool"); - public static final ItemType OXEYE_DAISY = register("minecraft:oxeye_daisy"); - public static final ItemType PACKED_ICE = register("minecraft:packed_ice"); - public static final ItemType PAINTING = register("minecraft:painting"); - public static final ItemType PAPER = register("minecraft:paper"); - public static final ItemType PARROT_SPAWN_EGG = register("minecraft:parrot_spawn_egg"); - public static final ItemType PEONY = register("minecraft:peony"); - public static final ItemType PETRIFIED_OAK_SLAB = register("minecraft:petrified_oak_slab"); - public static final ItemType PHANTOM_MEMBRANE = register("minecraft:phantom_membrane"); - public static final ItemType PHANTOM_SPAWN_EGG = register("minecraft:phantom_spawn_egg"); - public static final ItemType PIG_SPAWN_EGG = register("minecraft:pig_spawn_egg"); - public static final ItemType PINK_BANNER = register("minecraft:pink_banner"); - public static final ItemType PINK_BED = register("minecraft:pink_bed"); - public static final ItemType PINK_CARPET = register("minecraft:pink_carpet"); - public static final ItemType PINK_CONCRETE = register("minecraft:pink_concrete"); - public static final ItemType PINK_CONCRETE_POWDER = register("minecraft:pink_concrete_powder"); - public static final ItemType PINK_DYE = register("minecraft:pink_dye"); - public static final ItemType PINK_GLAZED_TERRACOTTA = register("minecraft:pink_glazed_terracotta"); - public static final ItemType PINK_SHULKER_BOX = register("minecraft:pink_shulker_box"); - public static final ItemType PINK_STAINED_GLASS = register("minecraft:pink_stained_glass"); - public static final ItemType PINK_STAINED_GLASS_PANE = register("minecraft:pink_stained_glass_pane"); - public static final ItemType PINK_TERRACOTTA = register("minecraft:pink_terracotta"); - public static final ItemType PINK_TULIP = register("minecraft:pink_tulip"); - public static final ItemType PINK_WOOL = register("minecraft:pink_wool"); - public static final ItemType PISTON = register("minecraft:piston"); - public static final ItemType PLAYER_HEAD = register("minecraft:player_head"); - public static final ItemType PODZOL = register("minecraft:podzol"); - public static final ItemType POISONOUS_POTATO = register("minecraft:poisonous_potato"); - public static final ItemType POLAR_BEAR_SPAWN_EGG = register("minecraft:polar_bear_spawn_egg"); - public static final ItemType POLISHED_ANDESITE = register("minecraft:polished_andesite"); - public static final ItemType POLISHED_DIORITE = register("minecraft:polished_diorite"); - public static final ItemType POLISHED_GRANITE = register("minecraft:polished_granite"); - public static final ItemType POPPED_CHORUS_FRUIT = register("minecraft:popped_chorus_fruit"); - public static final ItemType POPPY = register("minecraft:poppy"); - public static final ItemType PORKCHOP = register("minecraft:porkchop"); - public static final ItemType POTATO = register("minecraft:potato"); - public static final ItemType POTION = register("minecraft:potion"); - public static final ItemType POWERED_RAIL = register("minecraft:powered_rail"); - public static final ItemType PRISMARINE = register("minecraft:prismarine"); - public static final ItemType PRISMARINE_BRICK_SLAB = register("minecraft:prismarine_brick_slab"); - public static final ItemType PRISMARINE_BRICK_STAIRS = register("minecraft:prismarine_brick_stairs"); - public static final ItemType PRISMARINE_BRICKS = register("minecraft:prismarine_bricks"); - public static final ItemType PRISMARINE_CRYSTALS = register("minecraft:prismarine_crystals"); - public static final ItemType PRISMARINE_SHARD = register("minecraft:prismarine_shard"); - public static final ItemType PRISMARINE_SLAB = register("minecraft:prismarine_slab"); - public static final ItemType PRISMARINE_STAIRS = register("minecraft:prismarine_stairs"); - public static final ItemType PUFFERFISH = register("minecraft:pufferfish"); - public static final ItemType PUFFERFISH_BUCKET = register("minecraft:pufferfish_bucket"); - public static final ItemType PUFFERFISH_SPAWN_EGG = register("minecraft:pufferfish_spawn_egg"); - public static final ItemType PUMPKIN = register("minecraft:pumpkin"); - public static final ItemType PUMPKIN_PIE = register("minecraft:pumpkin_pie"); - public static final ItemType PUMPKIN_SEEDS = register("minecraft:pumpkin_seeds"); - public static final ItemType PURPLE_BANNER = register("minecraft:purple_banner"); - public static final ItemType PURPLE_BED = register("minecraft:purple_bed"); - public static final ItemType PURPLE_CARPET = register("minecraft:purple_carpet"); - public static final ItemType PURPLE_CONCRETE = register("minecraft:purple_concrete"); - public static final ItemType PURPLE_CONCRETE_POWDER = register("minecraft:purple_concrete_powder"); - public static final ItemType PURPLE_DYE = register("minecraft:purple_dye"); - public static final ItemType PURPLE_GLAZED_TERRACOTTA = register("minecraft:purple_glazed_terracotta"); - public static final ItemType PURPLE_SHULKER_BOX = register("minecraft:purple_shulker_box"); - public static final ItemType PURPLE_STAINED_GLASS = register("minecraft:purple_stained_glass"); - public static final ItemType PURPLE_STAINED_GLASS_PANE = register("minecraft:purple_stained_glass_pane"); - public static final ItemType PURPLE_TERRACOTTA = register("minecraft:purple_terracotta"); - public static final ItemType PURPLE_WOOL = register("minecraft:purple_wool"); - public static final ItemType PURPUR_BLOCK = register("minecraft:purpur_block"); - public static final ItemType PURPUR_PILLAR = register("minecraft:purpur_pillar"); - public static final ItemType PURPUR_SLAB = register("minecraft:purpur_slab"); - public static final ItemType PURPUR_STAIRS = register("minecraft:purpur_stairs"); - public static final ItemType QUARTZ = register("minecraft:quartz"); - public static final ItemType QUARTZ_BLOCK = register("minecraft:quartz_block"); - public static final ItemType QUARTZ_PILLAR = register("minecraft:quartz_pillar"); - public static final ItemType QUARTZ_SLAB = register("minecraft:quartz_slab"); - public static final ItemType QUARTZ_STAIRS = register("minecraft:quartz_stairs"); - public static final ItemType RABBIT = register("minecraft:rabbit"); - public static final ItemType RABBIT_FOOT = register("minecraft:rabbit_foot"); - public static final ItemType RABBIT_HIDE = register("minecraft:rabbit_hide"); - public static final ItemType RABBIT_SPAWN_EGG = register("minecraft:rabbit_spawn_egg"); - public static final ItemType RABBIT_STEW = register("minecraft:rabbit_stew"); - public static final ItemType RAIL = register("minecraft:rail"); - public static final ItemType RED_BANNER = register("minecraft:red_banner"); - public static final ItemType RED_BED = register("minecraft:red_bed"); - public static final ItemType RED_CARPET = register("minecraft:red_carpet"); - public static final ItemType RED_CONCRETE = register("minecraft:red_concrete"); - public static final ItemType RED_CONCRETE_POWDER = register("minecraft:red_concrete_powder"); - public static final ItemType RED_GLAZED_TERRACOTTA = register("minecraft:red_glazed_terracotta"); - public static final ItemType RED_MUSHROOM = register("minecraft:red_mushroom"); - public static final ItemType RED_MUSHROOM_BLOCK = register("minecraft:red_mushroom_block"); - public static final ItemType RED_NETHER_BRICKS = register("minecraft:red_nether_bricks"); - public static final ItemType RED_SAND = register("minecraft:red_sand"); - public static final ItemType RED_SANDSTONE = register("minecraft:red_sandstone"); - public static final ItemType RED_SANDSTONE_SLAB = register("minecraft:red_sandstone_slab"); - public static final ItemType RED_SANDSTONE_STAIRS = register("minecraft:red_sandstone_stairs"); - public static final ItemType RED_SHULKER_BOX = register("minecraft:red_shulker_box"); - public static final ItemType RED_STAINED_GLASS = register("minecraft:red_stained_glass"); - public static final ItemType RED_STAINED_GLASS_PANE = register("minecraft:red_stained_glass_pane"); - public static final ItemType RED_TERRACOTTA = register("minecraft:red_terracotta"); - public static final ItemType RED_TULIP = register("minecraft:red_tulip"); - public static final ItemType RED_WOOL = register("minecraft:red_wool"); - public static final ItemType REDSTONE = register("minecraft:redstone"); - public static final ItemType REDSTONE_BLOCK = register("minecraft:redstone_block"); - public static final ItemType REDSTONE_LAMP = register("minecraft:redstone_lamp"); - public static final ItemType REDSTONE_ORE = register("minecraft:redstone_ore"); - public static final ItemType REDSTONE_TORCH = register("minecraft:redstone_torch"); - public static final ItemType REPEATER = register("minecraft:repeater"); - public static final ItemType REPEATING_COMMAND_BLOCK = register("minecraft:repeating_command_block"); - public static final ItemType ROSE_BUSH = register("minecraft:rose_bush"); - public static final ItemType ROSE_RED = register("minecraft:rose_red"); - public static final ItemType ROTTEN_FLESH = register("minecraft:rotten_flesh"); - public static final ItemType SADDLE = register("minecraft:saddle"); - public static final ItemType SALMON = register("minecraft:salmon"); - public static final ItemType SALMON_BUCKET = register("minecraft:salmon_bucket"); - public static final ItemType SALMON_SPAWN_EGG = register("minecraft:salmon_spawn_egg"); - public static final ItemType SAND = register("minecraft:sand"); - public static final ItemType SANDSTONE = register("minecraft:sandstone"); - public static final ItemType SANDSTONE_SLAB = register("minecraft:sandstone_slab"); - public static final ItemType SANDSTONE_STAIRS = register("minecraft:sandstone_stairs"); - public static final ItemType SCUTE = register("minecraft:scute"); - public static final ItemType SEA_LANTERN = register("minecraft:sea_lantern"); - public static final ItemType SEA_PICKLE = register("minecraft:sea_pickle"); - public static final ItemType SEAGRASS = register("minecraft:seagrass"); - public static final ItemType SHEARS = register("minecraft:shears"); - public static final ItemType SHEEP_SPAWN_EGG = register("minecraft:sheep_spawn_egg"); - public static final ItemType SHIELD = register("minecraft:shield"); - public static final ItemType SHULKER_BOX = register("minecraft:shulker_box"); - public static final ItemType SHULKER_SHELL = register("minecraft:shulker_shell"); - public static final ItemType SHULKER_SPAWN_EGG = register("minecraft:shulker_spawn_egg"); - public static final ItemType SIGN = register("minecraft:sign"); - public static final ItemType SILVERFISH_SPAWN_EGG = register("minecraft:silverfish_spawn_egg"); - public static final ItemType SKELETON_HORSE_SPAWN_EGG = register("minecraft:skeleton_horse_spawn_egg"); - public static final ItemType SKELETON_SKULL = register("minecraft:skeleton_skull"); - public static final ItemType SKELETON_SPAWN_EGG = register("minecraft:skeleton_spawn_egg"); - public static final ItemType SLIME_BALL = register("minecraft:slime_ball"); - public static final ItemType SLIME_BLOCK = register("minecraft:slime_block"); - public static final ItemType SLIME_SPAWN_EGG = register("minecraft:slime_spawn_egg"); - public static final ItemType SMOOTH_QUARTZ = register("minecraft:smooth_quartz"); - public static final ItemType SMOOTH_RED_SANDSTONE = register("minecraft:smooth_red_sandstone"); - public static final ItemType SMOOTH_SANDSTONE = register("minecraft:smooth_sandstone"); - public static final ItemType SMOOTH_STONE = register("minecraft:smooth_stone"); - public static final ItemType SNOW = register("minecraft:snow"); - public static final ItemType SNOW_BLOCK = register("minecraft:snow_block"); - public static final ItemType SNOWBALL = register("minecraft:snowball"); - public static final ItemType SOUL_SAND = register("minecraft:soul_sand"); - public static final ItemType SPAWNER = register("minecraft:spawner"); - public static final ItemType SPECTRAL_ARROW = register("minecraft:spectral_arrow"); - public static final ItemType SPIDER_EYE = register("minecraft:spider_eye"); - public static final ItemType SPIDER_SPAWN_EGG = register("minecraft:spider_spawn_egg"); - public static final ItemType SPLASH_POTION = register("minecraft:splash_potion"); - public static final ItemType SPONGE = register("minecraft:sponge"); - public static final ItemType SPRUCE_BOAT = register("minecraft:spruce_boat"); - public static final ItemType SPRUCE_BUTTON = register("minecraft:spruce_button"); - public static final ItemType SPRUCE_DOOR = register("minecraft:spruce_door"); - public static final ItemType SPRUCE_FENCE = register("minecraft:spruce_fence"); - public static final ItemType SPRUCE_FENCE_GATE = register("minecraft:spruce_fence_gate"); - public static final ItemType SPRUCE_LEAVES = register("minecraft:spruce_leaves"); - public static final ItemType SPRUCE_LOG = register("minecraft:spruce_log"); - public static final ItemType SPRUCE_PLANKS = register("minecraft:spruce_planks"); - public static final ItemType SPRUCE_PRESSURE_PLATE = register("minecraft:spruce_pressure_plate"); - public static final ItemType SPRUCE_SAPLING = register("minecraft:spruce_sapling"); - public static final ItemType SPRUCE_SLAB = register("minecraft:spruce_slab"); - public static final ItemType SPRUCE_STAIRS = register("minecraft:spruce_stairs"); - public static final ItemType SPRUCE_TRAPDOOR = register("minecraft:spruce_trapdoor"); - public static final ItemType SPRUCE_WOOD = register("minecraft:spruce_wood"); - public static final ItemType SQUID_SPAWN_EGG = register("minecraft:squid_spawn_egg"); - public static final ItemType STICK = register("minecraft:stick"); - public static final ItemType STICKY_PISTON = register("minecraft:sticky_piston"); - public static final ItemType STONE = register("minecraft:stone"); - public static final ItemType STONE_AXE = register("minecraft:stone_axe"); - public static final ItemType STONE_BRICK_SLAB = register("minecraft:stone_brick_slab"); - public static final ItemType STONE_BRICK_STAIRS = register("minecraft:stone_brick_stairs"); - public static final ItemType STONE_BRICKS = register("minecraft:stone_bricks"); - public static final ItemType STONE_BUTTON = register("minecraft:stone_button"); - public static final ItemType STONE_HOE = register("minecraft:stone_hoe"); - public static final ItemType STONE_PICKAXE = register("minecraft:stone_pickaxe"); - public static final ItemType STONE_PRESSURE_PLATE = register("minecraft:stone_pressure_plate"); - public static final ItemType STONE_SHOVEL = register("minecraft:stone_shovel"); - public static final ItemType STONE_SLAB = register("minecraft:stone_slab"); - public static final ItemType STONE_SWORD = register("minecraft:stone_sword"); - public static final ItemType STRAY_SPAWN_EGG = register("minecraft:stray_spawn_egg"); - public static final ItemType STRING = register("minecraft:string"); - public static final ItemType STRIPPED_ACACIA_LOG = register("minecraft:stripped_acacia_log"); - public static final ItemType STRIPPED_ACACIA_WOOD = register("minecraft:stripped_acacia_wood"); - public static final ItemType STRIPPED_BIRCH_LOG = register("minecraft:stripped_birch_log"); - public static final ItemType STRIPPED_BIRCH_WOOD = register("minecraft:stripped_birch_wood"); - public static final ItemType STRIPPED_DARK_OAK_LOG = register("minecraft:stripped_dark_oak_log"); - public static final ItemType STRIPPED_DARK_OAK_WOOD = register("minecraft:stripped_dark_oak_wood"); - public static final ItemType STRIPPED_JUNGLE_LOG = register("minecraft:stripped_jungle_log"); - public static final ItemType STRIPPED_JUNGLE_WOOD = register("minecraft:stripped_jungle_wood"); - public static final ItemType STRIPPED_OAK_LOG = register("minecraft:stripped_oak_log"); - public static final ItemType STRIPPED_OAK_WOOD = register("minecraft:stripped_oak_wood"); - public static final ItemType STRIPPED_SPRUCE_LOG = register("minecraft:stripped_spruce_log"); - public static final ItemType STRIPPED_SPRUCE_WOOD = register("minecraft:stripped_spruce_wood"); - public static final ItemType STRUCTURE_BLOCK = register("minecraft:structure_block"); - public static final ItemType STRUCTURE_VOID = register("minecraft:structure_void"); - public static final ItemType SUGAR = register("minecraft:sugar"); - public static final ItemType SUGAR_CANE = register("minecraft:sugar_cane"); - public static final ItemType SUNFLOWER = register("minecraft:sunflower"); - public static final ItemType TALL_GRASS = register("minecraft:tall_grass"); - public static final ItemType TERRACOTTA = register("minecraft:terracotta"); - public static final ItemType TIPPED_ARROW = register("minecraft:tipped_arrow"); - public static final ItemType TNT = register("minecraft:tnt"); - public static final ItemType TNT_MINECART = register("minecraft:tnt_minecart"); - public static final ItemType TORCH = register("minecraft:torch"); - public static final ItemType TOTEM_OF_UNDYING = register("minecraft:totem_of_undying"); - public static final ItemType TRAPPED_CHEST = register("minecraft:trapped_chest"); - public static final ItemType TRIDENT = register("minecraft:trident"); - public static final ItemType TRIPWIRE_HOOK = register("minecraft:tripwire_hook"); - public static final ItemType TROPICAL_FISH = register("minecraft:tropical_fish"); - public static final ItemType TROPICAL_FISH_BUCKET = register("minecraft:tropical_fish_bucket"); - public static final ItemType TROPICAL_FISH_SPAWN_EGG = register("minecraft:tropical_fish_spawn_egg"); - public static final ItemType TUBE_CORAL = register("minecraft:tube_coral"); - public static final ItemType TUBE_CORAL_BLOCK = register("minecraft:tube_coral_block"); - public static final ItemType TUBE_CORAL_FAN = register("minecraft:tube_coral_fan"); - public static final ItemType TURTLE_EGG = register("minecraft:turtle_egg"); - public static final ItemType TURTLE_HELMET = register("minecraft:turtle_helmet"); - public static final ItemType TURTLE_SPAWN_EGG = register("minecraft:turtle_spawn_egg"); - public static final ItemType VEX_SPAWN_EGG = register("minecraft:vex_spawn_egg"); - public static final ItemType VILLAGER_SPAWN_EGG = register("minecraft:villager_spawn_egg"); - public static final ItemType VINDICATOR_SPAWN_EGG = register("minecraft:vindicator_spawn_egg"); - public static final ItemType VINE = register("minecraft:vine"); - public static final ItemType WATER_BUCKET = register("minecraft:water_bucket"); - public static final ItemType WET_SPONGE = register("minecraft:wet_sponge"); - public static final ItemType WHEAT = register("minecraft:wheat"); - public static final ItemType WHEAT_SEEDS = register("minecraft:wheat_seeds"); - public static final ItemType WHITE_BANNER = register("minecraft:white_banner"); - public static final ItemType WHITE_BED = register("minecraft:white_bed"); - public static final ItemType WHITE_CARPET = register("minecraft:white_carpet"); - public static final ItemType WHITE_CONCRETE = register("minecraft:white_concrete"); - public static final ItemType WHITE_CONCRETE_POWDER = register("minecraft:white_concrete_powder"); - public static final ItemType WHITE_GLAZED_TERRACOTTA = register("minecraft:white_glazed_terracotta"); - public static final ItemType WHITE_SHULKER_BOX = register("minecraft:white_shulker_box"); - public static final ItemType WHITE_STAINED_GLASS = register("minecraft:white_stained_glass"); - public static final ItemType WHITE_STAINED_GLASS_PANE = register("minecraft:white_stained_glass_pane"); - public static final ItemType WHITE_TERRACOTTA = register("minecraft:white_terracotta"); - public static final ItemType WHITE_TULIP = register("minecraft:white_tulip"); - public static final ItemType WHITE_WOOL = register("minecraft:white_wool"); - public static final ItemType WITCH_SPAWN_EGG = register("minecraft:witch_spawn_egg"); - public static final ItemType WITHER_SKELETON_SKULL = register("minecraft:wither_skeleton_skull"); - public static final ItemType WITHER_SKELETON_SPAWN_EGG = register("minecraft:wither_skeleton_spawn_egg"); - public static final ItemType WOLF_SPAWN_EGG = register("minecraft:wolf_spawn_egg"); - public static final ItemType WOODEN_AXE = register("minecraft:wooden_axe"); - public static final ItemType WOODEN_HOE = register("minecraft:wooden_hoe"); - public static final ItemType WOODEN_PICKAXE = register("minecraft:wooden_pickaxe"); - public static final ItemType WOODEN_SHOVEL = register("minecraft:wooden_shovel"); - public static final ItemType WOODEN_SWORD = register("minecraft:wooden_sword"); - public static final ItemType WRITABLE_BOOK = register("minecraft:writable_book"); - public static final ItemType WRITTEN_BOOK = register("minecraft:written_book"); - public static final ItemType YELLOW_BANNER = register("minecraft:yellow_banner"); - public static final ItemType YELLOW_BED = register("minecraft:yellow_bed"); - public static final ItemType YELLOW_CARPET = register("minecraft:yellow_carpet"); - public static final ItemType YELLOW_CONCRETE = register("minecraft:yellow_concrete"); - public static final ItemType YELLOW_CONCRETE_POWDER = register("minecraft:yellow_concrete_powder"); - public static final ItemType YELLOW_GLAZED_TERRACOTTA = register("minecraft:yellow_glazed_terracotta"); - public static final ItemType YELLOW_SHULKER_BOX = register("minecraft:yellow_shulker_box"); - public static final ItemType YELLOW_STAINED_GLASS = register("minecraft:yellow_stained_glass"); - public static final ItemType YELLOW_STAINED_GLASS_PANE = register("minecraft:yellow_stained_glass_pane"); - public static final ItemType YELLOW_TERRACOTTA = register("minecraft:yellow_terracotta"); - public static final ItemType YELLOW_WOOL = register("minecraft:yellow_wool"); - public static final ItemType ZOMBIE_HEAD = register("minecraft:zombie_head"); - public static final ItemType ZOMBIE_HORSE_SPAWN_EGG = register("minecraft:zombie_horse_spawn_egg"); - public static final ItemType ZOMBIE_PIGMAN_SPAWN_EGG = register("minecraft:zombie_pigman_spawn_egg"); - public static final ItemType ZOMBIE_SPAWN_EGG = register("minecraft:zombie_spawn_egg"); - public static final ItemType ZOMBIE_VILLAGER_SPAWN_EGG = register("minecraft:zombie_villager_spawn_egg"); + @Nullable public static final ItemType ACACIA_BOAT = get("minecraft:acacia_boat"); + @Nullable public static final ItemType ACACIA_BUTTON = get("minecraft:acacia_button"); + @Nullable public static final ItemType ACACIA_DOOR = get("minecraft:acacia_door"); + @Nullable public static final ItemType ACACIA_FENCE = get("minecraft:acacia_fence"); + @Nullable public static final ItemType ACACIA_FENCE_GATE = get("minecraft:acacia_fence_gate"); + @Nullable public static final ItemType ACACIA_LEAVES = get("minecraft:acacia_leaves"); + @Nullable public static final ItemType ACACIA_LOG = get("minecraft:acacia_log"); + @Nullable public static final ItemType ACACIA_PLANKS = get("minecraft:acacia_planks"); + @Nullable public static final ItemType ACACIA_PRESSURE_PLATE = get("minecraft:acacia_pressure_plate"); + @Nullable public static final ItemType ACACIA_SAPLING = get("minecraft:acacia_sapling"); + @Nullable public static final ItemType ACACIA_SLAB = get("minecraft:acacia_slab"); + @Nullable public static final ItemType ACACIA_STAIRS = get("minecraft:acacia_stairs"); + @Nullable public static final ItemType ACACIA_TRAPDOOR = get("minecraft:acacia_trapdoor"); + @Nullable public static final ItemType ACACIA_WOOD = get("minecraft:acacia_wood"); + @Nullable public static final ItemType ACTIVATOR_RAIL = get("minecraft:activator_rail"); + @Nullable public static final ItemType AIR = get("minecraft:air"); + @Nullable public static final ItemType ALLIUM = get("minecraft:allium"); + @Nullable public static final ItemType ANDESITE = get("minecraft:andesite"); + @Nullable public static final ItemType ANVIL = get("minecraft:anvil"); + @Nullable public static final ItemType APPLE = get("minecraft:apple"); + @Nullable public static final ItemType ARMOR_STAND = get("minecraft:armor_stand"); + @Nullable public static final ItemType ARROW = get("minecraft:arrow"); + @Nullable public static final ItemType AZURE_BLUET = get("minecraft:azure_bluet"); + @Nullable public static final ItemType BAKED_POTATO = get("minecraft:baked_potato"); + @Nullable public static final ItemType BARRIER = get("minecraft:barrier"); + @Nullable public static final ItemType BAT_SPAWN_EGG = get("minecraft:bat_spawn_egg"); + @Nullable public static final ItemType BEACON = get("minecraft:beacon"); + @Nullable public static final ItemType BEDROCK = get("minecraft:bedrock"); + @Nullable public static final ItemType BEEF = get("minecraft:beef"); + @Nullable public static final ItemType BEETROOT = get("minecraft:beetroot"); + @Nullable public static final ItemType BEETROOT_SEEDS = get("minecraft:beetroot_seeds"); + @Nullable public static final ItemType BEETROOT_SOUP = get("minecraft:beetroot_soup"); + @Nullable public static final ItemType BIRCH_BOAT = get("minecraft:birch_boat"); + @Nullable public static final ItemType BIRCH_BUTTON = get("minecraft:birch_button"); + @Nullable public static final ItemType BIRCH_DOOR = get("minecraft:birch_door"); + @Nullable public static final ItemType BIRCH_FENCE = get("minecraft:birch_fence"); + @Nullable public static final ItemType BIRCH_FENCE_GATE = get("minecraft:birch_fence_gate"); + @Nullable public static final ItemType BIRCH_LEAVES = get("minecraft:birch_leaves"); + @Nullable public static final ItemType BIRCH_LOG = get("minecraft:birch_log"); + @Nullable public static final ItemType BIRCH_PLANKS = get("minecraft:birch_planks"); + @Nullable public static final ItemType BIRCH_PRESSURE_PLATE = get("minecraft:birch_pressure_plate"); + @Nullable public static final ItemType BIRCH_SAPLING = get("minecraft:birch_sapling"); + @Nullable public static final ItemType BIRCH_SLAB = get("minecraft:birch_slab"); + @Nullable public static final ItemType BIRCH_STAIRS = get("minecraft:birch_stairs"); + @Nullable public static final ItemType BIRCH_TRAPDOOR = get("minecraft:birch_trapdoor"); + @Nullable public static final ItemType BIRCH_WOOD = get("minecraft:birch_wood"); + @Nullable public static final ItemType BLACK_BANNER = get("minecraft:black_banner"); + @Nullable public static final ItemType BLACK_BED = get("minecraft:black_bed"); + @Nullable public static final ItemType BLACK_CARPET = get("minecraft:black_carpet"); + @Nullable public static final ItemType BLACK_CONCRETE = get("minecraft:black_concrete"); + @Nullable public static final ItemType BLACK_CONCRETE_POWDER = get("minecraft:black_concrete_powder"); + @Nullable public static final ItemType BLACK_GLAZED_TERRACOTTA = get("minecraft:black_glazed_terracotta"); + @Nullable public static final ItemType BLACK_SHULKER_BOX = get("minecraft:black_shulker_box"); + @Nullable public static final ItemType BLACK_STAINED_GLASS = get("minecraft:black_stained_glass"); + @Nullable public static final ItemType BLACK_STAINED_GLASS_PANE = get("minecraft:black_stained_glass_pane"); + @Nullable public static final ItemType BLACK_TERRACOTTA = get("minecraft:black_terracotta"); + @Nullable public static final ItemType BLACK_WOOL = get("minecraft:black_wool"); + @Nullable public static final ItemType BLAZE_POWDER = get("minecraft:blaze_powder"); + @Nullable public static final ItemType BLAZE_ROD = get("minecraft:blaze_rod"); + @Nullable public static final ItemType BLAZE_SPAWN_EGG = get("minecraft:blaze_spawn_egg"); + @Nullable public static final ItemType BLUE_BANNER = get("minecraft:blue_banner"); + @Nullable public static final ItemType BLUE_BED = get("minecraft:blue_bed"); + @Nullable public static final ItemType BLUE_CARPET = get("minecraft:blue_carpet"); + @Nullable public static final ItemType BLUE_CONCRETE = get("minecraft:blue_concrete"); + @Nullable public static final ItemType BLUE_CONCRETE_POWDER = get("minecraft:blue_concrete_powder"); + @Nullable public static final ItemType BLUE_GLAZED_TERRACOTTA = get("minecraft:blue_glazed_terracotta"); + @Nullable public static final ItemType BLUE_ICE = get("minecraft:blue_ice"); + @Nullable public static final ItemType BLUE_ORCHID = get("minecraft:blue_orchid"); + @Nullable public static final ItemType BLUE_SHULKER_BOX = get("minecraft:blue_shulker_box"); + @Nullable public static final ItemType BLUE_STAINED_GLASS = get("minecraft:blue_stained_glass"); + @Nullable public static final ItemType BLUE_STAINED_GLASS_PANE = get("minecraft:blue_stained_glass_pane"); + @Nullable public static final ItemType BLUE_TERRACOTTA = get("minecraft:blue_terracotta"); + @Nullable public static final ItemType BLUE_WOOL = get("minecraft:blue_wool"); + @Nullable public static final ItemType BONE = get("minecraft:bone"); + @Nullable public static final ItemType BONE_BLOCK = get("minecraft:bone_block"); + @Nullable public static final ItemType BONE_MEAL = get("minecraft:bone_meal"); + @Nullable public static final ItemType BOOK = get("minecraft:book"); + @Nullable public static final ItemType BOOKSHELF = get("minecraft:bookshelf"); + @Nullable public static final ItemType BOW = get("minecraft:bow"); + @Nullable public static final ItemType BOWL = get("minecraft:bowl"); + @Nullable public static final ItemType BRAIN_CORAL = get("minecraft:brain_coral"); + @Nullable public static final ItemType BRAIN_CORAL_BLOCK = get("minecraft:brain_coral_block"); + @Nullable public static final ItemType BRAIN_CORAL_FAN = get("minecraft:brain_coral_fan"); + @Nullable public static final ItemType BREAD = get("minecraft:bread"); + @Nullable public static final ItemType BREWING_STAND = get("minecraft:brewing_stand"); + @Nullable public static final ItemType BRICK = get("minecraft:brick"); + @Nullable public static final ItemType BRICK_SLAB = get("minecraft:brick_slab"); + @Nullable public static final ItemType BRICK_STAIRS = get("minecraft:brick_stairs"); + @Nullable public static final ItemType BRICKS = get("minecraft:bricks"); + @Nullable public static final ItemType BROWN_BANNER = get("minecraft:brown_banner"); + @Nullable public static final ItemType BROWN_BED = get("minecraft:brown_bed"); + @Nullable public static final ItemType BROWN_CARPET = get("minecraft:brown_carpet"); + @Nullable public static final ItemType BROWN_CONCRETE = get("minecraft:brown_concrete"); + @Nullable public static final ItemType BROWN_CONCRETE_POWDER = get("minecraft:brown_concrete_powder"); + @Nullable public static final ItemType BROWN_GLAZED_TERRACOTTA = get("minecraft:brown_glazed_terracotta"); + @Nullable public static final ItemType BROWN_MUSHROOM = get("minecraft:brown_mushroom"); + @Nullable public static final ItemType BROWN_MUSHROOM_BLOCK = get("minecraft:brown_mushroom_block"); + @Nullable public static final ItemType BROWN_SHULKER_BOX = get("minecraft:brown_shulker_box"); + @Nullable public static final ItemType BROWN_STAINED_GLASS = get("minecraft:brown_stained_glass"); + @Nullable public static final ItemType BROWN_STAINED_GLASS_PANE = get("minecraft:brown_stained_glass_pane"); + @Nullable public static final ItemType BROWN_TERRACOTTA = get("minecraft:brown_terracotta"); + @Nullable public static final ItemType BROWN_WOOL = get("minecraft:brown_wool"); + @Nullable public static final ItemType BUBBLE_CORAL = get("minecraft:bubble_coral"); + @Nullable public static final ItemType BUBBLE_CORAL_BLOCK = get("minecraft:bubble_coral_block"); + @Nullable public static final ItemType BUBBLE_CORAL_FAN = get("minecraft:bubble_coral_fan"); + @Nullable public static final ItemType BUCKET = get("minecraft:bucket"); + @Nullable public static final ItemType CACTUS = get("minecraft:cactus"); + @Nullable public static final ItemType CACTUS_GREEN = get("minecraft:cactus_green"); + @Nullable public static final ItemType CAKE = get("minecraft:cake"); + @Nullable public static final ItemType CARROT = get("minecraft:carrot"); + @Nullable public static final ItemType CARROT_ON_A_STICK = get("minecraft:carrot_on_a_stick"); + @Nullable public static final ItemType CARVED_PUMPKIN = get("minecraft:carved_pumpkin"); + @Nullable public static final ItemType CAULDRON = get("minecraft:cauldron"); + @Nullable public static final ItemType CAVE_SPIDER_SPAWN_EGG = get("minecraft:cave_spider_spawn_egg"); + @Nullable public static final ItemType CHAIN_COMMAND_BLOCK = get("minecraft:chain_command_block"); + @Nullable public static final ItemType CHAINMAIL_BOOTS = get("minecraft:chainmail_boots"); + @Nullable public static final ItemType CHAINMAIL_CHESTPLATE = get("minecraft:chainmail_chestplate"); + @Nullable public static final ItemType CHAINMAIL_HELMET = get("minecraft:chainmail_helmet"); + @Nullable public static final ItemType CHAINMAIL_LEGGINGS = get("minecraft:chainmail_leggings"); + @Nullable public static final ItemType CHARCOAL = get("minecraft:charcoal"); + @Nullable public static final ItemType CHEST = get("minecraft:chest"); + @Nullable public static final ItemType CHEST_MINECART = get("minecraft:chest_minecart"); + @Nullable public static final ItemType CHICKEN = get("minecraft:chicken"); + @Nullable public static final ItemType CHICKEN_SPAWN_EGG = get("minecraft:chicken_spawn_egg"); + @Nullable public static final ItemType CHIPPED_ANVIL = get("minecraft:chipped_anvil"); + @Nullable public static final ItemType CHISELED_QUARTZ_BLOCK = get("minecraft:chiseled_quartz_block"); + @Nullable public static final ItemType CHISELED_RED_SANDSTONE = get("minecraft:chiseled_red_sandstone"); + @Nullable public static final ItemType CHISELED_SANDSTONE = get("minecraft:chiseled_sandstone"); + @Nullable public static final ItemType CHISELED_STONE_BRICKS = get("minecraft:chiseled_stone_bricks"); + @Nullable public static final ItemType CHORUS_FLOWER = get("minecraft:chorus_flower"); + @Nullable public static final ItemType CHORUS_FRUIT = get("minecraft:chorus_fruit"); + @Nullable public static final ItemType CHORUS_PLANT = get("minecraft:chorus_plant"); + @Nullable public static final ItemType CLAY = get("minecraft:clay"); + @Nullable public static final ItemType CLAY_BALL = get("minecraft:clay_ball"); + @Nullable public static final ItemType CLOCK = get("minecraft:clock"); + @Nullable public static final ItemType COAL = get("minecraft:coal"); + @Nullable public static final ItemType COAL_BLOCK = get("minecraft:coal_block"); + @Nullable public static final ItemType COAL_ORE = get("minecraft:coal_ore"); + @Nullable public static final ItemType COARSE_DIRT = get("minecraft:coarse_dirt"); + @Nullable public static final ItemType COBBLESTONE = get("minecraft:cobblestone"); + @Nullable public static final ItemType COBBLESTONE_SLAB = get("minecraft:cobblestone_slab"); + @Nullable public static final ItemType COBBLESTONE_STAIRS = get("minecraft:cobblestone_stairs"); + @Nullable public static final ItemType COBBLESTONE_WALL = get("minecraft:cobblestone_wall"); + @Nullable public static final ItemType COBWEB = get("minecraft:cobweb"); + @Nullable public static final ItemType COCOA_BEANS = get("minecraft:cocoa_beans"); + @Nullable public static final ItemType COD = get("minecraft:cod"); + @Nullable public static final ItemType COD_BUCKET = get("minecraft:cod_bucket"); + @Nullable public static final ItemType COD_SPAWN_EGG = get("minecraft:cod_spawn_egg"); + @Nullable public static final ItemType COMMAND_BLOCK = get("minecraft:command_block"); + @Nullable public static final ItemType COMMAND_BLOCK_MINECART = get("minecraft:command_block_minecart"); + @Nullable public static final ItemType COMPARATOR = get("minecraft:comparator"); + @Nullable public static final ItemType COMPASS = get("minecraft:compass"); + @Nullable public static final ItemType CONDUIT = get("minecraft:conduit"); + @Nullable public static final ItemType COOKED_BEEF = get("minecraft:cooked_beef"); + @Nullable public static final ItemType COOKED_CHICKEN = get("minecraft:cooked_chicken"); + @Nullable public static final ItemType COOKED_COD = get("minecraft:cooked_cod"); + @Nullable public static final ItemType COOKED_MUTTON = get("minecraft:cooked_mutton"); + @Nullable public static final ItemType COOKED_PORKCHOP = get("minecraft:cooked_porkchop"); + @Nullable public static final ItemType COOKED_RABBIT = get("minecraft:cooked_rabbit"); + @Nullable public static final ItemType COOKED_SALMON = get("minecraft:cooked_salmon"); + @Nullable public static final ItemType COOKIE = get("minecraft:cookie"); + @Nullable public static final ItemType COW_SPAWN_EGG = get("minecraft:cow_spawn_egg"); + @Nullable public static final ItemType CRACKED_STONE_BRICKS = get("minecraft:cracked_stone_bricks"); + @Nullable public static final ItemType CRAFTING_TABLE = get("minecraft:crafting_table"); + @Nullable public static final ItemType CREEPER_HEAD = get("minecraft:creeper_head"); + @Nullable public static final ItemType CREEPER_SPAWN_EGG = get("minecraft:creeper_spawn_egg"); + @Nullable public static final ItemType CUT_RED_SANDSTONE = get("minecraft:cut_red_sandstone"); + @Nullable public static final ItemType CUT_SANDSTONE = get("minecraft:cut_sandstone"); + @Nullable public static final ItemType CYAN_BANNER = get("minecraft:cyan_banner"); + @Nullable public static final ItemType CYAN_BED = get("minecraft:cyan_bed"); + @Nullable public static final ItemType CYAN_CARPET = get("minecraft:cyan_carpet"); + @Nullable public static final ItemType CYAN_CONCRETE = get("minecraft:cyan_concrete"); + @Nullable public static final ItemType CYAN_CONCRETE_POWDER = get("minecraft:cyan_concrete_powder"); + @Nullable public static final ItemType CYAN_DYE = get("minecraft:cyan_dye"); + @Nullable public static final ItemType CYAN_GLAZED_TERRACOTTA = get("minecraft:cyan_glazed_terracotta"); + @Nullable public static final ItemType CYAN_SHULKER_BOX = get("minecraft:cyan_shulker_box"); + @Nullable public static final ItemType CYAN_STAINED_GLASS = get("minecraft:cyan_stained_glass"); + @Nullable public static final ItemType CYAN_STAINED_GLASS_PANE = get("minecraft:cyan_stained_glass_pane"); + @Nullable public static final ItemType CYAN_TERRACOTTA = get("minecraft:cyan_terracotta"); + @Nullable public static final ItemType CYAN_WOOL = get("minecraft:cyan_wool"); + @Nullable public static final ItemType DAMAGED_ANVIL = get("minecraft:damaged_anvil"); + @Nullable public static final ItemType DANDELION = get("minecraft:dandelion"); + @Nullable public static final ItemType DANDELION_YELLOW = get("minecraft:dandelion_yellow"); + @Nullable public static final ItemType DARK_OAK_BOAT = get("minecraft:dark_oak_boat"); + @Nullable public static final ItemType DARK_OAK_BUTTON = get("minecraft:dark_oak_button"); + @Nullable public static final ItemType DARK_OAK_DOOR = get("minecraft:dark_oak_door"); + @Nullable public static final ItemType DARK_OAK_FENCE = get("minecraft:dark_oak_fence"); + @Nullable public static final ItemType DARK_OAK_FENCE_GATE = get("minecraft:dark_oak_fence_gate"); + @Nullable public static final ItemType DARK_OAK_LEAVES = get("minecraft:dark_oak_leaves"); + @Nullable public static final ItemType DARK_OAK_LOG = get("minecraft:dark_oak_log"); + @Nullable public static final ItemType DARK_OAK_PLANKS = get("minecraft:dark_oak_planks"); + @Nullable public static final ItemType DARK_OAK_PRESSURE_PLATE = get("minecraft:dark_oak_pressure_plate"); + @Nullable public static final ItemType DARK_OAK_SAPLING = get("minecraft:dark_oak_sapling"); + @Nullable public static final ItemType DARK_OAK_SLAB = get("minecraft:dark_oak_slab"); + @Nullable public static final ItemType DARK_OAK_STAIRS = get("minecraft:dark_oak_stairs"); + @Nullable public static final ItemType DARK_OAK_TRAPDOOR = get("minecraft:dark_oak_trapdoor"); + @Nullable public static final ItemType DARK_OAK_WOOD = get("minecraft:dark_oak_wood"); + @Nullable public static final ItemType DARK_PRISMARINE = get("minecraft:dark_prismarine"); + @Nullable public static final ItemType DARK_PRISMARINE_SLAB = get("minecraft:dark_prismarine_slab"); + @Nullable public static final ItemType DARK_PRISMARINE_STAIRS = get("minecraft:dark_prismarine_stairs"); + @Nullable public static final ItemType DAYLIGHT_DETECTOR = get("minecraft:daylight_detector"); + @Nullable public static final ItemType DEAD_BRAIN_CORAL = get("minecraft:dead_brain_coral"); + @Nullable public static final ItemType DEAD_BRAIN_CORAL_BLOCK = get("minecraft:dead_brain_coral_block"); + @Nullable public static final ItemType DEAD_BRAIN_CORAL_FAN = get("minecraft:dead_brain_coral_fan"); + @Nullable public static final ItemType DEAD_BUBBLE_CORAL = get("minecraft:dead_bubble_coral"); + @Nullable public static final ItemType DEAD_BUBBLE_CORAL_BLOCK = get("minecraft:dead_bubble_coral_block"); + @Nullable public static final ItemType DEAD_BUBBLE_CORAL_FAN = get("minecraft:dead_bubble_coral_fan"); + @Nullable public static final ItemType DEAD_BUSH = get("minecraft:dead_bush"); + @Nullable public static final ItemType DEAD_FIRE_CORAL = get("minecraft:dead_fire_coral"); + @Nullable public static final ItemType DEAD_FIRE_CORAL_BLOCK = get("minecraft:dead_fire_coral_block"); + @Nullable public static final ItemType DEAD_FIRE_CORAL_FAN = get("minecraft:dead_fire_coral_fan"); + @Nullable public static final ItemType DEAD_HORN_CORAL = get("minecraft:dead_horn_coral"); + @Nullable public static final ItemType DEAD_HORN_CORAL_BLOCK = get("minecraft:dead_horn_coral_block"); + @Nullable public static final ItemType DEAD_HORN_CORAL_FAN = get("minecraft:dead_horn_coral_fan"); + @Nullable public static final ItemType DEAD_TUBE_CORAL = get("minecraft:dead_tube_coral"); + @Nullable public static final ItemType DEAD_TUBE_CORAL_BLOCK = get("minecraft:dead_tube_coral_block"); + @Nullable public static final ItemType DEAD_TUBE_CORAL_FAN = get("minecraft:dead_tube_coral_fan"); + @Nullable public static final ItemType DEBUG_STICK = get("minecraft:debug_stick"); + @Nullable public static final ItemType DETECTOR_RAIL = get("minecraft:detector_rail"); + @Nullable public static final ItemType DIAMOND = get("minecraft:diamond"); + @Nullable public static final ItemType DIAMOND_AXE = get("minecraft:diamond_axe"); + @Nullable public static final ItemType DIAMOND_BLOCK = get("minecraft:diamond_block"); + @Nullable public static final ItemType DIAMOND_BOOTS = get("minecraft:diamond_boots"); + @Nullable public static final ItemType DIAMOND_CHESTPLATE = get("minecraft:diamond_chestplate"); + @Nullable public static final ItemType DIAMOND_HELMET = get("minecraft:diamond_helmet"); + @Nullable public static final ItemType DIAMOND_HOE = get("minecraft:diamond_hoe"); + @Nullable public static final ItemType DIAMOND_HORSE_ARMOR = get("minecraft:diamond_horse_armor"); + @Nullable public static final ItemType DIAMOND_LEGGINGS = get("minecraft:diamond_leggings"); + @Nullable public static final ItemType DIAMOND_ORE = get("minecraft:diamond_ore"); + @Nullable public static final ItemType DIAMOND_PICKAXE = get("minecraft:diamond_pickaxe"); + @Nullable public static final ItemType DIAMOND_SHOVEL = get("minecraft:diamond_shovel"); + @Nullable public static final ItemType DIAMOND_SWORD = get("minecraft:diamond_sword"); + @Nullable public static final ItemType DIORITE = get("minecraft:diorite"); + @Nullable public static final ItemType DIRT = get("minecraft:dirt"); + @Nullable public static final ItemType DISPENSER = get("minecraft:dispenser"); + @Nullable public static final ItemType DOLPHIN_SPAWN_EGG = get("minecraft:dolphin_spawn_egg"); + @Nullable public static final ItemType DONKEY_SPAWN_EGG = get("minecraft:donkey_spawn_egg"); + @Nullable public static final ItemType DRAGON_BREATH = get("minecraft:dragon_breath"); + @Nullable public static final ItemType DRAGON_EGG = get("minecraft:dragon_egg"); + @Nullable public static final ItemType DRAGON_HEAD = get("minecraft:dragon_head"); + @Nullable public static final ItemType DRIED_KELP = get("minecraft:dried_kelp"); + @Nullable public static final ItemType DRIED_KELP_BLOCK = get("minecraft:dried_kelp_block"); + @Nullable public static final ItemType DROPPER = get("minecraft:dropper"); + @Nullable public static final ItemType DROWNED_SPAWN_EGG = get("minecraft:drowned_spawn_egg"); + @Nullable public static final ItemType EGG = get("minecraft:egg"); + @Nullable public static final ItemType ELDER_GUARDIAN_SPAWN_EGG = get("minecraft:elder_guardian_spawn_egg"); + @Nullable public static final ItemType ELYTRA = get("minecraft:elytra"); + @Nullable public static final ItemType EMERALD = get("minecraft:emerald"); + @Nullable public static final ItemType EMERALD_BLOCK = get("minecraft:emerald_block"); + @Nullable public static final ItemType EMERALD_ORE = get("minecraft:emerald_ore"); + @Nullable public static final ItemType ENCHANTED_BOOK = get("minecraft:enchanted_book"); + @Nullable public static final ItemType ENCHANTED_GOLDEN_APPLE = get("minecraft:enchanted_golden_apple"); + @Nullable public static final ItemType ENCHANTING_TABLE = get("minecraft:enchanting_table"); + @Nullable public static final ItemType END_CRYSTAL = get("minecraft:end_crystal"); + @Nullable public static final ItemType END_PORTAL_FRAME = get("minecraft:end_portal_frame"); + @Nullable public static final ItemType END_ROD = get("minecraft:end_rod"); + @Nullable public static final ItemType END_STONE = get("minecraft:end_stone"); + @Nullable public static final ItemType END_STONE_BRICKS = get("minecraft:end_stone_bricks"); + @Nullable public static final ItemType ENDER_CHEST = get("minecraft:ender_chest"); + @Nullable public static final ItemType ENDER_EYE = get("minecraft:ender_eye"); + @Nullable public static final ItemType ENDER_PEARL = get("minecraft:ender_pearl"); + @Nullable public static final ItemType ENDERMAN_SPAWN_EGG = get("minecraft:enderman_spawn_egg"); + @Nullable public static final ItemType ENDERMITE_SPAWN_EGG = get("minecraft:endermite_spawn_egg"); + @Nullable public static final ItemType EVOKER_SPAWN_EGG = get("minecraft:evoker_spawn_egg"); + @Nullable public static final ItemType EXPERIENCE_BOTTLE = get("minecraft:experience_bottle"); + @Nullable public static final ItemType FARMLAND = get("minecraft:farmland"); + @Nullable public static final ItemType FEATHER = get("minecraft:feather"); + @Nullable public static final ItemType FERMENTED_SPIDER_EYE = get("minecraft:fermented_spider_eye"); + @Nullable public static final ItemType FERN = get("minecraft:fern"); + @Nullable public static final ItemType FILLED_MAP = get("minecraft:filled_map"); + @Nullable public static final ItemType FIRE_CHARGE = get("minecraft:fire_charge"); + @Nullable public static final ItemType FIRE_CORAL = get("minecraft:fire_coral"); + @Nullable public static final ItemType FIRE_CORAL_BLOCK = get("minecraft:fire_coral_block"); + @Nullable public static final ItemType FIRE_CORAL_FAN = get("minecraft:fire_coral_fan"); + @Nullable public static final ItemType FIREWORK_ROCKET = get("minecraft:firework_rocket"); + @Nullable public static final ItemType FIREWORK_STAR = get("minecraft:firework_star"); + @Nullable public static final ItemType FISHING_ROD = get("minecraft:fishing_rod"); + @Nullable public static final ItemType FLINT = get("minecraft:flint"); + @Nullable public static final ItemType FLINT_AND_STEEL = get("minecraft:flint_and_steel"); + @Nullable public static final ItemType FLOWER_POT = get("minecraft:flower_pot"); + @Nullable public static final ItemType FURNACE = get("minecraft:furnace"); + @Nullable public static final ItemType FURNACE_MINECART = get("minecraft:furnace_minecart"); + @Nullable public static final ItemType GHAST_SPAWN_EGG = get("minecraft:ghast_spawn_egg"); + @Nullable public static final ItemType GHAST_TEAR = get("minecraft:ghast_tear"); + @Nullable public static final ItemType GLASS = get("minecraft:glass"); + @Nullable public static final ItemType GLASS_BOTTLE = get("minecraft:glass_bottle"); + @Nullable public static final ItemType GLASS_PANE = get("minecraft:glass_pane"); + @Nullable public static final ItemType GLISTERING_MELON_SLICE = get("minecraft:glistering_melon_slice"); + @Nullable public static final ItemType GLOWSTONE = get("minecraft:glowstone"); + @Nullable public static final ItemType GLOWSTONE_DUST = get("minecraft:glowstone_dust"); + @Nullable public static final ItemType GOLD_BLOCK = get("minecraft:gold_block"); + @Nullable public static final ItemType GOLD_INGOT = get("minecraft:gold_ingot"); + @Nullable public static final ItemType GOLD_NUGGET = get("minecraft:gold_nugget"); + @Nullable public static final ItemType GOLD_ORE = get("minecraft:gold_ore"); + @Nullable public static final ItemType GOLDEN_APPLE = get("minecraft:golden_apple"); + @Nullable public static final ItemType GOLDEN_AXE = get("minecraft:golden_axe"); + @Nullable public static final ItemType GOLDEN_BOOTS = get("minecraft:golden_boots"); + @Nullable public static final ItemType GOLDEN_CARROT = get("minecraft:golden_carrot"); + @Nullable public static final ItemType GOLDEN_CHESTPLATE = get("minecraft:golden_chestplate"); + @Nullable public static final ItemType GOLDEN_HELMET = get("minecraft:golden_helmet"); + @Nullable public static final ItemType GOLDEN_HOE = get("minecraft:golden_hoe"); + @Nullable public static final ItemType GOLDEN_HORSE_ARMOR = get("minecraft:golden_horse_armor"); + @Nullable public static final ItemType GOLDEN_LEGGINGS = get("minecraft:golden_leggings"); + @Nullable public static final ItemType GOLDEN_PICKAXE = get("minecraft:golden_pickaxe"); + @Nullable public static final ItemType GOLDEN_SHOVEL = get("minecraft:golden_shovel"); + @Nullable public static final ItemType GOLDEN_SWORD = get("minecraft:golden_sword"); + @Nullable public static final ItemType GRANITE = get("minecraft:granite"); + @Nullable public static final ItemType GRASS = get("minecraft:grass"); + @Nullable public static final ItemType GRASS_BLOCK = get("minecraft:grass_block"); + @Nullable public static final ItemType GRASS_PATH = get("minecraft:grass_path"); + @Nullable public static final ItemType GRAVEL = get("minecraft:gravel"); + @Nullable public static final ItemType GRAY_BANNER = get("minecraft:gray_banner"); + @Nullable public static final ItemType GRAY_BED = get("minecraft:gray_bed"); + @Nullable public static final ItemType GRAY_CARPET = get("minecraft:gray_carpet"); + @Nullable public static final ItemType GRAY_CONCRETE = get("minecraft:gray_concrete"); + @Nullable public static final ItemType GRAY_CONCRETE_POWDER = get("minecraft:gray_concrete_powder"); + @Nullable public static final ItemType GRAY_DYE = get("minecraft:gray_dye"); + @Nullable public static final ItemType GRAY_GLAZED_TERRACOTTA = get("minecraft:gray_glazed_terracotta"); + @Nullable public static final ItemType GRAY_SHULKER_BOX = get("minecraft:gray_shulker_box"); + @Nullable public static final ItemType GRAY_STAINED_GLASS = get("minecraft:gray_stained_glass"); + @Nullable public static final ItemType GRAY_STAINED_GLASS_PANE = get("minecraft:gray_stained_glass_pane"); + @Nullable public static final ItemType GRAY_TERRACOTTA = get("minecraft:gray_terracotta"); + @Nullable public static final ItemType GRAY_WOOL = get("minecraft:gray_wool"); + @Nullable public static final ItemType GREEN_BANNER = get("minecraft:green_banner"); + @Nullable public static final ItemType GREEN_BED = get("minecraft:green_bed"); + @Nullable public static final ItemType GREEN_CARPET = get("minecraft:green_carpet"); + @Nullable public static final ItemType GREEN_CONCRETE = get("minecraft:green_concrete"); + @Nullable public static final ItemType GREEN_CONCRETE_POWDER = get("minecraft:green_concrete_powder"); + @Nullable public static final ItemType GREEN_GLAZED_TERRACOTTA = get("minecraft:green_glazed_terracotta"); + @Nullable public static final ItemType GREEN_SHULKER_BOX = get("minecraft:green_shulker_box"); + @Nullable public static final ItemType GREEN_STAINED_GLASS = get("minecraft:green_stained_glass"); + @Nullable public static final ItemType GREEN_STAINED_GLASS_PANE = get("minecraft:green_stained_glass_pane"); + @Nullable public static final ItemType GREEN_TERRACOTTA = get("minecraft:green_terracotta"); + @Nullable public static final ItemType GREEN_WOOL = get("minecraft:green_wool"); + @Nullable public static final ItemType GUARDIAN_SPAWN_EGG = get("minecraft:guardian_spawn_egg"); + @Nullable public static final ItemType GUNPOWDER = get("minecraft:gunpowder"); + @Nullable public static final ItemType HAY_BLOCK = get("minecraft:hay_block"); + @Nullable public static final ItemType HEART_OF_THE_SEA = get("minecraft:heart_of_the_sea"); + @Nullable public static final ItemType HEAVY_WEIGHTED_PRESSURE_PLATE = get("minecraft:heavy_weighted_pressure_plate"); + @Nullable public static final ItemType HOPPER = get("minecraft:hopper"); + @Nullable public static final ItemType HOPPER_MINECART = get("minecraft:hopper_minecart"); + @Nullable public static final ItemType HORN_CORAL = get("minecraft:horn_coral"); + @Nullable public static final ItemType HORN_CORAL_BLOCK = get("minecraft:horn_coral_block"); + @Nullable public static final ItemType HORN_CORAL_FAN = get("minecraft:horn_coral_fan"); + @Nullable public static final ItemType HORSE_SPAWN_EGG = get("minecraft:horse_spawn_egg"); + @Nullable public static final ItemType HUSK_SPAWN_EGG = get("minecraft:husk_spawn_egg"); + @Nullable public static final ItemType ICE = get("minecraft:ice"); + @Nullable public static final ItemType INFESTED_CHISELED_STONE_BRICKS = get("minecraft:infested_chiseled_stone_bricks"); + @Nullable public static final ItemType INFESTED_COBBLESTONE = get("minecraft:infested_cobblestone"); + @Nullable public static final ItemType INFESTED_CRACKED_STONE_BRICKS = get("minecraft:infested_cracked_stone_bricks"); + @Nullable public static final ItemType INFESTED_MOSSY_STONE_BRICKS = get("minecraft:infested_mossy_stone_bricks"); + @Nullable public static final ItemType INFESTED_STONE = get("minecraft:infested_stone"); + @Nullable public static final ItemType INFESTED_STONE_BRICKS = get("minecraft:infested_stone_bricks"); + @Nullable public static final ItemType INK_SAC = get("minecraft:ink_sac"); + @Nullable public static final ItemType IRON_AXE = get("minecraft:iron_axe"); + @Nullable public static final ItemType IRON_BARS = get("minecraft:iron_bars"); + @Nullable public static final ItemType IRON_BLOCK = get("minecraft:iron_block"); + @Nullable public static final ItemType IRON_BOOTS = get("minecraft:iron_boots"); + @Nullable public static final ItemType IRON_CHESTPLATE = get("minecraft:iron_chestplate"); + @Nullable public static final ItemType IRON_DOOR = get("minecraft:iron_door"); + @Nullable public static final ItemType IRON_HELMET = get("minecraft:iron_helmet"); + @Nullable public static final ItemType IRON_HOE = get("minecraft:iron_hoe"); + @Nullable public static final ItemType IRON_HORSE_ARMOR = get("minecraft:iron_horse_armor"); + @Nullable public static final ItemType IRON_INGOT = get("minecraft:iron_ingot"); + @Nullable public static final ItemType IRON_LEGGINGS = get("minecraft:iron_leggings"); + @Nullable public static final ItemType IRON_NUGGET = get("minecraft:iron_nugget"); + @Nullable public static final ItemType IRON_ORE = get("minecraft:iron_ore"); + @Nullable public static final ItemType IRON_PICKAXE = get("minecraft:iron_pickaxe"); + @Nullable public static final ItemType IRON_SHOVEL = get("minecraft:iron_shovel"); + @Nullable public static final ItemType IRON_SWORD = get("minecraft:iron_sword"); + @Nullable public static final ItemType IRON_TRAPDOOR = get("minecraft:iron_trapdoor"); + @Nullable public static final ItemType ITEM_FRAME = get("minecraft:item_frame"); + @Nullable public static final ItemType JACK_O_LANTERN = get("minecraft:jack_o_lantern"); + @Nullable public static final ItemType JUKEBOX = get("minecraft:jukebox"); + @Nullable public static final ItemType JUNGLE_BOAT = get("minecraft:jungle_boat"); + @Nullable public static final ItemType JUNGLE_BUTTON = get("minecraft:jungle_button"); + @Nullable public static final ItemType JUNGLE_DOOR = get("minecraft:jungle_door"); + @Nullable public static final ItemType JUNGLE_FENCE = get("minecraft:jungle_fence"); + @Nullable public static final ItemType JUNGLE_FENCE_GATE = get("minecraft:jungle_fence_gate"); + @Nullable public static final ItemType JUNGLE_LEAVES = get("minecraft:jungle_leaves"); + @Nullable public static final ItemType JUNGLE_LOG = get("minecraft:jungle_log"); + @Nullable public static final ItemType JUNGLE_PLANKS = get("minecraft:jungle_planks"); + @Nullable public static final ItemType JUNGLE_PRESSURE_PLATE = get("minecraft:jungle_pressure_plate"); + @Nullable public static final ItemType JUNGLE_SAPLING = get("minecraft:jungle_sapling"); + @Nullable public static final ItemType JUNGLE_SLAB = get("minecraft:jungle_slab"); + @Nullable public static final ItemType JUNGLE_STAIRS = get("minecraft:jungle_stairs"); + @Nullable public static final ItemType JUNGLE_TRAPDOOR = get("minecraft:jungle_trapdoor"); + @Nullable public static final ItemType JUNGLE_WOOD = get("minecraft:jungle_wood"); + @Nullable public static final ItemType KELP = get("minecraft:kelp"); + @Nullable public static final ItemType KNOWLEDGE_BOOK = get("minecraft:knowledge_book"); + @Nullable public static final ItemType LADDER = get("minecraft:ladder"); + @Nullable public static final ItemType LAPIS_BLOCK = get("minecraft:lapis_block"); + @Nullable public static final ItemType LAPIS_LAZULI = get("minecraft:lapis_lazuli"); + @Nullable public static final ItemType LAPIS_ORE = get("minecraft:lapis_ore"); + @Nullable public static final ItemType LARGE_FERN = get("minecraft:large_fern"); + @Nullable public static final ItemType LAVA_BUCKET = get("minecraft:lava_bucket"); + @Nullable public static final ItemType LEAD = get("minecraft:lead"); + @Nullable public static final ItemType LEATHER = get("minecraft:leather"); + @Nullable public static final ItemType LEATHER_BOOTS = get("minecraft:leather_boots"); + @Nullable public static final ItemType LEATHER_CHESTPLATE = get("minecraft:leather_chestplate"); + @Nullable public static final ItemType LEATHER_HELMET = get("minecraft:leather_helmet"); + @Nullable public static final ItemType LEATHER_LEGGINGS = get("minecraft:leather_leggings"); + @Nullable public static final ItemType LEVER = get("minecraft:lever"); + @Nullable public static final ItemType LIGHT_BLUE_BANNER = get("minecraft:light_blue_banner"); + @Nullable public static final ItemType LIGHT_BLUE_BED = get("minecraft:light_blue_bed"); + @Nullable public static final ItemType LIGHT_BLUE_CARPET = get("minecraft:light_blue_carpet"); + @Nullable public static final ItemType LIGHT_BLUE_CONCRETE = get("minecraft:light_blue_concrete"); + @Nullable public static final ItemType LIGHT_BLUE_CONCRETE_POWDER = get("minecraft:light_blue_concrete_powder"); + @Nullable public static final ItemType LIGHT_BLUE_DYE = get("minecraft:light_blue_dye"); + @Nullable public static final ItemType LIGHT_BLUE_GLAZED_TERRACOTTA = get("minecraft:light_blue_glazed_terracotta"); + @Nullable public static final ItemType LIGHT_BLUE_SHULKER_BOX = get("minecraft:light_blue_shulker_box"); + @Nullable public static final ItemType LIGHT_BLUE_STAINED_GLASS = get("minecraft:light_blue_stained_glass"); + @Nullable public static final ItemType LIGHT_BLUE_STAINED_GLASS_PANE = get("minecraft:light_blue_stained_glass_pane"); + @Nullable public static final ItemType LIGHT_BLUE_TERRACOTTA = get("minecraft:light_blue_terracotta"); + @Nullable public static final ItemType LIGHT_BLUE_WOOL = get("minecraft:light_blue_wool"); + @Nullable public static final ItemType LIGHT_GRAY_BANNER = get("minecraft:light_gray_banner"); + @Nullable public static final ItemType LIGHT_GRAY_BED = get("minecraft:light_gray_bed"); + @Nullable public static final ItemType LIGHT_GRAY_CARPET = get("minecraft:light_gray_carpet"); + @Nullable public static final ItemType LIGHT_GRAY_CONCRETE = get("minecraft:light_gray_concrete"); + @Nullable public static final ItemType LIGHT_GRAY_CONCRETE_POWDER = get("minecraft:light_gray_concrete_powder"); + @Nullable public static final ItemType LIGHT_GRAY_DYE = get("minecraft:light_gray_dye"); + @Nullable public static final ItemType LIGHT_GRAY_GLAZED_TERRACOTTA = get("minecraft:light_gray_glazed_terracotta"); + @Nullable public static final ItemType LIGHT_GRAY_SHULKER_BOX = get("minecraft:light_gray_shulker_box"); + @Nullable public static final ItemType LIGHT_GRAY_STAINED_GLASS = get("minecraft:light_gray_stained_glass"); + @Nullable public static final ItemType LIGHT_GRAY_STAINED_GLASS_PANE = get("minecraft:light_gray_stained_glass_pane"); + @Nullable public static final ItemType LIGHT_GRAY_TERRACOTTA = get("minecraft:light_gray_terracotta"); + @Nullable public static final ItemType LIGHT_GRAY_WOOL = get("minecraft:light_gray_wool"); + @Nullable public static final ItemType LIGHT_WEIGHTED_PRESSURE_PLATE = get("minecraft:light_weighted_pressure_plate"); + @Nullable public static final ItemType LILAC = get("minecraft:lilac"); + @Nullable public static final ItemType LILY_PAD = get("minecraft:lily_pad"); + @Nullable public static final ItemType LIME_BANNER = get("minecraft:lime_banner"); + @Nullable public static final ItemType LIME_BED = get("minecraft:lime_bed"); + @Nullable public static final ItemType LIME_CARPET = get("minecraft:lime_carpet"); + @Nullable public static final ItemType LIME_CONCRETE = get("minecraft:lime_concrete"); + @Nullable public static final ItemType LIME_CONCRETE_POWDER = get("minecraft:lime_concrete_powder"); + @Nullable public static final ItemType LIME_DYE = get("minecraft:lime_dye"); + @Nullable public static final ItemType LIME_GLAZED_TERRACOTTA = get("minecraft:lime_glazed_terracotta"); + @Nullable public static final ItemType LIME_SHULKER_BOX = get("minecraft:lime_shulker_box"); + @Nullable public static final ItemType LIME_STAINED_GLASS = get("minecraft:lime_stained_glass"); + @Nullable public static final ItemType LIME_STAINED_GLASS_PANE = get("minecraft:lime_stained_glass_pane"); + @Nullable public static final ItemType LIME_TERRACOTTA = get("minecraft:lime_terracotta"); + @Nullable public static final ItemType LIME_WOOL = get("minecraft:lime_wool"); + @Nullable public static final ItemType LINGERING_POTION = get("minecraft:lingering_potion"); + @Nullable public static final ItemType LLAMA_SPAWN_EGG = get("minecraft:llama_spawn_egg"); + @Nullable public static final ItemType MAGENTA_BANNER = get("minecraft:magenta_banner"); + @Nullable public static final ItemType MAGENTA_BED = get("minecraft:magenta_bed"); + @Nullable public static final ItemType MAGENTA_CARPET = get("minecraft:magenta_carpet"); + @Nullable public static final ItemType MAGENTA_CONCRETE = get("minecraft:magenta_concrete"); + @Nullable public static final ItemType MAGENTA_CONCRETE_POWDER = get("minecraft:magenta_concrete_powder"); + @Nullable public static final ItemType MAGENTA_DYE = get("minecraft:magenta_dye"); + @Nullable public static final ItemType MAGENTA_GLAZED_TERRACOTTA = get("minecraft:magenta_glazed_terracotta"); + @Nullable public static final ItemType MAGENTA_SHULKER_BOX = get("minecraft:magenta_shulker_box"); + @Nullable public static final ItemType MAGENTA_STAINED_GLASS = get("minecraft:magenta_stained_glass"); + @Nullable public static final ItemType MAGENTA_STAINED_GLASS_PANE = get("minecraft:magenta_stained_glass_pane"); + @Nullable public static final ItemType MAGENTA_TERRACOTTA = get("minecraft:magenta_terracotta"); + @Nullable public static final ItemType MAGENTA_WOOL = get("minecraft:magenta_wool"); + @Nullable public static final ItemType MAGMA_BLOCK = get("minecraft:magma_block"); + @Nullable public static final ItemType MAGMA_CREAM = get("minecraft:magma_cream"); + @Nullable public static final ItemType MAGMA_CUBE_SPAWN_EGG = get("minecraft:magma_cube_spawn_egg"); + @Nullable public static final ItemType MAP = get("minecraft:map"); + @Nullable public static final ItemType MELON = get("minecraft:melon"); + @Nullable public static final ItemType MELON_SEEDS = get("minecraft:melon_seeds"); + @Nullable public static final ItemType MELON_SLICE = get("minecraft:melon_slice"); + @Nullable public static final ItemType MILK_BUCKET = get("minecraft:milk_bucket"); + @Nullable public static final ItemType MINECART = get("minecraft:minecart"); + @Nullable public static final ItemType MOOSHROOM_SPAWN_EGG = get("minecraft:mooshroom_spawn_egg"); + @Nullable public static final ItemType MOSSY_COBBLESTONE = get("minecraft:mossy_cobblestone"); + @Nullable public static final ItemType MOSSY_COBBLESTONE_WALL = get("minecraft:mossy_cobblestone_wall"); + @Nullable public static final ItemType MOSSY_STONE_BRICKS = get("minecraft:mossy_stone_bricks"); + @Nullable public static final ItemType MULE_SPAWN_EGG = get("minecraft:mule_spawn_egg"); + @Nullable public static final ItemType MUSHROOM_STEM = get("minecraft:mushroom_stem"); + @Nullable public static final ItemType MUSHROOM_STEW = get("minecraft:mushroom_stew"); + @Nullable public static final ItemType MUSIC_DISC_11 = get("minecraft:music_disc_11"); + @Nullable public static final ItemType MUSIC_DISC_13 = get("minecraft:music_disc_13"); + @Nullable public static final ItemType MUSIC_DISC_BLOCKS = get("minecraft:music_disc_blocks"); + @Nullable public static final ItemType MUSIC_DISC_CAT = get("minecraft:music_disc_cat"); + @Nullable public static final ItemType MUSIC_DISC_CHIRP = get("minecraft:music_disc_chirp"); + @Nullable public static final ItemType MUSIC_DISC_FAR = get("minecraft:music_disc_far"); + @Nullable public static final ItemType MUSIC_DISC_MALL = get("minecraft:music_disc_mall"); + @Nullable public static final ItemType MUSIC_DISC_MELLOHI = get("minecraft:music_disc_mellohi"); + @Nullable public static final ItemType MUSIC_DISC_STAL = get("minecraft:music_disc_stal"); + @Nullable public static final ItemType MUSIC_DISC_STRAD = get("minecraft:music_disc_strad"); + @Nullable public static final ItemType MUSIC_DISC_WAIT = get("minecraft:music_disc_wait"); + @Nullable public static final ItemType MUSIC_DISC_WARD = get("minecraft:music_disc_ward"); + @Nullable public static final ItemType MUTTON = get("minecraft:mutton"); + @Nullable public static final ItemType MYCELIUM = get("minecraft:mycelium"); + @Nullable public static final ItemType NAME_TAG = get("minecraft:name_tag"); + @Nullable public static final ItemType NAUTILUS_SHELL = get("minecraft:nautilus_shell"); + @Nullable public static final ItemType NETHER_BRICK = get("minecraft:nether_brick"); + @Nullable public static final ItemType NETHER_BRICK_FENCE = get("minecraft:nether_brick_fence"); + @Nullable public static final ItemType NETHER_BRICK_SLAB = get("minecraft:nether_brick_slab"); + @Nullable public static final ItemType NETHER_BRICK_STAIRS = get("minecraft:nether_brick_stairs"); + @Nullable public static final ItemType NETHER_BRICKS = get("minecraft:nether_bricks"); + @Nullable public static final ItemType NETHER_QUARTZ_ORE = get("minecraft:nether_quartz_ore"); + @Nullable public static final ItemType NETHER_STAR = get("minecraft:nether_star"); + @Nullable public static final ItemType NETHER_WART = get("minecraft:nether_wart"); + @Nullable public static final ItemType NETHER_WART_BLOCK = get("minecraft:nether_wart_block"); + @Nullable public static final ItemType NETHERRACK = get("minecraft:netherrack"); + @Nullable public static final ItemType NOTE_BLOCK = get("minecraft:note_block"); + @Nullable public static final ItemType OAK_BOAT = get("minecraft:oak_boat"); + @Nullable public static final ItemType OAK_BUTTON = get("minecraft:oak_button"); + @Nullable public static final ItemType OAK_DOOR = get("minecraft:oak_door"); + @Nullable public static final ItemType OAK_FENCE = get("minecraft:oak_fence"); + @Nullable public static final ItemType OAK_FENCE_GATE = get("minecraft:oak_fence_gate"); + @Nullable public static final ItemType OAK_LEAVES = get("minecraft:oak_leaves"); + @Nullable public static final ItemType OAK_LOG = get("minecraft:oak_log"); + @Nullable public static final ItemType OAK_PLANKS = get("minecraft:oak_planks"); + @Nullable public static final ItemType OAK_PRESSURE_PLATE = get("minecraft:oak_pressure_plate"); + @Nullable public static final ItemType OAK_SAPLING = get("minecraft:oak_sapling"); + @Nullable public static final ItemType OAK_SLAB = get("minecraft:oak_slab"); + @Nullable public static final ItemType OAK_STAIRS = get("minecraft:oak_stairs"); + @Nullable public static final ItemType OAK_TRAPDOOR = get("minecraft:oak_trapdoor"); + @Nullable public static final ItemType OAK_WOOD = get("minecraft:oak_wood"); + @Nullable public static final ItemType OBSERVER = get("minecraft:observer"); + @Nullable public static final ItemType OBSIDIAN = get("minecraft:obsidian"); + @Nullable public static final ItemType OCELOT_SPAWN_EGG = get("minecraft:ocelot_spawn_egg"); + @Nullable public static final ItemType ORANGE_BANNER = get("minecraft:orange_banner"); + @Nullable public static final ItemType ORANGE_BED = get("minecraft:orange_bed"); + @Nullable public static final ItemType ORANGE_CARPET = get("minecraft:orange_carpet"); + @Nullable public static final ItemType ORANGE_CONCRETE = get("minecraft:orange_concrete"); + @Nullable public static final ItemType ORANGE_CONCRETE_POWDER = get("minecraft:orange_concrete_powder"); + @Nullable public static final ItemType ORANGE_DYE = get("minecraft:orange_dye"); + @Nullable public static final ItemType ORANGE_GLAZED_TERRACOTTA = get("minecraft:orange_glazed_terracotta"); + @Nullable public static final ItemType ORANGE_SHULKER_BOX = get("minecraft:orange_shulker_box"); + @Nullable public static final ItemType ORANGE_STAINED_GLASS = get("minecraft:orange_stained_glass"); + @Nullable public static final ItemType ORANGE_STAINED_GLASS_PANE = get("minecraft:orange_stained_glass_pane"); + @Nullable public static final ItemType ORANGE_TERRACOTTA = get("minecraft:orange_terracotta"); + @Nullable public static final ItemType ORANGE_TULIP = get("minecraft:orange_tulip"); + @Nullable public static final ItemType ORANGE_WOOL = get("minecraft:orange_wool"); + @Nullable public static final ItemType OXEYE_DAISY = get("minecraft:oxeye_daisy"); + @Nullable public static final ItemType PACKED_ICE = get("minecraft:packed_ice"); + @Nullable public static final ItemType PAINTING = get("minecraft:painting"); + @Nullable public static final ItemType PAPER = get("minecraft:paper"); + @Nullable public static final ItemType PARROT_SPAWN_EGG = get("minecraft:parrot_spawn_egg"); + @Nullable public static final ItemType PEONY = get("minecraft:peony"); + @Nullable public static final ItemType PETRIFIED_OAK_SLAB = get("minecraft:petrified_oak_slab"); + @Nullable public static final ItemType PHANTOM_MEMBRANE = get("minecraft:phantom_membrane"); + @Nullable public static final ItemType PHANTOM_SPAWN_EGG = get("minecraft:phantom_spawn_egg"); + @Nullable public static final ItemType PIG_SPAWN_EGG = get("minecraft:pig_spawn_egg"); + @Nullable public static final ItemType PINK_BANNER = get("minecraft:pink_banner"); + @Nullable public static final ItemType PINK_BED = get("minecraft:pink_bed"); + @Nullable public static final ItemType PINK_CARPET = get("minecraft:pink_carpet"); + @Nullable public static final ItemType PINK_CONCRETE = get("minecraft:pink_concrete"); + @Nullable public static final ItemType PINK_CONCRETE_POWDER = get("minecraft:pink_concrete_powder"); + @Nullable public static final ItemType PINK_DYE = get("minecraft:pink_dye"); + @Nullable public static final ItemType PINK_GLAZED_TERRACOTTA = get("minecraft:pink_glazed_terracotta"); + @Nullable public static final ItemType PINK_SHULKER_BOX = get("minecraft:pink_shulker_box"); + @Nullable public static final ItemType PINK_STAINED_GLASS = get("minecraft:pink_stained_glass"); + @Nullable public static final ItemType PINK_STAINED_GLASS_PANE = get("minecraft:pink_stained_glass_pane"); + @Nullable public static final ItemType PINK_TERRACOTTA = get("minecraft:pink_terracotta"); + @Nullable public static final ItemType PINK_TULIP = get("minecraft:pink_tulip"); + @Nullable public static final ItemType PINK_WOOL = get("minecraft:pink_wool"); + @Nullable public static final ItemType PISTON = get("minecraft:piston"); + @Nullable public static final ItemType PLAYER_HEAD = get("minecraft:player_head"); + @Nullable public static final ItemType PODZOL = get("minecraft:podzol"); + @Nullable public static final ItemType POISONOUS_POTATO = get("minecraft:poisonous_potato"); + @Nullable public static final ItemType POLAR_BEAR_SPAWN_EGG = get("minecraft:polar_bear_spawn_egg"); + @Nullable public static final ItemType POLISHED_ANDESITE = get("minecraft:polished_andesite"); + @Nullable public static final ItemType POLISHED_DIORITE = get("minecraft:polished_diorite"); + @Nullable public static final ItemType POLISHED_GRANITE = get("minecraft:polished_granite"); + @Nullable public static final ItemType POPPED_CHORUS_FRUIT = get("minecraft:popped_chorus_fruit"); + @Nullable public static final ItemType POPPY = get("minecraft:poppy"); + @Nullable public static final ItemType PORKCHOP = get("minecraft:porkchop"); + @Nullable public static final ItemType POTATO = get("minecraft:potato"); + @Nullable public static final ItemType POTION = get("minecraft:potion"); + @Nullable public static final ItemType POWERED_RAIL = get("minecraft:powered_rail"); + @Nullable public static final ItemType PRISMARINE = get("minecraft:prismarine"); + @Nullable public static final ItemType PRISMARINE_BRICK_SLAB = get("minecraft:prismarine_brick_slab"); + @Nullable public static final ItemType PRISMARINE_BRICK_STAIRS = get("minecraft:prismarine_brick_stairs"); + @Nullable public static final ItemType PRISMARINE_BRICKS = get("minecraft:prismarine_bricks"); + @Nullable public static final ItemType PRISMARINE_CRYSTALS = get("minecraft:prismarine_crystals"); + @Nullable public static final ItemType PRISMARINE_SHARD = get("minecraft:prismarine_shard"); + @Nullable public static final ItemType PRISMARINE_SLAB = get("minecraft:prismarine_slab"); + @Nullable public static final ItemType PRISMARINE_STAIRS = get("minecraft:prismarine_stairs"); + @Nullable public static final ItemType PUFFERFISH = get("minecraft:pufferfish"); + @Nullable public static final ItemType PUFFERFISH_BUCKET = get("minecraft:pufferfish_bucket"); + @Nullable public static final ItemType PUFFERFISH_SPAWN_EGG = get("minecraft:pufferfish_spawn_egg"); + @Nullable public static final ItemType PUMPKIN = get("minecraft:pumpkin"); + @Nullable public static final ItemType PUMPKIN_PIE = get("minecraft:pumpkin_pie"); + @Nullable public static final ItemType PUMPKIN_SEEDS = get("minecraft:pumpkin_seeds"); + @Nullable public static final ItemType PURPLE_BANNER = get("minecraft:purple_banner"); + @Nullable public static final ItemType PURPLE_BED = get("minecraft:purple_bed"); + @Nullable public static final ItemType PURPLE_CARPET = get("minecraft:purple_carpet"); + @Nullable public static final ItemType PURPLE_CONCRETE = get("minecraft:purple_concrete"); + @Nullable public static final ItemType PURPLE_CONCRETE_POWDER = get("minecraft:purple_concrete_powder"); + @Nullable public static final ItemType PURPLE_DYE = get("minecraft:purple_dye"); + @Nullable public static final ItemType PURPLE_GLAZED_TERRACOTTA = get("minecraft:purple_glazed_terracotta"); + @Nullable public static final ItemType PURPLE_SHULKER_BOX = get("minecraft:purple_shulker_box"); + @Nullable public static final ItemType PURPLE_STAINED_GLASS = get("minecraft:purple_stained_glass"); + @Nullable public static final ItemType PURPLE_STAINED_GLASS_PANE = get("minecraft:purple_stained_glass_pane"); + @Nullable public static final ItemType PURPLE_TERRACOTTA = get("minecraft:purple_terracotta"); + @Nullable public static final ItemType PURPLE_WOOL = get("minecraft:purple_wool"); + @Nullable public static final ItemType PURPUR_BLOCK = get("minecraft:purpur_block"); + @Nullable public static final ItemType PURPUR_PILLAR = get("minecraft:purpur_pillar"); + @Nullable public static final ItemType PURPUR_SLAB = get("minecraft:purpur_slab"); + @Nullable public static final ItemType PURPUR_STAIRS = get("minecraft:purpur_stairs"); + @Nullable public static final ItemType QUARTZ = get("minecraft:quartz"); + @Nullable public static final ItemType QUARTZ_BLOCK = get("minecraft:quartz_block"); + @Nullable public static final ItemType QUARTZ_PILLAR = get("minecraft:quartz_pillar"); + @Nullable public static final ItemType QUARTZ_SLAB = get("minecraft:quartz_slab"); + @Nullable public static final ItemType QUARTZ_STAIRS = get("minecraft:quartz_stairs"); + @Nullable public static final ItemType RABBIT = get("minecraft:rabbit"); + @Nullable public static final ItemType RABBIT_FOOT = get("minecraft:rabbit_foot"); + @Nullable public static final ItemType RABBIT_HIDE = get("minecraft:rabbit_hide"); + @Nullable public static final ItemType RABBIT_SPAWN_EGG = get("minecraft:rabbit_spawn_egg"); + @Nullable public static final ItemType RABBIT_STEW = get("minecraft:rabbit_stew"); + @Nullable public static final ItemType RAIL = get("minecraft:rail"); + @Nullable public static final ItemType RED_BANNER = get("minecraft:red_banner"); + @Nullable public static final ItemType RED_BED = get("minecraft:red_bed"); + @Nullable public static final ItemType RED_CARPET = get("minecraft:red_carpet"); + @Nullable public static final ItemType RED_CONCRETE = get("minecraft:red_concrete"); + @Nullable public static final ItemType RED_CONCRETE_POWDER = get("minecraft:red_concrete_powder"); + @Nullable public static final ItemType RED_GLAZED_TERRACOTTA = get("minecraft:red_glazed_terracotta"); + @Nullable public static final ItemType RED_MUSHROOM = get("minecraft:red_mushroom"); + @Nullable public static final ItemType RED_MUSHROOM_BLOCK = get("minecraft:red_mushroom_block"); + @Nullable public static final ItemType RED_NETHER_BRICKS = get("minecraft:red_nether_bricks"); + @Nullable public static final ItemType RED_SAND = get("minecraft:red_sand"); + @Nullable public static final ItemType RED_SANDSTONE = get("minecraft:red_sandstone"); + @Nullable public static final ItemType RED_SANDSTONE_SLAB = get("minecraft:red_sandstone_slab"); + @Nullable public static final ItemType RED_SANDSTONE_STAIRS = get("minecraft:red_sandstone_stairs"); + @Nullable public static final ItemType RED_SHULKER_BOX = get("minecraft:red_shulker_box"); + @Nullable public static final ItemType RED_STAINED_GLASS = get("minecraft:red_stained_glass"); + @Nullable public static final ItemType RED_STAINED_GLASS_PANE = get("minecraft:red_stained_glass_pane"); + @Nullable public static final ItemType RED_TERRACOTTA = get("minecraft:red_terracotta"); + @Nullable public static final ItemType RED_TULIP = get("minecraft:red_tulip"); + @Nullable public static final ItemType RED_WOOL = get("minecraft:red_wool"); + @Nullable public static final ItemType REDSTONE = get("minecraft:redstone"); + @Nullable public static final ItemType REDSTONE_BLOCK = get("minecraft:redstone_block"); + @Nullable public static final ItemType REDSTONE_LAMP = get("minecraft:redstone_lamp"); + @Nullable public static final ItemType REDSTONE_ORE = get("minecraft:redstone_ore"); + @Nullable public static final ItemType REDSTONE_TORCH = get("minecraft:redstone_torch"); + @Nullable public static final ItemType REPEATER = get("minecraft:repeater"); + @Nullable public static final ItemType REPEATING_COMMAND_BLOCK = get("minecraft:repeating_command_block"); + @Nullable public static final ItemType ROSE_BUSH = get("minecraft:rose_bush"); + @Nullable public static final ItemType ROSE_RED = get("minecraft:rose_red"); + @Nullable public static final ItemType ROTTEN_FLESH = get("minecraft:rotten_flesh"); + @Nullable public static final ItemType SADDLE = get("minecraft:saddle"); + @Nullable public static final ItemType SALMON = get("minecraft:salmon"); + @Nullable public static final ItemType SALMON_BUCKET = get("minecraft:salmon_bucket"); + @Nullable public static final ItemType SALMON_SPAWN_EGG = get("minecraft:salmon_spawn_egg"); + @Nullable public static final ItemType SAND = get("minecraft:sand"); + @Nullable public static final ItemType SANDSTONE = get("minecraft:sandstone"); + @Nullable public static final ItemType SANDSTONE_SLAB = get("minecraft:sandstone_slab"); + @Nullable public static final ItemType SANDSTONE_STAIRS = get("minecraft:sandstone_stairs"); + @Nullable public static final ItemType SCUTE = get("minecraft:scute"); + @Nullable public static final ItemType SEA_LANTERN = get("minecraft:sea_lantern"); + @Nullable public static final ItemType SEA_PICKLE = get("minecraft:sea_pickle"); + @Nullable public static final ItemType SEAGRASS = get("minecraft:seagrass"); + @Nullable public static final ItemType SHEARS = get("minecraft:shears"); + @Nullable public static final ItemType SHEEP_SPAWN_EGG = get("minecraft:sheep_spawn_egg"); + @Nullable public static final ItemType SHIELD = get("minecraft:shield"); + @Nullable public static final ItemType SHULKER_BOX = get("minecraft:shulker_box"); + @Nullable public static final ItemType SHULKER_SHELL = get("minecraft:shulker_shell"); + @Nullable public static final ItemType SHULKER_SPAWN_EGG = get("minecraft:shulker_spawn_egg"); + @Nullable public static final ItemType SIGN = get("minecraft:sign"); + @Nullable public static final ItemType SILVERFISH_SPAWN_EGG = get("minecraft:silverfish_spawn_egg"); + @Nullable public static final ItemType SKELETON_HORSE_SPAWN_EGG = get("minecraft:skeleton_horse_spawn_egg"); + @Nullable public static final ItemType SKELETON_SKULL = get("minecraft:skeleton_skull"); + @Nullable public static final ItemType SKELETON_SPAWN_EGG = get("minecraft:skeleton_spawn_egg"); + @Nullable public static final ItemType SLIME_BALL = get("minecraft:slime_ball"); + @Nullable public static final ItemType SLIME_BLOCK = get("minecraft:slime_block"); + @Nullable public static final ItemType SLIME_SPAWN_EGG = get("minecraft:slime_spawn_egg"); + @Nullable public static final ItemType SMOOTH_QUARTZ = get("minecraft:smooth_quartz"); + @Nullable public static final ItemType SMOOTH_RED_SANDSTONE = get("minecraft:smooth_red_sandstone"); + @Nullable public static final ItemType SMOOTH_SANDSTONE = get("minecraft:smooth_sandstone"); + @Nullable public static final ItemType SMOOTH_STONE = get("minecraft:smooth_stone"); + @Nullable public static final ItemType SNOW = get("minecraft:snow"); + @Nullable public static final ItemType SNOW_BLOCK = get("minecraft:snow_block"); + @Nullable public static final ItemType SNOWBALL = get("minecraft:snowball"); + @Nullable public static final ItemType SOUL_SAND = get("minecraft:soul_sand"); + @Nullable public static final ItemType SPAWNER = get("minecraft:spawner"); + @Nullable public static final ItemType SPECTRAL_ARROW = get("minecraft:spectral_arrow"); + @Nullable public static final ItemType SPIDER_EYE = get("minecraft:spider_eye"); + @Nullable public static final ItemType SPIDER_SPAWN_EGG = get("minecraft:spider_spawn_egg"); + @Nullable public static final ItemType SPLASH_POTION = get("minecraft:splash_potion"); + @Nullable public static final ItemType SPONGE = get("minecraft:sponge"); + @Nullable public static final ItemType SPRUCE_BOAT = get("minecraft:spruce_boat"); + @Nullable public static final ItemType SPRUCE_BUTTON = get("minecraft:spruce_button"); + @Nullable public static final ItemType SPRUCE_DOOR = get("minecraft:spruce_door"); + @Nullable public static final ItemType SPRUCE_FENCE = get("minecraft:spruce_fence"); + @Nullable public static final ItemType SPRUCE_FENCE_GATE = get("minecraft:spruce_fence_gate"); + @Nullable public static final ItemType SPRUCE_LEAVES = get("minecraft:spruce_leaves"); + @Nullable public static final ItemType SPRUCE_LOG = get("minecraft:spruce_log"); + @Nullable public static final ItemType SPRUCE_PLANKS = get("minecraft:spruce_planks"); + @Nullable public static final ItemType SPRUCE_PRESSURE_PLATE = get("minecraft:spruce_pressure_plate"); + @Nullable public static final ItemType SPRUCE_SAPLING = get("minecraft:spruce_sapling"); + @Nullable public static final ItemType SPRUCE_SLAB = get("minecraft:spruce_slab"); + @Nullable public static final ItemType SPRUCE_STAIRS = get("minecraft:spruce_stairs"); + @Nullable public static final ItemType SPRUCE_TRAPDOOR = get("minecraft:spruce_trapdoor"); + @Nullable public static final ItemType SPRUCE_WOOD = get("minecraft:spruce_wood"); + @Nullable public static final ItemType SQUID_SPAWN_EGG = get("minecraft:squid_spawn_egg"); + @Nullable public static final ItemType STICK = get("minecraft:stick"); + @Nullable public static final ItemType STICKY_PISTON = get("minecraft:sticky_piston"); + @Nullable public static final ItemType STONE = get("minecraft:stone"); + @Nullable public static final ItemType STONE_AXE = get("minecraft:stone_axe"); + @Nullable public static final ItemType STONE_BRICK_SLAB = get("minecraft:stone_brick_slab"); + @Nullable public static final ItemType STONE_BRICK_STAIRS = get("minecraft:stone_brick_stairs"); + @Nullable public static final ItemType STONE_BRICKS = get("minecraft:stone_bricks"); + @Nullable public static final ItemType STONE_BUTTON = get("minecraft:stone_button"); + @Nullable public static final ItemType STONE_HOE = get("minecraft:stone_hoe"); + @Nullable public static final ItemType STONE_PICKAXE = get("minecraft:stone_pickaxe"); + @Nullable public static final ItemType STONE_PRESSURE_PLATE = get("minecraft:stone_pressure_plate"); + @Nullable public static final ItemType STONE_SHOVEL = get("minecraft:stone_shovel"); + @Nullable public static final ItemType STONE_SLAB = get("minecraft:stone_slab"); + @Nullable public static final ItemType STONE_SWORD = get("minecraft:stone_sword"); + @Nullable public static final ItemType STRAY_SPAWN_EGG = get("minecraft:stray_spawn_egg"); + @Nullable public static final ItemType STRING = get("minecraft:string"); + @Nullable public static final ItemType STRIPPED_ACACIA_LOG = get("minecraft:stripped_acacia_log"); + @Nullable public static final ItemType STRIPPED_ACACIA_WOOD = get("minecraft:stripped_acacia_wood"); + @Nullable public static final ItemType STRIPPED_BIRCH_LOG = get("minecraft:stripped_birch_log"); + @Nullable public static final ItemType STRIPPED_BIRCH_WOOD = get("minecraft:stripped_birch_wood"); + @Nullable public static final ItemType STRIPPED_DARK_OAK_LOG = get("minecraft:stripped_dark_oak_log"); + @Nullable public static final ItemType STRIPPED_DARK_OAK_WOOD = get("minecraft:stripped_dark_oak_wood"); + @Nullable public static final ItemType STRIPPED_JUNGLE_LOG = get("minecraft:stripped_jungle_log"); + @Nullable public static final ItemType STRIPPED_JUNGLE_WOOD = get("minecraft:stripped_jungle_wood"); + @Nullable public static final ItemType STRIPPED_OAK_LOG = get("minecraft:stripped_oak_log"); + @Nullable public static final ItemType STRIPPED_OAK_WOOD = get("minecraft:stripped_oak_wood"); + @Nullable public static final ItemType STRIPPED_SPRUCE_LOG = get("minecraft:stripped_spruce_log"); + @Nullable public static final ItemType STRIPPED_SPRUCE_WOOD = get("minecraft:stripped_spruce_wood"); + @Nullable public static final ItemType STRUCTURE_BLOCK = get("minecraft:structure_block"); + @Nullable public static final ItemType STRUCTURE_VOID = get("minecraft:structure_void"); + @Nullable public static final ItemType SUGAR = get("minecraft:sugar"); + @Nullable public static final ItemType SUGAR_CANE = get("minecraft:sugar_cane"); + @Nullable public static final ItemType SUNFLOWER = get("minecraft:sunflower"); + @Nullable public static final ItemType TALL_GRASS = get("minecraft:tall_grass"); + @Nullable public static final ItemType TERRACOTTA = get("minecraft:terracotta"); + @Nullable public static final ItemType TIPPED_ARROW = get("minecraft:tipped_arrow"); + @Nullable public static final ItemType TNT = get("minecraft:tnt"); + @Nullable public static final ItemType TNT_MINECART = get("minecraft:tnt_minecart"); + @Nullable public static final ItemType TORCH = get("minecraft:torch"); + @Nullable public static final ItemType TOTEM_OF_UNDYING = get("minecraft:totem_of_undying"); + @Nullable public static final ItemType TRAPPED_CHEST = get("minecraft:trapped_chest"); + @Nullable public static final ItemType TRIDENT = get("minecraft:trident"); + @Nullable public static final ItemType TRIPWIRE_HOOK = get("minecraft:tripwire_hook"); + @Nullable public static final ItemType TROPICAL_FISH = get("minecraft:tropical_fish"); + @Nullable public static final ItemType TROPICAL_FISH_BUCKET = get("minecraft:tropical_fish_bucket"); + @Nullable public static final ItemType TROPICAL_FISH_SPAWN_EGG = get("minecraft:tropical_fish_spawn_egg"); + @Nullable public static final ItemType TUBE_CORAL = get("minecraft:tube_coral"); + @Nullable public static final ItemType TUBE_CORAL_BLOCK = get("minecraft:tube_coral_block"); + @Nullable public static final ItemType TUBE_CORAL_FAN = get("minecraft:tube_coral_fan"); + @Nullable public static final ItemType TURTLE_EGG = get("minecraft:turtle_egg"); + @Nullable public static final ItemType TURTLE_HELMET = get("minecraft:turtle_helmet"); + @Nullable public static final ItemType TURTLE_SPAWN_EGG = get("minecraft:turtle_spawn_egg"); + @Nullable public static final ItemType VEX_SPAWN_EGG = get("minecraft:vex_spawn_egg"); + @Nullable public static final ItemType VILLAGER_SPAWN_EGG = get("minecraft:villager_spawn_egg"); + @Nullable public static final ItemType VINDICATOR_SPAWN_EGG = get("minecraft:vindicator_spawn_egg"); + @Nullable public static final ItemType VINE = get("minecraft:vine"); + @Nullable public static final ItemType WATER_BUCKET = get("minecraft:water_bucket"); + @Nullable public static final ItemType WET_SPONGE = get("minecraft:wet_sponge"); + @Nullable public static final ItemType WHEAT = get("minecraft:wheat"); + @Nullable public static final ItemType WHEAT_SEEDS = get("minecraft:wheat_seeds"); + @Nullable public static final ItemType WHITE_BANNER = get("minecraft:white_banner"); + @Nullable public static final ItemType WHITE_BED = get("minecraft:white_bed"); + @Nullable public static final ItemType WHITE_CARPET = get("minecraft:white_carpet"); + @Nullable public static final ItemType WHITE_CONCRETE = get("minecraft:white_concrete"); + @Nullable public static final ItemType WHITE_CONCRETE_POWDER = get("minecraft:white_concrete_powder"); + @Nullable public static final ItemType WHITE_GLAZED_TERRACOTTA = get("minecraft:white_glazed_terracotta"); + @Nullable public static final ItemType WHITE_SHULKER_BOX = get("minecraft:white_shulker_box"); + @Nullable public static final ItemType WHITE_STAINED_GLASS = get("minecraft:white_stained_glass"); + @Nullable public static final ItemType WHITE_STAINED_GLASS_PANE = get("minecraft:white_stained_glass_pane"); + @Nullable public static final ItemType WHITE_TERRACOTTA = get("minecraft:white_terracotta"); + @Nullable public static final ItemType WHITE_TULIP = get("minecraft:white_tulip"); + @Nullable public static final ItemType WHITE_WOOL = get("minecraft:white_wool"); + @Nullable public static final ItemType WITCH_SPAWN_EGG = get("minecraft:witch_spawn_egg"); + @Nullable public static final ItemType WITHER_SKELETON_SKULL = get("minecraft:wither_skeleton_skull"); + @Nullable public static final ItemType WITHER_SKELETON_SPAWN_EGG = get("minecraft:wither_skeleton_spawn_egg"); + @Nullable public static final ItemType WOLF_SPAWN_EGG = get("minecraft:wolf_spawn_egg"); + @Nullable public static final ItemType WOODEN_AXE = get("minecraft:wooden_axe"); + @Nullable public static final ItemType WOODEN_HOE = get("minecraft:wooden_hoe"); + @Nullable public static final ItemType WOODEN_PICKAXE = get("minecraft:wooden_pickaxe"); + @Nullable public static final ItemType WOODEN_SHOVEL = get("minecraft:wooden_shovel"); + @Nullable public static final ItemType WOODEN_SWORD = get("minecraft:wooden_sword"); + @Nullable public static final ItemType WRITABLE_BOOK = get("minecraft:writable_book"); + @Nullable public static final ItemType WRITTEN_BOOK = get("minecraft:written_book"); + @Nullable public static final ItemType YELLOW_BANNER = get("minecraft:yellow_banner"); + @Nullable public static final ItemType YELLOW_BED = get("minecraft:yellow_bed"); + @Nullable public static final ItemType YELLOW_CARPET = get("minecraft:yellow_carpet"); + @Nullable public static final ItemType YELLOW_CONCRETE = get("minecraft:yellow_concrete"); + @Nullable public static final ItemType YELLOW_CONCRETE_POWDER = get("minecraft:yellow_concrete_powder"); + @Nullable public static final ItemType YELLOW_GLAZED_TERRACOTTA = get("minecraft:yellow_glazed_terracotta"); + @Nullable public static final ItemType YELLOW_SHULKER_BOX = get("minecraft:yellow_shulker_box"); + @Nullable public static final ItemType YELLOW_STAINED_GLASS = get("minecraft:yellow_stained_glass"); + @Nullable public static final ItemType YELLOW_STAINED_GLASS_PANE = get("minecraft:yellow_stained_glass_pane"); + @Nullable public static final ItemType YELLOW_TERRACOTTA = get("minecraft:yellow_terracotta"); + @Nullable public static final ItemType YELLOW_WOOL = get("minecraft:yellow_wool"); + @Nullable public static final ItemType ZOMBIE_HEAD = get("minecraft:zombie_head"); + @Nullable public static final ItemType ZOMBIE_HORSE_SPAWN_EGG = get("minecraft:zombie_horse_spawn_egg"); + @Nullable public static final ItemType ZOMBIE_PIGMAN_SPAWN_EGG = get("minecraft:zombie_pigman_spawn_egg"); + @Nullable public static final ItemType ZOMBIE_SPAWN_EGG = get("minecraft:zombie_spawn_egg"); + @Nullable public static final ItemType ZOMBIE_VILLAGER_SPAWN_EGG = get("minecraft:zombie_villager_spawn_egg"); private ItemTypes() { } - private static ItemType register(final String id) { - return register(new ItemType(id)); - } - - public static ItemType register(final ItemType item) { - return ItemType.REGISTRY.register(item.getId(), item); - } - public static @Nullable ItemType get(final String id) { return ItemType.REGISTRY.get(id); } diff --git a/worldedit-core/src/test/java/com/sk89q/worldedit/extent/transform/BlockTransformExtentTest.java b/worldedit-core/src/test/java/com/sk89q/worldedit/extent/transform/BlockTransformExtentTest.java index e32b7c6cd..c90f312fe 100644 --- a/worldedit-core/src/test/java/com/sk89q/worldedit/extent/transform/BlockTransformExtentTest.java +++ b/worldedit-core/src/test/java/com/sk89q/worldedit/extent/transform/BlockTransformExtentTest.java @@ -42,7 +42,7 @@ public class BlockTransformExtentTest { @Before public void setUp() throws Exception { - BlockTypes.register(new BlockType("worldedit:test")); + BlockType.REGISTRY.register("worldedit:test", new BlockType("worldedit:test")); } @Test diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java index d37b60f4e..5a5a217ad 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java @@ -129,14 +129,14 @@ public class ForgeWorldEdit { for (ResourceLocation name : Block.REGISTRY.getKeys()) { String nameStr = name.toString(); if (!BlockType.REGISTRY.keySet().contains(nameStr)) { - BlockTypes.register(new BlockType(nameStr)); + BlockType.REGISTRY.register(nameStr, new BlockType(nameStr)); } } for (ResourceLocation name : Item.REGISTRY.getKeys()) { String nameStr = name.toString(); if (!ItemType.REGISTRY.keySet().contains(nameStr)) { - ItemTypes.register(new ItemType(nameStr)); + ItemType.REGISTRY.register(nameStr, new ItemType(nameStr)); } } } diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorldEdit.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorldEdit.java index f9f085c38..f3133fb13 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorldEdit.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorldEdit.java @@ -33,7 +33,6 @@ import com.sk89q.worldedit.sponge.adapter.AdapterLoadException; import com.sk89q.worldedit.sponge.adapter.SpongeImplAdapter; import com.sk89q.worldedit.sponge.adapter.SpongeImplLoader; import com.sk89q.worldedit.sponge.config.SpongeConfiguration; -import com.sk89q.worldedit.world.item.ItemTypes; import org.bstats.sponge.Metrics2; import org.slf4j.Logger; import org.spongepowered.api.Sponge; @@ -141,14 +140,14 @@ public class SpongeWorldEdit { // TODO Handle blockstate stuff String id = blockType.getId(); if (!com.sk89q.worldedit.world.block.BlockType.REGISTRY.keySet().contains(id)) { - com.sk89q.worldedit.world.block.BlockTypes.register(new com.sk89q.worldedit.world.block.BlockType(id)); + com.sk89q.worldedit.world.block.BlockType.REGISTRY.register(id, new com.sk89q.worldedit.world.block.BlockType(id)); } } for (ItemType itemType : Sponge.getRegistry().getAllOf(ItemType.class)) { String id = itemType.getId(); if (!com.sk89q.worldedit.world.item.ItemType.REGISTRY.keySet().contains(id)) { - ItemTypes.register(new com.sk89q.worldedit.world.item.ItemType(id)); + com.sk89q.worldedit.world.item.ItemType.REGISTRY.register(id, new com.sk89q.worldedit.world.item.ItemType(id)); } } From 3683a0438a559f20326c25cf951173baf2396e0d Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 16 Feb 2019 19:58:06 +1000 Subject: [PATCH 3/6] Use nonNull rather than !isNull --- .../sk89q/worldedit/LocalConfiguration.java | 359 +++++++++--------- 1 file changed, 179 insertions(+), 180 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java index 120d4ddb4..1e9d19660 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalConfiguration.java @@ -1,180 +1,179 @@ -/* - * WorldEdit, a Minecraft world manipulation toolkit - * Copyright (C) sk89q - * Copyright (C) WorldEdit team and contributors - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program. If not, see . - */ - -package com.sk89q.worldedit; - -import com.google.common.collect.Lists; -import com.sk89q.worldedit.util.logging.LogFormat; -import com.sk89q.worldedit.world.block.BlockType; -import com.sk89q.worldedit.world.block.BlockTypes; -import com.sk89q.worldedit.world.registry.LegacyMapper; -import com.sk89q.worldedit.world.snapshot.SnapshotRepository; - -import java.io.File; -import java.util.HashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import java.util.function.IntFunction; - -/** - * Represents WorldEdit's configuration. - */ -public abstract class LocalConfiguration { - - public boolean profile = false; - public boolean traceUnflushedSessions = false; - public Set disallowedBlocks = new HashSet<>(); - public int defaultChangeLimit = -1; - public int maxChangeLimit = -1; - public int defaultMaxPolygonalPoints = -1; - public int maxPolygonalPoints = 20; - public int defaultMaxPolyhedronPoints = -1; - public int maxPolyhedronPoints = 20; - public String shellSaveType = ""; - public SnapshotRepository snapshotRepo = null; - public int maxRadius = -1; - public int maxSuperPickaxeSize = 5; - public int maxBrushRadius = 6; - public boolean logCommands = false; - public String logFile = ""; - public String logFormat = LogFormat.DEFAULT_FORMAT; - public boolean registerHelp = true; // what is the point of this, it's not even used - public String wandItem = "minecraft:wooden_axe"; - public boolean superPickaxeDrop = true; - public boolean superPickaxeManyDrop = true; - public boolean noDoubleSlash = false; - public boolean useInventory = false; - public boolean useInventoryOverride = false; - public boolean useInventoryCreativeOverride = false; - public boolean navigationUseGlass = true; - public String navigationWand = "minecraft:compass"; - public int navigationWandMaxDistance = 50; - public int scriptTimeout = 3000; - public int calculationTimeout = 100; - public Set allowedDataCycleBlocks = new HashSet<>(); - public String saveDir = "schematics"; - public String scriptsDir = "craftscripts"; - public boolean showHelpInfo = true; - public int butcherDefaultRadius = -1; - public int butcherMaxRadius = -1; - public boolean allowSymlinks = false; - public boolean serverSideCUI = true; - - protected String[] getDefaultDisallowedBlocks() { - List blockTypes = Lists.newArrayList( - BlockTypes.OAK_SAPLING, - BlockTypes.JUNGLE_SAPLING, - BlockTypes.DARK_OAK_SAPLING, - BlockTypes.SPRUCE_SAPLING, - BlockTypes.BIRCH_SAPLING, - BlockTypes.ACACIA_SAPLING, - BlockTypes.BLACK_BED, - BlockTypes.BLUE_BED, - BlockTypes.BROWN_BED, - BlockTypes.CYAN_BED, - BlockTypes.GRAY_BED, - BlockTypes.GREEN_BED, - BlockTypes.LIGHT_BLUE_BED, - BlockTypes.LIGHT_GRAY_BED, - BlockTypes.LIME_BED, - BlockTypes.MAGENTA_BED, - BlockTypes.ORANGE_BED, - BlockTypes.PINK_BED, - BlockTypes.PURPLE_BED, - BlockTypes.RED_BED, - BlockTypes.WHITE_BED, - BlockTypes.YELLOW_BED, - BlockTypes.POWERED_RAIL, - BlockTypes.DETECTOR_RAIL, - BlockTypes.GRASS, - BlockTypes.DEAD_BUSH, - BlockTypes.MOVING_PISTON, - BlockTypes.PISTON_HEAD, - BlockTypes.SUNFLOWER, - BlockTypes.ROSE_BUSH, - BlockTypes.DANDELION, - BlockTypes.POPPY, - BlockTypes.BROWN_MUSHROOM, - BlockTypes.RED_MUSHROOM, - BlockTypes.TNT, - BlockTypes.TORCH, - BlockTypes.FIRE, - BlockTypes.REDSTONE_WIRE, - BlockTypes.WHEAT, - BlockTypes.POTATOES, - BlockTypes.CARROTS, - BlockTypes.MELON_STEM, - BlockTypes.PUMPKIN_STEM, - BlockTypes.BEETROOTS, - BlockTypes.RAIL, - BlockTypes.LEVER, - BlockTypes.REDSTONE_TORCH, - BlockTypes.REDSTONE_WALL_TORCH, - BlockTypes.REPEATER, - BlockTypes.COMPARATOR, - BlockTypes.STONE_BUTTON, - BlockTypes.BIRCH_BUTTON, - BlockTypes.ACACIA_BUTTON, - BlockTypes.DARK_OAK_BUTTON, - BlockTypes.JUNGLE_BUTTON, - BlockTypes.OAK_BUTTON, - BlockTypes.SPRUCE_BUTTON, - BlockTypes.CACTUS, - BlockTypes.SUGAR_CANE, - // ores and stuff - BlockTypes.BEDROCK - ); - return blockTypes.stream().filter(type -> !Objects.isNull(type)).map(BlockType::getId).toArray(String[]::new); - } - - /** - * Load the configuration. - */ - public abstract void load(); - - /** - * Get the working directory to work from. - * - * @return a working directory - */ - public File getWorkingDirectory() { - return new File("."); - } - - public String convertLegacyItem(String legacy) { - String item = legacy; - try { - String[] splitter = item.split(":", 2); - int id = 0; - byte data = 0; - if (splitter.length == 1) { - id = Integer.parseInt(item); - } else { - id = Integer.parseInt(splitter[0]); - data = Byte.parseByte(splitter[1]); - } - item = LegacyMapper.getInstance().getItemFromLegacy(id, data).getId(); - } catch (Throwable e) { - } - - return item; - } - -} +/* + * WorldEdit, a Minecraft world manipulation toolkit + * Copyright (C) sk89q + * Copyright (C) WorldEdit team and contributors + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + +package com.sk89q.worldedit; + +import com.google.common.collect.Lists; +import com.sk89q.worldedit.util.logging.LogFormat; +import com.sk89q.worldedit.world.block.BlockType; +import com.sk89q.worldedit.world.block.BlockTypes; +import com.sk89q.worldedit.world.registry.LegacyMapper; +import com.sk89q.worldedit.world.snapshot.SnapshotRepository; + +import java.io.File; +import java.util.HashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; + +/** + * Represents WorldEdit's configuration. + */ +public abstract class LocalConfiguration { + + public boolean profile = false; + public boolean traceUnflushedSessions = false; + public Set disallowedBlocks = new HashSet<>(); + public int defaultChangeLimit = -1; + public int maxChangeLimit = -1; + public int defaultMaxPolygonalPoints = -1; + public int maxPolygonalPoints = 20; + public int defaultMaxPolyhedronPoints = -1; + public int maxPolyhedronPoints = 20; + public String shellSaveType = ""; + public SnapshotRepository snapshotRepo = null; + public int maxRadius = -1; + public int maxSuperPickaxeSize = 5; + public int maxBrushRadius = 6; + public boolean logCommands = false; + public String logFile = ""; + public String logFormat = LogFormat.DEFAULT_FORMAT; + public boolean registerHelp = true; // what is the point of this, it's not even used + public String wandItem = "minecraft:wooden_axe"; + public boolean superPickaxeDrop = true; + public boolean superPickaxeManyDrop = true; + public boolean noDoubleSlash = false; + public boolean useInventory = false; + public boolean useInventoryOverride = false; + public boolean useInventoryCreativeOverride = false; + public boolean navigationUseGlass = true; + public String navigationWand = "minecraft:compass"; + public int navigationWandMaxDistance = 50; + public int scriptTimeout = 3000; + public int calculationTimeout = 100; + public Set allowedDataCycleBlocks = new HashSet<>(); + public String saveDir = "schematics"; + public String scriptsDir = "craftscripts"; + public boolean showHelpInfo = true; + public int butcherDefaultRadius = -1; + public int butcherMaxRadius = -1; + public boolean allowSymlinks = false; + public boolean serverSideCUI = true; + + protected String[] getDefaultDisallowedBlocks() { + List blockTypes = Lists.newArrayList( + BlockTypes.OAK_SAPLING, + BlockTypes.JUNGLE_SAPLING, + BlockTypes.DARK_OAK_SAPLING, + BlockTypes.SPRUCE_SAPLING, + BlockTypes.BIRCH_SAPLING, + BlockTypes.ACACIA_SAPLING, + BlockTypes.BLACK_BED, + BlockTypes.BLUE_BED, + BlockTypes.BROWN_BED, + BlockTypes.CYAN_BED, + BlockTypes.GRAY_BED, + BlockTypes.GREEN_BED, + BlockTypes.LIGHT_BLUE_BED, + BlockTypes.LIGHT_GRAY_BED, + BlockTypes.LIME_BED, + BlockTypes.MAGENTA_BED, + BlockTypes.ORANGE_BED, + BlockTypes.PINK_BED, + BlockTypes.PURPLE_BED, + BlockTypes.RED_BED, + BlockTypes.WHITE_BED, + BlockTypes.YELLOW_BED, + BlockTypes.POWERED_RAIL, + BlockTypes.DETECTOR_RAIL, + BlockTypes.GRASS, + BlockTypes.DEAD_BUSH, + BlockTypes.MOVING_PISTON, + BlockTypes.PISTON_HEAD, + BlockTypes.SUNFLOWER, + BlockTypes.ROSE_BUSH, + BlockTypes.DANDELION, + BlockTypes.POPPY, + BlockTypes.BROWN_MUSHROOM, + BlockTypes.RED_MUSHROOM, + BlockTypes.TNT, + BlockTypes.TORCH, + BlockTypes.FIRE, + BlockTypes.REDSTONE_WIRE, + BlockTypes.WHEAT, + BlockTypes.POTATOES, + BlockTypes.CARROTS, + BlockTypes.MELON_STEM, + BlockTypes.PUMPKIN_STEM, + BlockTypes.BEETROOTS, + BlockTypes.RAIL, + BlockTypes.LEVER, + BlockTypes.REDSTONE_TORCH, + BlockTypes.REDSTONE_WALL_TORCH, + BlockTypes.REPEATER, + BlockTypes.COMPARATOR, + BlockTypes.STONE_BUTTON, + BlockTypes.BIRCH_BUTTON, + BlockTypes.ACACIA_BUTTON, + BlockTypes.DARK_OAK_BUTTON, + BlockTypes.JUNGLE_BUTTON, + BlockTypes.OAK_BUTTON, + BlockTypes.SPRUCE_BUTTON, + BlockTypes.CACTUS, + BlockTypes.SUGAR_CANE, + // ores and stuff + BlockTypes.BEDROCK + ); + return blockTypes.stream().filter(Objects::nonNull).map(BlockType::getId).toArray(String[]::new); + } + + /** + * Load the configuration. + */ + public abstract void load(); + + /** + * Get the working directory to work from. + * + * @return a working directory + */ + public File getWorkingDirectory() { + return new File("."); + } + + public String convertLegacyItem(String legacy) { + String item = legacy; + try { + String[] splitter = item.split(":", 2); + int id = 0; + byte data = 0; + if (splitter.length == 1) { + id = Integer.parseInt(item); + } else { + id = Integer.parseInt(splitter[0]); + data = Byte.parseByte(splitter[1]); + } + item = LegacyMapper.getInstance().getItemFromLegacy(id, data).getId(); + } catch (Throwable e) { + } + + return item; + } + +} From a09489a9af837296929350913d9c2414502f1020 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 16 Feb 2019 20:51:39 +1000 Subject: [PATCH 4/6] Updated the adapters --- .../adapter/impl/Spigot_v1_13_R1$1.class | Bin 959 -> 959 bytes .../bukkit/adapter/impl/Spigot_v1_13_R1.class | Bin 26260 -> 25469 bytes .../adapter/impl/Spigot_v1_13_R2$1.class | Bin 959 -> 959 bytes .../bukkit/adapter/impl/Spigot_v1_13_R2.class | Bin 26252 -> 25491 bytes .../adapter/impl/Spigot_v1_13_R2_2$1.class | Bin 965 -> 965 bytes .../adapter/impl/Spigot_v1_13_R2_2.class | Bin 26318 -> 25557 bytes 6 files changed, 0 insertions(+), 0 deletions(-) diff --git a/worldedit-bukkit/src/main/resources/com/sk89q/worldedit/bukkit/adapter/impl/Spigot_v1_13_R1$1.class b/worldedit-bukkit/src/main/resources/com/sk89q/worldedit/bukkit/adapter/impl/Spigot_v1_13_R1$1.class index 3e9eb5d6c2705eea72afefc0bba87bf6c9b9b94b..1be36a1548ae79e29a8f2658a12ac417d786ced7 100644 GIT binary patch delta 13 UcmdnbzMp+V4l|?ZAov2@wdW;D<`HgUV+w*s&s#_dj=&h`#sWx3hDnoH_M>&fM(E*ZHqq9Nu$s%QhnF zVhyo5g^x?~r%g$G!sfsDWE{8TI-|%|tQ3ZoHp=oTk9575RK`|56=#&~Q+}hII2ErF zWHM1ElWdi&;%t?oQl)8PtAI+gX})SIy>wdzRk)c=EmU)(TF7^X3}wn>OKGqnOSQ69 zYn5$Oj(q1z(?*)M(zNrdJe6;&0##^Jwkk5Jy-fwGgRMHMPDT~m)LuktsX9y3#i-M4 z)m3$qrn{`^VTV;n^^Buls+V8&R()*MSM?K4`rB%N8ferY8*_tYZiw_w7dk_2Y&yfJ zGi@56hRMiqAD?T~2%CnekvLP0^6_{dm&nv;Ip-{C&W__&YK%=&)z~<7jyhMGabao4 zOH(4v1ZmFmtBLA-znY{b`_&XxD$P`*ruk`tnr>8?pC+mcY&Ap8l#y9R%{FR|QFGS9}6qAvB*Y;~DYOGQ(c8+Cz zH8w3&*GhApt*(bcFn5DI4vSMas+;_@T1^%)ZVCCKH2Hv0t8Ka=%*TD|L3GqZ(lm$HsfR_jHGcJonrzggMy)k!ouBSd zk4dw}R_oQ{Hr=J3FlvJ=dNPHSdfKm^QJZY_tlBKS3ZtI0>0Vj$deP`77M*U#Zhw4Y0j;NoE zI%d?*c9=d^zu5GN`qil4jQZVA3F;475i8s6(U4 z)~taH#abI}L0IjvRlN3!?E4_AHX`*K5K{YW9j9#(`W?uq{kC>=d{|^Y3^8?rtrK+; z1k}kQ>PHYwr-+cB;Y3#mor<1r0`_&l)@iz_Nb?hz*Xgzn>Si`%`4znD<~Dr}0dxyt z1(=eoGmUQP(^*Eh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Spigot_v1_13_R2$1.class b/worldedit-bukkit/src/main/resources/com/sk89q/worldedit/bukkit/adapter/impl/Spigot_v1_13_R2$1.class index 9013c9a0b3e3abe766aeccb36ede23be9ad99957..fe6e8015a0812e54e0750abb1ba049e53a05a4cd 100644 GIT binary patch delta 13 UcmdnbzMp+V4l|?VGq3&M+r8Yjl_PI(c+0W1 z>xrm~HPGe^{#%-(Hl^}EHXq}<1kP1t6x&KE4YIO~^7xcjx<&?lwn|X8QHeg~7?qTu zl2wWfrpjQNt1bAZAJFs-NmFCmE0k+CZZQ+0;v& zA!CE3H$?ahl|`jS4YO&08ZMMGeLTvjvuqly&c>c zYKBlQF>0n!vy7T8+g)nZWk$`hX{stuCsJ40>S}dOBF$9S8g-qm!o@0V)b%#aR`cah z3yfMQ>u!+dMxz$l>LzuwO_!@%q*-jMTcHq)-6oI26V&bMjzn6fCW@GM%D`P>h`Xh^ zN1BK<_eyi0m~csgx?epYJ5{6;t4E;!N7YiJmf3VG|Ls$c;jSK+CKnESgIgjf&aypv2Y~jYgCO*;isklichT*uU&7`3gs7dziL#iP0yKKaM!juQ72FGoct@J8HkGJ%je5_hZ8oh_+ihB}b{O@(Q9Etg zpmy1`QH4J+>O-S;+q6l2WYcD~$Ec5u`oyNU)Lxsms85ahO#J9`o3^U6jrziUTG0#6XC8%Q(^L6NH zg6TC&qin6U1&OuCXu!jIZETgSeIob{2&xlAolDX>2!w3`4!~SK#!dejuKo6G;kzA<8=FU6I*BMfQa%NPOh_T-BdRdLH@$o zb+*wta*F1_A)RY+hx@96~B3@{kZe>%}WZl~6Ha^|fr}J%Y26=UX(LtjND~mk& zY!w;Zu5z?DsH{B1QRO1vM;ysWT*GHXUQe8rimB}ZMMf7J-NERNm3^I|Dz%f*odG=v zFaUt6-{a_rzSq(B>1jqU zarFKA0Y_Iz^Pn^jN%OEYkLU;BV~&1QFEzTGqnGK&j0T^_^%IVMQa{C%5jm8a;dAuU z@=%CFG>W{C8%P~1#wwAsEqC+^{Z!<`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ob|E;bb3v?{qmo=*4e}^dbFqU%xfUnqplD7rO<+sHoJfSi4Hyrfzq88`KMG Squbl6wyF57vF>iQ_5T3m5=F=W diff --git a/worldedit-bukkit/src/main/resources/com/sk89q/worldedit/bukkit/adapter/impl/Spigot_v1_13_R2_2$1.class b/worldedit-bukkit/src/main/resources/com/sk89q/worldedit/bukkit/adapter/impl/Spigot_v1_13_R2_2$1.class index bc7274567d2c0f3e07c1344aaccce3bcc8d6d9f6..686d09a33c7e1a3ac66ae427aec9fe24a348dd65 100644 GIT binary patch delta 13 UcmX@gew2Mf5i_IY@a8_exGuT zN={NKDpeZOq%qxA8Pb^PQ_XA&sDKn%wrZ}jr3l(8C!$)|G*7ieRpr_$PqnfsU*#KB zAn$-sT1#6SDKMa|YG#^#6!@)TpI4-O7LY)MI$7$EC=J0jeiNtS9~I z-)gc^PZ_n$sHgoDRm-J#(pJx?XKlJqJ!jPO(&>c^QtBnYTB&Mm^|E?JYB8hYHa#eP zYBNZymuz}mK2{l3Z&TzcslVz|tHo;9*z~jth`QGr)nL=}YF(0Aul{4yYqr`T*0w>c zZ3C>0R;Z1(dR@I?)Fzu^YO_&q+Efekf+F6MVv9|cYO7Ii8@0`*)oQy$>R2^14jL9 z)Gs!Dst(!_+NXXs>Nlf)w`srn!=^9PpGF<>QwltlzE%OF{xS-X@V#u$-!>(wBjWQ% zQPYI2*DQsywbm9S)*hn)4{NlsRf_hB;5#6wP7;ydg@oF+wO>0T@CVTUW}R&76b;bW zq&|X-I?dMUIs?+_Op)_*$fbcEJ0Tn;xe{pLNRr0t_UY!f&elN@VXohZUQ_fV~&gep)F7oMOn_EI&U1D^|=+c@p zPl&BDqswc?c|*!7fFIS|?0cW10sqT9B)ZW*Ck!y zl?B2#HKzqj*!IARjSd^#J$ggV=N{~+E~vS%g@d^)V+-E?dU$bufuJ* z9aCv^U8nr$i!GB=`Z>D49^mMKe2}R)dUv;i=(jD?G6(6w4i|Ef(L)?PR1afnhqiXn z&bj%S!yP?>_c?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cz=KnC`DJM58xyBMbgyTi}{is1XAzD(Nx(B8;A?2SXJ~$4l?6F}^oU-o3$DXhUy`vlu z-Uq{+6z1dzHy8GYy@5kAa5&5-+f2^i7_-`^>FL1C- z>sn5o80OY+*bSw8I>ID#+W&xQ$d=pQfaAbji0Hsp&L{h-LBHdtFaPvl$Gi`T1S-k|z4MNc185=U_ZwE#53z4BPWiDUT>yhQNfl}u024#SOGAWt9R zKLH`@@$@O;Qo!f!lTn7=eyoUskG#T&@;w3F2;_95WdENOY8Netfj38qTcxyW)hZ>$ zLn8c$1Z6sar~`rpRQ!;M Date: Sun, 17 Feb 2019 13:30:40 +1000 Subject: [PATCH 5/6] Update the block/item category registries - this won't build until a Spigot PR is merged though. --- .../worldedit/bukkit/WorldEditPlugin.java | 15 ++++ .../world/block/BlockCategories.java | 72 +++++++++---------- .../worldedit/world/item/ItemCategories.java | 68 ++++++++---------- .../worldedit/world/weather/WeatherTypes.java | 21 +++--- 4 files changed, 87 insertions(+), 89 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 2a05d9c2d..6509db543 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -41,13 +41,17 @@ import com.sk89q.worldedit.extension.platform.Platform; import com.sk89q.worldedit.extent.inventory.BlockBag; import com.sk89q.worldedit.registry.state.Property; import com.sk89q.worldedit.world.biome.BiomeType; +import com.sk89q.worldedit.world.block.BlockCategory; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.block.FuzzyBlockState; import com.sk89q.worldedit.world.entity.EntityType; +import com.sk89q.worldedit.world.item.ItemCategory; import com.sk89q.worldedit.world.item.ItemType; import org.bstats.bukkit.Metrics; +import org.bukkit.Bukkit; import org.bukkit.Material; +import org.bukkit.Tag; import org.bukkit.block.Biome; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; @@ -158,6 +162,17 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter { for (org.bukkit.entity.EntityType entityType : org.bukkit.entity.EntityType.values()) { EntityType.REGISTRY.register("minecraft:" + entityType.name().toLowerCase(), new EntityType("minecraft:" + entityType.name().toLowerCase())); } + // Tags + try { + for (org.bukkit.Tag blockTag : Bukkit.getTags(Tag.REGISTRY_BLOCKS, Material.class)) { + BlockCategory.REGISTRY.register(blockTag.getKey().toString(), new BlockCategory(blockTag.getKey().toString())); + } + for (org.bukkit.Tag itemTag : Bukkit.getTags(Tag.REGISTRY_ITEMS, Material.class)) { + ItemCategory.REGISTRY.register(itemTag.getKey().toString(), new ItemCategory(itemTag.getKey().toString())); + } + } catch (NoSuchMethodError e) { + getLogger().warning("The version of Spigot/Paper you are using doesn't support Tags. The usage of tags with WorldEdit will not work until you update."); + } } private void loadConfig() { diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockCategories.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockCategories.java index b9e08aab8..5d5304f5b 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockCategories.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockCategories.java @@ -26,50 +26,42 @@ import javax.annotation.Nullable; */ public final class BlockCategories { - public static final BlockCategory ACACIA_LOGS = register("minecraft:acacia_logs"); - public static final BlockCategory ANVIL = register("minecraft:anvil"); - public static final BlockCategory BANNERS = register("minecraft:banners"); - public static final BlockCategory BIRCH_LOGS = register("minecraft:birch_logs"); - public static final BlockCategory BUTTONS = register("minecraft:buttons"); - public static final BlockCategory CARPETS = register("minecraft:carpets"); - public static final BlockCategory CORALS = register("minecraft:corals"); - public static final BlockCategory CORAL_BLOCKS = register("minecraft:coral_blocks"); - public static final BlockCategory DARK_OAK_LOGS = register("minecraft:dark_oak_logs"); - public static final BlockCategory DOORS = register("minecraft:doors"); - public static final BlockCategory ENDERMAN_HOLDABLE = register("minecraft:enderman_holdable"); - public static final BlockCategory FLOWER_POTS = register("minecraft:flower_pots"); - public static final BlockCategory ICE = register("minecraft:ice"); - public static final BlockCategory JUNGLE_LOGS = register("minecraft:jungle_logs"); - public static final BlockCategory LEAVES = register("minecraft:leaves"); - public static final BlockCategory LOGS = register("minecraft:logs"); - public static final BlockCategory OAK_LOGS = register("minecraft:oak_logs"); - public static final BlockCategory PLANKS = register("minecraft:planks"); - public static final BlockCategory RAILS = register("minecraft:rails"); - public static final BlockCategory SAND = register("minecraft:sand"); - public static final BlockCategory SAPLINGS = register("minecraft:saplings"); - public static final BlockCategory SLABS = register("minecraft:slabs"); - public static final BlockCategory SPRUCE_LOGS = register("minecraft:spruce_logs"); - public static final BlockCategory STAIRS = register("minecraft:stairs"); - public static final BlockCategory STONE_BRICKS = register("minecraft:stone_bricks"); - public static final BlockCategory VALID_SPAWN = register("minecraft:valid_spawn"); - public static final BlockCategory WOODEN_BUTTONS = register("minecraft:wooden_buttons"); - public static final BlockCategory WOODEN_DOORS = register("minecraft:wooden_doors"); - public static final BlockCategory WOODEN_PRESSURE_PLATES = register("minecraft:wooden_pressure_plates"); - public static final BlockCategory WOODEN_SLABS = register("minecraft:wooden_slabs"); - public static final BlockCategory WOODEN_STAIRS = register("minecraft:wooden_stairs"); - public static final BlockCategory WOOL = register("minecraft:wool"); + public static final BlockCategory ACACIA_LOGS = get("minecraft:acacia_logs"); + public static final BlockCategory ANVIL = get("minecraft:anvil"); + public static final BlockCategory BANNERS = get("minecraft:banners"); + public static final BlockCategory BIRCH_LOGS = get("minecraft:birch_logs"); + public static final BlockCategory BUTTONS = get("minecraft:buttons"); + public static final BlockCategory CARPETS = get("minecraft:carpets"); + public static final BlockCategory CORALS = get("minecraft:corals"); + public static final BlockCategory CORAL_BLOCKS = get("minecraft:coral_blocks"); + public static final BlockCategory DARK_OAK_LOGS = get("minecraft:dark_oak_logs"); + public static final BlockCategory DOORS = get("minecraft:doors"); + public static final BlockCategory ENDERMAN_HOLDABLE = get("minecraft:enderman_holdable"); + public static final BlockCategory FLOWER_POTS = get("minecraft:flower_pots"); + public static final BlockCategory ICE = get("minecraft:ice"); + 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 OAK_LOGS = get("minecraft:oak_logs"); + public static final BlockCategory PLANKS = get("minecraft:planks"); + public static final BlockCategory RAILS = get("minecraft:rails"); + public static final BlockCategory SAND = get("minecraft:sand"); + public static final BlockCategory SAPLINGS = get("minecraft:saplings"); + public static final BlockCategory SLABS = get("minecraft:slabs"); + public static final BlockCategory SPRUCE_LOGS = get("minecraft:spruce_logs"); + public static final BlockCategory STAIRS = get("minecraft:stairs"); + public static final BlockCategory STONE_BRICKS = get("minecraft:stone_bricks"); + public static final BlockCategory VALID_SPAWN = get("minecraft:valid_spawn"); + public static final BlockCategory WOODEN_BUTTONS = get("minecraft:wooden_buttons"); + public static final BlockCategory WOODEN_DOORS = get("minecraft:wooden_doors"); + public static final BlockCategory WOODEN_PRESSURE_PLATES = get("minecraft:wooden_pressure_plates"); + public static final BlockCategory WOODEN_SLABS = get("minecraft:wooden_slabs"); + public static final BlockCategory WOODEN_STAIRS = get("minecraft:wooden_stairs"); + public static final BlockCategory WOOL = get("minecraft:wool"); private BlockCategories() { } - private static BlockCategory register(final String id) { - return register(new BlockCategory(id)); - } - - public static BlockCategory register(final BlockCategory tag) { - return BlockCategory.REGISTRY.register(tag.getId(), tag); - } - public static @Nullable BlockCategory get(final String id) { return BlockCategory.REGISTRY.get(id); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemCategories.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemCategories.java index 68f232d7b..460473d22 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemCategories.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemCategories.java @@ -26,48 +26,40 @@ import javax.annotation.Nullable; */ public final class ItemCategories { - public static final ItemCategory ACACIA_LOGS = register("minecraft:acacia_logs"); - public static final ItemCategory ANVIL = register("minecraft:anvil"); - public static final ItemCategory BANNERS = register("minecraft:banners"); - public static final ItemCategory BIRCH_LOGS = register("minecraft:birch_logs"); - public static final ItemCategory BOATS = register("minecraft:boats"); - public static final ItemCategory BUTTONS = register("minecraft:buttons"); - public static final ItemCategory CARPETS = register("minecraft:carpets"); - public static final ItemCategory CORAL = register("minecraft:coral"); - public static final ItemCategory CORAL_PLANTS = register("minecraft:coral_plants"); - public static final ItemCategory DARK_OAK_LOGS = register("minecraft:dark_oak_logs"); - public static final ItemCategory DOORS = register("minecraft:doors"); - public static final ItemCategory FISHES = register("minecraft:fishes"); - public static final ItemCategory JUNGLE_LOGS = register("minecraft:jungle_logs"); - public static final ItemCategory LEAVES = register("minecraft:leaves"); - public static final ItemCategory LOGS = register("minecraft:logs"); - public static final ItemCategory OAK_LOGS = register("minecraft:oak_logs"); - public static final ItemCategory PLANKS = register("minecraft:planks"); - public static final ItemCategory RAILS = register("minecraft:rails"); - public static final ItemCategory SAND = register("minecraft:sand"); - public static final ItemCategory SAPLINGS = register("minecraft:saplings"); - public static final ItemCategory SLABS = register("minecraft:slabs"); - public static final ItemCategory SPRUCE_LOGS = register("minecraft:spruce_logs"); - public static final ItemCategory STAIRS = register("minecraft:stairs"); - public static final ItemCategory STONE_BRICKS = register("minecraft:stone_bricks"); - public static final ItemCategory WOODEN_BUTTONS = register("minecraft:wooden_buttons"); - public static final ItemCategory WOODEN_DOORS = register("minecraft:wooden_doors"); - public static final ItemCategory WOODEN_PRESSURE_PLATES = register("minecraft:wooden_pressure_plates"); - public static final ItemCategory WOODEN_SLABS = register("minecraft:wooden_slabs"); - public static final ItemCategory WOODEN_STAIRS = register("minecraft:wooden_stairs"); - public static final ItemCategory WOOL = register("minecraft:wool"); + public static final ItemCategory ACACIA_LOGS = get("minecraft:acacia_logs"); + public static final ItemCategory ANVIL = get("minecraft:anvil"); + public static final ItemCategory BANNERS = get("minecraft:banners"); + public static final ItemCategory BIRCH_LOGS = get("minecraft:birch_logs"); + public static final ItemCategory BOATS = get("minecraft:boats"); + public static final ItemCategory BUTTONS = get("minecraft:buttons"); + public static final ItemCategory CARPETS = get("minecraft:carpets"); + public static final ItemCategory CORAL = get("minecraft:coral"); + public static final ItemCategory CORAL_PLANTS = get("minecraft:coral_plants"); + public static final ItemCategory DARK_OAK_LOGS = get("minecraft:dark_oak_logs"); + public static final ItemCategory DOORS = get("minecraft:doors"); + public static final ItemCategory FISHES = get("minecraft:fishes"); + public static final ItemCategory JUNGLE_LOGS = get("minecraft:jungle_logs"); + public static final ItemCategory LEAVES = get("minecraft:leaves"); + public static final ItemCategory LOGS = get("minecraft:logs"); + public static final ItemCategory OAK_LOGS = get("minecraft:oak_logs"); + public static final ItemCategory PLANKS = get("minecraft:planks"); + public static final ItemCategory RAILS = get("minecraft:rails"); + public static final ItemCategory SAND = get("minecraft:sand"); + public static final ItemCategory SAPLINGS = get("minecraft:saplings"); + public static final ItemCategory SLABS = get("minecraft:slabs"); + 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 WOODEN_BUTTONS = get("minecraft:wooden_buttons"); + public static final ItemCategory WOODEN_DOORS = get("minecraft:wooden_doors"); + public static final ItemCategory WOODEN_PRESSURE_PLATES = get("minecraft:wooden_pressure_plates"); + public static final ItemCategory WOODEN_SLABS = get("minecraft:wooden_slabs"); + public static final ItemCategory WOODEN_STAIRS = get("minecraft:wooden_stairs"); + public static final ItemCategory WOOL = get("minecraft:wool"); private ItemCategories() { } - private static ItemCategory register(final String id) { - return register(new ItemCategory(id)); - } - - public static ItemCategory register(final ItemCategory tag) { - return ItemCategory.REGISTRY.register(tag.getId(), tag); - } - public static @Nullable ItemCategory get(final String id) { return ItemCategory.REGISTRY.get(id); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/weather/WeatherTypes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/weather/WeatherTypes.java index 1aa1c9f12..d7450610d 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/weather/WeatherTypes.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/weather/WeatherTypes.java @@ -23,21 +23,20 @@ import javax.annotation.Nullable; public class WeatherTypes { - public static final WeatherType CLEAR = register("clear"); - public static final WeatherType RAIN = register("rain"); - public static final WeatherType THUNDER_STORM = register("thunder_storm"); + static { + // This isn't really a proper registry - so inject these before they're obtained. + WeatherType.REGISTRY.register("clear", new WeatherType("clear")); + WeatherType.REGISTRY.register("rain", new WeatherType("rain")); + WeatherType.REGISTRY.register("thunder_storm", new WeatherType("thunder_storm")); + } + + @Nullable public static final WeatherType CLEAR = get("clear"); + @Nullable public static final WeatherType RAIN = get("rain"); + @Nullable public static final WeatherType THUNDER_STORM = get("thunder_storm"); private WeatherTypes() { } - private static WeatherType register(final String id) { - return register(new WeatherType(id)); - } - - public static WeatherType register(final WeatherType weatherType) { - return WeatherType.REGISTRY.register(weatherType.getId(), weatherType); - } - public static @Nullable WeatherType get(final String id) { return WeatherType.REGISTRY.get(id); } From 8984289695b9feb5615e29273746803f1649aa59 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 18 Feb 2019 20:56:21 +1000 Subject: [PATCH 6/6] Bump Spigot version so it compiles. --- worldedit-bukkit/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/build.gradle b/worldedit-bukkit/build.gradle index 050ee45f9..bd98623f8 100644 --- a/worldedit-bukkit/build.gradle +++ b/worldedit-bukkit/build.gradle @@ -12,7 +12,7 @@ repositories { dependencies { compile project(':worldedit-core') compile 'com.sk89q:dummypermscompat:1.8' - compile 'org.bukkit:bukkit:1.13-R0.1-SNAPSHOT' // zzz + compile 'org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT' // zzz compile 'org.bstats:bstats-bukkit:1.4' compile "io.papermc:paperlib:1.0.1" compileOnly "net.milkbowl.vault:VaultAPI:1.7"