public class PlayingValueProcessor extends AbstractSpongeValueProcessor<net.minecraft.entity.passive.EntityVillager,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>>
Constructor and Description |
---|
PlayingValueProcessor() |
Modifier and Type | Method and Description |
---|---|
protected org.spongepowered.api.data.value.immutable.ImmutableValue<Boolean> |
constructImmutableValue(Boolean value) |
protected org.spongepowered.api.data.value.mutable.Value<Boolean> |
constructValue(Boolean value)
Builds a
Value of the type produced by this processor from an
input, actual value. |
protected Optional<Boolean> |
getVal(net.minecraft.entity.passive.EntityVillager container) |
org.spongepowered.api.data.DataTransactionResult |
removeFrom(org.spongepowered.api.data.value.ValueContainer<?> container)
Attempts to remove the known keyed data associated with this
ValueProcessor from the provided ValueContainer . |
protected boolean |
set(net.minecraft.entity.passive.EntityVillager container,
Boolean value) |
getApiValueFromContainer, getKey, getPriority, getValueFromContainer, offerToStore, supports, supports
protected org.spongepowered.api.data.value.mutable.Value<Boolean> constructValue(Boolean value)
AbstractSpongeValueProcessor
Value
of the type produced by this processor from an
input, actual value.constructValue
in class AbstractSpongeValueProcessor<net.minecraft.entity.passive.EntityVillager,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>>
value
- The actual valueValue
protected boolean set(net.minecraft.entity.passive.EntityVillager container, Boolean value)
set
in class AbstractSpongeValueProcessor<net.minecraft.entity.passive.EntityVillager,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>>
protected Optional<Boolean> getVal(net.minecraft.entity.passive.EntityVillager container)
getVal
in class AbstractSpongeValueProcessor<net.minecraft.entity.passive.EntityVillager,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>>
protected org.spongepowered.api.data.value.immutable.ImmutableValue<Boolean> constructImmutableValue(Boolean value)
constructImmutableValue
in class AbstractSpongeValueProcessor<net.minecraft.entity.passive.EntityVillager,Boolean,org.spongepowered.api.data.value.mutable.Value<Boolean>>
public org.spongepowered.api.data.DataTransactionResult removeFrom(org.spongepowered.api.data.value.ValueContainer<?> container)
ValueProcessor
ValueProcessor
from the provided ValueContainer
. If
the result is not possible, the result will be an expected
DataTransactionResult.Type#FAILURE
.container
- The value container to remove data from