public class FishValueProcessor extends AbstractSpongeValueProcessor<net.minecraft.item.ItemStack,org.spongepowered.api.data.type.Fish,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish>>
Constructor and Description |
---|
FishValueProcessor() |
Modifier and Type | Method and Description |
---|---|
protected org.spongepowered.api.data.value.immutable.ImmutableValue<org.spongepowered.api.data.type.Fish> |
constructImmutableValue(org.spongepowered.api.data.type.Fish defaultValue) |
protected org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish> |
constructValue(org.spongepowered.api.data.type.Fish defaultValue)
Builds a
Value of the type produced by this processor from an
input, actual value. |
Optional<org.spongepowered.api.data.type.Fish> |
getVal(net.minecraft.item.ItemStack stack) |
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 . |
boolean |
set(net.minecraft.item.ItemStack stack,
org.spongepowered.api.data.type.Fish value) |
boolean |
supports(net.minecraft.item.ItemStack stack) |
getApiValueFromContainer, getKey, getPriority, getValueFromContainer, offerToStore, supports
public boolean supports(net.minecraft.item.ItemStack stack)
supports
in class AbstractSpongeValueProcessor<net.minecraft.item.ItemStack,org.spongepowered.api.data.type.Fish,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish>>
protected org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish> constructValue(org.spongepowered.api.data.type.Fish defaultValue)
AbstractSpongeValueProcessor
Value
of the type produced by this processor from an
input, actual value.constructValue
in class AbstractSpongeValueProcessor<net.minecraft.item.ItemStack,org.spongepowered.api.data.type.Fish,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish>>
defaultValue
- The actual valueValue
protected org.spongepowered.api.data.value.immutable.ImmutableValue<org.spongepowered.api.data.type.Fish> constructImmutableValue(org.spongepowered.api.data.type.Fish defaultValue)
constructImmutableValue
in class AbstractSpongeValueProcessor<net.minecraft.item.ItemStack,org.spongepowered.api.data.type.Fish,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish>>
public Optional<org.spongepowered.api.data.type.Fish> getVal(net.minecraft.item.ItemStack stack)
getVal
in class AbstractSpongeValueProcessor<net.minecraft.item.ItemStack,org.spongepowered.api.data.type.Fish,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish>>
public boolean set(net.minecraft.item.ItemStack stack, org.spongepowered.api.data.type.Fish value)
set
in class AbstractSpongeValueProcessor<net.minecraft.item.ItemStack,org.spongepowered.api.data.type.Fish,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.Fish>>
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