Package net.minecraft.tileentity
Enum BannerPattern
- java.lang.Object
-
- java.lang.Enum<BannerPattern>
-
- net.minecraft.tileentity.BannerPattern
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BannerPattern>
,IExtensibleEnum
public enum BannerPattern extends java.lang.Enum<BannerPattern> implements IExtensibleEnum
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BannerPattern.Builder
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static int
AVAILABLE_PATTERNS
static int
COUNT
private java.lang.String
filename
private java.lang.String
hashname
private boolean
hasPatternItem
static int
PATTERN_ITEM_COUNT
private static BannerPattern[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
BannerPattern(java.lang.String p_i47245_3_, java.lang.String p_i47245_4_)
private
BannerPattern(java.lang.String p_i231861_3_, java.lang.String p_i231861_4_, boolean p_i231861_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BannerPattern
byHash(java.lang.String p_190994_0_)
static BannerPattern
create(java.lang.String enumName, java.lang.String fileNameIn, java.lang.String hashNameIn)
static BannerPattern
create(java.lang.String enumName, java.lang.String fileNameIn, java.lang.String hashNameIn, boolean hasPatternItem)
java.lang.String
getFilename()
java.lang.String
getHashname()
ResourceLocation
location(boolean p_226957_1_)
static BannerPattern
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BannerPattern[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.minecraftforge.common.IExtensibleEnum
init
-
-
-
-
Enum Constant Detail
-
BASE
public static final BannerPattern BASE
-
SQUARE_BOTTOM_LEFT
public static final BannerPattern SQUARE_BOTTOM_LEFT
-
SQUARE_BOTTOM_RIGHT
public static final BannerPattern SQUARE_BOTTOM_RIGHT
-
SQUARE_TOP_LEFT
public static final BannerPattern SQUARE_TOP_LEFT
-
SQUARE_TOP_RIGHT
public static final BannerPattern SQUARE_TOP_RIGHT
-
STRIPE_BOTTOM
public static final BannerPattern STRIPE_BOTTOM
-
STRIPE_TOP
public static final BannerPattern STRIPE_TOP
-
STRIPE_LEFT
public static final BannerPattern STRIPE_LEFT
-
STRIPE_RIGHT
public static final BannerPattern STRIPE_RIGHT
-
STRIPE_CENTER
public static final BannerPattern STRIPE_CENTER
-
STRIPE_MIDDLE
public static final BannerPattern STRIPE_MIDDLE
-
STRIPE_DOWNRIGHT
public static final BannerPattern STRIPE_DOWNRIGHT
-
STRIPE_DOWNLEFT
public static final BannerPattern STRIPE_DOWNLEFT
-
STRIPE_SMALL
public static final BannerPattern STRIPE_SMALL
-
CROSS
public static final BannerPattern CROSS
-
STRAIGHT_CROSS
public static final BannerPattern STRAIGHT_CROSS
-
TRIANGLE_BOTTOM
public static final BannerPattern TRIANGLE_BOTTOM
-
TRIANGLE_TOP
public static final BannerPattern TRIANGLE_TOP
-
TRIANGLES_BOTTOM
public static final BannerPattern TRIANGLES_BOTTOM
-
TRIANGLES_TOP
public static final BannerPattern TRIANGLES_TOP
-
DIAGONAL_LEFT
public static final BannerPattern DIAGONAL_LEFT
-
DIAGONAL_RIGHT
public static final BannerPattern DIAGONAL_RIGHT
-
DIAGONAL_LEFT_MIRROR
public static final BannerPattern DIAGONAL_LEFT_MIRROR
-
DIAGONAL_RIGHT_MIRROR
public static final BannerPattern DIAGONAL_RIGHT_MIRROR
-
CIRCLE_MIDDLE
public static final BannerPattern CIRCLE_MIDDLE
-
RHOMBUS_MIDDLE
public static final BannerPattern RHOMBUS_MIDDLE
-
HALF_VERTICAL
public static final BannerPattern HALF_VERTICAL
-
HALF_HORIZONTAL
public static final BannerPattern HALF_HORIZONTAL
-
HALF_VERTICAL_MIRROR
public static final BannerPattern HALF_VERTICAL_MIRROR
-
HALF_HORIZONTAL_MIRROR
public static final BannerPattern HALF_HORIZONTAL_MIRROR
-
BORDER
public static final BannerPattern BORDER
-
CURLY_BORDER
public static final BannerPattern CURLY_BORDER
-
GRADIENT
public static final BannerPattern GRADIENT
-
GRADIENT_UP
public static final BannerPattern GRADIENT_UP
-
BRICKS
public static final BannerPattern BRICKS
-
GLOBE
public static final BannerPattern GLOBE
-
CREEPER
public static final BannerPattern CREEPER
-
SKULL
public static final BannerPattern SKULL
-
FLOWER
public static final BannerPattern FLOWER
-
MOJANG
public static final BannerPattern MOJANG
-
PIGLIN
public static final BannerPattern PIGLIN
-
-
Field Detail
-
VALUES
private static final BannerPattern[] VALUES
-
COUNT
public static final int COUNT
-
PATTERN_ITEM_COUNT
public static final int PATTERN_ITEM_COUNT
-
AVAILABLE_PATTERNS
public static final int AVAILABLE_PATTERNS
-
hasPatternItem
private final boolean hasPatternItem
-
filename
private final java.lang.String filename
-
hashname
private final java.lang.String hashname
-
-
Method Detail
-
values
public static BannerPattern[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BannerPattern c : BannerPattern.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BannerPattern valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
location
public ResourceLocation location(boolean p_226957_1_)
-
getFilename
public java.lang.String getFilename()
-
getHashname
public java.lang.String getHashname()
-
byHash
@Nullable public static BannerPattern byHash(java.lang.String p_190994_0_)
-
create
public static BannerPattern create(java.lang.String enumName, java.lang.String fileNameIn, java.lang.String hashNameIn)
-
create
public static BannerPattern create(java.lang.String enumName, java.lang.String fileNameIn, java.lang.String hashNameIn, boolean hasPatternItem)
-
-