mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
Why the phone be ringing when I like tacos
This commit is contained in:
parent
1917eeb191
commit
512b243654
@ -665,10 +665,18 @@ public abstract class BlockDummyable extends BlockContainer implements ICustomBl
|
||||
Set<BlockPos> set = new java.util.HashSet<>();
|
||||
|
||||
for(int[] dims : getAllDimensions()) {
|
||||
int offFwd = dims.length > 6 ? dims[6] : 0;
|
||||
int offUp = dims.length > 7 ? dims[7] : 0;
|
||||
int offLat = dims.length > 8 ? dims[8] : 0;
|
||||
int worldOffX, worldOffY, worldOffZ;
|
||||
worldOffY = offUp;
|
||||
worldOffX = facing.offsetX * offFwd + facing.getRotation(ForgeDirection.UP).offsetX * offLat;
|
||||
worldOffZ = facing.offsetZ * offFwd + facing.getRotation(ForgeDirection.UP).offsetZ * offLat;
|
||||
|
||||
int[] rot = MultiblockHandlerXR.rotate(dims, facing);
|
||||
for(int bx = -rot[4]; bx <= rot[5]; bx++) {
|
||||
for(int by = -rot[1]; by <= rot[0]; by++) {
|
||||
for(int bz = -rot[2]; bz <= rot[3]; bz++) {
|
||||
for(int bx = -rot[4] + worldOffX; bx <= rot[5] + worldOffX; bx++) {
|
||||
for(int by = -rot[1] + worldOffY; by <= rot[0] + worldOffY; by++) {
|
||||
for(int bz = -rot[2] + worldOffZ; bz <= rot[3] + worldOffZ; bz++) {
|
||||
BlockPos bp = new BlockPos(
|
||||
MathHelper.floor_double(originX) + bx,
|
||||
MathHelper.floor_double(originY) + by,
|
||||
|
||||
@ -31,7 +31,13 @@ public class MachineAnnihilator extends BlockDummyable {
|
||||
|
||||
@Override public int[] getDimensions() { return new int[] {2, 0, 4, 4, 1, 1}; }
|
||||
@Override public int getOffset() { return 4; }
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {2, 0, 4, 4, 1, 1},
|
||||
new int[] {8, -2, 1, 1, 1, 1, -3, 0, 0}
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
return super.checkRequirement(world, x, y, z, dir, o) &&
|
||||
|
||||
@ -43,7 +43,18 @@ public class MachineBigAssTank extends BlockDummyable implements IPersistentInfo
|
||||
|
||||
@Override public int[] getDimensions() { return new int[] {5, 0, 4, 4, 4, 4}; }
|
||||
@Override public int getOffset() { return 6; }
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {5, 0, 4, 4, 4, 4},
|
||||
new int[] {4, 0, 5, -4, 2, 2},
|
||||
new int[] {4, 0, -4, 5, 2, 2},
|
||||
new int[] {4, 0, 2, 2, 5, -4},
|
||||
new int[] {4, 0, 2, 2, -4, 5},
|
||||
new int[] {3, 0, 6, -5, 0, 0},
|
||||
new int[] {3, 0, -5, 6, 0, 0}
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
super.fillSpace(world, x, y, z, dir, o);
|
||||
|
||||
@ -49,7 +49,16 @@ public class MachineCatalyticCracker extends BlockDummyable implements ILookOver
|
||||
public int getOffset() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {0, 0, 3, 3, 2, 3},
|
||||
new int[]{8, -1, 3, -1, 2, 0},
|
||||
new int[]{13, 0, 0, 3, 2, 1},
|
||||
new int[]{14, -13, -1, 2, 1, 0},
|
||||
new int[]{3, -1, 2, 3, -1, 3}
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
|
||||
|
||||
@ -68,7 +68,14 @@ public class MachineCatalyticReformer extends BlockDummyable implements IPersist
|
||||
public int getOffset() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {2, 0, 1, 1, 2, 2},
|
||||
new int[] {3, -3, 1, 0, -1, 2},
|
||||
new int[] {6, -3, 1, 1, 2, 0},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, NBTTagCompound persistentTag, EntityPlayer player, List list, boolean ext) {
|
||||
|
||||
|
||||
@ -89,7 +89,15 @@ public class MachineChungus extends BlockDummyable implements ITooltipProvider,
|
||||
public int getOffset() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] { 3, 0, 0, 3, 2, 2 },
|
||||
new int[] { 4, -4, 0, 3, 1, 1 },
|
||||
new int[] { 3, 0, 6, -1, 1, 1 },
|
||||
new int[] { 2, 0, 10, -7, 1, 1 },
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
super.fillSpace(world, x, y, z, dir, o);
|
||||
|
||||
@ -43,7 +43,17 @@ public class MachineCoker extends BlockDummyable implements ITooltipProvider {
|
||||
public int getOffset() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {22, 0, 1, 1, 1, 1},
|
||||
new int[] {5, 0, 2, 2, 2, 2, 0, 1, 0},
|
||||
new int[] {0, 1, 0, 0, 0, 0, 2, 1, 2},
|
||||
new int[] {0, 1, 0, 0, 0, 0, 2, 1, -2},
|
||||
new int[] {0, 1, 0, 0, 0, 0, -2, 1, 2},
|
||||
new int[] {0, 1, 0, 0, 0, 0, -2, 1, -2},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
if(super.checkRequirement(world, x, y, z, dir, o)) {
|
||||
|
||||
@ -34,7 +34,14 @@ public class MachineCompressor extends BlockDummyable {
|
||||
public int getOffset() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {2, 0, 1, 2, 1, 1},
|
||||
new int[] {3, -3, 1, 1, 1, 1},
|
||||
new int[] {8, -4, 0, 0, 1, 1}
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
return this.standardOpenBehavior(world, x, y, z, player, 0);
|
||||
|
||||
@ -32,7 +32,24 @@ public class MachineElectrolyser extends BlockDummyable {
|
||||
public int getOffset() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {0, 0, 5, 5, 1, 3},
|
||||
new int[] {2, -1, 5, 5, 1, 1},
|
||||
new int[] {3, -3, 5, 5, 0, 0},
|
||||
new int[] {3, -1, 4, -4, -3, 3},
|
||||
new int[] {3, -1, 2, -2, -3, 3},
|
||||
new int[] {3, -1, 0, 0, -3, 3},
|
||||
new int[] {3, -1, -2, 2, -3, 3},
|
||||
new int[] {3, -1, -4, 4, -3, 3},
|
||||
new int[] {0, 0, 0, 0, -1, 2, 4, 3, 0},
|
||||
new int[] {0, 0, 0, 0, -1, 2, 2, 3, 0},
|
||||
new int[] {0, 0, 0, 0, -1, 2, 0, 3, 0},
|
||||
new int[] {0, 0, 0, 0, -1, 2, -2, 3, 0},
|
||||
new int[] {0, 0, 0, 0, -1, 2, -4, 3, 0},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
return this.standardOpenBehavior(world, x, y, z, player, -1);
|
||||
|
||||
@ -44,7 +44,15 @@ public class MachineExcavator extends BlockDummyable {
|
||||
public int getHeightOffset() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {3, 0, 3, 3, 3, 3},
|
||||
new int[] {-1, 3, 3, -2, 3, -2},
|
||||
new int[] {-1, 3, 3, -2, -2, 3},
|
||||
new int[] {-1, 3, -2, 3, 3, 3},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
x += dir.offsetX * o;
|
||||
|
||||
@ -32,7 +32,17 @@ public class MachineExposureChamber extends BlockDummyable {
|
||||
public int getOffset() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
getDimensions(),
|
||||
new int[] {3, 0, 0, 0, -3, 8},
|
||||
new int[] {0, 0, 1, -1, -3, 6, 0, 2, 0},
|
||||
new int[] {0, 0, -1, 1, -3, 6, 0, 2, 0},
|
||||
new int[] {3, 0, 1, -1, 0, 1, 0, 0, -7},
|
||||
new int[] {3, 0, -1, 1, 0, 1, 0, 0, -7},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
super.fillSpace(world, x, y, z, dir, o);
|
||||
|
||||
@ -46,7 +46,20 @@ public class MachineFrackingTower extends BlockDummyable implements IPersistentI
|
||||
public int getOffset() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {3, 0, 0, 0, 0, 0},
|
||||
new int[] {1, 0, 3, 3, 3, 3, 0, 2, 0},
|
||||
new int[] {-1, 2, 0, 1, 0, 1, -2, 2, -2},
|
||||
new int[] {-1, 2, 0, 1, 0, 1, 3, 2, -2},
|
||||
new int[] {-1, 2, 0, 1, 0, 1, -2, 2, 3},
|
||||
new int[] {-1, 2, 0, 1, 0, 1, 3, 2, 3},
|
||||
new int[] {10, -4, 2, 2, 2, 2},
|
||||
new int[] {24, -9, 1, 1, 1, 1},
|
||||
new int[] {1, 0, -2, 3, 1, 1, 0, 15, 0},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
|
||||
|
||||
@ -33,7 +33,14 @@ public class MachineICF extends BlockDummyable {
|
||||
public int getOffset() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {5, 0, 1, 1, 8, 8},
|
||||
new int[] {1, 1, -1, 2, 8, 8, 0, 3, 0},
|
||||
new int[] {1, 1, 2, -1, 8, 8, 0, 3, 0},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
super.fillSpace(world, x, y, z, dir, o);
|
||||
|
||||
@ -47,7 +47,16 @@ public class MachinePumpjack extends BlockDummyable implements IPersistentInfoPr
|
||||
public int getOffset() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {3, 0, 0, 0, 0, 6},
|
||||
new int[] {0, 0, -1, 1, -2, 4},
|
||||
new int[] {0, 0, 1, -1, -1, 5},
|
||||
new int[] {0, 0, -1, 1, 1, 1, 0, 0, -3},
|
||||
new int[] {0, 0, 1, -1, 2, 2, 0, 0, -3},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
return super.checkRequirement(world, x, y, z, dir, o) &&
|
||||
|
||||
@ -47,7 +47,13 @@ public class MachineStrandCaster extends BlockDummyable implements ICrucibleAcce
|
||||
public int getOffset() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] { 0, 0, 6, 0, 1, 0 },
|
||||
new int[] { 2, 0, 1, 0, 1, 0 }
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
if(meta >= 12) return new TileEntityMachineStrandCaster();
|
||||
|
||||
@ -62,7 +62,15 @@ public class ReactorZirnox extends BlockDummyable {
|
||||
public int getOffset() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {1, 0, 2, 2, 2, 2,},
|
||||
new int[] {4, -2, 1, 1, 1, 1},
|
||||
new int[] {4, -2, 0, 0, 2, -2},
|
||||
new int[] {4, -2, 0, 0, -2, 2}
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
return super.checkRequirement(world, x, y, z, dir, o) &&
|
||||
|
||||
@ -168,7 +168,18 @@ public class SoyuzLauncher extends BlockDummyable {
|
||||
public int getOffset() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] { 0, 1, 6, 6, 6, 6 },
|
||||
new int[] { -2, 4, -3, 6, -3, 6 },
|
||||
new int[] { -2, 4, 6, -3, -3, 6 },
|
||||
new int[] { -2, 4, 6, -3, 6, -3 },
|
||||
new int[] { -2, 4, -3, 6, 6, -3 },
|
||||
new int[] { 0, 4, 1, 1, -6, 8 },
|
||||
new int[] { 0, 4, 2, 2, 9, -5 },
|
||||
};
|
||||
}
|
||||
private final Random field_149933_a = new Random();
|
||||
private static boolean keepInventory;
|
||||
|
||||
|
||||
@ -53,7 +53,16 @@ public class Watz extends BlockDummyable {
|
||||
public int getOffset() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {2, 0, 3, 3, 1, 1},
|
||||
new int[] {2, 0, 2, 2, 2, -2},
|
||||
new int[] {2, 0, 2, 2, -2, 2},
|
||||
new int[] {2, 0, 1, 1, 3, -3},
|
||||
new int[] {2, 0, 1, 1, -3, 3},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
return super.checkRequirement(world, x, y, z, dir, o) &&
|
||||
|
||||
@ -35,7 +35,13 @@ public class MachineFusionKlystron extends BlockDummyable implements ITooltipPro
|
||||
|
||||
@Override public int[] getDimensions() { return new int[] { 3, 0, 4, 3, 2, 2 }; }
|
||||
@Override public int getOffset() { return 3; }
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] { 3, 0, 4, 3, 2, 2 },
|
||||
new int[] { 4, -3, 4, 3, 1, 1 },
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
return super.checkRequirement(world, x, y, z, dir, o) &&
|
||||
|
||||
@ -28,7 +28,13 @@ public class MachineFusionKlystronCreative extends BlockDummyable implements ITo
|
||||
|
||||
@Override public int[] getDimensions() { return new int[] { 3, 0, 4, 3, 2, 2 }; }
|
||||
@Override public int getOffset() { return 3; }
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] { 3, 0, 4, 3, 2, 2 },
|
||||
new int[] { 4, -3, 4, 3, 1, 1 },
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
return super.checkRequirement(world, x, y, z, dir, o) &&
|
||||
|
||||
@ -44,7 +44,17 @@ public class MachineFusionMHDT extends BlockDummyable implements ILookOverlay, I
|
||||
public int getOffset() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] { 2, 0, 6, 7, 2, 2 },
|
||||
new int[] { 3, -2, 6, 2, 1, 1 },
|
||||
new int[] { 3, -2, -6, 7, 1, 1 },
|
||||
new int[] { 3, -2, -3, 5, 2, 2 },
|
||||
new int[] { 4, -3, -3, 5, 1, 1 },
|
||||
new int[] { 1, 0, 0, 1, 3, 3, 3, 0, 0 },
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public boolean checkRequirement(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
return super.checkRequirement(world, x, y, z, dir, o) &&
|
||||
|
||||
@ -107,7 +107,13 @@ public class RBMKConsole extends BlockDummyable implements IToolable {
|
||||
public int getOffset() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {3, 0, 0, 0, 2, 2},
|
||||
new int[] {0, 0, 0, 1, 2, 2},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
super.fillSpace(world, x, y, z, dir, o);
|
||||
|
||||
@ -38,7 +38,13 @@ public class RBMKCraneConsole extends BlockDummyable implements IToolable {
|
||||
public int getOffset() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[][] getAllDimensions() {
|
||||
return new int[][] {
|
||||
new int[] {1, 0, 0, 0, 1, 1},
|
||||
new int[] {0, 0, 0, 1, 1, 1},
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||
super.fillSpace(world, x, y, z, dir, o);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user