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

Simple

this branch is about simple utils

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)

BasicUtils

BookUtils

BungeeCordUtils

FileUtils

InventoryUtils

ItemStackUtils

MathUtils

NameTagUtils

String Utils

TimeUtils


Reflection

this branch is about reflect utils

ReflectionUtils

ConstructorFilter

FieldFilter

MethodFilter


NMS(net.minecraft.server)

this branch is about nms utils

NMSUtils

NBTUtils

This wiki hopes to help you!

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

Clone this wiki locally