mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Adapt code to resource rename
This commit is contained in:
parent
1e53014383
commit
b2372d4231
8 changed files with 15 additions and 14 deletions
|
@ -17,7 +17,7 @@ import net.minecraftforge.fluids.Fluid;
|
|||
public class FluidAA extends Fluid{
|
||||
|
||||
public FluidAA(String fluidName, String textureName){
|
||||
super(fluidName, new ResourceLocation(ModUtil.MOD_ID, "blocks/"+textureName+"Still"), new ResourceLocation(ModUtil.MOD_ID, "blocks/"+textureName+"Flowing"));
|
||||
super(fluidName, new ResourceLocation(ModUtil.MOD_ID, "blocks/"+textureName+"still"), new ResourceLocation(ModUtil.MOD_ID, "blocks/"+textureName+"flowing"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -44,7 +44,7 @@ public final class InitFluids{
|
|||
}
|
||||
|
||||
private static Fluid registerFluid(String fluidName, String fluidTextureName, EnumRarity rarity){
|
||||
Fluid fluid = new FluidAA(fluidName.toLowerCase(Locale.ROOT), fluidTextureName).setRarity(rarity);
|
||||
Fluid fluid = new FluidAA(fluidName.toLowerCase(Locale.ROOT), fluidTextureName.toLowerCase(Locale.ROOT)).setRarity(rarity);
|
||||
FluidRegistry.registerFluid(fluid);
|
||||
FluidRegistry.addBucketForFluid(fluid);
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{
|
|||
|
||||
@Override
|
||||
protected void registerRendering(){
|
||||
ResourceLocation resLoc = new ResourceLocation(ModUtil.MOD_ID, "itemPaxel");
|
||||
ResourceLocation resLoc = new ResourceLocation(ModUtil.MOD_ID, "itempaxel");
|
||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), resLoc, "inventory");
|
||||
}
|
||||
|
||||
|
|
|
@ -31,8 +31,8 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|||
|
||||
public class DungeonLoot{
|
||||
|
||||
public static final ResourceLocation JAM_HOUSE = new ResourceLocation(ModUtil.MOD_ID, "jamHouse");
|
||||
public static final ResourceLocation LUSH_CAVES = new ResourceLocation(ModUtil.MOD_ID, "lushCaves");
|
||||
public static final ResourceLocation JAM_HOUSE = new ResourceLocation(ModUtil.MOD_ID, "jamhouse");
|
||||
public static final ResourceLocation LUSH_CAVES = new ResourceLocation(ModUtil.MOD_ID, "lushcaves");
|
||||
|
||||
public DungeonLoot(){
|
||||
LootTableList.register(JAM_HOUSE);
|
||||
|
|
|
@ -14,6 +14,8 @@ import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
|||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.SoundEvent;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public final class SoundHandler{
|
||||
|
||||
public static SoundEvent duhDuhDuhDuuuh;
|
||||
|
@ -33,7 +35,7 @@ public final class SoundHandler{
|
|||
}
|
||||
|
||||
private static SoundEvent registerSound(String name){
|
||||
ResourceLocation resLoc = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||
ResourceLocation resLoc = new ResourceLocation(ModUtil.MOD_ID, name.toLowerCase(Locale.ROOT));
|
||||
|
||||
SoundEvent event = new SoundEvent(resLoc);
|
||||
SoundEvent.REGISTRY.register(size, resLoc, event);
|
||||
|
|
|
@ -34,10 +34,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
|||
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
public class ClientProxy implements IProxy{
|
||||
|
||||
|
@ -110,7 +107,8 @@ public class ClientProxy implements IProxy{
|
|||
|
||||
@Override
|
||||
public void addRenderRegister(ItemStack stack, ResourceLocation location, String variant){
|
||||
MODEL_LOCATIONS_FOR_REGISTERING.put(stack, new ModelResourceLocation(location, variant));
|
||||
ResourceLocation lowerLocation = new ResourceLocation(location.toString().toLowerCase(Locale.ROOT));
|
||||
MODEL_LOCATIONS_FOR_REGISTERING.put(stack, new ModelResourceLocation(lowerLocation, variant));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -34,16 +34,18 @@ import net.minecraftforge.fml.relauncher.Side;
|
|||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public final class AssetUtil{
|
||||
|
||||
public static final ResourceLocation GUI_INVENTORY_LOCATION = getGuiLocation("guiInventory");
|
||||
|
||||
public static ResourceLocation getGuiLocation(String file){
|
||||
return new ResourceLocation(ModUtil.MOD_ID, "textures/gui/"+file+".png");
|
||||
return new ResourceLocation(ModUtil.MOD_ID, "textures/gui/"+file.toLowerCase(Locale.ROOT)+".png");
|
||||
}
|
||||
|
||||
public static ResourceLocation getBookletGuiLocation(String file){
|
||||
return new ResourceLocation(ModUtil.MOD_ID, "textures/gui/booklet/"+file+".png");
|
||||
return getGuiLocation("booklet/"+file);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
|
|
@ -35,7 +35,6 @@ public class FluidStateMapper extends StateMapperBase implements ItemMeshDefinit
|
|||
this.location = new ModelResourceLocation(new ResourceLocation(ModUtil.MOD_ID, "fluids"), fluid.getName());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected ModelResourceLocation getModelResourceLocation(IBlockState state){
|
||||
return this.location;
|
||||
|
|
Loading…
Reference in a new issue