Package org.terasology.world.chunks.blockdata

Examples of org.terasology.world.chunks.blockdata.TeraArray


        }
        if (!message.hasLiquidData()) {
            throw new IllegalArgumentException("Ill-formed protobuf message. Missing liquid data.");
        }

        final TeraArray blockData = runLengthDecode(message.getBlockData());
        final TeraArray liquidData = runLengthDecode(message.getLiquidData());
        final TeraArray biomeData = runLengthDecode(message.getBiomeData());
        return new ChunkImpl(pos, blockData, liquidData, biomeData);
    }
View Full Code Here


    public TeraVisitingDeflator() {
    }

    @Override
    public final TeraArray deflate(TeraArray in) {
        TeraArray result = Preconditions.checkNotNull(in).deflate(this);
        if (result != null) {
            return result;
        }
        return in;
    }
View Full Code Here

TOP

Related Classes of org.terasology.world.chunks.blockdata.TeraArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.