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