more ports on the pa yay

j
This commit is contained in:
LegendaryDoge30 2026-07-21 00:05:55 +02:00
parent 40b9ca1a47
commit 38d29878c8
3 changed files with 8 additions and 2 deletions

View File

@ -9,6 +9,7 @@ import com.hbm.main.MainRegistry;
import com.hbm.tileentity.TileEntityProxyCombo;
import com.hbm.tileentity.machine.albion.TileEntityPASource;
import com.hbm.util.fauxpointtwelve.DirPos;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
@ -43,9 +44,8 @@ public class BlockPASource extends BlockDummyable implements ITooltipProvider {
@Override
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
super.fillSpace(world, x, y, z, dir, o);
ForgeDirection rot = dir.getRotation(ForgeDirection.UP);
ForgeDirection rot = dir.getRotation(ForgeDirection.UP);
this.makeExtra(world, x + rot.offsetX * 4, y, z + rot.offsetZ * 4);
this.makeExtra(world, x + dir.offsetX, y, z + dir.offsetZ);
this.makeExtra(world, x + dir.offsetX + rot.offsetX * 2, y, z + dir.offsetZ + rot.offsetZ * 2);
@ -53,6 +53,9 @@ public class BlockPASource extends BlockDummyable implements ITooltipProvider {
this.makeExtra(world, x - dir.offsetX, y, z - dir.offsetZ);
this.makeExtra(world, x - dir.offsetX + rot.offsetX * 2, y, z - dir.offsetZ + rot.offsetZ * 2);
this.makeExtra(world, x - dir.offsetX - rot.offsetX * 2, y, z - dir.offsetZ - rot.offsetZ * 2);
this.makeExtra(world, x, y-1, z);
this.makeExtra(world, x + dir.offsetX + rot.offsetX * 2, y-1, z + rot.offsetZ*2);
this.makeExtra(world, x - dir.offsetX - rot.offsetX * 2, y-1, z - rot.offsetZ*2);
}
@Override

View File

@ -167,6 +167,9 @@ public class TileEntityPASource extends TileEntityCooledBase implements IGUIProv
new DirPos(xCoord - dir.offsetX * 2 + rot.offsetX * 2, yCoord, zCoord - dir.offsetZ * 2 + rot.offsetZ * 2, dir.getOpposite()),
new DirPos(xCoord - dir.offsetX * 2 - rot.offsetX * 2, yCoord, zCoord - dir.offsetZ * 2 - rot.offsetZ * 2, dir.getOpposite()),
new DirPos(xCoord + rot.offsetX * 5, yCoord, zCoord + rot.offsetZ * 5, rot),
new DirPos(xCoord, yCoord-2, zCoord, dir),
new DirPos(xCoord + rot.offsetX * 2, yCoord-2, zCoord + rot.offsetZ, dir),
new DirPos(xCoord - rot.offsetX * 2, yCoord-2, zCoord - rot.offsetZ, dir),
};
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 10 KiB