Class material_v1_16_R3

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bukkit.Material getForCurrent​(String v1_8, String v1_12, String v1_13)
      Get the right material for current version.
      org.bukkit.Material getMaterial​(String name)
      Get material by name.
      org.bukkit.Material getMaterialOr​(String name, org.bukkit.Material alternative)
      Get material by name or fallback material.
      org.bukkit.Material getSoil()  
      boolean isBed​(org.bukkit.Material material)
      Check if the given material is a bed.
      boolean isCake​(org.bukkit.Material material)
      Check if the given material is cake.
      boolean isConcrete​(org.bukkit.Material material)
      Check if the given material is concrete.
      boolean isConcretePowder​(org.bukkit.Material material)
      Check if the given material is concrete powder.
      boolean isGlass​(org.bukkit.Material material)
      Check if the given material is glass.
      boolean isGlassPane​(org.bukkit.Material material)
      Check if the given material is a glass pane.
      boolean isMaterial​(String name)
      Check if the given string is a valid material for the current server version.
      boolean isSoil​(org.bukkit.Material material)
      Check if the given material is soil.
      boolean isTerracotta​(org.bukkit.Material material)
      Check if the given material is terracotta.
      boolean isWool​(org.bukkit.Material material)
      Check if the given material is wool.
    • Constructor Detail

      • material_v1_16_R3

        public material_v1_16_R3()
    • Method Detail

      • isSoil

        public boolean isSoil​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is soil.
        Specified by:
        isSoil in interface MaterialSupport
      • isMaterial

        public boolean isMaterial​(String name)
        Description copied from interface: MaterialSupport
        Check if the given string is a valid material for the current server version.
        Specified by:
        isMaterial in interface MaterialSupport
        Parameters:
        name - material name.
        Returns:
        true if material is valid.
      • getMaterial

        @Nullable
        public org.bukkit.Material getMaterial​(String name)
        Description copied from interface: MaterialSupport
        Get material by name.
        Specified by:
        getMaterial in interface MaterialSupport
        Parameters:
        name - material name.
        Returns:
        null if material name is invalid.
      • getMaterialOr

        public org.bukkit.Material getMaterialOr​(String name,
                                                 org.bukkit.Material alternative)
        Description copied from interface: MaterialSupport
        Get material by name or fallback material.
        Specified by:
        getMaterialOr in interface MaterialSupport
        Parameters:
        name - material name.
        alternative - alternative material.
        Returns:
        alternative if name is null.
      • isWool

        public boolean isWool​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is wool.
        Specified by:
        isWool in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is wool.
      • isBed

        public boolean isBed​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is a bed.
        Specified by:
        isBed in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is bed.
      • isGlass

        public boolean isGlass​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is glass.
        Specified by:
        isGlass in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is glass.
      • isGlassPane

        public boolean isGlassPane​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is a glass pane.
        Specified by:
        isGlassPane in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is glass pane.
      • isTerracotta

        public boolean isTerracotta​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is terracotta.
        Specified by:
        isTerracotta in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is stained clay.
      • isConcrete

        public boolean isConcrete​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is concrete.
        Specified by:
        isConcrete in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is concrete.
      • isConcretePowder

        public boolean isConcretePowder​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is concrete powder.
        Specified by:
        isConcretePowder in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is concrete powder.
      • getForCurrent

        @Nullable
        public org.bukkit.Material getForCurrent​(String v1_8,
                                                 String v1_12,
                                                 String v1_13)
        Description copied from interface: MaterialSupport
        Get the right material for current version.
        Specified by:
        getForCurrent in interface MaterialSupport
        Parameters:
        v1_8 - material for 1.8 to 1.11 included.
        v1_12 - material for 1.12.
        v1_13 - material for 1.13 and newer.
        Returns:
        null if material is invalid.
      • isCake

        public boolean isCake​(org.bukkit.Material material)
        Description copied from interface: MaterialSupport
        Check if the given material is cake.
        Specified by:
        isCake in interface MaterialSupport
        Parameters:
        material - target material.
        Returns:
        true if given material is cake.