mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
38 lines
955 B
Java
38 lines
955 B
Java
package com.hbm.blocks.machine;
|
|
|
|
import com.hbm.blocks.BlockDummyable;
|
|
import com.hbm.tileentity.machine.TileEntityMachineExposureChamber;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.world.World;
|
|
|
|
public class MachineExposureChamber extends BlockDummyable {
|
|
|
|
public MachineExposureChamber(Material mat) {
|
|
super(mat);
|
|
}
|
|
|
|
@Override
|
|
public TileEntity createNewTileEntity(World world, int meta) {
|
|
if(meta >= 12) return new TileEntityMachineExposureChamber();
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public int[] getDimensions() {
|
|
return new int[] {4, 0, 2, 2, 2, 2};
|
|
}
|
|
|
|
@Override
|
|
public int getOffset() {
|
|
return 2;
|
|
}
|
|
|
|
@Override
|
|
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
|
return super.standardOpenBehavior(world, x, y, z, player, 0);
|
|
}
|
|
}
|