chars, ...
This commit is contained in:
parent
eea23233f4
commit
3515fb1792
53 changed files with 688 additions and 543 deletions
|
@ -648,6 +648,10 @@ public class Item
|
|||
return true;
|
||||
}
|
||||
|
||||
public boolean canBeWielded() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getHotbarText(EntityNPC player, ItemStack stack) {
|
||||
return stack.getColoredName();
|
||||
}
|
||||
|
|
|
@ -151,4 +151,8 @@ public class ItemBow extends Item
|
|||
public ModelBlock getModel(String name, int meta) {
|
||||
return new ModelBlock(this.getTransform(), meta == 0 ? "bow" : ("bow_pulling_" + (meta - 1)));
|
||||
}
|
||||
|
||||
public boolean canBeWielded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,4 +79,8 @@ public abstract class ItemGunBase extends Item
|
|||
public Transforms getTransform() {
|
||||
return Transforms.RANGED;
|
||||
}
|
||||
|
||||
public boolean canBeWielded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,4 +110,8 @@ public class ItemHoe extends Item
|
|||
{
|
||||
return this.theToolMaterial;
|
||||
}
|
||||
|
||||
public boolean canBeWielded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,8 +38,8 @@ public class ItemNpcSpawner extends Item
|
|||
String item = "Erschaffe";
|
||||
CharacterInfo info = this.spawned; // SpeciesRegistry.CHARACTERS.get(stack.getMetadata() % SpeciesRegistry.CHARACTERS.size());
|
||||
String species = EntityRegistry.getEntityName(info.species.id);
|
||||
if(info.species.prefix && info.spclass != null && info.spclass.type != null)
|
||||
species = info.spclass.type.toString();
|
||||
if(info.species.prefix && info.type != null && !info.type.toString().isEmpty())
|
||||
species = info.type.toString();
|
||||
String character = info.name;
|
||||
item = item + " " + species + (character.isEmpty() ? "" : (" " + character));
|
||||
|
||||
|
|
|
@ -52,4 +52,8 @@ public class ItemShears extends Item
|
|||
public boolean isMagnetic() {
|
||||
return this.material.isMagnetic();
|
||||
}
|
||||
|
||||
public boolean canBeWielded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -164,4 +164,8 @@ public class ItemSword extends Item
|
|||
public Transforms getTransform() {
|
||||
return Transforms.TOOL;
|
||||
}
|
||||
|
||||
public boolean canBeWielded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -120,4 +120,8 @@ public abstract class ItemTool extends Item
|
|||
public Transforms getTransform() {
|
||||
return Transforms.TOOL;
|
||||
}
|
||||
|
||||
public boolean canBeWielded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue