inline accessors
This commit is contained in:
@@ -206,7 +206,6 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
break;
|
||||
case TAKE:
|
||||
case RECYCLE:
|
||||
|
||||
writer.putInt(0);
|
||||
writer.putInt(0);
|
||||
writer.putInt(1);
|
||||
@@ -237,6 +236,7 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
writer.putInt(1);
|
||||
MobLoot toRoll = MobLoot.getFromCache(this.templateID);
|
||||
writer.putInt(-1497023830);
|
||||
|
||||
if (toRoll != null && toRoll.getPrefix() != null && !toRoll.getPrefix().isEmpty()) {
|
||||
EffectsBase eb = PowersManager.getEffectByIDString(toRoll.getPrefix());
|
||||
if (eb == null)
|
||||
@@ -265,13 +265,8 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
writer.putInt(this.templateID);
|
||||
writer.putInt(0); //items left to produce?
|
||||
|
||||
if (toRoll != null) {
|
||||
writer.putInt(toRoll.templateID);
|
||||
writer.putInt(toRoll.getValue());
|
||||
} else {
|
||||
writer.putInt(0);
|
||||
writer.putInt(0);
|
||||
}
|
||||
writer.putInt(toRoll.templateID);
|
||||
writer.putInt(toRoll.getValue());
|
||||
|
||||
NPC vendor = NPC.getFromCache(this.npcUUID);
|
||||
if (vendor != null) {
|
||||
@@ -341,7 +336,6 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
writer.putInt(0);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -432,91 +426,7 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
else
|
||||
reader.getShort();
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int getItemType() {
|
||||
return itemType;
|
||||
}
|
||||
|
||||
public int getUnknown01() {
|
||||
return unknown01;
|
||||
}
|
||||
|
||||
public void setUnknown01(int unknown01) {
|
||||
this.unknown01 = unknown01;
|
||||
}
|
||||
|
||||
public int getTotal_to_produce() {
|
||||
return total_to_produce;
|
||||
}
|
||||
|
||||
public void setTotal_to_produce(int unknown02) {
|
||||
this.total_to_produce = unknown02;
|
||||
}
|
||||
|
||||
public int getUnknown03() {
|
||||
return unknown03;
|
||||
}
|
||||
|
||||
public void setUnknown03(int unknown03) {
|
||||
this.unknown03 = unknown03;
|
||||
}
|
||||
|
||||
public int getTemplateID() {
|
||||
return templateID;
|
||||
}
|
||||
|
||||
public void setTemplateID(int templateID) {
|
||||
this.templateID = templateID;
|
||||
}
|
||||
|
||||
public int getpToken() {
|
||||
return pToken;
|
||||
}
|
||||
|
||||
public void setpToken(int pToken) {
|
||||
this.pToken = pToken;
|
||||
}
|
||||
|
||||
public int getsToken() {
|
||||
return sToken;
|
||||
}
|
||||
|
||||
public void setsToken(int sToken) {
|
||||
this.sToken = sToken;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getNpcUUID() {
|
||||
return npcUUID;
|
||||
}
|
||||
|
||||
public HashMap<Integer, Integer> getItems() {
|
||||
return items;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the itemPrice
|
||||
*/
|
||||
public int getItemPrice() {
|
||||
return itemPrice;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user