Class/Object

net.katsstuff.typenbt

NBTCompound

Related Docs: object NBTCompound | package typenbt

Permalink

final case class NBTCompound(value: Map[String, NBTTag] = Map()) extends NBTTag with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, NBTTag, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NBTCompound
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. NBTTag
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NBTCompound(value: Map[String, NBTTag] = Map())

    Permalink

Type Members

  1. type Repr = Map[String, NBTTag]

    Permalink

    The value that this NBTTag holds.

    The value that this NBTTag holds.

    Definition Classes
    NBTCompoundNBTTag
  2. type Self = NBTCompound

    Permalink
    Definition Classes
    NBTCompoundNBTTag

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(tuple: (String, NBTTag)): NBTCompound

    Permalink

    Creates a new NBTCompound with the pair appended.

  4. def ++[Input <: HList, Mapped <: HList, Traversed](hList: Input)(implicit mapper: Aux[tupleToNBT.type, Input, Mapped], toTraversable: Aux[Mapped, Seq, Traversed], evidence: <:<[Traversed, (String, NBTTag)]): NBTCompound

    Permalink

    Creates a new NBTCompound with the hlist appended.

    Creates a new NBTCompound with the hlist appended. If there exists duplicate values. it uses the second one

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def apply(key: String): NBTTag

    Permalink

    Tries to get a value in this NBTCompound, or throws an NoSuchElementException if no value is found.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get(key: String): Option[NBTTag]

    Permalink

    Get a tag from this NBTCompound

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getRecursive(keys: String*): Option[NBTTag]

    Permalink

    Tries to get a NBTTag nested in multiple NBTCompound.

    Tries to get a NBTTag nested in multiple NBTCompound.

    Example:

    val compound = NBTCompound().set("first" NBTCompound().set("second", NBTString("hi")))
    assert(compound.getRecursive("first", "second") == NBTString("hi"))
    Annotations
    @tailrec()
  14. def getRecursiveValue[Repr]: getRecursiveValue[Repr]

    Permalink

    Same as getRecursive, but with a value instead of a NBTTag.

    Same as getRecursive, but with a value instead of a NBTTag.

    See also

    getRecursive

  15. def getUUID(key: String): Option[UUID]

    Permalink

    Tries to get an java.util.UUID created with setUUID.

  16. def getValue[Repr]: GetValue[Repr]

    Permalink

    Gets a value from this if it exists at the specified key, and it can be converted to the specified value.

  17. def hasKey(key: String): Boolean

    Permalink

    Checks if this NBTCompound has a specific key.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def merge(other: NBTCompound): NBTCompound

    Permalink

    Merges this NBTCompound with another, and if a conflict arises, uses the second one.

  20. def mergeAdvanced(other: NBTCompound)(merge: ((String, NBTTag), (String, NBTTag)) ⇒ (String, NBTTag)): NBTCompound

    Permalink

    Tries to merge this NBTCompound with another.

    Tries to merge this NBTCompound with another. If a situation where both compounds contain some value with the same key arises, the merge function is used.

  21. def nbtType: NBTType[Repr, Self]

    Permalink

    The type of this NBTTag

    The type of this NBTTag

    Definition Classes
    NBTCompoundNBTTag
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def set(key: String, tag: NBTTag): NBTCompound

    Permalink

    Associates a specific tag to a specific key.

    Associates a specific tag to a specific key.

    key

    The key to bind to.

    tag

    The tag to set.

    returns

    An scala.Option with the previous value of the used key, or None if the key was not already used.

  26. def setUUID(key: String, value: UUID): NBTCompound

    Permalink

    Creates two NBTLong tags from the UUID and sets the tags.

    Creates two NBTLong tags from the UUID and sets the tags.

    This method differs in behavior from NBTViewInstances.UUIDView. If you want compatibility with vanilla, use this.

    The key of the two tags are key + "Most" for the most significant bits, and key + "Least" for the least significant bits.

    returns

    The same things goes for this as for set, only here you have a scala.collection.Seq instead of an scala.Option

  27. def setValue[Repr, NBT <: NBTTag](key: String, value: Repr)(implicit to: NBTView[Repr, NBT]): NBTCompound

    Permalink

    Creates a NBTTag from the type passed in, and adds it to the compound.

    Creates a NBTTag from the type passed in, and adds it to the compound.

    Repr

    The type to convert from

    NBT

    The tag to convert to

    key

    The key to bind to.

    value

    The value top set

    to

    The converter to convert the value to a NBTTag

  28. def size: Int

    Permalink

    The size of this compound.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def update(key: String, tag: NBTTag): NBTCompound

    Permalink

    Creates a new NBTCompound with the key-value pair appended.

  31. val value: Map[String, NBTTag]

    Permalink

    The value of this NBTTag

    The value of this NBTTag

    Definition Classes
    NBTCompoundNBTTag
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from NBTTag

Inherited from AnyRef

Inherited from Any

Ungrouped