public class ImmutableSpongeDisplayNameData extends AbstractImmutableData<org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData,org.spongepowered.api.data.manipulator.mutable.DisplayNameData> implements org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData
Constructor and Description |
---|
ImmutableSpongeDisplayNameData(org.spongepowered.api.text.Text displayName,
boolean displays) |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.data.manipulator.mutable.DisplayNameData |
asMutable() |
int |
compareTo(org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData o) |
org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData |
copy() |
org.spongepowered.api.data.value.immutable.ImmutableValue<Boolean> |
customNameVisible() |
org.spongepowered.api.data.value.immutable.ImmutableValue<org.spongepowered.api.text.Text> |
displayName() |
org.spongepowered.api.text.Text |
getDisplayName() |
boolean |
isDisplays() |
protected void |
registerGetters() |
org.spongepowered.api.data.DataContainer |
toContainer() |
equals, get, getKeys, getOrElse, getOrNull, getValue, getValues, hashCode, registerFieldGetter, registerKeyValue, supports, supports, with, with
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public ImmutableSpongeDisplayNameData(org.spongepowered.api.text.Text displayName, boolean displays)
public org.spongepowered.api.data.value.immutable.ImmutableValue<org.spongepowered.api.text.Text> displayName()
displayName
in interface org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData
public org.spongepowered.api.data.value.immutable.ImmutableValue<Boolean> customNameVisible()
customNameVisible
in interface org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData
public org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData copy()
copy
in interface org.spongepowered.api.data.manipulator.ImmutableDataManipulator<org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData,org.spongepowered.api.data.manipulator.mutable.DisplayNameData>
copy
in interface org.spongepowered.api.data.value.ValueContainer<org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData>
public org.spongepowered.api.data.manipulator.mutable.DisplayNameData asMutable()
asMutable
in interface org.spongepowered.api.data.manipulator.ImmutableDataManipulator<org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData,org.spongepowered.api.data.manipulator.mutable.DisplayNameData>
public int compareTo(org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData o)
compareTo
in interface Comparable<org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData>
public org.spongepowered.api.data.DataContainer toContainer()
toContainer
in interface org.spongepowered.api.data.DataSerializable
public org.spongepowered.api.text.Text getDisplayName()
public boolean isDisplays()
protected void registerGetters()
registerGetters
in class AbstractImmutableData<org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData,org.spongepowered.api.data.manipulator.mutable.DisplayNameData>