Constructor and Description |
---|
ShulkerTrait() |
Modifier and Type | Method and Description |
---|---|
org.bukkit.DyeColor |
getColor() |
int |
getPeek() |
void |
onSpawn()
Called when an
NPC is spawned. |
void |
run()
Called every tick if overridden.
|
void |
setColor(org.bukkit.DyeColor color) |
void |
setPeek(int peek) |
public org.bukkit.DyeColor getColor()
public int getPeek()
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 setColor(org.bukkit.DyeColor color)
public void setPeek(int peek)
Copyright © 2021. All rights reserved.