Code cleanup (#5468)

* remove direct guava predicates from BlockStateMachine

* cleanup blockstatebasic

* fix a large number of e.printStacktrace calls, narrow ComputerIntegration exception signature

* fix simple todos, remove invalid todos, unify some duplicate rendering code

* use a generic method to get around unchecked warning

* remove some redundant uses of hasCapability

* experimental OptionalCapability class. not in use yet

* nullable checks/annotations & remove duplicate field controlType in factory TE

* Inline various redundant variables

* Remove unused list

* Cleanup BlockStateGenerator

* Replace string constants with pointers to the proper mod id constant

* As 9.7.5 breaks backwards compat API wise for the DynamicNetwork this is as good a time as any to remove this deprecated method

* Use two argument constructor instead of appending a ':' inbetween

* Convert other BlockState type classes to using suppliers for tile entity creation
This commit is contained in:
Richard Freimer authored and GitHub committed 2019-05-13 11:43:42 -04:00
1 parent 40620ec23b
commit 80b07bc4b3
115 files changed
+583 -633

No files matched your search

@@ -1,6 +1,7 @@
package mekanism.client.render.tileentity;
import mekanism.client.model.ModelSecurityDesk;
import mekanism.client.render.MekanismRenderer;
import mekanism.common.tile.TileEntitySecurityDesk;
import mekanism.common.util.MekanismUtils;
import mekanism.common.util.MekanismUtils.ResourceType;
@@ -21,20 +22,7 @@ public class RenderSecurityDesk extends TileEntitySpecialRenderer<TileEntitySecu
bindTexture(MekanismUtils.getResource(ResourceType.RENDER, "SecurityDesk.png"));
switch (tileEntity.facing.ordinal()) /*TODO: switch the enum*/ {
case 2:
GlStateManager.rotate(0, 0.0F, 1.0F, 0.0F);
break;
case 3:
GlStateManager.rotate(180, 0.0F, 1.0F, 0.0F);
break;
case 4:
GlStateManager.rotate(90, 0.0F, 1.0F, 0.0F);
break;
case 5:
GlStateManager.rotate(270, 0.0F, 1.0F, 0.0F);
break;
}
MekanismRenderer.glRotateForFacing(tileEntity);
GlStateManager.rotate(180F, 0.0F, 0.0F, 1.0F);
model.render(0.0625F, rendererDispatcher.renderEngine);