Skip to content

Commit

Permalink
More cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
bs2609 committed May 19, 2019
1 parent 0b711f4 commit b6b93f4
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 75 deletions.
32 changes: 18 additions & 14 deletions src/main/java/twilightforest/client/TFClientEvents.java
Expand Up @@ -31,6 +31,7 @@
import twilightforest.client.texture.GradientNode;
import twilightforest.client.texture.MoltenFieryTexture;
import twilightforest.compat.TFCompat;
import twilightforest.compat.ie.IEShaderRegister;
import twilightforest.item.ItemTFBowBase;
import twilightforest.world.WorldProviderTwilightForest;

Expand All @@ -57,23 +58,26 @@ public static void texStitch(TextureStitchEvent.Pre evt) {
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "minecraft", "blocks/water_flow" ), RegisterBlockEvent.essenceFieryFlow , true, FIERY_ESSENCE_GRADIENT_MAP));

if (TFCompat.IMMERSIVEENGINEERING.isActivated()) {
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "revolvers/shaders/revolver_grip" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_REVOLVER_GRIP_LAYER, true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "revolvers/shaders/revolver_0" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_REVOLVER_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/chemthrower_0" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_CHEMTHROW_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/drill_diesel_0" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_DRILL_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/railgun_0" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_RAILGUN_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/shield_0" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_SHIELD_LAYER , true, EASY_GRAYSCALING_MAP ));
// map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_MINECART_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "blocks/shaders/balloon_0" ), twilightforest.compat.ie.IEShaderRegister.PROCESSED_BALLOON_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "revolvers/shaders/revolver_grip" ), IEShaderRegister.PROCESSED_REVOLVER_GRIP_LAYER, true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "revolvers/shaders/revolver_0" ), IEShaderRegister.PROCESSED_REVOLVER_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/chemthrower_0" ), IEShaderRegister.PROCESSED_CHEMTHROW_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/drill_diesel_0" ), IEShaderRegister.PROCESSED_DRILL_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/railgun_0" ), IEShaderRegister.PROCESSED_RAILGUN_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "items/shaders/shield_0" ), IEShaderRegister.PROCESSED_SHIELD_LAYER , true, EASY_GRAYSCALING_MAP ));
// map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "" ), IEShaderRegister.PROCESSED_MINECART_LAYER , true, EASY_GRAYSCALING_MAP ));
map.setTextureEntry( new GradientMappedTexture( new ResourceLocation( "immersiveengineering", "blocks/shaders/balloon_0" ), IEShaderRegister.PROCESSED_BALLOON_LAYER , true, EASY_GRAYSCALING_MAP ));

final String[] types = new String[]{ "1_0", "1_2", "1_4", "1_5", "1_6" };

for (twilightforest.compat.ie.IEShaderRegister.CaseType caseType : twilightforest.compat.ie.IEShaderRegister.CaseType.everythingButMinecart())
for (String type : types)
map.setTextureEntry( new GradientMappedTexture(
new ResourceLocation(twilightforest.compat.ie.IEShaderRegister.ModType.IMMERSIVEENGINEERING.provideTex(caseType, type)),
new ResourceLocation(twilightforest.compat.ie.IEShaderRegister.ModType.TWILIGHTFOREST.provideTex(caseType, type)),
true, EASY_GRAYSCALING_MAP));
for (IEShaderRegister.CaseType caseType : IEShaderRegister.CaseType.everythingButMinecart()) {
for (String type : types) {
map.setTextureEntry(new GradientMappedTexture(
IEShaderRegister.ModType.IMMERSIVE_ENGINEERING.provideTex(caseType, type),
IEShaderRegister.ModType.TWILIGHT_FOREST.provideTex(caseType, type),
true, EASY_GRAYSCALING_MAP
));
}
}
}
}

Expand Down

0 comments on commit b6b93f4

Please sign in to comment.