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