public class SkullRepresentedPlayerDataProcessor extends AbstractTileEntitySingleDataProcessor<net.minecraft.tileentity.TileEntitySkull,org.spongepowered.api.GameProfile,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.GameProfile>,org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData,org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData>
key
Constructor and Description |
---|
SkullRepresentedPlayerDataProcessor() |
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.manipulator.mutable.RepresentedPlayerData |
createManipulator() |
protected Optional<org.spongepowered.api.GameProfile> |
getVal(net.minecraft.tileentity.TileEntitySkull entity) |
org.spongepowered.api.data.DataTransactionResult |
remove(org.spongepowered.api.data.DataHolder dataHolder)
Attempts to remove the
DataManipulator type from the given DataHolder . |
protected boolean |
set(net.minecraft.tileentity.TileEntitySkull skull,
org.spongepowered.api.GameProfile profile) |
boolean |
supports(net.minecraft.tileentity.TileEntitySkull skull) |
fill, fill, from, set, supports, with
createFrom
getPriority, supports
public boolean supports(net.minecraft.tileentity.TileEntitySkull skull)
supports
in class AbstractTileEntitySingleDataProcessor<net.minecraft.tileentity.TileEntitySkull,org.spongepowered.api.GameProfile,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.GameProfile>,org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData,org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData>
public org.spongepowered.api.data.DataTransactionResult remove(org.spongepowered.api.data.DataHolder dataHolder)
DataProcessor
DataManipulator
type from the given DataHolder
.
If the DataHolder
can not support removing the data outright,
false
should be returned.
dataHolder
- The data holder to remove the data fromprotected boolean set(net.minecraft.tileentity.TileEntitySkull skull, org.spongepowered.api.GameProfile profile)
set
in class AbstractTileEntitySingleDataProcessor<net.minecraft.tileentity.TileEntitySkull,org.spongepowered.api.GameProfile,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.GameProfile>,org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData,org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData>
protected Optional<org.spongepowered.api.GameProfile> getVal(net.minecraft.tileentity.TileEntitySkull entity)
getVal
in class AbstractTileEntitySingleDataProcessor<net.minecraft.tileentity.TileEntitySkull,org.spongepowered.api.GameProfile,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.GameProfile>,org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData,org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData>
protected org.spongepowered.api.data.value.immutable.ImmutableValue<org.spongepowered.api.GameProfile> constructImmutableValue(org.spongepowered.api.GameProfile value)
constructImmutableValue
in class AbstractTileEntitySingleDataProcessor<net.minecraft.tileentity.TileEntitySkull,org.spongepowered.api.GameProfile,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.GameProfile>,org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData,org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData>
protected org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData createManipulator()
createManipulator
in class AbstractSingleDataProcessor<org.spongepowered.api.GameProfile,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.GameProfile>,org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData,org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData>