Class UnknownEntityTypeException

All Implemented Interfaces:
Serializable

public class UnknownEntityTypeException extends IllegalArgumentException
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 Details

    • UnknownEntityTypeException

      public UnknownEntityTypeException(CompoundTag nbt)
  • Method Details

    • getIdOrTag

      public String 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

      public CompoundTag getNbt()