Examples of BlockTuple


Examples of thaumic.tinkerer.common.core.helper.BlockTuple

                    if (isNeighborTarget(world, x, y, z)) {
                        for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
                            if (isTransmutationTarget(world.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ), world, x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ)) {
                                Random random = new Random();
                                if (random.nextInt(getDecayChance(world, x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ)) == 0) {
                                    world.setBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, getBlockTransformation(world, x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ).get(new BlockTuple(world.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ))).block, getBlockTransformation(world, x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ).get(new BlockTuple(world.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ))).meta, 3);
                                } else {
                                    world.setBlockToAir(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ);
                                }
                            }
                        }
View Full Code Here

Examples of thaumic.tinkerer.common.core.helper.BlockTuple

    }

    @Override
    public HashMap<BlockTuple, BlockTuple> getBlockTransformation() {
        HashMap<BlockTuple, BlockTuple> result = new HashMap<BlockTuple, BlockTuple>();
        result.put(new BlockTuple(Blocks.sand), new BlockTuple(Blocks.ice));
        result.put(new BlockTuple(Blocks.netherrack), new BlockTuple(Blocks.snow));
        result.put(new BlockTuple(Blocks.soul_sand), new BlockTuple(Blocks.ice));
        result.put(new BlockTuple(Blocks.glowstone), new BlockTuple(Blocks.ice));
        result.put(new BlockTuple(Blocks.lava), new BlockTuple(Blocks.obsidian));
        result.put(new BlockTuple(Blocks.flowing_lava), new BlockTuple(Blocks.obsidian));
        return result;
    }
View Full Code Here

Examples of thaumic.tinkerer.common.core.helper.BlockTuple

public class BlockFireOrder extends BlockFireBase {

    public BlockFireOrder() {
        super();
        fireResults.put(new BlockTuple(Blocks.stone), null);
        fireResults.put(new BlockTuple(Blocks.glass), null);
        fireResults.put(new BlockTuple(Blocks.sand), null);
        fireResults.put(new BlockTuple(Blocks.gravel), null);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.