Enum Class SlimefunTag
- All Implemented Interfaces:
Serializable,Comparable<SlimefunTag>,Constable,Keyed,Tag<Material>
This enum contains various implementations of the
Tag interface.
Most of them serve some purpose within Slimefun's implementation, some are just pure
extensions of the default Minecraft tags.
The actual tag files are located in the /src/main/resources/tags directory
and follow Minecraft's tags.json format.- Author:
- TheBusyBiscuit
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll supported storage blocks for theAbstractAutoCrafterMaterials which cannot be reliably placed using aBlockPlacer.All supported storage blocks for cargo.All materials (ores) which trigger the Talisman of the Caveman.All strong materials which theClimbingPickis able to climb.ThisSlimefunTagholds all surfaces for theClimbingPick.All weak materials which theClimbingPickis able to climb.All command block variantsAll variants of concrete powder.All materials (crops) which theCropGrowthAcceleratorwill recognize.All deepslate ore variants.All dirt variants.All materials which benefit from the luck multiplier ofEnhancedFurnaceAll materials which theExplosiveShovelcan break.All materials (crops) which can be doubled using a FarmerTalisman.These Materials are sensitive to fluids, they cannot beWaterloggedand would break in contact with water.All soil blocks for a fungus to grow on.Every glass variant, includes both blocks and panes.All variants of glass, normal and stained.All variants of glass panes, normal and stained.All materials that are affected by gravity.All ice variants, normal, packed, blue and whatever else there is.All materials (ores) which theIndustrialMinerwill try to mine.All leather armor materialsAll block types for mangrove to grow on.All materials (ores) which can be doubled using a MinerTalisman.Every mushroom type, red, brown and nether ones.All nether ores.Minecraft ores.All materials (ores) which thePickaxeOfTheSeekerrecognizes.All materials (ores) which thePickaxeOfVeinMiningrecognizes.All the types of pressure plates.All raw metals in 1.17+Materials which are sensitive to break.All Shulker boxes, normal and colored.All materials which theSmeltersPickaxewill try and smelt.All variants of Spawn EggsAll vanilla overworld ores.All stone variants, normal, andesite, diorite, granite and whatever else may come.All tall flowers because minecraft doesn't have a tag for thisAll terracotta variants, does not include glazed terracotta.All tile entities.All variants of torches, normal, soulfire and redstone.These materials are just unbreakable, like bedrock for example.All wool carpets. -
Field Summary
Fields inherited from interface org.bukkit.Tag
ACACIA_LOGS, ALL_HANGING_SIGNS, ALL_SIGNS, ANCIENT_CITY_REPLACEABLE, ANIMALS_SPAWNABLE_ON, ANVIL, ARMADILLO_SPAWNABLE_ON, AXOLOTL_TEMPT_ITEMS, AXOLOTLS_SPAWNABLE_ON, AZALEA_GROWS_ON, AZALEA_ROOT_REPLACEABLE, BADLANDS_TERRACOTTA, BAMBOO_BLOCKS, BAMBOO_PLANTABLE_ON, BANNERS, BASE_STONE_NETHER, BASE_STONE_OVERWORLD, BEACON_BASE_BLOCKS, BEDS, BEE_GROWABLES, BEEHIVES, BIG_DRIPLEAF_PLACEABLE, BIRCH_LOGS, BLOCKS_WIND_CHARGE_EXPLOSIONS, BUTTONS, CAMEL_SAND_STEP_SOUND_BLOCKS, CAMPFIRES, CANDLE_CAKES, CANDLES, CARPETS, CAULDRONS, CAVE_VINES, CEILING_HANGING_SIGNS, CHERRY_LOGS, CLIMBABLE, CLUSTER_MAX_HARVESTABLES, COAL_ORES, COMBINATION_STEP_SOUND_BLOCKS, COMPLETES_FIND_TREE_TUTORIAL, CONCRETE_POWDER, CONVERTABLE_TO_MUD, COPPER_ORES, CORAL_BLOCKS, CORAL_PLANTS, CORALS, CRIMSON_STEMS, CROPS, CRYSTAL_SOUND_BLOCKS, DAMPENS_VIBRATIONS, DARK_OAK_LOGS, DEAD_BUSH_MAY_PLACE_ON, DEEPSLATE_ORE_REPLACEABLES, DIAMOND_ORES, DIRT, DOES_NOT_BLOCK_HOPPERS, DOORS, DRAGON_IMMUNE, DRAGON_TRANSPARENT, DRIPSTONE_REPLACEABLE, EMERALD_ORES, ENCHANTMENT_POWER_PROVIDER, ENCHANTMENT_POWER_TRANSMITTER, ENDERMAN_HOLDABLE, ENTITY_TYPES_AQUATIC, ENTITY_TYPES_ARROWS, ENTITY_TYPES_ARTHROPOD, ENTITY_TYPES_AXOLOTL_ALWAYS_HOSTILES, ENTITY_TYPES_AXOLOTL_HUNT_TARGETS, ENTITY_TYPES_BEEHIVE_INHABITORS, ENTITY_TYPES_CAN_TURN_IN_BOATS, ENTITY_TYPES_DEFLECTS_ARROWS, ENTITY_TYPES_DEFLECTS_PROJECTILES, ENTITY_TYPES_DISMOUNTS_UNDERWATER, ENTITY_TYPES_FALL_DAMAGE_IMMUNE, ENTITY_TYPES_FREEZE_HURTS_EXTRA_TYPES, ENTITY_TYPES_FREEZE_IMMUNE_ENTITY_TYPES, ENTITY_TYPES_FROG_FOOD, ENTITY_TYPES_IGNORES_POISON_AND_REGEN, ENTITY_TYPES_ILLAGER, ENTITY_TYPES_ILLAGER_FRIENDS, ENTITY_TYPES_IMMUNE_TO_INFESTED, ENTITY_TYPES_IMMUNE_TO_OOZING, ENTITY_TYPES_IMPACT_PROJECTILES, ENTITY_TYPES_INVERTED_HEALING_AND_HARM, ENTITY_TYPES_NO_ANGER_FROM_WIND_CHARGE, ENTITY_TYPES_NON_CONTROLLING_RIDER, ENTITY_TYPES_NOT_SCARY_FOR_PUFFERFISH, ENTITY_TYPES_POWDER_SNOW_WALKABLE_MOBS, ENTITY_TYPES_RAIDERS, ENTITY_TYPES_REDIRECTABLE_PROJECTILE, ENTITY_TYPES_SENSITIVE_TO_BANE_OF_ARTHROPODS, ENTITY_TYPES_SENSITIVE_TO_IMPALING, ENTITY_TYPES_SENSITIVE_TO_SMITE, ENTITY_TYPES_SKELETONS, ENTITY_TYPES_WITHER_FRIENDS, FALL_DAMAGE_RESETTING, FEATURES_CANNOT_REPLACE, FENCE_GATES, FENCES, FIRE, FLOWER_POTS, FLOWERS, FLUIDS_LAVA, FLUIDS_WATER, FOX_FOOD, FOXES_SPAWNABLE_ON, FREEZE_IMMUNE_WEARABLES, FROG_PREFER_JUMP_TO, FROGS_SPAWNABLE_ON, GEODE_INVALID_BLOCKS, GOATS_SPAWNABLE_ON, GOLD_ORES, GUARDED_BY_PIGLINS, HOGLIN_REPELLENTS, ICE, IGNORED_BY_PIGLIN_BABIES, IMPERMEABLE, INCORRECT_FOR_DIAMOND_TOOL, INCORRECT_FOR_GOLD_TOOL, INCORRECT_FOR_IRON_TOOL, INCORRECT_FOR_NETHERITE_TOOL, INCORRECT_FOR_STONE_TOOL, INCORRECT_FOR_WOODEN_TOOL, INFINIBURN_END, INFINIBURN_NETHER, INFINIBURN_OVERWORLD, INSIDE_STEP_SOUND_BLOCKS, INVALID_SPAWN_INSIDE, IRON_ORES, ITEMS_ARMADILLO_FOOD, ITEMS_ARROWS, ITEMS_AXES, ITEMS_AXOLOTL_FOOD, ITEMS_BANNERS, ITEMS_BEACON_PAYMENT_ITEMS, ITEMS_BEE_FOOD, ITEMS_BOATS, ITEMS_BOOKSHELF_BOOKS, ITEMS_BREAKS_DECORATED_POTS, ITEMS_CAMEL_FOOD, ITEMS_CAT_FOOD, ITEMS_CHEST_ARMOR, ITEMS_CHEST_BOATS, ITEMS_CHICKEN_FOOD, ITEMS_COALS, ITEMS_COMPASSES, ITEMS_COW_FOOD, ITEMS_CREEPER_DROP_MUSIC_DISCS, ITEMS_CREEPER_IGNITERS, ITEMS_DECORATED_POT_INGREDIENTS, ITEMS_DECORATED_POT_SHERDS, ITEMS_DYEABLE, ITEMS_ENCHANTABLE_ARMOR, ITEMS_ENCHANTABLE_BOW, ITEMS_ENCHANTABLE_CHEST_ARMOR, ITEMS_ENCHANTABLE_CROSSBOW, ITEMS_ENCHANTABLE_DURABILITY, ITEMS_ENCHANTABLE_EQUIPPABLE, ITEMS_ENCHANTABLE_FIRE_ASPECT, ITEMS_ENCHANTABLE_FISHING, ITEMS_ENCHANTABLE_FOOT_ARMOR, ITEMS_ENCHANTABLE_HEAD_ARMOR, ITEMS_ENCHANTABLE_LEG_ARMOR, ITEMS_ENCHANTABLE_MACE, ITEMS_ENCHANTABLE_MINING, ITEMS_ENCHANTABLE_MINING_LOOT, ITEMS_ENCHANTABLE_SHARP_WEAPON, ITEMS_ENCHANTABLE_SWORD, ITEMS_ENCHANTABLE_TRIDENT, ITEMS_ENCHANTABLE_VANISHING, ITEMS_ENCHANTABLE_WEAPON, ITEMS_FISHES, ITEMS_FOOT_ARMOR, ITEMS_FOX_FOOD, ITEMS_FROG_FOOD, ITEMS_FURNACE_MATERIALS, ITEMS_GOAT_FOOD, ITEMS_HANGING_SIGNS, ITEMS_HEAD_ARMOR, ITEMS_HOES, ITEMS_HOGLIN_FOOD, ITEMS_HORSE_FOOD, ITEMS_HORSE_TEMPT_ITEMS, ITEMS_LECTERN_BOOKS, ITEMS_LEG_ARMOR, ITEMS_LLAMA_FOOD, ITEMS_LLAMA_TEMPT_ITEMS, ITEMS_MEAT, ITEMS_MUSIC_DISCS, ITEMS_NON_FLAMMABLE_WOOD, ITEMS_NOTE_BLOCK_TOP_INSTRUMENTS, ITEMS_OCELOT_FOOD, ITEMS_PANDA_FOOD, ITEMS_PARROT_FOOD, ITEMS_PARROT_POISONOUS_FOOD, ITEMS_PICKAXES, ITEMS_PIG_FOOD, ITEMS_PIGLIN_FOOD, ITEMS_PIGLIN_LOVED, ITEMS_RABBIT_FOOD, ITEMS_SHEEP_FOOD, ITEMS_SHOVELS, ITEMS_SKULLS, ITEMS_SNIFFER_FOOD, ITEMS_STONE_TOOL_MATERIALS, ITEMS_STRIDER_FOOD, ITEMS_STRIDER_TEMPT_ITEMS, ITEMS_SWORDS, ITEMS_TOOLS, ITEMS_TRIM_MATERIALS, ITEMS_TRIM_TEMPLATES, ITEMS_TRIMMABLE_ARMOR, ITEMS_TURTLE_FOOD, ITEMS_VILLAGER_PLANTABLE_SEEDS, ITEMS_WOLF_FOOD, JUNGLE_LOGS, LAPIS_ORES, LAVA_POOL_STONE_CANNOT_REPLACE, LEAVES, LOGS, LOGS_THAT_BURN, LUSH_GROUND_REPLACEABLE, MAINTAINS_FARMLAND, MANGROVE_LOGS, MANGROVE_LOGS_CAN_GROW_THROUGH, MANGROVE_ROOTS_CAN_GROW_THROUGH, MINEABLE_AXE, MINEABLE_HOE, MINEABLE_PICKAXE, MINEABLE_SHOVEL, MOOSHROOMS_SPAWNABLE_ON, MOSS_REPLACEABLE, MUSHROOM_GROW_BLOCK, NEEDS_DIAMOND_TOOL, NEEDS_IRON_TOOL, NEEDS_STONE_TOOL, NETHER_CARVER_REPLACEABLES, NYLIUM, OAK_LOGS, OCCLUDES_VIBRATION_SIGNALS, OVERWORLD_CARVER_REPLACEABLES, PARROTS_SPAWNABLE_ON, PIGLIN_FOOD, PIGLIN_REPELLENTS, PLANKS, POLAR_BEARS_SPAWNABLE_ON_ALTERNATE, PORTALS, PRESSURE_PLATES, PREVENT_MOB_SPAWNING_INSIDE, RABBITS_SPAWNABLE_ON, RAILS, REDSTONE_ORES, REGISTRY_BLOCKS, REGISTRY_ENTITY_TYPES, REGISTRY_FLUIDS, REGISTRY_ITEMS, REPLACEABLE, REPLACEABLE_BY_TREES, SAND, SAPLINGS, SCULK_REPLACEABLE, SCULK_REPLACEABLE_WORLD_GEN, SHULKER_BOXES, SIGNS, SLABS, SMALL_DRIPLEAF_PLACEABLE, SMALL_FLOWERS, SMELTS_TO_GLASS, SNAPS_GOAT_HORN, SNIFFER_DIGGABLE_BLOCK, SNIFFER_EGG_HATCH_BOOST, SNOW, SNOW_LAYER_CAN_SURVIVE_ON, SNOW_LAYER_CANNOT_SURVIVE_ON, SOUL_FIRE_BASE_BLOCKS, SOUL_SPEED_BLOCKS, SPRUCE_LOGS, STAIRS, STANDING_SIGNS, STONE_BRICKS, STONE_BUTTONS, STONE_ORE_REPLACEABLES, STONE_PRESSURE_PLATES, STRIDER_WARM_BLOCKS, SWORD_EFFICIENT, TALL_FLOWERS, TERRACOTTA, TRAIL_RUINS_REPLACEABLE, TRAPDOORS, UNDERWATER_BONEMEALS, UNSTABLE_BOTTOM_CENTER, VALID_SPAWN, VIBRATION_RESONATORS, WALL_CORALS, WALL_HANGING_SIGNS, WALL_POST_OVERRIDE, WALL_SIGNS, WALLS, WARPED_STEMS, WART_BLOCKS, WITHER_IMMUNE, WITHER_SUMMON_BASE_BLOCKS, WOLVES_SPAWNABLE_ON, WOODEN_BUTTONS, WOODEN_DOORS, WOODEN_FENCES, WOODEN_PRESSURE_PLATES, WOODEN_SLABS, WOODEN_STAIRS, WOODEN_TRAPDOORS, WOOL, WOOL_CARPETS -
Method Summary
Modifier and TypeMethodDescriptiongetKey()This returns aSetofTagswhich are children of thisSlimefunTag, these can be otherSlimefunTagsor regularTags.static SlimefunTagGet a value from the cache map rather than callingEnum.valueOf(Class, String).booleanisEmpty()booleanvoidreload()This method reloads thisSlimefunTagfrom our resources directory.static voidThis method reloads every singleSlimefunTagfrom the resources directory.stream()Material[]toArray()This method returns an Array representation for thisSlimefunTag.static SlimefunTagReturns the enum constant of this class with the specified name.static SlimefunTag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORES
Minecraft ores. -
STONE_ORES
All vanilla overworld ores. -
DEEPSLATE_ORES
All deepslate ore variants. -
NETHER_ORES
All nether ores. -
RAW_METALS
All raw metals in 1.17+ -
SHULKER_BOXES
All Shulker boxes, normal and colored. -
COMMAND_BLOCKS
All command block variants -
SPAWN_EGGS
All variants of Spawn Eggs -
MUSHROOMS
Every mushroom type, red, brown and nether ones. -
LEATHER_ARMOR
All leather armor materials -
GLASS
Every glass variant, includes both blocks and panes. Also stained glass and stained glass panes. -
GLASS_BLOCKS
All variants of glass, normal and stained. -
GLASS_PANES
All variants of glass panes, normal and stained. -
TORCHES
All variants of torches, normal, soulfire and redstone. -
TERRACOTTA
All terracotta variants, does not include glazed terracotta. -
ICE_VARIANTS
All ice variants, normal, packed, blue and whatever else there is. -
STONE_VARIANTS
All stone variants, normal, andesite, diorite, granite and whatever else may come. -
DIRT_VARIANTS
All dirt variants. Dirt, coarse dirt, grass, mycelium. This also includes farmland and grass paths. -
FUNGUS_SOIL
All soil blocks for a fungus to grow on. This includes all dirt variants, nylium and soul soil. -
MANGROVE_BASE_BLOCKS
All block types for mangrove to grow on. This includes all dirt variants, mud and clay. -
CONCRETE_POWDERS
All variants of concrete powder. Can you believe there is no tag for this already? -
PRESSURE_PLATES
All the types of pressure plates. -
TALL_FLOWERS
All tall flowers because minecraft doesn't have a tag for this -
SENSITIVE_MATERIALS
Materials which are sensitive to break. Things like Saplings or Pressure plates which break as well when you break the block beneath them. -
FLUID_SENSITIVE_MATERIALS
These Materials are sensitive to fluids, they cannot beWaterloggedand would break in contact with water. -
UNBREAKABLE_MATERIALS
These materials are just unbreakable, like bedrock for example. -
BLOCK_PLACER_IGNORED_MATERIALS
Materials which cannot be reliably placed using aBlockPlacer. -
EXPLOSIVE_SHOVEL_BLOCKS
All materials which theExplosiveShovelcan break. -
PICKAXE_OF_VEIN_MINING_BLOCKS
All materials (ores) which thePickaxeOfVeinMiningrecognizes. -
PICKAXE_OF_THE_SEEKER_BLOCKS
All materials (ores) which thePickaxeOfTheSeekerrecognizes. -
SMELTERS_PICKAXE_BLOCKS
All materials which theSmeltersPickaxewill try and smelt. -
INDUSTRIAL_MINER_ORES
All materials (ores) which theIndustrialMinerwill try to mine. -
MINER_TALISMAN_TRIGGERS
All materials (ores) which can be doubled using a MinerTalisman. -
FARMER_TALISMAN_TRIGGERS
All materials (crops) which can be doubled using a FarmerTalisman. -
CROP_GROWTH_ACCELERATOR_BLOCKS
All materials (crops) which theCropGrowthAcceleratorwill recognize. -
CLIMBING_PICK_STRONG_SURFACES
All strong materials which theClimbingPickis able to climb. -
CLIMBING_PICK_WEAK_SURFACES
All weak materials which theClimbingPickis able to climb. -
CLIMBING_PICK_SURFACES
ThisSlimefunTagholds all surfaces for theClimbingPick. This is an aggregation ofCLIMBING_PICK_STRONG_SURFACESandCLIMBING_PICK_WEAK_SURFACES -
CAVEMAN_TALISMAN_TRIGGERS
All materials (ores) which trigger the Talisman of the Caveman. -
ENHANCED_FURNACE_LUCK_MATERIALS
All materials which benefit from the luck multiplier ofEnhancedFurnace -
GRAVITY_AFFECTED_BLOCKS
All materials that are affected by gravity. -
WOOL_CARPETS
All wool carpets. -
AUTO_CRAFTER_SUPPORTED_STORAGE_BLOCKS
All supported storage blocks for theAbstractAutoCrafter -
CARGO_SUPPORTED_STORAGE_BLOCKS
All supported storage blocks for cargo. -
TILE_ENTITIES
All tile entities.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
reload
This method reloads thisSlimefunTagfrom our resources directory.- Throws:
TagMisconfigurationException- This is thrown whenever aSlimefunTagcould not be parsed properly
-
reloadAll
This method reloads every singleSlimefunTagfrom the resources directory. It is equivalent to runningreload()on every singleSlimefunTagmanually. Do keep in mind though that any misconfiguredSlimefunTagwill abort the entire method and throw aTagMisconfigurationException. So one faultySlimefunTagwill stop the reloading process.- Throws:
TagMisconfigurationException- This is thrown if one of theSlimefunTagscould not be parsed correctly
-
getKey
-
isTagged
-
getValues
-
isEmpty
public boolean isEmpty() -
getSubTags
This returns aSetofTagswhich are children of thisSlimefunTag, these can be otherSlimefunTagsor regularTags. The returnedSetis immutable- Returns:
- An immutable
Setof all sub tags.
-
toArray
This method returns an Array representation for thisSlimefunTag. -
stream
-
getTag
Get a value from the cache map rather than callingEnum.valueOf(Class, String). This is 25-40% quicker than the standardEnum.valueOf(Class, String)depending on your Java version. It also means that you can avoid an IllegalArgumentException which let's face it is always good.- Parameters:
value- The value which you would like to look up.- Returns:
- The
SlimefunTagor null if it does not exist.
-