public class SpongePlantTypeValueProcessor extends Object implements BlockValueProcessor<org.spongepowered.api.data.type.PlantType,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>>
Constructor and Description |
---|
SpongePlantTypeValueProcessor() |
Modifier and Type | Method and Description |
---|---|
Optional<org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>> |
getApiValueForBlockState(net.minecraft.block.state.IBlockState blockState) |
org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<org.spongepowered.api.data.type.PlantType>> |
getKey() |
int |
getPriority() |
Optional<org.spongepowered.api.data.type.PlantType> |
getValueForBlockState(net.minecraft.block.state.IBlockState blockState) |
Optional<org.spongepowered.api.block.BlockState> |
offerValue(net.minecraft.block.state.IBlockState blockState,
org.spongepowered.api.data.type.PlantType baseValue) |
boolean |
supports(net.minecraft.block.state.IBlockState blockState) |
public org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<org.spongepowered.api.data.type.PlantType>> getKey()
getKey
in interface BlockValueProcessor<org.spongepowered.api.data.type.PlantType,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>>
public int getPriority()
getPriority
in interface BlockValueProcessor<org.spongepowered.api.data.type.PlantType,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>>
public boolean supports(net.minecraft.block.state.IBlockState blockState)
supports
in interface BlockValueProcessor<org.spongepowered.api.data.type.PlantType,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>>
public Optional<org.spongepowered.api.data.type.PlantType> getValueForBlockState(net.minecraft.block.state.IBlockState blockState)
getValueForBlockState
in interface BlockValueProcessor<org.spongepowered.api.data.type.PlantType,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>>
public Optional<org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>> getApiValueForBlockState(net.minecraft.block.state.IBlockState blockState)
getApiValueForBlockState
in interface BlockValueProcessor<org.spongepowered.api.data.type.PlantType,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>>
public Optional<org.spongepowered.api.block.BlockState> offerValue(net.minecraft.block.state.IBlockState blockState, org.spongepowered.api.data.type.PlantType baseValue)
offerValue
in interface BlockValueProcessor<org.spongepowered.api.data.type.PlantType,org.spongepowered.api.data.value.mutable.Value<org.spongepowered.api.data.type.PlantType>>