public class FlyingAbilityDataProcessor extends AbstractEntitySingleDataProcessor<net.minecraft.entity.player.EntityPlayer,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData>
key
Constructor and Description |
---|
FlyingAbilityDataProcessor() |
Modifier and Type | Method and Description |
---|---|
protected org.spongepowered.api.data.value.immutable.ImmutableValue<Boolean> |
constructImmutableValue(Boolean value) |
protected org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData |
createManipulator() |
protected Optional<Boolean> |
getVal(net.minecraft.entity.player.EntityPlayer entity) |
org.spongepowered.api.data.DataTransactionResult |
remove(org.spongepowered.api.data.DataHolder dataHolder)
Attempts to remove the
DataManipulator type from the given DataHolder . |
protected boolean |
set(net.minecraft.entity.player.EntityPlayer entity,
Boolean value) |
fill, fill, from, set, supports, supports, supports, with
createFrom
getPriority
public org.spongepowered.api.data.DataTransactionResult remove(org.spongepowered.api.data.DataHolder dataHolder)
DataProcessor
DataManipulator
type from the given DataHolder
.
If the DataHolder
can not support removing the data outright,
false
should be returned.
dataHolder
- The data holder to remove the data fromprotected org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData createManipulator()
createManipulator
in class AbstractSingleDataProcessor<Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData>
protected boolean set(net.minecraft.entity.player.EntityPlayer entity, Boolean value)
set
in class AbstractEntitySingleDataProcessor<net.minecraft.entity.player.EntityPlayer,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData>
protected Optional<Boolean> getVal(net.minecraft.entity.player.EntityPlayer entity)
getVal
in class AbstractEntitySingleDataProcessor<net.minecraft.entity.player.EntityPlayer,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData>
protected org.spongepowered.api.data.value.immutable.ImmutableValue<Boolean> constructImmutableValue(Boolean value)
constructImmutableValue
in class AbstractEntitySingleDataProcessor<net.minecraft.entity.player.EntityPlayer,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData>