public class SpongeVelocityData extends AbstractSingleData<com.flowpowered.math.vector.Vector3d,org.spongepowered.api.data.manipulator.mutable.entity.VelocityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData> implements org.spongepowered.api.data.manipulator.mutable.entity.VelocityData
Modifier and Type | Field and Description |
---|---|
static org.spongepowered.api.data.DataQuery |
VELOCITY_X |
static org.spongepowered.api.data.DataQuery |
VELOCITY_Y |
static org.spongepowered.api.data.DataQuery |
VELOCITY_Z |
usedKey
Constructor and Description |
---|
SpongeVelocityData() |
SpongeVelocityData(com.flowpowered.math.vector.Vector3d velocity) |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData |
asImmutable() |
int |
compareTo(org.spongepowered.api.data.manipulator.mutable.entity.VelocityData o) |
org.spongepowered.api.data.manipulator.mutable.entity.VelocityData |
copy() |
protected org.spongepowered.api.data.value.mutable.Value<?> |
getValueGetter() |
org.spongepowered.api.data.DataContainer |
toContainer() |
org.spongepowered.api.data.value.mutable.Value<com.flowpowered.math.vector.Vector3d> |
velocity() |
equals, get, getValue, hashCode, registerGettersAndSetters, setValue, supports, supports
fill, fill, from, getKeys, getOrElse, getOrNull, getValue, getValues, registerFieldGetter, registerFieldSetter, registerKeyValue, set, set, set, set, transform
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public static final org.spongepowered.api.data.DataQuery VELOCITY_X
public static final org.spongepowered.api.data.DataQuery VELOCITY_Y
public static final org.spongepowered.api.data.DataQuery VELOCITY_Z
public SpongeVelocityData()
public SpongeVelocityData(com.flowpowered.math.vector.Vector3d velocity)
protected org.spongepowered.api.data.value.mutable.Value<?> getValueGetter()
getValueGetter
in class AbstractSingleData<com.flowpowered.math.vector.Vector3d,org.spongepowered.api.data.manipulator.mutable.entity.VelocityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData>
public org.spongepowered.api.data.manipulator.mutable.entity.VelocityData copy()
copy
in interface org.spongepowered.api.data.manipulator.DataManipulator<org.spongepowered.api.data.manipulator.mutable.entity.VelocityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData>
copy
in interface org.spongepowered.api.data.value.ValueContainer<org.spongepowered.api.data.manipulator.mutable.entity.VelocityData>
public org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData asImmutable()
asImmutable
in interface org.spongepowered.api.data.manipulator.DataManipulator<org.spongepowered.api.data.manipulator.mutable.entity.VelocityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData>
asImmutable
in class AbstractSingleData<com.flowpowered.math.vector.Vector3d,org.spongepowered.api.data.manipulator.mutable.entity.VelocityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData>
public int compareTo(org.spongepowered.api.data.manipulator.mutable.entity.VelocityData o)
compareTo
in interface Comparable<org.spongepowered.api.data.manipulator.mutable.entity.VelocityData>
compareTo
in class AbstractSingleData<com.flowpowered.math.vector.Vector3d,org.spongepowered.api.data.manipulator.mutable.entity.VelocityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData>
public org.spongepowered.api.data.DataContainer toContainer()
toContainer
in interface org.spongepowered.api.data.DataSerializable
public org.spongepowered.api.data.value.mutable.Value<com.flowpowered.math.vector.Vector3d> velocity()
velocity
in interface org.spongepowered.api.data.manipulator.mutable.entity.VelocityData