Modifier and Type | Method and Description |
---|---|
static BlockEntry |
create(BlockEntryType entryType,
Value... values)
Creates a new BlockEntry.
|
static BlockEntry |
create(java.io.InputStream in)
Creates a new BlockEntry from an input stream.
|
boolean |
equals(BlockEntry entry)
Checks if this entry is equal to another entry.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEntryString()
Returns a string representation of this entry.
|
BlockEntryType |
getEntryType()
Gets the entry type.
|
Value[] |
getValues()
Gets the values to match.
|
int |
hashCode() |
void |
readBytes(java.io.InputStream in)
Imports this object from bytes.
|
java.lang.String |
toFriendlyString()
Gets the string representation of this as a non-debugging-human-friendly string.
|
java.lang.String |
toString() |
void |
writeBytes(java.io.OutputStream out)
Exports this object to bytes.
|
public static BlockEntry create(BlockEntryType entryType, Value... values)
entryType
- the entry type.values
- the values to match.public static BlockEntry create(java.io.InputStream in) throws java.io.IOException
in
- the input stream to read from.java.io.IOException
- if a read error occurs.public BlockEntryType getEntryType()
public Value[] getValues()
public java.lang.String getEntryString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equals(BlockEntry entry)
entry
- the entry to compare to.public void writeBytes(java.io.OutputStream out) throws java.io.IOException
Saveable
writeBytes
in interface Saveable
out
- the output stream to write to.java.io.IOException
- if a write problem occurs.public void readBytes(java.io.InputStream in) throws java.io.IOException
Saveable
public java.lang.String toFriendlyString()
public java.lang.String toString()
toString
in class java.lang.Object