mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Battery box stuff.
This commit is contained in:
parent
44effd2e7a
commit
860215e7c1
3 changed files with 2 additions and 19 deletions
2
port.MD
2
port.MD
|
@ -50,7 +50,7 @@
|
||||||
- [x] Make coffee beans and seeds be the same item or I might get killed by someone finally
|
- [x] Make coffee beans and seeds be the same item or I might get killed by someone finally
|
||||||
|
|
||||||
# Keep As Is
|
# Keep As Is
|
||||||
- [ ] Battery box
|
- [X] Battery box
|
||||||
- [ ] Item interfaces and item laser system
|
- [ ] Item interfaces and item laser system
|
||||||
- [ ] Farmer
|
- [ ] Farmer
|
||||||
- [x] Empowerer and display stands
|
- [x] Empowerer and display stands
|
||||||
|
|
|
@ -37,7 +37,6 @@ public class RenderBatteryBox extends TileEntityRenderer<TileEntityBatteryBox> {
|
||||||
super(rendererDispatcherIn);
|
super(rendererDispatcherIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: [port] migrate to matric (see cleanstart) (done partly)
|
|
||||||
@Override
|
@Override
|
||||||
public void render(TileEntityBatteryBox tile, float partialTicks, MatrixStack matrices, IRenderTypeBuffer buffer, int combinedLight, int combinedOverlay) {
|
public void render(TileEntityBatteryBox tile, float partialTicks, MatrixStack matrices, IRenderTypeBuffer buffer, int combinedLight, int combinedOverlay) {
|
||||||
ItemStack stack = tile.inv.getStackInSlot(0);
|
ItemStack stack = tile.inv.getStackInSlot(0);
|
||||||
|
@ -66,22 +65,6 @@ public class RenderBatteryBox extends TileEntityRenderer<TileEntityBatteryBox> {
|
||||||
matrices.translate(-60F, 0F, 60F);
|
matrices.translate(-60F, 0F, 60F);
|
||||||
matrices.mulPose(Vector3f.YP.rotationDegrees(90));
|
matrices.mulPose(Vector3f.YP.rotationDegrees(90));
|
||||||
}
|
}
|
||||||
// TODO: Remove if the above works
|
|
||||||
// NumberFormat format = NumberFormat.getInstance();
|
|
||||||
// FontRenderer font = Minecraft.getInstance().fontRenderer;
|
|
||||||
//
|
|
||||||
// String s = format.format(cap.getEnergyStored()) + "/" + format.format(cap.getMaxEnergyStored());
|
|
||||||
// float lengthS = -font.getStringWidth(s) / 2F;
|
|
||||||
// String s2 = I18n.format("actuallyadditions.cflong");
|
|
||||||
// float lengthS2 = -font.getStringWidth(s2) / 2F;
|
|
||||||
//
|
|
||||||
// for (int i = 0; i < 4; i++) {
|
|
||||||
// font.drawString(matrices, s, lengthS, 10F, 0xFFFFFF);
|
|
||||||
// font.drawString(matrices, s2, lengthS2, 20F, 0xFFFFFF);
|
|
||||||
//
|
|
||||||
// RenderSystem.translatef(-50F, 0F, 50F);
|
|
||||||
// RenderSystem.rotatef(90F, 0F, 1F, 0F);
|
|
||||||
// }
|
|
||||||
});
|
});
|
||||||
|
|
||||||
matrices.popPose(); // text rotation
|
matrices.popPose(); // text rotation
|
||||||
|
|
|
@ -218,7 +218,7 @@
|
||||||
"block.actuallyadditions.distributor_item": "Item Distributor (wip)",
|
"block.actuallyadditions.distributor_item": "Item Distributor (wip)",
|
||||||
"block.actuallyadditions.bio_reactor": "Bio Reactor (wip)",
|
"block.actuallyadditions.bio_reactor": "Bio Reactor (wip)",
|
||||||
"block.actuallyadditions.farmer": "Farmer",
|
"block.actuallyadditions.farmer": "Farmer",
|
||||||
"block.actuallyadditions.battery_box": "Battery Box (wip)",
|
"block.actuallyadditions.battery_box": "Battery Box",
|
||||||
"block.actuallyadditions.restonia_crystal_cluster": "Red Crystal Cluster",
|
"block.actuallyadditions.restonia_crystal_cluster": "Red Crystal Cluster",
|
||||||
"block.actuallyadditions.palis_crystal_cluster": "Blue Crystal Cluster",
|
"block.actuallyadditions.palis_crystal_cluster": "Blue Crystal Cluster",
|
||||||
"block.actuallyadditions.diamatine_crystal_cluster": "Light Blue Crystal Cluster",
|
"block.actuallyadditions.diamatine_crystal_cluster": "Light Blue Crystal Cluster",
|
||||||
|
|
Loading…
Reference in a new issue