Fix Craft Entity constructors and toStrings.
Also, standardise getHandle and clean up in general. getHandle is now using the 'entity' member variable instead of super.getHandle, as this reduces the number of chained calls needed.
This commit is contained in:
@@ -110,6 +110,6 @@ public class CraftWolf extends CraftAnimals implements Wolf {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftWolf[anger=" + isAngry() + ",owner=" + getOwner() + ",tame=" + isTamed() + ",sitting=" + isSitting() + "]";
|
||||
return "CraftWolf{anger=" + isAngry() + ",owner=" + getOwner() + ",tame=" + isTamed() + ",sitting=" + isSitting() + "}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user