Constructor and Description |
---|
ArmorStandTrait() |
Modifier and Type | Method and Description |
---|---|
boolean |
getGravity() |
boolean |
getHasArms() |
boolean |
getHasBaseplate() |
boolean |
isMarker() |
boolean |
isSmall() |
boolean |
isVisible() |
void |
onSpawn()
Called when an
NPC is spawned. |
void |
run()
Called every tick if overridden.
|
void |
setGravity(boolean gravity) |
void |
setHasArms(boolean arms) |
void |
setHasBaseplate(boolean baseplate) |
void |
setMarker(boolean marker) |
void |
setSmall(boolean small) |
void |
setVisible(boolean visible) |
public boolean getGravity()
public boolean getHasArms()
public boolean getHasBaseplate()
public boolean isMarker()
public boolean isSmall()
public boolean isVisible()
public void onSpawn()
Trait
NPC
is spawned. NPC.getEntity()
will return null until this is called. This is
also called onAttach when the NPC is already spawned.public void run()
Trait
public void setGravity(boolean gravity)
Entity.setGravity(boolean)
public void setHasArms(boolean arms)
ArmorStand.setArms(boolean)
public void setHasBaseplate(boolean baseplate)
ArmorStand.setBasePlate(boolean)
public void setMarker(boolean marker)
ArmorStand.setMarker(boolean)
public void setSmall(boolean small)
ArmorStand.setSmall(boolean)
public void setVisible(boolean visible)
ArmorStand.setVisible(boolean)
Copyright © 2021. All rights reserved.