Package net.citizensnpcs.trait
Class ArmorStandTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.ArmorStandTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanisMarker()booleanisSmall()booleanvoidCalled just before theNPCis spawned.voidonSpawn()Called when anNPCis spawned.voidrun()Called every tick if overridden.voidsetAsHelperEntity(NPC parent) voidsetAsHelperEntityWithName(NPC parent) voidConfigures the entity as an invisible point entity, e.g. for mounting NPCs on top, nameplates, etc.voidvoidsetGravity(boolean gravity) voidsetHasArms(boolean arms) voidsetHasBaseplate(boolean baseplate) voidsetMarker(boolean marker) voidsetSmall(boolean small) voidsetVisible(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:TraitCalled just before theNPCis spawned.NPC.getEntity()will return an unspawned entity.- Overrides:
onPreSpawnin classTrait
-
onSpawn
public void onSpawn()Description copied from class:TraitCalled when anNPCis 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:TraitCalled 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:
-