Class EmptyData

java.lang.Object
com.blamejared.crafttweaker.api.data.EmptyData
All Implemented Interfaces:
IData, Comparable<IData>, Iterable<IData>

@ZenRegister public final class EmptyData extends Object implements IData
Represents a marker object for data.

Note that this is not supposed to be used in scripts, and as such it cannot be obtained in any way.

  • Field Details

    • INSTANCE

      public static final EmptyData INSTANCE
  • Method Details

    • getInternal

      public net.minecraft.nbt.Tag getInternal()
      Description copied from interface: IData
      Gets the internal Tag stored in this IData.
      Specified by:
      getInternal in interface IData
      Returns:
      the vanilla Tag that this IData represents.
    • copy

      public IData copy()
      Specified by:
      copy in interface IData
    • copyInternal

      public IData copyInternal()
      Specified by:
      copyInternal in interface IData
    • accept

      public <T> T accept(DataVisitor<T> visitor)
      Specified by:
      accept in interface IData
    • getType

      public IData.Type getType()
      Description copied from interface: IData
      Gets the type of this IData.
      Specified by:
      getType in interface IData
      Returns:
      The type of this IData.
    • toString

      public String toString()
      Overrides:
      toString in class Object