Redstone config polish
This commit is contained in:
parent
3b2da8b510
commit
a06afa1a4a
14 changed files with 26 additions and 14 deletions
|
@ -70,7 +70,7 @@ public class GuiAESU extends GuiBase<BuiltContainer> {
|
|||
super.drawForeground(mouseX, mouseY);
|
||||
final Layer layer = Layer.FOREGROUND;
|
||||
|
||||
if(!isTabOpen()){
|
||||
if(!hideGuiElements()){
|
||||
RenderSystem.pushMatrix();
|
||||
RenderSystem.scaled(0.6, 0.6, 1);
|
||||
drawCentredString(PowerSystem.getLocaliszedPowerFormattedNoSuffix((int) blockEntity.getEnergy()) + "/"
|
||||
|
|
|
@ -54,7 +54,7 @@ public class GuiBatbox extends GuiBase<BuiltContainer> {
|
|||
super.drawForeground(mouseX, mouseY);
|
||||
final Layer layer = Layer.FOREGROUND;
|
||||
|
||||
if(!isTabOpen()){
|
||||
if(!hideGuiElements()){
|
||||
RenderSystem.pushMatrix();
|
||||
RenderSystem.scaled(0.6, 0.6, 5);
|
||||
drawCentredString(PowerSystem.getLocaliszedPowerFormattedNoSuffix((int) blockEntity.getEnergy()) + "/" + PowerSystem.getLocaliszedPowerFormattedNoSuffix((int) blockEntity.getMaxPower()) + " " + PowerSystem.getDisplayPower().abbreviation, 35, 0, 58, layer);
|
||||
|
|
|
@ -93,7 +93,7 @@ public class GuiBlastFurnace extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void onClick(GuiButtonExtended button, Double x, Double y){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
{
|
||||
// This code here makes a basic multiblock and then sets to the selected one.
|
||||
|
|
|
@ -59,7 +59,7 @@ public class GuiChunkLoader extends GuiBase<BuiltContainer> {
|
|||
super.drawBackground(partialTicks, mouseX, mouseY);
|
||||
final Layer layer = Layer.BACKGROUND;
|
||||
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
|
||||
String text = "Radius: " + blockEntity.getRadius();
|
||||
drawCentredString(text, 25, 4210752, layer);
|
||||
|
|
|
@ -82,7 +82,7 @@ public class GuiDistillationTower extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void onClick(GuiButtonExtended button, Double x, Double y){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
{
|
||||
// This code here makes a basic multiblock and then sets to the selected one.
|
||||
|
|
|
@ -87,7 +87,7 @@ public class GuiFluidReplicator extends GuiBase<BuiltContainer> {
|
|||
|
||||
// GuiScreen
|
||||
public void onClick(GuiButtonExtended button, Double x, Double y){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
{
|
||||
// This code here makes a basic multiblock and then sets to the selected one.
|
||||
|
|
|
@ -115,7 +115,7 @@ public class GuiFusionReactor extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void hologramToggle(GuiButtonExtended button, double x, double y){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
updateMultiBlockRender();
|
||||
} else {
|
||||
|
|
|
@ -101,7 +101,7 @@ public class GuiGreenhouseController extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void onClick(GuiButtonExtended button, Double x, Double y) {
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
final Multiblock multiblock = new Multiblock();
|
||||
BlockState lamp = TRContent.Machine.LAMP_INCANDESCENT.block.getDefaultState().with(Properties.FACING, Direction.DOWN);
|
||||
|
|
|
@ -84,7 +84,7 @@ public class GuiImplosionCompressor extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void onClick(GuiButtonExtended button, Double mouseX, Double mouseY){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
{
|
||||
// This code here makes a basic multiblock and then sets to the selected one.
|
||||
|
|
|
@ -89,7 +89,7 @@ public class GuiIndustrialGrinder extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void onClick(GuiButtonExtended button, double mouseX, double mouseY){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
{
|
||||
// This code here makes a basic multiblock and then sets to the selected one.
|
||||
|
|
|
@ -94,7 +94,7 @@ public class GuiIndustrialSawmill extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void onClick(GuiButtonExtended button, Double mouseX, Double mouseY){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
{
|
||||
// This code here makes a basic multiblock and then sets to the selected one.
|
||||
|
|
|
@ -55,7 +55,7 @@ public class GuiMFE extends GuiBase<BuiltContainer> {
|
|||
super.drawForeground(mouseX, mouseY);
|
||||
final Layer layer = Layer.FOREGROUND;
|
||||
|
||||
if(!isTabOpen()){
|
||||
if(!hideGuiElements()){
|
||||
RenderSystem.pushMatrix();
|
||||
RenderSystem.scaled(0.6, 0.6, 1);
|
||||
drawCentredString(PowerSystem.getLocaliszedPowerFormattedNoSuffix((int) mfe.getEnergy()) + "/" + PowerSystem.getLocaliszedPowerFormattedNoSuffix((int) mfe.getMaxPower()) + " " + PowerSystem.getDisplayPower().abbreviation, 35, 0, 58, layer);
|
||||
|
|
|
@ -80,7 +80,7 @@ public class GuiVacuumFreezer extends GuiBase<BuiltContainer> {
|
|||
}
|
||||
|
||||
public void onClick(GuiButtonExtended button, Double mouseX, Double mouseY){
|
||||
if (isTabOpen()) return;
|
||||
if (hideGuiElements()) return;
|
||||
if (blockEntity.renderMultiblock == null) {
|
||||
{
|
||||
// This code here makes a basic multiblock and then sets to the selected one.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue