mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 06:25:11 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -11,6 +11,7 @@ public class ScriptLinkedItem extends ScriptCustomizableItem implements IItemLin
|
||||
public LinkedItem linkedItem = new LinkedItem();
|
||||
public double durabilityValue = 1.0D;
|
||||
public int linkedVersion = 1;
|
||||
|
||||
public ScriptLinkedItem(ItemStack item) {
|
||||
super(item);
|
||||
setDefaults();
|
||||
@@ -26,7 +27,7 @@ public class ScriptLinkedItem extends ScriptCustomizableItem implements IItemLin
|
||||
saveItemData();
|
||||
}
|
||||
|
||||
public void setDefaults(){
|
||||
public void setDefaults() {
|
||||
this.itemDisplay.texture = null;
|
||||
this.itemDisplay.translateX = null;
|
||||
this.itemDisplay.translateY = null;
|
||||
@@ -51,7 +52,7 @@ public class ScriptLinkedItem extends ScriptCustomizableItem implements IItemLin
|
||||
|
||||
@Override
|
||||
public INpcScriptHandler getScriptHandler() {
|
||||
if(this.getLinkedItem() == null)
|
||||
if (this.getLinkedItem() == null)
|
||||
return null;
|
||||
return this.getLinkedItem().getScriptHandler();
|
||||
}
|
||||
@@ -192,7 +193,7 @@ public class ScriptLinkedItem extends ScriptCustomizableItem implements IItemLin
|
||||
|
||||
public void loadItemData() {
|
||||
NBTTagCompound c = this.item.getTagCompound();
|
||||
if (c != null && !c.getCompoundTag("ItemData").hasNoTags()){
|
||||
if (c != null && !c.getCompoundTag("ItemData").hasNoTags()) {
|
||||
this.setItemNBT(c.getCompoundTag("ItemData"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user