use of org.spongepowered.common.world.volume.buffer.block.BlockBackingData in project SpongeCommon by SpongePowered.
the class SpongeBlockVolumeFactory method createImmutableFromBufferData.
private ArrayImmutableBlockBuffer createImmutableFromBufferData(final ArrayMutableBlockBuffer arrayBuffer) {
final BlockBackingData data = arrayBuffer.getCopiedBackingData();
final Palette.Immutable<BlockState, BlockType> immutablePalette = arrayBuffer.getPalette().asImmutable();
return new ArrayImmutableBlockBuffer(immutablePalette, arrayBuffer.min(), arrayBuffer.size(), data);
}
Aggregations