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