Fix indentation
This commit is contained in:
@@ -64,11 +64,11 @@ public class BlockCable extends BlockNode {
|
|||||||
BlockStateContainer.Builder builder = super.createBlockStateBuilder();
|
BlockStateContainer.Builder builder = super.createBlockStateBuilder();
|
||||||
|
|
||||||
builder.add(NORTH)
|
builder.add(NORTH)
|
||||||
.add(EAST)
|
.add(EAST)
|
||||||
.add(SOUTH)
|
.add(SOUTH)
|
||||||
.add(WEST)
|
.add(WEST)
|
||||||
.add(UP)
|
.add(UP)
|
||||||
.add(DOWN);
|
.add(DOWN);
|
||||||
|
|
||||||
if (getPlacementType() != null) {
|
if (getPlacementType() != null) {
|
||||||
builder.add(DIRECTION);
|
builder.add(DIRECTION);
|
||||||
@@ -81,12 +81,12 @@ public class BlockCable extends BlockNode {
|
|||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||||
return super.getActualState(state, world, pos)
|
return super.getActualState(state, world, pos)
|
||||||
.withProperty(NORTH, hasConnectionWith(world, pos, EnumFacing.NORTH))
|
.withProperty(NORTH, hasConnectionWith(world, pos, EnumFacing.NORTH))
|
||||||
.withProperty(EAST, hasConnectionWith(world, pos, EnumFacing.EAST))
|
.withProperty(EAST, hasConnectionWith(world, pos, EnumFacing.EAST))
|
||||||
.withProperty(SOUTH, hasConnectionWith(world, pos, EnumFacing.SOUTH))
|
.withProperty(SOUTH, hasConnectionWith(world, pos, EnumFacing.SOUTH))
|
||||||
.withProperty(WEST, hasConnectionWith(world, pos, EnumFacing.WEST))
|
.withProperty(WEST, hasConnectionWith(world, pos, EnumFacing.WEST))
|
||||||
.withProperty(UP, hasConnectionWith(world, pos, EnumFacing.UP))
|
.withProperty(UP, hasConnectionWith(world, pos, EnumFacing.UP))
|
||||||
.withProperty(DOWN, hasConnectionWith(world, pos, EnumFacing.DOWN));
|
.withProperty(DOWN, hasConnectionWith(world, pos, EnumFacing.DOWN));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasConnectionWith(IBlockAccess world, BlockPos pos, EnumFacing direction) {
|
private boolean hasConnectionWith(IBlockAccess world, BlockPos pos, EnumFacing direction) {
|
||||||
@@ -104,12 +104,12 @@ public class BlockCable extends BlockNode {
|
|||||||
state = getActualState(state, world, pos);
|
state = getActualState(state, world, pos);
|
||||||
|
|
||||||
return isInAABB(CORE_AABB, hitX, hitY, hitZ) ||
|
return isInAABB(CORE_AABB, hitX, hitY, hitZ) ||
|
||||||
(state.getValue(NORTH) && isInAABB(NORTH_AABB, hitX, hitY, hitZ)) ||
|
(state.getValue(NORTH) && isInAABB(NORTH_AABB, hitX, hitY, hitZ)) ||
|
||||||
(state.getValue(EAST) && isInAABB(EAST_AABB, hitX, hitY, hitZ)) ||
|
(state.getValue(EAST) && isInAABB(EAST_AABB, hitX, hitY, hitZ)) ||
|
||||||
(state.getValue(SOUTH) && isInAABB(SOUTH_AABB, hitX, hitY, hitZ)) ||
|
(state.getValue(SOUTH) && isInAABB(SOUTH_AABB, hitX, hitY, hitZ)) ||
|
||||||
(state.getValue(WEST) && isInAABB(WEST_AABB, hitX, hitY, hitZ)) ||
|
(state.getValue(WEST) && isInAABB(WEST_AABB, hitX, hitY, hitZ)) ||
|
||||||
(state.getValue(UP) && isInAABB(UP_AABB, hitX, hitY, hitZ)) ||
|
(state.getValue(UP) && isInAABB(UP_AABB, hitX, hitY, hitZ)) ||
|
||||||
(state.getValue(DOWN) && isInAABB(DOWN_AABB, hitX, hitY, hitZ));
|
(state.getValue(DOWN) && isInAABB(DOWN_AABB, hitX, hitY, hitZ));
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<AxisAlignedBB> getUnionizedCollisionBoxes(IBlockState state) {
|
public List<AxisAlignedBB> getUnionizedCollisionBoxes(IBlockState state) {
|
||||||
|
Reference in New Issue
Block a user