- All Implemented Interfaces:
Actor
@API(status=STABLE,
since="2.0.0-milestone.2.1")
public final class PlayerActor
extends Object
implements Actor
-
Constructor Summary
Constructors
PlayerActor(net.minecraft.world.entity.player.Player player)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PlayerActor
public PlayerActor(net.minecraft.world.entity.player.Player player)
-
PlayerActor
public PlayerActor(String playerName)
-
Method Details
-
getName
- Specified by:
getName
in interface Actor
- Returns:
- the name of the actor