mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Simplifying alot of block voxelshapes.
This commit is contained in:
parent
c812512abe
commit
6686f1f417
23 changed files with 62 additions and 43 deletions
|
@ -94,7 +94,7 @@ public class BlockAtomicReconstructor extends FullyDirectionalBlock.Container im
|
||||||
return InteractionResult.CONSUME;
|
return InteractionResult.CONSUME;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case UP:
|
case UP:
|
||||||
|
@ -110,7 +110,7 @@ public class BlockAtomicReconstructor extends FullyDirectionalBlock.Container im
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.AtomicReconstructorShapes.SHAPE_N;
|
return VoxelShapes.AtomicReconstructorShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class BlockBioReactor extends DirectionalBlock.Container {
|
||||||
return this.openGui(world, player, pos, TileEntityBioReactor.class);
|
return this.openGui(world, player, pos, TileEntityBioReactor.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(HORIZONTAL_FACING)) {
|
switch (state.getValue(HORIZONTAL_FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -65,5 +65,5 @@ public class BlockBioReactor extends DirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.BioReactorShapes.SHAPE_N;
|
return VoxelShapes.BioReactorShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class BlockBreaker extends FullyDirectionalBlock.Container {
|
||||||
return this.openGui(world, player, pos, TileEntityBreaker.class);
|
return this.openGui(world, player, pos, TileEntityBreaker.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case UP:
|
case UP:
|
||||||
|
@ -79,5 +79,5 @@ public class BlockBreaker extends FullyDirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.BlockBreakerShapes.SHAPE_N;
|
return VoxelShapes.BlockBreakerShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class BlockCoalGenerator extends DirectionalBlock.Container {
|
||||||
return this.openGui(world, player, pos, TileEntityCoalGenerator.class);
|
return this.openGui(world, player, pos, TileEntityCoalGenerator.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -77,5 +77,10 @@ public class BlockCoalGenerator extends DirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.CoalGeneratorShapes.NORTH;
|
return VoxelShapes.CoalGeneratorShapes.NORTH;
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
|
return VoxelShapes.SIMPLE_GENERATOR_SHAPE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,7 @@ public class BlockCrusher extends BlockContainerBase {
|
||||||
: 0;
|
: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(HORIZONTAL_FACING)) {
|
switch (state.getValue(HORIZONTAL_FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -115,5 +115,5 @@ public class BlockCrusher extends BlockContainerBase {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.GrinderShapes.SHAPE_N;
|
return VoxelShapes.GrinderShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class BlockDropper extends FullyDirectionalBlock.Container {
|
||||||
return this.openGui(world, player, pos, TileEntityDropper.class);
|
return this.openGui(world, player, pos, TileEntityDropper.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case UP:
|
case UP:
|
||||||
|
@ -71,5 +71,5 @@ public class BlockDropper extends FullyDirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.BlockBreakerShapes.SHAPE_N;
|
return VoxelShapes.BlockBreakerShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,11 +62,11 @@ public class BlockEnergizer extends BlockContainerBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
if (this.isEnergizer) {
|
if (this.isEnergizer) {
|
||||||
return VoxelShapes.ENERGIZER_SHAPE;
|
return VoxelShapes.ENERGIZER_SHAPE;
|
||||||
}
|
}
|
||||||
return VoxelShapes.ENERVATOR_SHAPE;
|
return VoxelShapes.ENERVATOR_SHAPE;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class BlockFarmer extends DirectionalBlock.Container {
|
||||||
return this.openGui(worldIn, player, pos, TileEntityFarmer.class);
|
return this.openGui(worldIn, player, pos, TileEntityFarmer.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -63,5 +63,5 @@ public class BlockFarmer extends DirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.FarmerShapes.SHAPE_N;
|
return VoxelShapes.FarmerShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,8 +51,8 @@ public class BlockFeeder extends BlockContainerBase {
|
||||||
return this.openGui(worldIn, player, pos, TileEntityFeeder.class);
|
return this.openGui(worldIn, player, pos, TileEntityFeeder.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
return VoxelShapes.FEEDER_SHAPE;
|
return VoxelShapes.FEEDER_SHAPE;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ public class BlockFluidCollector extends FullyDirectionalBlock.Container {
|
||||||
return this.openGui(world, player, pos, TileEntityFluidCollector.class);
|
return this.openGui(world, player, pos, TileEntityFluidCollector.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
/* @Nonnull
|
||||||
@Override
|
@Override
|
||||||
public VoxelShape getShape(BlockState state, @Nonnull BlockGetter worldIn, @Nonnull BlockPos pos, @Nonnull CollisionContext context) {
|
public VoxelShape getShape(BlockState state, @Nonnull BlockGetter worldIn, @Nonnull BlockPos pos, @Nonnull CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
|
@ -89,5 +89,5 @@ public class BlockFluidCollector extends FullyDirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.FluidCollectorShapes.SHAPE_N;
|
return VoxelShapes.FluidCollectorShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,8 @@ public class BlockItemInterface extends BlockContainerBase {
|
||||||
return level.isClientSide? TileEntityItemInterface::clientTick : TileEntityItemInterface::serverTick;
|
return level.isClientSide? TileEntityItemInterface::clientTick : TileEntityItemInterface::serverTick;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
return VoxelShapes.ITEM_VIEWER_SHAPE;
|
return VoxelShapes.ITEM_VIEWER_SHAPE;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class BlockLampController extends FullyDirectionalBlock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -87,5 +87,5 @@ public class BlockLampController extends FullyDirectionalBlock {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.LampPowererShapes.SHAPE_N;
|
return VoxelShapes.LampPowererShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ public class BlockLavaFactoryController extends DirectionalBlock.Container imple
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -84,5 +84,5 @@ public class BlockLavaFactoryController extends DirectionalBlock.Container imple
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.LavaFactoryShapes.SHAPE_N;
|
return VoxelShapes.LavaFactoryShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class BlockLeafGenerator extends DirectionalBlock.Container {
|
||||||
return level.isClientSide? TileEntityLeafGenerator::clientTick : TileEntityLeafGenerator::serverTick;
|
return level.isClientSide? TileEntityLeafGenerator::clientTick : TileEntityLeafGenerator::serverTick;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -56,5 +56,5 @@ public class BlockLeafGenerator extends DirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.LeafGeneratorShapes.SHAPE_N;
|
return VoxelShapes.LeafGeneratorShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class BlockLongRangeBreaker extends FullyDirectionalBlock.Container {
|
||||||
return this.openGui(world, player, pos, TileEntityLongRangeBreaker.class);
|
return this.openGui(world, player, pos, TileEntityLongRangeBreaker.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case UP:
|
case UP:
|
||||||
|
@ -71,5 +71,5 @@ public class BlockLongRangeBreaker extends FullyDirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.BlockBreakerShapes.SHAPE_N;
|
return VoxelShapes.BlockBreakerShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class BlockOilGenerator extends DirectionalBlock.Container {
|
||||||
return InteractionResult.SUCCESS;
|
return InteractionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -88,5 +88,10 @@ public class BlockOilGenerator extends DirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.OilGeneratorShapes.SHAPE_N;
|
return VoxelShapes.OilGeneratorShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
|
return VoxelShapes.SIMPLE_GENERATOR_SHAPE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,8 +87,8 @@ public class BlockPlayerInterface extends BlockContainerBase implements IHudDisp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
return VoxelShapes.PLAYER_INTERFACE_SHAPE;
|
return VoxelShapes.PLAYER_INTERFACE_SHAPE;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,7 @@ public class BlockPoweredFurnace extends DirectionalBlock.Container {
|
||||||
tooltip.add(Component.translatable("tooltip.actuallyadditions.previouslyDoubleFurnace").withStyle(ChatFormatting.ITALIC));
|
tooltip.add(Component.translatable("tooltip.actuallyadditions.previouslyDoubleFurnace").withStyle(ChatFormatting.ITALIC));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(HORIZONTAL_FACING)) {
|
switch (state.getValue(HORIZONTAL_FACING)) {
|
||||||
case EAST:
|
case EAST:
|
||||||
|
@ -108,5 +108,5 @@ public class BlockPoweredFurnace extends DirectionalBlock.Container {
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.FurnaceDoubleShapes.SHAPE_N;
|
return VoxelShapes.FurnaceDoubleShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,8 +55,8 @@ public class BlockRangedCollector extends BlockContainerBase {
|
||||||
return this.openGui(world, player, pos, TileEntityRangedCollector.class);
|
return this.openGui(world, player, pos, TileEntityRangedCollector.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
return VoxelShapes.COLLECTOR_SHAPE;
|
return VoxelShapes.COLLECTOR_SHAPE;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class BlockVerticalDigger extends DirectionalBlock.Container implements I
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
switch (state.getValue(FACING)) {
|
switch (state.getValue(FACING)) {
|
||||||
case NORTH:
|
case NORTH:
|
||||||
|
@ -90,5 +90,5 @@ public class BlockVerticalDigger extends DirectionalBlock.Container implements I
|
||||||
default:
|
default:
|
||||||
return VoxelShapes.MinerShapes.SHAPE_N;
|
return VoxelShapes.MinerShapes.SHAPE_N;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,8 +50,8 @@ public class BlockXPSolidifier extends DirectionalBlock.Container {
|
||||||
return this.openGui(worldIn, player, pos, TileEntityXPSolidifier.class);
|
return this.openGui(worldIn, player, pos, TileEntityXPSolidifier.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/* @Override
|
||||||
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
public VoxelShape getShape(BlockState state, BlockGetter worldIn, BlockPos pos, CollisionContext context) {
|
||||||
return VoxelShapes.SOLIDIFIER_SHAPE;
|
return VoxelShapes.SOLIDIFIER_SHAPE;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -257,11 +257,12 @@ public class VoxelShapes {
|
||||||
).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
||||||
static final VoxelShape ITEM_VIEWER_SHAPE = Stream.of(Block.box(15, 0, 1, 16, 1, 15), Block.box(1, 1, 1, 15, 15, 15), Block.box(0, 0, 0, 16, 1, 1), Block.box(0, 0, 15, 16, 1, 16), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 15, 16, 16, 16), Block.box(0, 0, 1, 1, 1, 15), Block.box(0, 15, 1, 1, 16, 15), Block.box(15, 15, 1, 16, 16, 15), Block.box(0, 1, 0, 1, 15, 1), Block.box(0, 1, 15, 1, 15, 16), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
static final VoxelShape ITEM_VIEWER_SHAPE = Stream.of(Block.box(15, 0, 1, 16, 1, 15), Block.box(1, 1, 1, 15, 15, 15), Block.box(0, 0, 0, 16, 1, 1), Block.box(0, 0, 15, 16, 1, 16), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 15, 16, 16, 16), Block.box(0, 0, 1, 1, 1, 15), Block.box(0, 15, 1, 1, 16, 15), Block.box(15, 15, 1, 16, 16, 15), Block.box(0, 1, 0, 1, 15, 1), Block.box(0, 1, 15, 1, 15, 16), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
||||||
static final VoxelShape HOPPING_ITEM_VIEWER_SHAPE = Stream.of(Block.box(0, 10, 0, 16, 11, 16), Block.box(1, 11, 1, 2, 15, 15), Block.box(14, 11, 1, 15, 15, 15), Block.box(2, 11, 1, 14, 15, 2), Block.box(2, 11, 14, 14, 15, 15), Block.box(4, 4, 4, 12, 10, 12), Block.box(6, 0, 6, 10, 4, 10), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 15, 16, 16, 16), Block.box(15, 15, 1, 16, 16, 15), Block.box(0, 15, 1, 1, 16, 15), Block.box(0, 11, 0, 1, 15, 1), Block.box(0, 11, 15, 1, 15, 16), Block.box(15, 11, 15, 16, 15, 16), Block.box(15, 11, 0, 16, 15, 1)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
static final VoxelShape HOPPING_ITEM_VIEWER_SHAPE = Stream.of(Block.box(0, 10, 0, 16, 11, 16), Block.box(1, 11, 1, 2, 15, 15), Block.box(14, 11, 1, 15, 15, 15), Block.box(2, 11, 1, 14, 15, 2), Block.box(2, 11, 14, 14, 15, 15), Block.box(4, 4, 4, 12, 10, 12), Block.box(6, 0, 6, 10, 4, 10), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 15, 16, 16, 16), Block.box(15, 15, 1, 16, 16, 15), Block.box(0, 15, 1, 1, 16, 15), Block.box(0, 11, 0, 1, 15, 1), Block.box(0, 11, 15, 1, 15, 16), Block.box(15, 11, 15, 16, 15, 16), Block.box(15, 11, 0, 16, 15, 1)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
||||||
static final VoxelShape BOOSTER_SHAPE = Stream.of(
|
/* static final VoxelShape BOOSTER_SHAPE = Stream.of(
|
||||||
Block.box(6, 3, 6, 10, 16, 10),
|
Block.box(6, 3, 6, 10, 16, 10),
|
||||||
Block.box(5, 14, 5, 11, 15, 11),
|
Block.box(5, 14, 5, 11, 15, 11),
|
||||||
Block.box(5, 0, 5, 11, 3, 11)
|
Block.box(5, 0, 5, 11, 3, 11)
|
||||||
).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();*/
|
||||||
|
static final VoxelShape BOOSTER_SHAPE = Block.box(5, 0 , 5, 11, 16, 11); //Simplified
|
||||||
static final VoxelShape PLAYER_INTERFACE_SHAPE = Stream.of(Block.box(15, 0, 1, 16, 1, 15), Block.box(1, 1, 1, 15, 15, 15), Block.box(0, 0, 0, 16, 1, 1), Block.box(0, 0, 15, 16, 1, 16), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 15, 16, 16, 16), Block.box(0, 0, 1, 1, 1, 15), Block.box(0, 15, 1, 1, 16, 15), Block.box(15, 15, 1, 16, 16, 15), Block.box(0, 1, 0, 1, 15, 1), Block.box(0, 1, 15, 1, 15, 16), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
static final VoxelShape PLAYER_INTERFACE_SHAPE = Stream.of(Block.box(15, 0, 1, 16, 1, 15), Block.box(1, 1, 1, 15, 15, 15), Block.box(0, 0, 0, 16, 1, 1), Block.box(0, 0, 15, 16, 1, 16), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 15, 16, 16, 16), Block.box(0, 0, 1, 1, 1, 15), Block.box(0, 15, 1, 1, 16, 15), Block.box(15, 15, 1, 16, 16, 15), Block.box(0, 1, 0, 1, 15, 1), Block.box(0, 1, 15, 1, 15, 16), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
||||||
static final VoxelShape COLLECTOR_SHAPE = Stream.of(Block.box(0, 0, 0, 1, 1, 16), Block.box(1, 0, 15, 15, 1, 16), Block.box(15, 0, 0, 16, 1, 16), Block.box(1, 0, 0, 15, 1, 1), Block.box(0, 15, 0, 1, 16, 16), Block.box(15, 15, 0, 16, 16, 16), Block.box(1, 15, 0, 15, 16, 1), Block.box(1, 15, 15, 15, 16, 16), Block.box(0, 1, 15, 1, 15, 16), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1), Block.box(0, 1, 0, 1, 15, 1), Block.box(1, 1, 4, 2, 4, 12), Block.box(14, 1, 4, 15, 4, 12), Block.box(4, 1, 1, 12, 4, 2), Block.box(4, 1, 14, 12, 4, 15), Block.box(4, 14, 12, 12, 15, 14), Block.box(1, 12, 4, 2, 15, 12), Block.box(14, 12, 4, 15, 15, 12), Block.box(4, 12, 1, 12, 15, 2), Block.box(4, 12, 14, 12, 15, 15), Block.box(4, 14, 2, 12, 15, 4), Block.box(1, 1, 12, 2, 15, 14), Block.box(14, 1, 2, 15, 15, 4), Block.box(1, 1, 1, 4, 15, 2), Block.box(12, 1, 14, 15, 15, 15), Block.box(12, 14, 2, 14, 15, 14), Block.box(1, 1, 2, 2, 15, 4), Block.box(14, 1, 12, 15, 15, 14), Block.box(12, 1, 1, 15, 15, 2), Block.box(1, 1, 14, 4, 15, 15), Block.box(2, 14, 2, 4, 15, 14), Block.box(2, 2, 2, 14, 14, 14), Block.box(1, 0, 1, 15, 1, 15)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
static final VoxelShape COLLECTOR_SHAPE = Stream.of(Block.box(0, 0, 0, 1, 1, 16), Block.box(1, 0, 15, 15, 1, 16), Block.box(15, 0, 0, 16, 1, 16), Block.box(1, 0, 0, 15, 1, 1), Block.box(0, 15, 0, 1, 16, 16), Block.box(15, 15, 0, 16, 16, 16), Block.box(1, 15, 0, 15, 16, 1), Block.box(1, 15, 15, 15, 16, 16), Block.box(0, 1, 15, 1, 15, 16), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1), Block.box(0, 1, 0, 1, 15, 1), Block.box(1, 1, 4, 2, 4, 12), Block.box(14, 1, 4, 15, 4, 12), Block.box(4, 1, 1, 12, 4, 2), Block.box(4, 1, 14, 12, 4, 15), Block.box(4, 14, 12, 12, 15, 14), Block.box(1, 12, 4, 2, 15, 12), Block.box(14, 12, 4, 15, 15, 12), Block.box(4, 12, 1, 12, 15, 2), Block.box(4, 12, 14, 12, 15, 15), Block.box(4, 14, 2, 12, 15, 4), Block.box(1, 1, 12, 2, 15, 14), Block.box(14, 1, 2, 15, 15, 4), Block.box(1, 1, 1, 4, 15, 2), Block.box(12, 1, 14, 15, 15, 15), Block.box(12, 14, 2, 14, 15, 14), Block.box(1, 1, 2, 2, 15, 4), Block.box(14, 1, 12, 15, 15, 14), Block.box(12, 1, 1, 15, 15, 2), Block.box(1, 1, 14, 4, 15, 15), Block.box(2, 14, 2, 4, 15, 14), Block.box(2, 2, 2, 14, 14, 14), Block.box(1, 0, 1, 15, 1, 15)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
||||||
static final VoxelShape SUPPRESSOR_SHAPE = Stream.of(
|
static final VoxelShape SUPPRESSOR_SHAPE = Stream.of(
|
||||||
|
@ -298,6 +299,14 @@ public class VoxelShapes {
|
||||||
static final VoxelShape WEST = Stream.of(Block.box(0, 15, 15, 16, 16, 16), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 1, 1, 16, 15), Block.box(15, 15, 1, 16, 16, 15), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1), Block.box(0, 1, 0, 1, 15, 1), Block.box(0, 1, 15, 1, 15, 16), Block.box(2, 0, 2, 14, 1, 14), Block.box(6, 14, 5, 7, 15, 11), Block.box(8, 14, 5, 9, 15, 11), Block.box(10, 14, 5, 14, 15, 11), Block.box(2, 14, 5, 5, 15, 11), Block.box(2, 14, 2, 14, 15, 5), Block.box(2, 14, 11, 14, 15, 14), Block.box(2, 0, 14, 14, 15, 15), Block.box(2, 0, 1, 14, 15, 2), Block.box(14, 0, 1, 15, 15, 15), Block.box(0, 11, 3, 1, 12, 13), Block.box(1, 3, 10, 2, 8, 11), Block.box(1, 3, 5, 2, 8, 6), Block.box(1, 8, 3, 2, 15, 13), Block.box(1, 0, 3, 2, 3, 13), Block.box(1, 0, 13, 2, 15, 15), Block.box(1, 0, 1, 2, 15, 3), Block.box(5, 13, 5, 10, 14, 11), Block.box(2, 3, 2, 3, 8, 14), Block.box(15, 0, 15, 16, 1, 16), Block.box(15, 0, 0, 16, 1, 1), Block.box(0, 0, 0, 1, 1, 1), Block.box(0, 0, 15, 1, 1, 16)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
static final VoxelShape WEST = Stream.of(Block.box(0, 15, 15, 16, 16, 16), Block.box(0, 15, 0, 16, 16, 1), Block.box(0, 15, 1, 1, 16, 15), Block.box(15, 15, 1, 16, 16, 15), Block.box(15, 1, 15, 16, 15, 16), Block.box(15, 1, 0, 16, 15, 1), Block.box(0, 1, 0, 1, 15, 1), Block.box(0, 1, 15, 1, 15, 16), Block.box(2, 0, 2, 14, 1, 14), Block.box(6, 14, 5, 7, 15, 11), Block.box(8, 14, 5, 9, 15, 11), Block.box(10, 14, 5, 14, 15, 11), Block.box(2, 14, 5, 5, 15, 11), Block.box(2, 14, 2, 14, 15, 5), Block.box(2, 14, 11, 14, 15, 14), Block.box(2, 0, 14, 14, 15, 15), Block.box(2, 0, 1, 14, 15, 2), Block.box(14, 0, 1, 15, 15, 15), Block.box(0, 11, 3, 1, 12, 13), Block.box(1, 3, 10, 2, 8, 11), Block.box(1, 3, 5, 2, 8, 6), Block.box(1, 8, 3, 2, 15, 13), Block.box(1, 0, 3, 2, 3, 13), Block.box(1, 0, 13, 2, 15, 15), Block.box(1, 0, 1, 2, 15, 3), Block.box(5, 13, 5, 10, 14, 11), Block.box(2, 3, 2, 3, 8, 14), Block.box(15, 0, 15, 16, 1, 16), Block.box(15, 0, 0, 16, 1, 1), Block.box(0, 0, 0, 1, 1, 1), Block.box(0, 0, 15, 1, 1, 16)).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static final VoxelShape SIMPLE_GENERATOR_SHAPE = Stream.of(
|
||||||
|
Block.box(0, 1, 0, 16, 16, 16),
|
||||||
|
Block.box(0, 0, 0, 1, 1, 1),
|
||||||
|
Block.box(0, 0, 15, 1, 1, 16),
|
||||||
|
Block.box(15, 0, 0, 16, 1, 1),
|
||||||
|
Block.box(15, 0, 15, 16, 1, 16)
|
||||||
|
).reduce((v1, v2) -> Shapes.join(v1, v2, BooleanOp.OR)).get();
|
||||||
|
|
||||||
static class CoffeeMachineShapes {
|
static class CoffeeMachineShapes {
|
||||||
static final VoxelShape NORTH = Stream.of(
|
static final VoxelShape NORTH = Stream.of(
|
||||||
Block.box(13, 2, 4, 14, 3, 5),
|
Block.box(13, 2, 4, 14, 3, 5),
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class AllInOneTool extends DiggerItem {
|
||||||
return Items.IRON_SHOVEL.useOn(context);
|
return Items.IRON_SHOVEL.useOn(context);
|
||||||
}
|
}
|
||||||
InteractionResult tmp = Items.IRON_AXE.useOn(context);
|
InteractionResult tmp = Items.IRON_AXE.useOn(context);
|
||||||
if (tmp != InteractionResult.SUCCESS)
|
if (tmp == InteractionResult.SUCCESS)
|
||||||
return tmp;
|
return tmp;
|
||||||
return Items.IRON_HOE.useOn(context);
|
return Items.IRON_HOE.useOn(context);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue