mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Merge branch 'HbmMods:master' into master
This commit is contained in:
commit
b892f0cc37
@ -1,4 +1,7 @@
|
||||
## Changed
|
||||
* Rad absorbers now use metadata, existing blocks will be converted automatically
|
||||
* Fissure bombs that go off in crater biomes now create fissures with metadata 1 which creates radioactive volcanic lava
|
||||
* If a crater biome is created on top of an existing fissue, it will keep producing normal volcanic lava
|
||||
* If a crater biome is created on top of an existing fissue, it will keep producing normal volcanic lava
|
||||
|
||||
# Fixed
|
||||
* Potentially fixed yet another issue regarding crates
|
||||
@ -6,13 +6,12 @@ import com.hbm.inventory.container.ContainerCrateDesh;
|
||||
import com.hbm.lib.RefStrings;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUICrateDesh extends GuiContainer {
|
||||
public class GUICrateDesh extends GuiCrateBase {
|
||||
|
||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_crate_desh.png");
|
||||
private IInventory crate;
|
||||
|
||||
@ -7,12 +7,11 @@ import com.hbm.inventory.container.ContainerCrateIron;
|
||||
import com.hbm.lib.RefStrings;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUICrateIron extends GuiContainer {
|
||||
public class GUICrateIron extends GuiCrateBase {
|
||||
|
||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_crate_iron.png");
|
||||
private IInventory diFurnace;
|
||||
|
||||
@ -6,13 +6,12 @@ import com.hbm.inventory.container.ContainerCrateSteel;
|
||||
import com.hbm.lib.RefStrings;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUICrateSteel extends GuiContainer {
|
||||
public class GUICrateSteel extends GuiCrateBase {
|
||||
|
||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_crate_steel.png");
|
||||
private IInventory crate;
|
||||
|
||||
@ -7,12 +7,11 @@ import com.hbm.inventory.container.ContainerCrateTemplate;
|
||||
import com.hbm.lib.RefStrings;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUICrateTemplate extends GuiContainer {
|
||||
public class GUICrateTemplate extends GuiCrateBase {
|
||||
|
||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_crate_template.png");
|
||||
private IInventory diFurnace;
|
||||
|
||||
@ -8,12 +8,11 @@ import com.hbm.inventory.container.ContainerCrateTungsten;
|
||||
import com.hbm.lib.RefStrings;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUICrateTungsten extends GuiContainer {
|
||||
public class GUICrateTungsten extends GuiCrateBase {
|
||||
|
||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_crate_tungsten.png");
|
||||
private static ResourceLocation texture_hot = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_crate_tungsten_hot.png");
|
||||
|
||||
19
src/main/java/com/hbm/inventory/gui/GuiCrateBase.java
Normal file
19
src/main/java/com/hbm/inventory/gui/GuiCrateBase.java
Normal file
@ -0,0 +1,19 @@
|
||||
package com.hbm.inventory.gui;
|
||||
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.inventory.Container;
|
||||
|
||||
public abstract class GuiCrateBase extends GuiContainer {
|
||||
|
||||
public GuiCrateBase(Container container) {
|
||||
super(container);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mouseClicked(int x, int y, int button) {
|
||||
boolean touchScreen = this.mc.gameSettings.touchscreen;
|
||||
this.mc.gameSettings.touchscreen = false;
|
||||
super.mouseClicked(x, y, button);
|
||||
this.mc.gameSettings.touchscreen = touchScreen;
|
||||
}
|
||||
}
|
||||
@ -182,8 +182,8 @@ public class TileEntityRBMKControlAuto extends TileEntityRBMKControl implements
|
||||
public void pasteSettings(NBTTagCompound nbt, int index, World world, EntityPlayer player, int x, int y, int z) {
|
||||
if(nbt.hasKey("levelLower")) levelLower = nbt.getDouble("levelLower");
|
||||
if(nbt.hasKey("levelUpper")) levelLower = nbt.getDouble("levelUpper");
|
||||
if(nbt.hasKey("heatLower")) levelLower = nbt.getDouble("heatLower");
|
||||
if(nbt.hasKey("heatUpper")) levelLower = nbt.getDouble("heatUpper");
|
||||
if(nbt.hasKey("heatLower")) heatLower = nbt.getDouble("heatLower");
|
||||
if(nbt.hasKey("heatUpper")) heatUpper = nbt.getDouble("heatUpper");
|
||||
if(nbt.hasKey("function")) function = EnumUtil.grabEnumSafely(RBMKFunction.class, nbt.getInteger("function"));
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user