mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 02:15:11 +00:00
Refactor Overlays to support URL
This commit is contained in:
1 parent
f1b7f2dac7
commit
d8097368cc
5 files changed
+52
-62
No files matched your search
@@ -1,14 +1,18 @@
|
||||
package noppes.npcs.controllers.data;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import noppes.npcs.api.ISkinOverlay;
|
||||
import noppes.npcs.client.ClientCacheHandler;
|
||||
import noppes.npcs.client.renderer.ImageData;
|
||||
import noppes.npcs.entity.data.DataSkinOverlays;
|
||||
|
||||
public class SkinOverlay implements ISkinOverlay {
|
||||
public DataSkinOverlays parent;
|
||||
public ResourceLocation location = null;
|
||||
public String texture;
|
||||
|
||||
public boolean glow = true;
|
||||
public boolean blend = true;
|
||||
public float alpha = 1.0F;
|
||||
@@ -39,7 +43,7 @@ public class SkinOverlay implements ISkinOverlay {
|
||||
this.updateClient();
|
||||
}
|
||||
public String getTexture() {
|
||||
return texture;
|
||||
return this.texture;
|
||||
}
|
||||
|
||||
public void setGlow(boolean glow) {
|
||||
@@ -114,14 +118,6 @@ public class SkinOverlay implements ISkinOverlay {
|
||||
return offsetZ;
|
||||
}
|
||||
|
||||
public void setLocation(ResourceLocation location) {
|
||||
this.location = location;
|
||||
this.updateClient();
|
||||
}
|
||||
public ResourceLocation getLocation() {
|
||||
return this.location;
|
||||
}
|
||||
|
||||
public void readFromNBT(NBTTagCompound compound) {
|
||||
this.texture = compound.getString("SkinOverlayTexture");
|
||||
this.glow = compound.getBoolean("SkinOverlayGlow");
|
||||
|
||||
Reference in new issue
Block a user