public final class BlockDataProcessorDelegate<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>> extends Object implements BlockDataProcessor<I>
Constructor and Description |
---|
BlockDataProcessorDelegate(ImmutableList<BlockDataProcessor<I>> processors) |
Modifier and Type | Method and Description |
---|---|
Optional<I> |
createFrom(net.minecraft.block.state.IBlockState blockState) |
Optional<I> |
fromBlockPos(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos) |
int |
getPriority() |
boolean |
remove(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos) |
Optional<org.spongepowered.api.block.BlockState> |
removeFrom(net.minecraft.block.state.IBlockState blockState) |
org.spongepowered.api.data.DataTransactionResult |
setData(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos,
I manipulator) |
Optional<org.spongepowered.api.block.BlockState> |
withData(net.minecraft.block.state.IBlockState blockState,
I manipulator) |
public BlockDataProcessorDelegate(ImmutableList<BlockDataProcessor<I>> processors)
public int getPriority()
getPriority
in interface BlockDataProcessor<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>>
public Optional<I> fromBlockPos(net.minecraft.world.World world, net.minecraft.util.BlockPos blockPos)
fromBlockPos
in interface BlockDataProcessor<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>>
public Optional<I> createFrom(net.minecraft.block.state.IBlockState blockState)
createFrom
in interface BlockDataProcessor<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>>
public Optional<org.spongepowered.api.block.BlockState> withData(net.minecraft.block.state.IBlockState blockState, I manipulator)
withData
in interface BlockDataProcessor<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>>
public org.spongepowered.api.data.DataTransactionResult setData(net.minecraft.world.World world, net.minecraft.util.BlockPos blockPos, I manipulator)
setData
in interface BlockDataProcessor<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>>
public Optional<org.spongepowered.api.block.BlockState> removeFrom(net.minecraft.block.state.IBlockState blockState)
removeFrom
in interface BlockDataProcessor<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>>
public boolean remove(net.minecraft.world.World world, net.minecraft.util.BlockPos blockPos)
remove
in interface BlockDataProcessor<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,?>>