Uses of Enum
com.cryptomorin.xseries.XMaterial
Packages that use XMaterial
-
Uses of XMaterial in com.cryptomorin.xseries
Fields in com.cryptomorin.xseries declared as XMaterialModifier and TypeFieldDescriptionprotected XMaterialXItemStack.MaterialCondition.solutionstatic final XMaterial[]XMaterial.VALUESCached array ofvalues()to avoid allocating memory for calling the method every time.Fields in com.cryptomorin.xseries with type parameters of type XMaterialModifier and TypeFieldDescriptionXTag.ACACIA_LOGSTag representing all acacia log and bark variantsXTag.AIRXTag.ALIVE_CORAL_BLOCKSXTag.ALIVE_CORAL_FANSTag representing all dead coral non-walled fansXTag.ALIVE_CORAL_PLANTSTag representing all non-dead coral plantsXTag.ANIMALS_SPAWNABLE_ONTag representing all possible blocks available for animals to spawn onXTag.ANVILTag representing all variants of anvilXTag.ARMOR_PIECESTag representing all armor pieces that add armor bars upon wearingXTag.AXOLOTL_TEMPT_ITEMSTag representing all items that can tempt axolotlTag representing all possible blocks for axolotls to spawn onXTag.AZALEA_GROWS_ONTag representing all possible blocks for azalea to grow onTag representing all possible blocks that can be replaced by azaleaXTag.BAMBOO_PLANTABLE_ONTag representing all possible blocks bamboo may be planted onXTag.BANNERSTag representing all banner blocksXTag.BASE_STONE_NETHERTag representing the nether base materialsXTag.BASE_STONE_OVERWORLDTag representing the overworld base materialsXTag.BEACON_BASE_BLOCKSTag representing all possible blocks that can be used as beacon baseXTag.BEDSTag representing all possible variants of bedXTag.BEE_GROWABLESTag representing all possible blocks/crops that be grown by beesTag representing all possible blocks big dripleaf may be planted onXTag.BIRCH_LOGSTag representing all birch log and bark variantsXTag.BUTTONSTag representing all possible variants of buttonsXTag.CAMPFIRESTag representing all possible variants of campfiresXTag.CANDLE_CAKESTag representing all possible variants of candle cakesXTag.CANDLESTag representing all possible variants of candlesXTag.CARPETSTag representing all possible variants of carpetsXTag.CAULDRONSTag representing all possible variants of cauldronsXTag.CAVE_VINESTag representing all possible variants of cave vinesTag representing all armor pieces made of chainsXTag.CLIMBABLETag representing all climbable blocksTag representing all preferred items for harvesting clusters{unused as of 1.18}XTag.COAL_ORESTag representing all possible variants of coal oresXTag.CONCRETETag representing all possible variants of concreteXTag.CONCRETE_POWDERTag representing all possible variants of concrete_powderXTag.COPPER_ORESTag representing all possible variants of copper oresXTag.CORAL_FANSXTag.CORALSTag representing all coralsXTag.CRIMSON_STEMSTag representing all crimson log and bark variantsXBlock.CROPSThis list contains both block and item version of the same material.XTag.CROPSTag representing all cropsXTag.CRYSTAL_SOUND_BLOCKSTag representing all possible blocks that can make crystal soundsXBlock.DANGEROUSXTag.DARK_OAK_LOGSTag representing all dark oak log and bark variantsXTag.DEAD_CORAL_BLOCKSXTag.DEAD_CORAL_FANSXTag.DEAD_CORAL_PLANTSXTag.DEAD_CORAL_WALL_FANSTag representing all possible blocks that may be replaced by deepslate oresXTag.DIAMOND_ARMOR_PIECESTag representing all armor pieces made of diamondXTag.DIAMOND_ORESTag representing all possible variants of diamond oresXTag.DIAMOND_TOOLSTag representing all diamond tools and swordsXTag.DIRTTag representing all dirtXTag.DOORSTag representing all possible types of doorsXTag.DRAGON_IMMUNETag representing all blocks that can't be destroyed by dragonsTag representing all possible blocks that can be replaced by dripstoneXTag.EMERALD_ORESTag representing all variants of emerald oresXTag.ENDERMAN_HOLDABLETag representing all possible blocks that can be picked up by endermenTag representing all blocks that cant be replaced by world generation featuresXTag.FENCE_GATESTag representing all possible variants of fence gatesXTag.FENCESTag representing all possible variants of fencesXTag.FIRETag representing all possible variants fireXTag.FLOWER_POTSTag representing all possible variants of flower potsXTag.FLOWERSTag representing all possible types of flowersXTag.FLUIDThis doesn't refer to all materials that contain fluids, but pure fluids.XTag.FOX_FOODTag representing all items can be used as food for foxXTag.FOXES_SPAWNABLE_ONTag representing all possible blocks foxes may spawn onTag representing all possible items can be used to avoid freezingXTag.GEODE_INVALID_BLOCKSTag representing all blocks that geodes will not spawn inXTag.GLASSTag representing all variants of glassXTag.GLAZED_TERRACOTTATag representing all possible variants of glazed terracottaXTag.GOATS_SPAWNABLE_ONTag representing all possible blocks goats may spawn onXTag.GOLD_ORESTag representing all possible variants of gold oresXTag.GOLDEN_ARMOR_PIECESTag representing all armor pieces made of goldXTag.GUARDED_BY_PIGLINSTag representing all block types that are guarded by piglinsXTag.HANGING_SIGNSXTag.HOGLIN_REPELLENTSTag representing all block types that repel hoglinsXTag.ICETag representing all possible variants of iceTag representing all items ignored by baby piglinsXTag.IMPERMEABLETag representing all possible block types that do not drip water/lavaXTag.INFINIBURN_ENDTag representing all block types that can burn for infinitely long in the endXTag.INFINIBURN_NETHERTag representing all block types that can burn for infinitely long in the netherXTag.INFINIBURN_OVERWORLDTag representing all block types that can burn for infinitely long in the overworldTag representing all block types that play muffled step soundsXTag.IRON_ARMOR_PIECESTag representing all armor pieces made of ironXTag.IRON_ORESTag representing all possible variants of iron oresXTag.IRON_TOOLSTag representing all iron tools and swordsXTag.ITEMS_ARROWSTag representing all possible variants of arrowsXTag.ITEMS_BANNERSTag representing all items that can be used as bannersTag representing all items that can be used to fuel beaconXTag.ITEMS_BOATSTag representing all possible variants of boatsXTag.ITEMS_COALSTag representing all possible variants of coalTag representing all possible music discs that can be dropped by creeperXTag.ITEMS_FISHESTag representing all possible types of fishTag representing all furnace materials {empty in spigot as of 1.18}XTag.ITEMS_LECTERN_BOOKSTag representing all possible book types that can be placed on lecternsXTag.ITEMS_MUSIC_DISCSTag representing all types of music discsXTag.ITEMS_PIGLIN_LOVEDTag representing all items loved by piglinsTag representing all stone tool materialsXTag.JUNGLE_LOGSTag representing all jungle log and bark variantsXTag.LAPIS_ORESTag representing all possible variants of lapis oresTag representing all blocks that can't be replaced by lava poolsXTag.LEATHER_ARMOR_PIECESTag representing all armor pieces made of leatherXTag.LEAVESTag representing all types of leavesXTag.LOGSTag representing all wood and bark variantsXTag.LOGS_THAT_BURNTag representing all wood and bark variants that can catch fireTag representing all possible blocks that can be replaced by lush groundXTag.MANGROVE_LOGSTag representing all mangrove log and bark variantsXTag.MINEABLE_AXETag representing all block types mineable with axeXTag.MINEABLE_HOETag representing all block types mineable with hoeXTag.MINEABLE_PICKAXETag representing all block types mineable with pickaxeXTag.MINEABLE_SHOVELTag representing all block types mineable with shovelTag representing all possible block types mooshrooms can spawn onXTag.MOSS_REPLACEABLETag representing all block types that can be replaced by mossXTag.MUSHROOM_GROW_BLOCKXTag.NEEDS_DIAMOND_TOOLTag representing all block types that need minimum of diamond tool to drop itemsXTag.NEEDS_IRON_TOOLTag representing all block types that need minimum of iron tool to drop itemsXTag.NEEDS_STONE_TOOLTag representing all block types that need minimum of stone tool to drop itemsTag representing all armor pieces made of netheriteXTag.NETHERITE_TOOLSTag representing all netherite tools and swordsXTag.NON_FLAMMABLE_WOODTag representing all non-flammable wood and bark variantsXTag.NON_WOODEN_SLABSTag representing all non-wooden slabsXTag.NON_WOODEN_STAIRSTag representing all non-wooden stairsXTag.NYLIUMTag representing all nylium blocksXTag.OAK_LOGSTag representing all oak wood and bark variantsTag representing all possible blocks that can block vibration signalsXTag.ORESTag representing all oresXTag.PARROTS_SPAWNABLE_ONTag representing all possible block types parrots may spawn onXTag.PIGLIN_FOODTag representing all items that can be used as piglin foodXTag.PIGLIN_REPELLENTSTag representing all block types that repel piglinsXTag.PLANKSTag representing all types of planksTag representing all possible blocks polar bears may spawn onXTag.PORTALSTag representing all possible block types that be used as portalsXTag.PRESSURE_PLATESTag representing all possible variants of pressure platesTag representing all block types that prevent inside mob spawningXTag.RABBITS_SPAWNABLE_ONTag representing all possible block types that rabbits may spawn onXTag.RAILSTag representing all possible types of railsXTag.REDSTONE_ORESTag representing all possible variants of redstone oresXTag.REPLACEABLE_PLANTSTag representing all plant blocks that may be replacedXTag.SANDTag representing all possible types of sandXTag.SAPLINGSTag representing all possible types of saplingsXTag.SHULKER_BOXESTag representing all possible variants of shulker boxesXTag.SIGNSTag representing all possible variants of signsTag representing all possible block types small dripleaf may be placed uponXTag.SMALL_FLOWERSTag representing all flowers small in size {1 block tall}XTag.SNOWTag representing all possible variants of snowTag representing all possible blocks that can be lit up with sould fireXTag.SOUL_SPEED_BLOCKSTag representing all possible blocks that activate soul speed enchantmentXTag.SPRUCE_LOGSTag representing all spruce wood and log variantsXTag.STAIRSTag representing all possible types of stairsXTag.STANDING_SIGNSTag representing all possible types of standing signsXTag.STONE_BRICKSTag representing all possible variants of stone bricksTag representing all possible blocks that can be replaced by regular stone oresTag representing all pressure plates made of some type of stoneXTag.STONE_TOOLSTag representing all stone tools and swordsXTag.STRIDER_WARM_BLOCKSTag representing all block types that make strider warmXTag.TALL_FLOWERSTag representing all flowers that are tall {2 blocks}XTag.TERRACOTTATag representing all possible variants of non-glazed terracottaXTag.TRAPDOORSTag representing all possible types of trapdoorsXTag.UNDERWATER_BONEMEALSTag representing all block types that can be bonemealed underwaterTag representing all blocks that have unstable bottom when placed in centre of 2 blocksXTag.VALID_SPAWNTag representing all valid mob spawn positionsXTag.WALL_BANNERSTag representing all possible types of wall bannersXTag.WALL_HEADSXTag.WALL_POST_OVERRIDETag representing all possible block types that can override a wall post creationXTag.WALL_SIGNSTag representing all wall signsXTag.WALLSTag representing all different types of wallsXTag.WARPED_STEMSTag representing all warped stemsXTag.WITHER_IMMUNETag representing all block types that can't be destroyed by withersTag representing all possible block types that may be used as wither summon baseXTag.WOLVES_SPAWNABLE_ONTag representing all possible block types that wolves may spawn onXTag.WOODEN_BUTTONSTag representing all possible types of wooden buttonsXTag.WOODEN_DOORSTag representing all possible types of wooden doorsXTag.WOODEN_FENCE_GATESTag representing all possible types of wooden fence gatesXTag.WOODEN_FENCESTag representing all possible types of wooden fencesTag representing all possible types of wooden pressure platesXTag.WOODEN_SLABSTag representing all possible types of wooden slabsXTag.WOODEN_STAIRSTag representing all possible types of wooden stairsXTag.WOODEN_TOOLSTag representing all wooden tools and swordsXTag.WOODEN_TRAPDOORSTag representing all possible types of wooden trapdoorsXTag.WOOLTag representing all possible types of woolMethods in com.cryptomorin.xseries that return XMaterialModifier and TypeMethodDescriptionXItemStack.UnAcceptableMaterialCondition.getMaterial()static XMaterialXBlock.getType(org.bukkit.block.Block block) Deprecated.static XMaterialXMaterial.matchXMaterial(org.bukkit.inventory.ItemStack item) Parses the given item as an XMaterial using its material and data value (durability) if not a damageable itemItemStack.getDurability().static XMaterialXMaterial.matchXMaterial(org.bukkit.Material material) Parses the given material as an XMaterial.Checks if this material is supported in the current version and returns itself if yes.static XMaterialReturns the enum constant of this type with the specified name.static XMaterial[]XMaterial.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.cryptomorin.xseries that return types with arguments of type XMaterialModifier and TypeMethodDescriptionXMaterial.matchDefinedXMaterial(String name, byte data) The main method that parses the given material name and data value as an XMaterial.XMaterial.matchXMaterial(int id, byte data) Deprecated.this method loops through all the available materials and matches their ID usinggetId()which takes a really long time.XMaterial.matchXMaterial(String name) Parses the given material name as an XMaterial with a given data value in the string if attached.Methods in com.cryptomorin.xseries with parameters of type XMaterialModifier and TypeMethodDescriptionstatic booleanAny material that can be planted which is fromXBlock.CROPSstatic booleanXBlock.isDangerous(XMaterial material) Any material that can damage players, usually by interacting with the block.static booleanXTag.isInteractable(XMaterial material) Checks if this Material can be interacted with.static booleanChecks if this Material is an obtainable item.static booleanSame asXBlock.isType(Block, XMaterial)except it also does a simplematchXMaterial(Material)comparison with the given block and material.static booleanUniversal MethodChecks if this material is supported in the current version and returns itself if yes.voidXItemStack.MaterialCondition.setSolution(XMaterial solution) static booleanstatic booleanConstructors in com.cryptomorin.xseries with parameters of type XMaterialModifierConstructorDescriptionUnAcceptableMaterialCondition(XMaterial material, XItemStack.UnAcceptableMaterialCondition.Reason reason)
XBlock.isType(Block, XMaterial)orXBlock.isSimilar(Block, XMaterial)instead.