Bump
|
Im trying to integrate code into my server, but it was a bit different when it started out. You see it had many class calls that weren't like my own server, while I was able to resolve most of these, when it came down to methods I sort of crumbled.
Constants.CAPE
Constants.Hat
These originally were calling on a method that acted in the (Constants) or config.java for my pi server. But the problem is that these methods weren't located in the config.java but the ItemAssistant.java and unlike the calls above, the items that are identified are strings but they aren't seperate. There in one large method called itemtype, and Im confused as how to integrate this into the calls above. Heres the code.
public String itemType(int item) {
if(Item.playerCape(item)) {
return "cape";
}
if(Item.playerBoots(item)) {
return "boots";
}
if(Item.playerGloves(item)) {
return "gloves";
}
if(Item.playerShield(item)) {
return "shield";
}
if(Item.playerAmulet(item)) {
return "amulet";
}
if(Item.playerArrows(item)) {
return "arrows";
}
if(Item.playerRings(item)) {
return "ring";
}
if(Item.playerHats(item)) {
return "hat";
}
if(Item.playerLegs(item)) {
return "legs";
}
if(Item.playerBody(item)) {
return "body";
}
Unless Im wrong and its wearitem, but it could also be c.playerEquipment.
Bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |