Class StringData
java.lang.Object
com.blamejared.crafttweaker.api.data.StringData
- All Implemented Interfaces:
IData
- DocParam:
- this new StringData("Hello")
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blamejared.crafttweaker.api.data.base.IData
IData.Type -
Constructor Summary
ConstructorsConstructorDescriptionStringData(String internal) StringData(net.minecraft.nbt.StringTag internal) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(DataVisitor<T> visitor) addTogether(StringData data) Concatenates the two string Datas and returns the result.booleanChecks if this IData contains another IData, mainly used in subclasses ofICollectionData, is the same as an equals check on other IData typescopy()Makes a copy of this IData.Makes a copy of this IData with a copy of the internal INBT object.booleannet.minecraft.nbt.StringTagGets the internal INBT stored in this IData.getType()Gets the type of this IData.inthashCode()
-
Constructor Details
-
StringData
public StringData(net.minecraft.nbt.StringTag internal) -
StringData
-
-
Method Details
-
copy
Description copied from interface:IDataMakes a copy of this IData. IData is immutable by default, use this to create a proper copy of the object. -
copyInternal
Description copied from interface:IDataMakes a copy of this IData with a copy of the internal INBT object.- Specified by:
copyInternalin interfaceIData- Returns:
- a copy of this IData with a copy of the internal INBT object.
-
getInternal
public net.minecraft.nbt.StringTag getInternal()Description copied from interface:IDataGets the internal INBT stored in this IData.- Specified by:
getInternalin interfaceIData- Returns:
- the vanilla INBT tag that this IData represents.
-
contains
Description copied from interface:IDataChecks if this IData contains another IData, mainly used in subclasses ofICollectionData, is the same as an equals check on other IData types -
addTogether
Concatenates the two string Datas and returns the result.- Parameters:
data- The other data to append- Returns:
- A new StringData with the value concatenated.
- DocParam:
- data new StringData("World")
-
getType
Description copied from interface:IDataGets the type of this IData. -
accept
-
equals
-
hashCode
public int hashCode()
-