Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
Zoyn edited this page Dec 2, 2017 · 8 revisions

Utils

this page will teach you how to play these Utils

Simple

TitleUtils

This util can Easy to send a title

// this method need ProtocolLib
void TitleUtils.sendTitle(Player player, Integer fadeIn, Integer stay, Integer fadeOut, String title, String subTitle);

Example:
  TitleUtils.sendTitle(Bukkit.getPlayer("Zoyn"), 2, 20, 2, "&aBig Title!", "&ehi~");

ActionBarUtils

This util can easy to send an actionbar

// this method need ProtocolLib
void ActionBarUtils.sendBar(Player player, String msg);

Example:
  ActionBarUtils.sendBar(Bukkit.getPlayer("Zoyn"), "&aHey!");

TabUtils

This util can simply set up the player's tab

// this method need ProtocolLib
void setTab(@Nullable Player player, @Nullable String head, @Nullable String foot);

Example:
  TabUtils.setTab(Bukkit.getPlayer("Zoyn"), "&ai'm head!\nummm", "&ei'm foot!");

EntityUtils

Just see methods...

// This method will take the player's nearest player
Player getTargetPlayer(Player player);

// This method takes advantage of the chunk to get the surrounding entities
List<Entity> getNearbyEntitiesList(Location loc, double radius)
// It's like it
Entity[] getNearbyEntitiesArrays(Location loc, double radius)
// This method will return a List<Player>
List<Player> getNearbyPlayersList(Location loc, double radius)

BaiduAPIUtils

BasicUtils

BookUtils

BungeeCordUtils

FileUtils

InventoryUtils

ItemStackUtils

MathUtils

NameTagUtils

NPCUtils

SkinUtils

String Utils

TimeUtils

Serializer

BukkitObjectSerializerUtils

EffectsSerializerUtils

ItemSerializerUtils

Reflection

ReflectionUtils

ConstructorFilter

FieldFilter

MethodFilter

NMS(net.minecraft.server)

NMSUtils

NBTUtils

This wiki hopes to help you!

没有中文教程...自己看代码吧..

Clone this wiki locally