public enum ScreenBoardPosition extends java.lang.Enum<ScreenBoardPosition> implements BoardPosition
Enum Constant and Description |
---|
BOTTOM_LEFT |
BOTTOM_MIDDLE |
BOTTOM_RIGHT |
CENTER_LEFT |
CENTER_RIGHT |
TOP_LEFT |
TOP_MIDDLE |
TOP_RIGHT |
Modifier and Type | Method and Description |
---|---|
static ScreenBoardPosition |
decide(net.minecraft.network.PacketBuffer buffer) |
void |
decode(net.minecraft.network.PacketBuffer buffer) |
void |
encode(net.minecraft.network.PacketBuffer buffer) |
com.mojang.datafixers.util.Pair<java.lang.Double,java.lang.Double> |
getCoordinates() |
void |
render() |
static ScreenBoardPosition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScreenBoardPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenBoardPosition TOP_LEFT
public static final ScreenBoardPosition TOP_MIDDLE
public static final ScreenBoardPosition TOP_RIGHT
public static final ScreenBoardPosition BOTTOM_LEFT
public static final ScreenBoardPosition BOTTOM_MIDDLE
public static final ScreenBoardPosition BOTTOM_RIGHT
public static final ScreenBoardPosition CENTER_RIGHT
public static final ScreenBoardPosition CENTER_LEFT
public static ScreenBoardPosition[] values()
for (ScreenBoardPosition c : ScreenBoardPosition.values()) System.out.println(c);
public static ScreenBoardPosition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic com.mojang.datafixers.util.Pair<java.lang.Double,java.lang.Double> getCoordinates()
public void encode(net.minecraft.network.PacketBuffer buffer)
encode
in interface BoardPosition
public void decode(net.minecraft.network.PacketBuffer buffer)
decode
in interface BoardPosition
public static ScreenBoardPosition decide(net.minecraft.network.PacketBuffer buffer)
public void render()
render
in interface BoardPosition