mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
49 lines
1.7 KiB
Java
49 lines
1.7 KiB
Java
package com.hbm.blocks.machine.fusion;
|
|
|
|
import java.util.List;
|
|
|
|
import com.hbm.blocks.BlockDummyable;
|
|
import com.hbm.blocks.ITooltipProvider;
|
|
import com.hbm.handler.MultiblockHandlerXR;
|
|
import com.hbm.tileentity.machine.fusion.TileEntityFusionKlystronCreative;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.world.World;
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
|
|
|
public class MachineFusionKlystronCreative extends BlockDummyable implements ITooltipProvider {
|
|
|
|
public MachineFusionKlystronCreative() {
|
|
super(Material.iron);
|
|
}
|
|
|
|
@Override
|
|
public TileEntity createNewTileEntity(World world, int meta) {
|
|
if(meta >= 12) return new TileEntityFusionKlystronCreative();
|
|
return null;
|
|
}
|
|
|
|
@Override public int[] getDimensions() { return new int[] { 3, 0, 4, 3, 2, 2 }; }
|
|
@Override public int getOffset() { return 3; }
|
|
|
|
@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) &&
|
|
MultiblockHandlerXR.checkSpace(world, x + dir.offsetX * o, y + dir.offsetY * o, z + dir.offsetZ * o, new int[] {4, -3, 4, 3, 1, 1}, x, y, z, dir);
|
|
}
|
|
|
|
@Override
|
|
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
|
super.fillSpace(world, x, y, z, dir, o);
|
|
MultiblockHandlerXR.fillSpace(world, x + dir.offsetX * o, y, z + dir.offsetZ * o, new int[] {4, -3, 4, 3, 1, 1}, this, dir);
|
|
}
|
|
|
|
@Override
|
|
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean ext) {
|
|
addStandardInfo(stack, player, list, ext);
|
|
}
|
|
}
|