mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 18:07:39 +01:00
[Bleeding] Added way to get/set if Iron Golem was player created. Addresses BUKKIT-1229
This commit is contained in:
parent
68b98d4c8f
commit
ea60181a87
@ -20,6 +20,14 @@ public class CraftIronGolem extends CraftGolem implements IronGolem {
|
||||
return "CraftIronGolem";
|
||||
}
|
||||
|
||||
public boolean isPlayerCreated() {
|
||||
return getHandle().n_();
|
||||
}
|
||||
|
||||
public void setPlayerCreated(boolean playerCreated) {
|
||||
getHandle().b(playerCreated);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityType getType() {
|
||||
return EntityType.IRON_GOLEM;
|
||||
|
Loading…
Reference in New Issue
Block a user