public abstract class AbstractBehavior extends java.lang.Object implements Behavior
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.entity.player.EntityPlayer |
player
The player this behavior was created for.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBehavior()
Use this if you do not need the player reference in your implementation.
|
protected |
AbstractBehavior(net.minecraft.entity.player.EntityPlayer player)
Pass along the player the behavior was created for here to have it stored
for later use.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getNameHint()
A short name / description of this behavior.
|
void |
onDisable(DisableReason reason)
Called when this behavior becomes inactive.
|
void |
onEnable()
Called when this behavior becomes active because all its required inputs
are now satisfied.
|
void |
update()
Called each tick while this behavior is active.
|
public final net.minecraft.entity.player.EntityPlayer player
protected AbstractBehavior(net.minecraft.entity.player.EntityPlayer player)
player - the player the behavior was created for.protected AbstractBehavior()
public java.lang.String getNameHint()
BehaviorgetNameHint in interface Behaviorpublic void onEnable()
Behaviorpublic void onDisable(DisableReason reason)
Behavior