package com.saon.PotteryMod.blocks; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.material.MaterialColor; import net.minecraft.util.math.shapes.IBooleanFunction; import net.minecraft.util.math.shapes.VoxelShape; import net.minecraft.util.math.shapes.VoxelShapes; import net.minecraftforge.common.ToolType; import java.util.stream.Stream; public class PotterWheel extends Block { private static final VoxelShape SHAPE_N = Stream.of( Block.makeCuboidShape(6, 1, 6, 10, 4, 10), Block.makeCuboidShape(5, 1, 7, 6, 4, 9), Block.makeCuboidShape(7, 1, 5, 9, 4, 6), Block.makeCuboidShape(10, 1, 7, 11, 4, 9), Block.makeCuboidShape(7, 1, 10, 9, 4, 11), Block.makeCuboidShape(0, 1, 6, 1, 3, 10), Block.makeCuboidShape(6, 1, 0, 10, 3, 1), Block.makeCuboidShape(6, 1, 15, 10, 3, 16), Block.makeCuboidShape(15, 1, 6, 16, 3, 10), Block.makeCuboidShape(1, 1, 4, 2, 3, 6), Block.makeCuboidShape(4, 1, 1, 6, 3, 2), Block.makeCuboidShape(3, 1, 2, 4, 3, 3), Block.makeCuboidShape(2, 1, 3, 3, 3, 4), Block.makeCuboidShape(1, 1, 10, 2, 3, 12), Block.makeCuboidShape(2, 1, 12, 3, 3, 13), Block.makeCuboidShape(4, 1, 14, 6, 3, 15), Block.makeCuboidShape(3, 1, 13, 4, 3, 14), Block.makeCuboidShape(10, 1, 1, 12, 3, 2), Block.makeCuboidShape(12, 1, 2, 13, 3, 3), Block.makeCuboidShape(13, 1, 3, 14, 3, 4), Block.makeCuboidShape(14, 1, 4, 15, 3, 6), Block.makeCuboidShape(14, 1, 10, 15, 3, 12), Block.makeCuboidShape(10, 1, 14, 12, 3, 15), Block.makeCuboidShape(13, 1, 12, 14, 3, 13), Block.makeCuboidShape(12, 1, 13, 13, 3, 14), Block.makeCuboidShape(13, 1, 5, 14, 2, 6), Block.makeCuboidShape(11, 1, 6, 13, 2, 7), Block.makeCuboidShape(13, 1, 10, 14, 2, 11), Block.makeCuboidShape(11, 1, 9, 13, 2, 10), Block.makeCuboidShape(2, 1, 10, 3, 2, 11), Block.makeCuboidShape(10, 1, 2, 11, 2, 3), Block.makeCuboidShape(5, 1, 2, 6, 2, 3), Block.makeCuboidShape(6, 1, 3, 7, 2, 5), Block.makeCuboidShape(9, 1, 3, 10, 2, 5), Block.makeCuboidShape(2, 1, 5, 3, 2, 6), Block.makeCuboidShape(3, 1, 6, 5, 2, 7), Block.makeCuboidShape(10, 1, 13, 11, 2, 14), Block.makeCuboidShape(5, 1, 13, 6, 2, 14), Block.makeCuboidShape(9, 1, 11, 10, 2, 13), Block.makeCuboidShape(6, 1, 11, 7, 2, 13), Block.makeCuboidShape(3, 1, 9, 5, 2, 10), Block.makeCuboidShape(6, 4.199999999999999, 15, 10, 5.199999999999999, 16), Block.makeCuboidShape(15, 4.199999999999999, 6, 16, 5.199999999999999, 10), Block.makeCuboidShape(10, 4.199999999999999, 14, 12, 5.199999999999999, 15), Block.makeCuboidShape(14, 4.199999999999999, 10, 15, 5.199999999999999, 12), Block.makeCuboidShape(12, 4.199999999999999, 13, 13, 5.199999999999999, 14), Block.makeCuboidShape(13, 4.199999999999999, 12, 14, 5.199999999999999, 13), Block.makeCuboidShape(4, 4.199999999999999, 14, 6, 5.199999999999999, 15), Block.makeCuboidShape(14, 4.199999999999999, 4, 15, 5.199999999999999, 6), Block.makeCuboidShape(13, 4.199999999999999, 3, 14, 5.199999999999999, 4), Block.makeCuboidShape(3, 4.199999999999999, 13, 4, 5.199999999999999, 14), Block.makeCuboidShape(2, 4.199999999999999, 12, 3, 5.199999999999999, 13), Block.makeCuboidShape(1, 4.199999999999999, 10, 2, 5.199999999999999, 12), Block.makeCuboidShape(12, 4.199999999999999, 2, 13, 5.199999999999999, 3), Block.makeCuboidShape(10, 4.199999999999999, 1, 12, 5.199999999999999, 2), Block.makeCuboidShape(6, 4.199999999999999, 0, 10, 5.199999999999999, 1), Block.makeCuboidShape(0, 4.199999999999999, 6, 1, 5.199999999999999, 10), Block.makeCuboidShape(4, 4.199999999999999, 1, 6, 5.199999999999999, 2), Block.makeCuboidShape(1, 4.199999999999999, 4, 2, 5.199999999999999, 6), Block.makeCuboidShape(2, 4.199999999999999, 3, 3, 5.199999999999999, 4), Block.makeCuboidShape(3, 4.199999999999999, 2, 4, 5.199999999999999, 3), Block.makeCuboidShape(2, 4.2, 10, 3, 5.2, 11), Block.makeCuboidShape(3, 4.199999999999999, 9, 5, 5.199999999999999, 10), Block.makeCuboidShape(3, 4.199999999999999, 6, 5, 5.199999999999999, 7), Block.makeCuboidShape(2, 4.199999999999999, 5, 3, 5.199999999999999, 6), Block.makeCuboidShape(6, 4.199999999999999, 3, 7, 5.199999999999999, 5), Block.makeCuboidShape(5, 4.199999999999999, 2, 6, 5.199999999999999, 3), Block.makeCuboidShape(9, 4.199999999999999, 3, 10, 5.199999999999999, 5), Block.makeCuboidShape(10, 4.199999999999999, 2, 11, 5.199999999999999, 3), Block.makeCuboidShape(11, 4.199999999999999, 6, 13, 5.199999999999999, 7), Block.makeCuboidShape(13, 4.199999999999999, 5, 14, 5.199999999999999, 6), Block.makeCuboidShape(13, 4.199999999999999, 10, 14, 5.199999999999999, 11), Block.makeCuboidShape(11, 4.199999999999999, 9, 13, 5.199999999999999, 10), Block.makeCuboidShape(9, 4.199999999999999, 11, 10, 5.199999999999999, 13), Block.makeCuboidShape(10, 4.199999999999999, 13, 11, 5.199999999999999, 14), Block.makeCuboidShape(6, 4.199999999999999, 11, 7, 5.199999999999999, 13), Block.makeCuboidShape(5, 4.199999999999999, 13, 6, 5.199999999999999, 14), Block.makeCuboidShape(6, 4, 6, 10, 6, 10), Block.makeCuboidShape(7, 4, 10, 9, 6, 11), Block.makeCuboidShape(5, 4, 7, 6, 6, 9), Block.makeCuboidShape(7, 4, 5, 9, 6, 6), Block.makeCuboidShape(10, 4, 7, 11, 6, 9), Block.makeCuboidShape(0.5, 0, 0.5, 15.5, 1, 15.5) ).reduce((v1, v2) -> {return VoxelShapes.combineAndSimplify(v1, v2, IBooleanFunction.OR);}).get(); public PotterWheel() { super(Properties.create(Material.ROCK, MaterialColor.STONE).setRequiresTool().hardnessAndResistance(1.25F, 4.2F)); } }