Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
changed around overlay and base textures to support mass storages
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Oct 23, 2023
1 parent 01957a8 commit d5ba3da
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import io.github.gregtechintergalactical.gtcore.GTCore;
import io.github.gregtechintergalactical.gtcore.blockentity.BlockEntityMassStorage;
import muramasa.antimatter.AntimatterAPI;
import muramasa.antimatter.machine.MachineState;
import muramasa.antimatter.machine.Tier;
import muramasa.antimatter.material.Material;
import muramasa.antimatter.texture.Texture;
Expand All @@ -14,14 +16,28 @@ public MassStorageMachine(String domain, Material material, String suffix, int c
this.setTile((m, p, s) -> new BlockEntityMassStorage(this, p, s));
this.capacity = capacity;
tesr();
String barrel = material.getId().contains("wood") ? "item_barrel" : "mass_storage";
baseTexture((m, t) -> new Texture[] {
new Texture(GTCore.ID, "block/machine/base/item_barrel/bottom"),
new Texture(GTCore.ID, "block/machine/base/item_barrel/top"),
new Texture(GTCore.ID, "block/machine/base/item_barrel/side"),
new Texture(GTCore.ID, "block/machine/base/item_barrel/side"),
new Texture(GTCore.ID, "block/machine/base/item_barrel/side"),
new Texture(GTCore.ID, "block/machine/base/item_barrel/side"),
new Texture(GTCore.ID, "block/machine/base/" + barrel + "/bottom"),
new Texture(GTCore.ID, "block/machine/base/" + barrel + "/top"),
new Texture(GTCore.ID, "block/machine/base/" + barrel + "/side"),
new Texture(GTCore.ID, "block/machine/base/" + barrel + "/side"),
new Texture(GTCore.ID, "block/machine/base/" + barrel + "/side"),
new Texture(GTCore.ID, "block/machine/base/" + barrel + "/side"),
});
overlayTexture((m, s, t) -> {
s = s.getTextureState();
String stateDir = s == MachineState.IDLE ? "" : s.getId() + "/";
return new Texture[]{
new Texture(domain, "block/machine/overlay/" + barrel + "/" + stateDir + "bottom"),
new Texture(domain, "block/machine/overlay/" + barrel + "/" + stateDir + "top"),
new Texture(domain, "block/machine/overlay/" + barrel + "/" + stateDir + "back"),
new Texture(domain, "block/machine/overlay/" + barrel + "/" + stateDir + "front"),
new Texture(domain, "block/machine/overlay/" + barrel + "/" + stateDir + "side"),
new Texture(domain, "block/machine/overlay/" + barrel + "/" + stateDir + "side")
};
});
AntimatterAPI.register(MassStorageMachine.class, this);
}

public int getCapacity() {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5ba3da

Please sign in to comment.