Package net.citizensnpcs.trait
Class ArmorStandTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.ArmorStandTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
ArmorStandTraitpublic ArmorStandTrait()
 
- 
- 
Method Details- 
getGravitypublic boolean getGravity()
- 
getHasArmspublic boolean getHasArms()
- 
getHasBaseplatepublic boolean getHasBaseplate()
- 
isMarkerpublic boolean isMarker()
- 
isSmallpublic boolean isSmall()
- 
isVisiblepublic boolean isVisible()
- 
onPreSpawnpublic void onPreSpawn()Description copied from class:TraitCalled just before theNPCis spawned.NPC.getEntity()will return an unspawned entity.- Overrides:
- onPreSpawnin class- Trait
 
- 
onSpawnpublic 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.
- 
runpublic void run()Description copied from class:TraitCalled every tick if overridden.
- 
setAsHelperEntity
- 
setAsHelperEntityWithName
- 
setAsPointEntitypublic void setAsPointEntity()Configures the entity as an invisible point entity, e.g. for mounting NPCs on top, nameplates, etc.
- 
setAsPointEntityWithNamepublic void setAsPointEntityWithName()
- 
setGravitypublic void setGravity(boolean gravity) - See Also:
 
- 
setHasArmspublic void setHasArms(boolean arms) - See Also:
 
- 
setHasBaseplatepublic void setHasBaseplate(boolean baseplate) - See Also:
 
- 
setMarkerpublic void setMarker(boolean marker) - See Also:
 
- 
setSmallpublic void setSmall(boolean small) - See Also:
 
- 
setVisiblepublic void setVisible(boolean visible) - See Also:
 
 
-