Modifier and Type | Method and Description |
---|---|
boolean |
isNo() |
boolean |
isYes() |
static Quadstate |
readFromBuffer(io.netty.buffer.ByteBuf buf) |
static Quadstate |
readFromNBT(net.minecraft.nbt.CompoundNBT tag,
java.lang.String key) |
static Quadstate |
valueOf(boolean value) |
static Quadstate |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Quadstate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToBuffer(io.netty.buffer.ByteBuf buf) |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT tag,
java.lang.String key) |
public static final Quadstate NONE
public static final Quadstate NO
public static final Quadstate YES
public static final Quadstate BOTH
public static Quadstate[] values()
for (Quadstate c : Quadstate.values()) System.out.println(c);
public static Quadstate 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 boolean isYes()
public boolean isNo()
public void writeToNBT(net.minecraft.nbt.CompoundNBT tag, java.lang.String key)
public static Quadstate readFromNBT(net.minecraft.nbt.CompoundNBT tag, java.lang.String key)
public void writeToBuffer(io.netty.buffer.ByteBuf buf)
public static Quadstate readFromBuffer(io.netty.buffer.ByteBuf buf)
public static Quadstate valueOf(boolean value)