Package net.glowstone.io.entity
Class UnknownEntityTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
net.glowstone.io.entity.UnknownEntityTypeException
- All Implemented Interfaces:
Serializable
Thrown when attempting to load an entity of an unrecognized or unspecified type. Needs a separate
exception class because it has different logging messages than other
IllegalArgumentException
instances.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ID subtag for this entity, if it has one that's a string; otherwise, returns the entire NBT tag as a string.getNbt()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownEntityTypeException
-
-
Method Details
-
getIdOrTag
Returns the ID subtag for this entity, if it has one that's a string; otherwise, returns the entire NBT tag as a string.- Returns:
- the ID, or the entire NBT tag as a string if no ID is defined
-
getNbt
-