Support for 1.20.5/6 (#2721)

* 1.20.6

Signed-off-by: Alexander Brandes <mc.cache@web.de>

* work

Signed-off-by: Alexander Brandes <mc.cache@web.de>

* More work

Signed-off-by: Alexander Brandes <mc.cache@web.de>

* chore: address more removed fields and methods, make it run

* chore: don't allocate unnecessary arrays (by maps)

* chore: the comment might still be noteworthy

* chore: no need to synchronize twice

* fix obfuscation changes

* remove unneeded deprecation

* make regen work without throwing exceptions - but slow

* fix: error when adapting BaseItemStacks without nbt

* fix annoying paper api breakage

---------

Signed-off-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>
This commit is contained in:
Hannes Greule
2024-05-19 13:32:18 +02:00
committed by GitHub
parent c9b2f441c1
commit a353c12df0
52 changed files with 1527 additions and 1359 deletions

View File

@ -23,7 +23,7 @@ import javax.annotation.Nullable;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.net.JarURLConnection;
import java.net.URL;
import java.net.URI;
import java.util.function.Supplier;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
@ -73,8 +73,7 @@ public class WorldEditManifest {
}
try {
URL url = new URL(classPath);
JarURLConnection jarConnection = (JarURLConnection) url.openConnection();
JarURLConnection jarConnection = (JarURLConnection) URI.create(classPath).toURL().openConnection();
Manifest manifest = jarConnection.getManifest();
return manifest.getMainAttributes();
} catch (IOException e) {

View File

@ -56,6 +56,7 @@ public class BaseEntity implements NbtValued {
* @param nbtData NBT data
* @deprecated Use {@link BaseEntity#BaseEntity(EntityType, LazyReference)}
*/
@SuppressWarnings("this-escape")
@Deprecated
public BaseEntity(EntityType type, CompoundTag nbtData) {
this(type);
@ -87,6 +88,7 @@ public class BaseEntity implements NbtValued {
*
* @param other the object to clone
*/
@SuppressWarnings("this-escape")
public BaseEntity(BaseEntity other) {
checkNotNull(other);
this.type = other.getType();

View File

@ -62,6 +62,7 @@ public class BlockChangeLimiter extends AbstractDelegateExtent {
*
* @param limit the limit (&gt;= 0) or -1 for no limit
*/
@SuppressWarnings("this-escape") // Unlikely anyone is extending this in practice
public void setLimit(int limit) {
checkArgument(limit >= -1, "limit >= -1 required");
this.limit = limit;

View File

@ -19,11 +19,16 @@
package com.sk89q.worldedit.util.io;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.IOException;
import java.io.InputStream;
public class ForwardSeekableInputStream extends InputStream {
private static final Logger LOGGER = LogManager.getLogger();
protected InputStream parent;
protected long position = 0;
@ -60,7 +65,7 @@ public class ForwardSeekableInputStream extends InputStream {
@Override
public int read(byte[] b, int off, int len) throws IOException {
int read = super.read(b, off, len);
int read = parent.read(b, off, len);
position += read;
return read;
}
@ -86,6 +91,7 @@ public class ForwardSeekableInputStream extends InputStream {
public void seek(long n) throws IOException {
long diff = n - position;
LOGGER.error("Seek to {} from {} using {}", n, position, diff);
if (diff < 0) {
throw new IOException("Can't seek backwards");

View File

@ -357,7 +357,7 @@ public class HttpRequest implements Closeable {
*/
public static URL url(String url) {
try {
return new URL(url);
return URI.create(url).toURL();
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
@ -371,13 +371,7 @@ public class HttpRequest implements Closeable {
*/
private static URL reformat(URL existing) {
try {
URL url = new URL(existing.toString());
URI uri = new URI(
url.getProtocol(), url.getUserInfo(), url.getHost(), url.getPort(),
url.getPath(), url.getQuery(), url.getRef()
);
url = uri.toURL();
return url;
return existing.toURI().toURL();
} catch (MalformedURLException | URISyntaxException e) {
return existing;
}

View File

@ -24,6 +24,7 @@ import com.google.gson.reflect.TypeToken;
import com.sk89q.worldedit.util.net.HttpRequest;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.util.Map;
import java.util.concurrent.Callable;
@ -83,7 +84,7 @@ public class EngineHubPaste implements Paster {
.execute()
.expectResponseCode(200, 204);
return new URL(response.viewUrl);
return URI.create(response.viewUrl).toURL();
}
}

View File

@ -82,21 +82,22 @@ public class FutureForwardingTask<V> extends AbstractTask<V> {
return future.get(timeout, unit);
}
// TODO: consider deprecating in favor of Future.State?
@Override
public State getState() {
public Task.State getState() {
if (isCancelled()) {
return State.CANCELLED;
return Task.State.CANCELLED;
} else if (isDone()) {
try {
get();
return State.SUCCEEDED;
return Task.State.SUCCEEDED;
} catch (InterruptedException e) {
return State.CANCELLED;
return Task.State.CANCELLED;
} catch (ExecutionException e) {
return State.FAILED;
return Task.State.FAILED;
}
} else {
return State.RUNNING;
return Task.State.RUNNING;
}
}

View File

@ -33,8 +33,10 @@ public final class BlockCategories {
public static final BlockCategory ANCIENT_CITY_REPLACEABLE = get("minecraft:ancient_city_replaceable");
public static final BlockCategory ANIMALS_SPAWNABLE_ON = get("minecraft:animals_spawnable_on");
public static final BlockCategory ANVIL = get("minecraft:anvil");
public static final BlockCategory ARMADILLO_SPAWNABLE_ON = get("minecraft:armadillo_spawnable_on");
public static final BlockCategory AXOLOTLS_SPAWNABLE_ON = get("minecraft:axolotls_spawnable_on");
public static final BlockCategory AZALEA_GROWS_ON = get("minecraft:azalea_grows_on");
public static final BlockCategory BADLANDS_TERRACOTTA = get("minecraft:badlands_terracotta");
public static final BlockCategory AZALEA_ROOT_REPLACEABLE = get("minecraft:azalea_root_replaceable");
public static final BlockCategory BAMBOO_BLOCKS = get("minecraft:bamboo_blocks");
public static final BlockCategory BAMBOO_PLANTABLE_ON = get("minecraft:bamboo_plantable_on");
@ -78,6 +80,7 @@ public final class BlockCategories {
public static final BlockCategory DIRT = get("minecraft:dirt");
@Deprecated
public static final BlockCategory DIRT_LIKE = get("minecraft:dirt_like");
public static final BlockCategory DOES_NOT_BLOCK_HOPPERS = get("minecraft:does_not_block_hoppers");
public static final BlockCategory DOORS = get("minecraft:doors");
public static final BlockCategory DRAGON_IMMUNE = get("minecraft:dragon_immune");
public static final BlockCategory DRAGON_TRANSPARENT = get("minecraft:dragon_transparent");
@ -103,6 +106,12 @@ public final class BlockCategories {
public static final BlockCategory HOGLIN_REPELLENTS = get("minecraft:hoglin_repellents");
public static final BlockCategory ICE = get("minecraft:ice");
public static final BlockCategory IMPERMEABLE = get("minecraft:impermeable");
public static final BlockCategory INCORRECT_FOR_DIAMOND_TOOL = get("minecraft:incorrect_for_diamond_tool");
public static final BlockCategory INCORRECT_FOR_GOLD_TOOL = get("minecraft:incorrect_for_gold_tool");
public static final BlockCategory INCORRECT_FOR_IRON_TOOL = get("minecraft:incorrect_for_iron_tool");
public static final BlockCategory INCORRECT_FOR_NETHERITE_TOOL = get("minecraft:incorrect_for_netherite_tool");
public static final BlockCategory INCORRECT_FOR_STONE_TOOL = get("minecraft:incorrect_for_stone_tool");
public static final BlockCategory INCORRECT_FOR_WOODEN_TOOL = get("minecraft:incorrect_for_wooden_tool");
public static final BlockCategory INFINIBURN_END = get("minecraft:infiniburn_end");
public static final BlockCategory INFINIBURN_NETHER = get("minecraft:infiniburn_nether");
public static final BlockCategory INFINIBURN_OVERWORLD = get("minecraft:infiniburn_overworld");

View File

@ -60,6 +60,7 @@ public class BlockType implements Keyed, Pattern {
private static final Logger LOGGER = LogManagerCompat.getLogger();
private final String id;
@SuppressWarnings("this-escape")
private final LazyReference<FuzzyBlockState> emptyFuzzy
= LazyReference.from(() -> new FuzzyBlockState(this));
//FAWE start

View File

@ -908,6 +908,8 @@ public final class BlockTypes {
@Nullable
public static final BlockType HAY_BLOCK = init();
@Nullable
public static final BlockType HEAVY_CORE = init();
@Nullable
public static final BlockType HEAVY_WEIGHTED_PRESSURE_PLATE = init();
@Nullable
public static final BlockType HONEYCOMB_BLOCK = init();

View File

@ -163,7 +163,7 @@ public class AnvilChunk13 implements Chunk {
throw new InvalidFormatException("Too short block state table");
}
currentSerializedValue = blockStatesSerialized[nextSerializedItem++];
localBlockId |= (currentSerializedValue & ((1 << bitsNextLong) - 1)) << remainingBits;
localBlockId |= (int) ((currentSerializedValue & ((1 << bitsNextLong) - 1)) << remainingBits);
currentSerializedValue >>>= bitsNextLong;
remainingBits = 64 - bitsNextLong;
} else {

View File

@ -35,6 +35,8 @@ public final class EntityTypes {
@Nullable
public static final EntityType AREA_EFFECT_CLOUD = get("minecraft:area_effect_cloud");
@Nullable
public static final EntityType ARMADILLO = get("minecraft:armadillo");
@Nullable
public static final EntityType ARMOR_STAND = get("minecraft:armor_stand");
@Nullable
public static final EntityType ARROW = get("minecraft:arrow");
@ -51,8 +53,12 @@ public final class EntityTypes {
@Nullable
public static final EntityType BOAT = get("minecraft:boat");
@Nullable
public static final EntityType BOGGED = get("minecraft:bogged");
@Nullable
public static final EntityType BREEZE = get("minecraft:breeze");
@Nullable
public static final EntityType BREEZE_WIND_CHARGE = get("minecraft:breeze_wind_charge");
@Nullable
public static final EntityType CAMEL = get("minecraft:camel");
@Nullable
public static final EntityType CAT = get("minecraft:cat");
@ -171,6 +177,8 @@ public final class EntityTypes {
@Nullable
public static final EntityType OCELOT = get("minecraft:ocelot");
@Nullable
public static final EntityType OMINOUS_ITEM_SPAWNER = get("minecraft:ominous_item_spawner");
@Nullable
public static final EntityType PAINTING = get("minecraft:painting");
@Nullable
public static final EntityType PANDA = get("minecraft:panda");

View File

@ -29,28 +29,36 @@ public final class ItemCategories {
public static final ItemCategory ACACIA_LOGS = get("minecraft:acacia_logs");
public static final ItemCategory ANVIL = get("minecraft:anvil");
public static final ItemCategory ARMADILLO_FOOD = get("minecraft:armadillo_food");
public static final ItemCategory ARROWS = get("minecraft:arrows");
public static final ItemCategory AXES = get("minecraft:axes");
public static final ItemCategory AXOLOTL_TEMPT_ITEMS = get("minecraft:axolotl_tempt_items");
public static final ItemCategory AXOLOTL_FOOD = get("minecraft:axolotl_food");
@Deprecated public static final ItemCategory AXOLOTL_TEMPT_ITEMS = get("minecraft:axolotl_tempt_items");
public static final ItemCategory BAMBOO_BLOCKS = get("minecraft:bamboo_blocks");
public static final ItemCategory BANNERS = get("minecraft:banners");
public static final ItemCategory BEACON_PAYMENT_ITEMS = get("minecraft:beacon_payment_items");
public static final ItemCategory BEDS = get("minecraft:beds");
public static final ItemCategory BEE_FOOD = get("minecraft:bee_food");
public static final ItemCategory BIRCH_LOGS = get("minecraft:birch_logs");
public static final ItemCategory BOATS = get("minecraft:boats");
public static final ItemCategory BOOKSHELF_BOOKS = get("minecraft:bookshelf_books");
public static final ItemCategory BREAKS_DECORATED_POTS = get("minecraft:breaks_decorated_pots");
public static final ItemCategory BUTTONS = get("minecraft:buttons");
public static final ItemCategory CAMEL_FOOD = get("minecraft:camel_food");
public static final ItemCategory CANDLES = get("minecraft:candles");
@Deprecated public static final ItemCategory CARPETS = get("minecraft:carpets");
public static final ItemCategory CAT_FOOD = get("minecraft:cat_food");
public static final ItemCategory CHERRY_LOGS = get("minecraft:cherry_logs");
public static final ItemCategory CHEST_ARMOR = get("minecraft:chest_armor");
public static final ItemCategory CHEST_BOATS = get("minecraft:chest_boats");
public static final ItemCategory CHICKEN_FOOD = get("minecraft:chicken_food");
public static final ItemCategory CLUSTER_MAX_HARVESTABLES = get("minecraft:cluster_max_harvestables");
public static final ItemCategory COAL_ORES = get("minecraft:coal_ores");
public static final ItemCategory COALS = get("minecraft:coals");
public static final ItemCategory COMPASSES = get("minecraft:compasses");
public static final ItemCategory COMPLETES_FIND_TREE_TUTORIAL = get("minecraft:completes_find_tree_tutorial");
public static final ItemCategory COPPER_ORES = get("minecraft:copper_ores");
public static final ItemCategory COW_FOOD = get("minecraft:cow_food");
public static final ItemCategory CREEPER_DROP_MUSIC_DISCS = get("minecraft:creeper_drop_music_discs");
public static final ItemCategory CREEPER_IGNITERS = get("minecraft:creeper_igniters");
public static final ItemCategory CRIMSON_STEMS = get("minecraft:crimson_stems");
@ -61,44 +69,82 @@ public final class ItemCategories {
public static final ItemCategory DIAMOND_ORES = get("minecraft:diamond_ores");
public static final ItemCategory DIRT = get("minecraft:dirt");
public static final ItemCategory DOORS = get("minecraft:doors");
public static final ItemCategory DYEABLE = get("minecraft:dyeable");
public static final ItemCategory EMERALD_ORES = get("minecraft:emerald_ores");
public static final ItemCategory ENCHANTABLE_ARMOR = get("minecraft:enchantable/armor");
public static final ItemCategory ENCHANTABLE_BOW = get("minecraft:enchantable/bow");
public static final ItemCategory ENCHANTABLE_CHEST_ARMOR = get("minecraft:enchantable/chest_armor");
public static final ItemCategory ENCHANTABLE_CROSSBOW = get("minecraft:enchantable/crossbow");
public static final ItemCategory ENCHANTABLE_DURABILITY = get("minecraft:enchantable/durability");
public static final ItemCategory ENCHANTABLE_EQUIPPABLE = get("minecraft:enchantable/equippable");
public static final ItemCategory ENCHANTABLE_FIRE_ASPECT = get("minecraft:enchantable/fire_aspect");
public static final ItemCategory ENCHANTABLE_FISHING = get("minecraft:enchantable/fishing");
public static final ItemCategory ENCHANTABLE_FOOT_ARMOR = get("minecraft:enchantable/foot_armor");
public static final ItemCategory ENCHANTABLE_HEAD_ARMOR = get("minecraft:enchantable/head_armor");
public static final ItemCategory ENCHANTABLE_LEG_ARMOR = get("minecraft:enchantable/leg_armor");
public static final ItemCategory ENCHANTABLE_MINING = get("minecraft:enchantable/mining");
public static final ItemCategory ENCHANTABLE_MINING_LOOT = get("minecraft:enchantable/mining_loot");
public static final ItemCategory ENCHANTABLE_SHARP_WEAPON = get("minecraft:enchantable/sharp_weapon");
public static final ItemCategory ENCHANTABLE_SWORD = get("minecraft:enchantable/sword");
public static final ItemCategory ENCHANTABLE_TRIDENT = get("minecraft:enchantable/trident");
public static final ItemCategory ENCHANTABLE_VANISHING = get("minecraft:enchantable/vanishing");
public static final ItemCategory ENCHANTABLE_WEAPON = get("minecraft:enchantable/weapon");
public static final ItemCategory FENCE_GATES = get("minecraft:fence_gates");
public static final ItemCategory FENCES = get("minecraft:fences");
public static final ItemCategory FISHES = get("minecraft:fishes");
public static final ItemCategory FLOWERS = get("minecraft:flowers");
public static final ItemCategory FOOT_ARMOR = get("minecraft:foot_armor");
public static final ItemCategory FOX_FOOD = get("minecraft:fox_food");
public static final ItemCategory FREEZE_IMMUNE_WEARABLES = get("minecraft:freeze_immune_wearables");
public static final ItemCategory FROG_FOOD = get("minecraft:frog_food");
@Deprecated
public static final ItemCategory FURNACE_MATERIALS = get("minecraft:furnace_materials");
public static final ItemCategory GOAT_FOOD = get("minecraft:goat_food");
public static final ItemCategory GOLD_ORES = get("minecraft:gold_ores");
public static final ItemCategory HANGING_SIGNS = get("minecraft:hanging_signs");
public static final ItemCategory HEAD_ARMOR = get("minecraft:head_armor");
public static final ItemCategory HOES = get("minecraft:hoes");
public static final ItemCategory HOGLIN_FOOD = get("minecraft:hoglin_food");
public static final ItemCategory HORSE_FOOD = get("minecraft:horse_food");
public static final ItemCategory HORSE_TEMPT_ITEMS = get("minecraft:horse_tempt_items");
public static final ItemCategory IGNORED_BY_PIGLIN_BABIES = get("minecraft:ignored_by_piglin_babies");
public static final ItemCategory IRON_ORES = get("minecraft:iron_ores");
public static final ItemCategory JUNGLE_LOGS = get("minecraft:jungle_logs");
public static final ItemCategory LAPIS_ORES = get("minecraft:lapis_ores");
public static final ItemCategory LEAVES = get("minecraft:leaves");
public static final ItemCategory LECTERN_BOOKS = get("minecraft:lectern_books");
public static final ItemCategory LEG_ARMOR = get("minecraft:leg_armor");
public static final ItemCategory LLAMA_FOOD = get("minecraft:llama_food");
public static final ItemCategory LLAMA_TEMPT_ITEMS = get("minecraft:llama_tempt_items");
public static final ItemCategory LOGS = get("minecraft:logs");
public static final ItemCategory LOGS_THAT_BURN = get("minecraft:logs_that_burn");
public static final ItemCategory MANGROVE_LOGS = get("minecraft:mangrove_logs");
public static final ItemCategory MEAT = get("minecraft:meat");
public static final ItemCategory MUSIC_DISCS = get("minecraft:music_discs");
public static final ItemCategory NON_FLAMMABLE_WOOD = get("minecraft:non_flammable_wood");
public static final ItemCategory NOTEBLOCK_TOP_INSTRUMENTS = get("minecraft:noteblock_top_instruments");
public static final ItemCategory OAK_LOGS = get("minecraft:oak_logs");
@Deprecated public static final ItemCategory OCCLUDES_VIBRATION_SIGNALS = get("minecraft:occludes_vibration_signals");
public static final ItemCategory OCELOT_FOOD = get("minecraft:ocelot_food");
@Deprecated public static final ItemCategory OVERWORLD_NATURAL_LOGS = get("minecraft:overworld_natural_logs");
public static final ItemCategory PANDA_FOOD = get("minecraft:panda_food");
public static final ItemCategory PARROT_FOOD = get("minecraft:parrot_food");
public static final ItemCategory PARROT_POISONOUS_FOOD = get("minecraft:parrot_poisonous_food");
public static final ItemCategory PICKAXES = get("minecraft:pickaxes");
public static final ItemCategory PIG_FOOD = get("minecraft:pig_food");
public static final ItemCategory PIGLIN_FOOD = get("minecraft:piglin_food");
public static final ItemCategory PIGLIN_LOVED = get("minecraft:piglin_loved");
public static final ItemCategory PIGLIN_REPELLENTS = get("minecraft:piglin_repellents");
public static final ItemCategory PLANKS = get("minecraft:planks");
public static final ItemCategory RABBIT_FOOD = get("minecraft:rabbit_food");
public static final ItemCategory RAILS = get("minecraft:rails");
public static final ItemCategory REDSTONE_ORES = get("minecraft:redstone_ores");
public static final ItemCategory SAND = get("minecraft:sand");
public static final ItemCategory SAPLINGS = get("minecraft:saplings");
public static final ItemCategory SHEEP_FOOD = get("minecraft:sheep_food");
public static final ItemCategory SHOVELS = get("minecraft:shovels");
public static final ItemCategory SIGNS = get("minecraft:signs");
public static final ItemCategory SKULLS = get("minecraft:skulls");
public static final ItemCategory SLABS = get("minecraft:slabs");
public static final ItemCategory SMALL_FLOWERS = get("minecraft:small_flowers");
public static final ItemCategory SMELTS_TO_GLASS = get("minecraft:smelts_to_glass");
@ -110,18 +156,22 @@ public final class ItemCategories {
public static final ItemCategory STONE_BUTTONS = get("minecraft:stone_buttons");
public static final ItemCategory STONE_CRAFTING_MATERIALS = get("minecraft:stone_crafting_materials");
public static final ItemCategory STONE_TOOL_MATERIALS = get("minecraft:stone_tool_materials");
public static final ItemCategory STRIDER_FOOD = get("minecraft:strider_food");
public static final ItemCategory STRIDER_TEMPT_ITEMS = get("minecraft:strider_tempt_items");
public static final ItemCategory SWORDS = get("minecraft:swords");
public static final ItemCategory TALL_FLOWERS = get("minecraft:tall_flowers");
public static final ItemCategory TERRACOTTA = get("minecraft:terracotta");
public static final ItemCategory TOOLS = get("minecraft:tools");
@Deprecated public static final ItemCategory TOOLS = get("minecraft:tools");
public static final ItemCategory TRAPDOORS = get("minecraft:trapdoors");
public static final ItemCategory TRIM_MATERIALS = get("minecraft:trim_materials");
public static final ItemCategory TRIM_TEMPLATES = get("minecraft:trim_templates");
public static final ItemCategory TRIMMABLE_ARMOR = get("minecraft:trimmable_armor");
public static final ItemCategory TURTLE_FOOD = get("minecraft:turtle_food");
public static final ItemCategory VILLAGER_PLANTABLE_SEEDS = get("minecraft:villager_plantable_seeds");
public static final ItemCategory WALLS = get("minecraft:walls");
public static final ItemCategory WARPED_STEMS = get("minecraft:warped_stems");
public static final ItemCategory WART_BLOCKS = get("minecraft:wart_blocks");
public static final ItemCategory WOLF_FOOD = get("minecraft:wolf_food");
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_FENCES = get("minecraft:wooden_fences");

View File

@ -42,7 +42,7 @@ public class ItemType implements RegistryItem, Keyed {
public static final NamespacedRegistry<ItemType> REGISTRY = new NamespacedRegistry<>("item type", true);
private final String id;
@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "this-escape"})
private transient final LazyReference<String> name = LazyReference.from(() -> {
String name = GuavaUtil.firstNonNull(
WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS)
@ -51,10 +51,12 @@ public class ItemType implements RegistryItem, Keyed {
);
return name.isEmpty() ? getId() : name;
});
@SuppressWarnings("this-escape")
private transient final LazyReference<Component> richName = LazyReference.from(() ->
WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS)
.getRegistries().getItemRegistry().getRichName(this)
);
@SuppressWarnings("this-escape")
private transient final LazyReference<ItemMaterial> itemMaterial = LazyReference.from(() ->
WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS)
.getRegistries().getItemRegistry().getMaterial(this)

View File

@ -105,6 +105,10 @@ public final class ItemTypes {
@Nullable
public static final ItemType ARMOR_STAND = init();
@Nullable
public static final ItemType ARMADILLO_SCUTE = init();
@Nullable
public static final ItemType ARMADILLO_SPAWN_EGG = init();
@Nullable
public static final ItemType ARMS_UP_POTTERY_SHERD = init();
@Nullable
public static final ItemType ARROW = init();
@ -297,6 +301,10 @@ public final class ItemTypes {
@Nullable
public static final ItemType BLUE_WOOL = init();
@Nullable
public static final ItemType BOGGED_SPAWN_EGG = init();
@Nullable
public static final ItemType BOLT_ARMOR_TRIM_SMITHING_TEMPLATE = init();
@Nullable
public static final ItemType BONE = init();
@Nullable
public static final ItemType BONE_BLOCK = init();
@ -319,6 +327,8 @@ public final class ItemTypes {
@Nullable
public static final ItemType BREAD = init();
@Nullable
public static final ItemType BREEZE_ROD = init();
@Nullable
public static final ItemType BREEZE_SPAWN_EGG = init();
@Nullable
public static final ItemType BREWER_POTTERY_SHERD = init();
@ -971,6 +981,12 @@ public final class ItemTypes {
@Nullable
public static final ItemType FLINT_AND_STEEL = init();
@Nullable
public static final ItemType FLOW_ARMOR_TRIM_SMITHING_TEMPLATE = init();
@Nullable
public static final ItemType FLOW_BANNER_PATTERN = init();
@Nullable
public static final ItemType FLOW_POTTERY_SHERD = init();
@Nullable
public static final ItemType FLOWER_BANNER_PATTERN = init();
@Nullable
public static final ItemType FLOWER_POT = init();
@ -1132,6 +1148,10 @@ public final class ItemTypes {
@Nullable
public static final ItemType GUNPOWDER = init();
@Nullable
public static final ItemType GUSTER_BANNER_PATTERN = init();
@Nullable
public static final ItemType GUSTER_POTTERY_SHERD = init();
@Nullable
public static final ItemType HANGING_ROOTS = init();
@Nullable
public static final ItemType HAY_BLOCK = init();
@ -1142,6 +1162,8 @@ public final class ItemTypes {
@Nullable
public static final ItemType HEARTBREAK_POTTERY_SHERD = init();
@Nullable
public static final ItemType HEAVY_CORE = init();
@Nullable
public static final ItemType HEAVY_WEIGHTED_PRESSURE_PLATE = init();
@Nullable
public static final ItemType HOGLIN_SPAWN_EGG = init();
@ -1404,6 +1426,8 @@ public final class ItemTypes {
@Nullable
public static final ItemType LOOM = init();
@Nullable
public static final ItemType MACE = init();
@Nullable
public static final ItemType MAGENTA_BANNER = init();
@Nullable
public static final ItemType MAGENTA_BED = init();
@ -1668,6 +1692,10 @@ public final class ItemTypes {
@Nullable
public static final ItemType OCHRE_FROGLIGHT = init();
@Nullable
public static final ItemType OMINOUS_BOTTLE = init();
@Nullable
public static final ItemType OMINOUS_TRIAL_KEY = init();
@Nullable
public static final ItemType ORANGE_BANNER = init();
@Nullable
public static final ItemType ORANGE_BED = init();
@ -2075,6 +2103,8 @@ public final class ItemTypes {
@Nullable
public static final ItemType SCAFFOLDING = init();
@Nullable
public static final ItemType SCRAPE_POTTERY_SHERD = init();
@Nullable
public static final ItemType SCULK = init();
@Nullable
public static final ItemType SCULK_CATALYST = init();
@ -2085,6 +2115,7 @@ public final class ItemTypes {
@Nullable
public static final ItemType SCULK_VEIN = init();
@Nullable
@Deprecated
public static final ItemType SCUTE = init();
@Nullable
public static final ItemType SEA_LANTERN = init();
@ -2424,10 +2455,14 @@ public final class ItemTypes {
@Nullable
public static final ItemType TURTLE_HELMET = init();
@Nullable
public static final ItemType TURTLE_SCUTE = init();
@Nullable
public static final ItemType TURTLE_SPAWN_EGG = init();
@Nullable
public static final ItemType TWISTING_VINES = init();
@Nullable
public static final ItemType VAULT = init();
@Nullable
public static final ItemType VERDANT_FROGLIGHT = init();
@Nullable
public static final ItemType VEX_ARMOR_TRIM_SMITHING_TEMPLATE = init();
@ -2614,6 +2649,8 @@ public final class ItemTypes {
@Nullable
public static final ItemType WILD_ARMOR_TRIM_SMITHING_TEMPLATE = init();
@Nullable
public static final ItemType WIND_CHARGE = init();
@Nullable
public static final ItemType WITCH_SPAWN_EGG = init();
@Nullable
public static final ItemType WITHER_ROSE = init();
@ -2624,6 +2661,8 @@ public final class ItemTypes {
@Nullable
public static final ItemType WITHER_SPAWN_EGG = init();
@Nullable
public static final ItemType WOLF_ARMOR = init();
@Nullable
public static final ItemType WOLF_SPAWN_EGG = init();
@Nullable
public static final ItemType WOODEN_AXE = init();