added quantumChest
This commit is contained in:
parent
1360258257
commit
b41adffa60
13 changed files with 304 additions and 9 deletions
29
src/main/java/techreborn/blocks/BlockQuantumChest.java
Normal file
29
src/main/java/techreborn/blocks/BlockQuantumChest.java
Normal file
|
@ -0,0 +1,29 @@
|
|||
package techreborn.blocks;
|
||||
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import techreborn.Core;
|
||||
import techreborn.client.GuiHandler;
|
||||
import techreborn.tiles.TileQuantumChest;
|
||||
|
||||
|
||||
public class BlockQuantumChest extends BlockContainer {
|
||||
|
||||
public BlockQuantumChest() {
|
||||
super(Material.piston);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
||||
return new TileQuantumChest();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
player.openGui(Core.INSTANCE, GuiHandler.quantumChestID, world, x, y, z);
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -26,7 +26,7 @@ public class BlockThermalGenerator extends BlockContainer {
|
|||
private IIcon other;
|
||||
|
||||
public BlockThermalGenerator() {
|
||||
super(Material.iron);
|
||||
super(Material.piston);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue