mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
93 lines
3.5 KiB
Java
93 lines
3.5 KiB
Java
package com.hbm.render.util;
|
|
|
|
import com.hbm.lib.Library;
|
|
import com.hbm.lib.RefStrings;
|
|
import com.hbm.main.MainRegistry;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class RenderAccessoryUtility {
|
|
|
|
private static ResourceLocation hbm = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeHbm3.png");
|
|
private static ResourceLocation hbm2 = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeHbm2.png");
|
|
private static ResourceLocation dafnik = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeDafnik.png");
|
|
private static ResourceLocation lpkukin = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeShield.png");
|
|
private static ResourceLocation vertice = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeVertice_2.png");
|
|
private static ResourceLocation red = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeRed.png");
|
|
private static ResourceLocation ayy = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeAyy.png");
|
|
private static ResourceLocation nostalgia = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeNostalgia.png");
|
|
private static ResourceLocation nostalgia2 = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeNostalgia2.png");
|
|
private static ResourceLocation sam = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeSam.png");
|
|
private static ResourceLocation hoboy = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeHoboy.png");
|
|
private static ResourceLocation master = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeMaster.png");
|
|
private static ResourceLocation mek = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeMek.png");
|
|
private static ResourceLocation god_tm = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeGodTM.png");
|
|
private static ResourceLocation zippy = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeZippySqrl.png");
|
|
private static ResourceLocation test = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeTest.png");
|
|
private static ResourceLocation schrabby = new ResourceLocation(RefStrings.MODID + ":textures/models/capes/CapeSchrabbyAlt.png");
|
|
|
|
public static ResourceLocation getCloakFromPlayer(EntityPlayer player) {
|
|
|
|
String uuid = player.getUniqueID().toString();
|
|
String name = player.getDisplayName();
|
|
|
|
if(uuid.equals(Library.HbMinecraft)) {
|
|
|
|
if(MainRegistry.polaroidID == 11)
|
|
return hbm;
|
|
else
|
|
return hbm2;
|
|
}
|
|
if(uuid.equals(Library.Dafnik)) {
|
|
return dafnik;
|
|
}
|
|
if(uuid.equals(Library.LPkukin)) {
|
|
return lpkukin;
|
|
}
|
|
if(uuid.equals(Library.LordVertice)) {
|
|
return vertice;
|
|
}
|
|
if(uuid.equals(Library.CodeRed_)) {
|
|
return red;
|
|
}
|
|
if(uuid.equals(Library.dxmaster769)) {
|
|
return ayy;
|
|
}
|
|
if(uuid.equals(Library.Dr_Nostalgia)) {
|
|
|
|
if(MainRegistry.polaroidID == 11)
|
|
return nostalgia2;
|
|
else
|
|
return nostalgia;
|
|
}
|
|
if(uuid.equals(Library.Samino2)) {
|
|
return sam;
|
|
}
|
|
if(uuid.equals(Library.Hoboy03new)) {
|
|
return hoboy;
|
|
}
|
|
if(uuid.equals(Library.Dragon59MC)) {
|
|
return master;
|
|
}
|
|
if(uuid.equals(Library.Steelcourage)) {
|
|
return mek;
|
|
}
|
|
if(uuid.equals(Library.GOD___TM)) {
|
|
return god_tm;
|
|
}
|
|
if(uuid.equals(Library.ZippySqrl)) {
|
|
return zippy;
|
|
}
|
|
if(uuid.equals(Library.Schrabby)) {
|
|
return schrabby;
|
|
}
|
|
if(name.startsWith("Player")) {
|
|
return test;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
}
|