fixes placement and voxelshapes of machines
This commit is contained in:
@@ -59,7 +59,7 @@ public class DNAAnalyzerBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
@@ -94,7 +94,7 @@ public class DNAAnalyzerBlock extends BaseEntityBlock {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) {
|
public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) {
|
||||||
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite()).setValue(LIT, false);
|
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite().getOpposite()).setValue(LIT, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class DNAExtractorBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class DNAHybridizerBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ public class EmbryoCalcificationMachineBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ public class EmbryonicMachineBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class FossilCleanerBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, -90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class FossilGrinderBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, -90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class GeneratorBlock extends BaseEntityBlock {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
|
||||||
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
|
||||||
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
|
||||||
|
|
||||||
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class IncubatorBlock extends BaseEntityBlock {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) {
|
public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) {
|
||||||
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite()).setValue(LIT, false);
|
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite().getOpposite()).setValue(LIT, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user