Package net.citizensnpcs.trait
Class ArmorStandTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.ArmorStandTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
isMarker()
boolean
isSmall()
boolean
void
Called just before theNPC
is spawned.void
onSpawn()
Called when anNPC
is spawned.void
run()
Called every tick if overridden.void
setAsHelperEntity
(NPC parent) void
setAsHelperEntityWithName
(NPC parent) void
Configures the entity as an invisible point entity, e.g.void
void
setGravity
(boolean gravity) void
setHasArms
(boolean arms) void
setHasBaseplate
(boolean baseplate) void
setMarker
(boolean marker) void
setSmall
(boolean small) void
setVisible
(boolean visible)
-
Constructor Details
-
ArmorStandTrait
public ArmorStandTrait()
-
-
Method Details
-
getGravity
public boolean getGravity() -
getHasArms
public boolean getHasArms() -
getHasBaseplate
public boolean getHasBaseplate() -
isMarker
public boolean isMarker() -
isSmall
public boolean isSmall() -
isVisible
public boolean isVisible() -
onPreSpawn
public void onPreSpawn()Description copied from class:Trait
Called just before theNPC
is spawned.NPC.getEntity()
will return an unspawned entity.- Overrides:
onPreSpawn
in classTrait
-
onSpawn
public void onSpawn()Description copied from class:Trait
Called when anNPC
is spawned.NPC.getEntity()
will return null until this is called. This is also called onAttach when the NPC is already spawned. -
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setAsHelperEntity
-
setAsHelperEntityWithName
-
setAsPointEntity
public void setAsPointEntity()Configures the entity as an invisible point entity, e.g. for mounting NPCs on top, nameplates, etc. -
setAsPointEntityWithName
public void setAsPointEntityWithName() -
setGravity
public void setGravity(boolean gravity) - See Also:
-
setHasArms
public void setHasArms(boolean arms) - See Also:
-
setHasBaseplate
public void setHasBaseplate(boolean baseplate) - See Also:
-
setMarker
public void setMarker(boolean marker) - See Also:
-
setSmall
public void setSmall(boolean small) - See Also:
-
setVisible
public void setVisible(boolean visible) - See Also:
-