use of buildcraft.robotics.RobotStationPluggable.EnumRobotStationState in project BuildCraft by BuildCraft.
the class RobotStationModel method textureStitchPost.
@SubscribeEvent
public void textureStitchPost(TextureStitchEvent.Post post) {
for (final EnumRobotStationState state : EnumRobotStationState.values()) {
Matrix4f translation = new Matrix4f();
translation.setIdentity();
translation.setTranslation(new Vector3f(2.8f / 16f, 0, 0));
List<MutableQuad> quads = Lists.newArrayList();
for (MutableQuad mutable : BuildCraftBakedModel.createQuadsItemLayer(stateSprites.get(state))) {
mutable.transform(translation);
mutable.colouri(0xFF_FF_FF_FF);
quads.add(mutable);
}
stateQuads.put(state, quads);
}
}
use of buildcraft.robotics.RobotStationPluggable.EnumRobotStationState in project BuildCraft by BuildCraft.
the class RobotStationModel method textureStitchPre.
@SubscribeEvent
public void textureStitchPre(TextureStitchEvent.Pre pre) {
TextureMap map = pre.map;
baseSprite = null;
baseSprite = map.getTextureExtry("buildcraftrobotics:station/base");
if (baseSprite == null)
baseSprite = map.registerSprite(new ResourceLocation("buildcraftrobotics:station/base"));
for (final EnumRobotStationState state : EnumRobotStationState.values()) {
String suffix = state.getTextureSuffix() + (BuildCraftCore.colorBlindMode ? "_cb" : "");
ResourceLocation location = new ResourceLocation("buildcraftrobotics:station/state_" + suffix);
TextureAtlasSprite sprite = map.getTextureExtry(location.toString());
if (sprite == null)
sprite = map.registerSprite(location);
stateSprites.put(state, sprite);
}
}
Aggregations