public class SpongeCommandData extends AbstractData<org.spongepowered.api.data.manipulator.mutable.CommandData,org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData> implements org.spongepowered.api.data.manipulator.mutable.CommandData
Constructor and Description |
---|
SpongeCommandData() |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData |
asImmutable() |
int |
compareTo(org.spongepowered.api.data.manipulator.mutable.CommandData o) |
org.spongepowered.api.data.manipulator.mutable.CommandData |
copy() |
org.spongepowered.api.data.value.mutable.Value<Boolean> |
doesTrackOutput() |
Optional<org.spongepowered.api.text.Text> |
getLastOutput() |
String |
getStoredCommand() |
int |
getSuccessCount() |
org.spongepowered.api.data.value.mutable.OptionalValue<org.spongepowered.api.text.Text> |
lastOutput() |
protected void |
registerGettersAndSetters() |
org.spongepowered.api.data.manipulator.mutable.CommandData |
setLastOutput(org.spongepowered.api.text.Text message) |
SpongeCommandData |
setStoredCommand(String command) |
SpongeCommandData |
setSuccessCount(int count) |
SpongeCommandData |
shouldTrackOutput(boolean track) |
org.spongepowered.api.data.value.mutable.Value<String> |
storedCommand() |
org.spongepowered.api.data.value.mutable.Value<Integer> |
successCount() |
org.spongepowered.api.data.DataContainer |
toContainer() |
boolean |
tracksOutput() |
equals, fill, fill, from, get, getKeys, getOrElse, getOrNull, getValue, getValues, hashCode, registerFieldGetter, registerFieldSetter, registerKeyValue, set, set, set, set, supports, supports, transform
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public org.spongepowered.api.data.value.mutable.Value<String> storedCommand()
storedCommand
in interface org.spongepowered.api.data.manipulator.mutable.CommandData
public org.spongepowered.api.data.value.mutable.Value<Integer> successCount()
successCount
in interface org.spongepowered.api.data.manipulator.mutable.CommandData
public org.spongepowered.api.data.value.mutable.Value<Boolean> doesTrackOutput()
doesTrackOutput
in interface org.spongepowered.api.data.manipulator.mutable.CommandData
public org.spongepowered.api.data.value.mutable.OptionalValue<org.spongepowered.api.text.Text> lastOutput()
lastOutput
in interface org.spongepowered.api.data.manipulator.mutable.CommandData
public org.spongepowered.api.data.manipulator.mutable.CommandData copy()
copy
in interface org.spongepowered.api.data.manipulator.DataManipulator<org.spongepowered.api.data.manipulator.mutable.CommandData,org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData>
copy
in interface org.spongepowered.api.data.value.ValueContainer<org.spongepowered.api.data.manipulator.mutable.CommandData>
public org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData asImmutable()
asImmutable
in interface org.spongepowered.api.data.manipulator.DataManipulator<org.spongepowered.api.data.manipulator.mutable.CommandData,org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData>
public int compareTo(org.spongepowered.api.data.manipulator.mutable.CommandData o)
compareTo
in interface Comparable<org.spongepowered.api.data.manipulator.mutable.CommandData>
public org.spongepowered.api.data.DataContainer toContainer()
toContainer
in interface org.spongepowered.api.data.DataSerializable
public String getStoredCommand()
public SpongeCommandData setStoredCommand(String command)
public int getSuccessCount()
public SpongeCommandData setSuccessCount(int count)
public boolean tracksOutput()
public SpongeCommandData shouldTrackOutput(boolean track)
public Optional<org.spongepowered.api.text.Text> getLastOutput()
public org.spongepowered.api.data.manipulator.mutable.CommandData setLastOutput(org.spongepowered.api.text.Text message)
protected void registerGettersAndSetters()
registerGettersAndSetters
in class AbstractData<org.spongepowered.api.data.manipulator.mutable.CommandData,org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData>