public class SneakingDataProcessor extends AbstractEntitySingleDataProcessor<net.minecraft.entity.Entity,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.SneakingData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData>
key
Constructor and Description |
---|
SneakingDataProcessor() |
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.SneakingData |
createManipulator() |
protected Optional<Boolean> |
getVal(net.minecraft.entity.Entity 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.Entity entity,
Boolean value) |
fill, fill, from, set, supports, supports, supports, with
createFrom
getPriority
protected org.spongepowered.api.data.manipulator.mutable.entity.SneakingData createManipulator()
createManipulator
in class AbstractSingleDataProcessor<Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.SneakingData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData>
protected boolean set(net.minecraft.entity.Entity entity, Boolean value)
set
in class AbstractEntitySingleDataProcessor<net.minecraft.entity.Entity,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.SneakingData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData>
protected Optional<Boolean> getVal(net.minecraft.entity.Entity entity)
getVal
in class AbstractEntitySingleDataProcessor<net.minecraft.entity.Entity,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.SneakingData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData>
protected org.spongepowered.api.data.value.immutable.ImmutableValue<Boolean> constructImmutableValue(Boolean value)
constructImmutableValue
in class AbstractEntitySingleDataProcessor<net.minecraft.entity.Entity,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>,org.spongepowered.api.data.manipulator.mutable.entity.SneakingData,org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData>
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 from