Package net.citizensnpcs.trait
Class ItemFrameTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.ItemFrameTrait
Persists
ItemFrame
metadata.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFixed()
getItem()
boolean
void
onSpawn()
Called when anNPC
is spawned.void
setFixed
(boolean fixed) void
void
setRotation
(Rotation rot) void
setVisible
(boolean visible)
-
Constructor Details
-
ItemFrameTrait
public ItemFrameTrait()
-
-
Method Details
-
getFixed
-
getItem
-
getRotation
-
isVisible
public boolean isVisible() -
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. -
setFixed
public void setFixed(boolean fixed) -
setItem
-
setRotation
-
setVisible
public void setVisible(boolean visible)
-