Java Code Examples for net.minecraft.nbt.StringTag#of()
The following examples show how to use
net.minecraft.nbt.StringTag#of() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShapeDispatcher.java From fabric-carpet with MIT License | 4 votes |
@Override public Tag toTag(Value value) { return StringTag.of(value.getString()); }
Example 2
Source File: StringValue.java From fabric-carpet with MIT License | 4 votes |
@Override public Tag toTag(boolean force) { return StringTag.of(str); }
Example 3
Source File: NullValue.java From fabric-carpet with MIT License | 4 votes |
@Override public Tag toTag(boolean force) { if (!force) throw new NBTSerializableValue.IncompatibleTypeException(this); return StringTag.of("null"); }
Example 4
Source File: LazyListValue.java From fabric-carpet with MIT License | 4 votes |
@Override public Tag toTag(boolean force) { if (!force) throw new NBTSerializableValue.IncompatibleTypeException(this); return StringTag.of(getString()); }
Example 5
Source File: FormattedTextValue.java From fabric-carpet with MIT License | 4 votes |
@Override public Tag toTag(boolean force) { if (!force) throw new NBTSerializableValue.IncompatibleTypeException(this); return StringTag.of(Text.Serializer.toJson(text)); }
Example 6
Source File: FunctionValue.java From fabric-carpet with MIT License | 4 votes |
@Override public Tag toTag(boolean force) { if (!force) throw new NBTSerializableValue.IncompatibleTypeException(this); return StringTag.of(getString()); }