mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 18:09:41 -05:00
[Bleeding] Added way to get/set if an Iron Golem was player created. Addresses BUKKIT-1229
By: aPunch <alexpuncochar@yahoo.com>
This commit is contained in:
1 parent
7688cbaf4e
commit
1d06f749fb
1 file changed
+15
@@ -5,4 +5,19 @@ package org.bukkit.entity;
|
||||
*/
|
||||
public interface IronGolem extends Golem {
|
||||
|
||||
/**
|
||||
* Gets whether this iron golem was built by a player.
|
||||
*
|
||||
* @return Whether this iron golem was built by a player
|
||||
*/
|
||||
public boolean isPlayerCreated();
|
||||
|
||||
/**
|
||||
* Sets whether this iron golem was built by a player or not.
|
||||
*
|
||||
* @param playerCreated
|
||||
* true if you want to set the iron golem as being player created,
|
||||
* false if you want it to be a natural village golem.
|
||||
*/
|
||||
public void setPlayerCreated(boolean playerCreated);
|
||||
}
|
||||
Reference in new issue
Block a user