mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-12 19:30:42 +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";
|
return "CraftIronGolem";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isPlayerCreated() {
|
||||||
|
return getHandle().n_();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlayerCreated(boolean playerCreated) {
|
||||||
|
getHandle().b(playerCreated);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EntityType getType() {
|
public EntityType getType() {
|
||||||
return EntityType.IRON_GOLEM;
|
return EntityType.IRON_GOLEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user