public class NMS extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
addEntityToWorld(Entity entity,
CreatureSpawnEvent.SpawnReason custom) |
static void |
addOrRemoveFromPlayerList(Entity entity,
boolean remove) |
static void |
attack(LivingEntity attacker,
LivingEntity bukkitTarget) |
static com.mojang.authlib.GameProfile |
fillProfileProperties(com.mojang.authlib.GameProfile profile,
boolean requireSecure) |
static net.citizensnpcs.api.npc.BlockBreaker |
getBlockBreaker(Entity entity,
Block targetBlock,
net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration config) |
static BoundingBox |
getBoundingBox(Entity handle) |
static Field |
getField(Class<?> clazz,
String field) |
static Field |
getField(Class<?> clazz,
String field,
boolean log) |
static Field |
getFinalField(Class<?> clazz,
String field) |
static Field |
getFinalField(Class<?> clazz,
String field,
boolean log) |
static java.lang.invoke.MethodHandle |
getFinalSetter(Class<?> clazz,
String field) |
static java.lang.invoke.MethodHandle |
getFinalSetter(Class<?> clazz,
String field,
boolean log) |
static com.mojang.authlib.GameProfileRepository |
getGameProfileRepository() |
static java.lang.invoke.MethodHandle |
getGetter(Class<?> clazz,
String name) |
static java.lang.invoke.MethodHandle |
getGetter(Class<?> clazz,
String name,
boolean log) |
static float |
getHeadYaw(Entity entity) |
static float |
getHorizontalMovement(Entity bukkitEntity) |
static Method |
getMethod(Class<?> clazz,
String method,
boolean log,
Class<?>... params) |
static java.lang.invoke.MethodHandle |
getMethodHandle(Class<?> clazz,
String method,
boolean log,
Class<?>... params) |
static net.citizensnpcs.api.npc.NPC |
getNPC(Entity entity) |
static List<Entity> |
getPassengers(Entity entity) |
static com.mojang.authlib.GameProfile |
getProfile(SkullMeta meta) |
static java.lang.invoke.MethodHandle |
getSetter(Class<?> clazz,
String name) |
static java.lang.invoke.MethodHandle |
getSetter(Class<?> clazz,
String name,
boolean log) |
static String |
getSound(String flag) |
static float |
getSpeedFor(net.citizensnpcs.api.npc.NPC npc) |
static float |
getStepHeight(Entity entity) |
static MCTargetStrategy.TargetNavigator |
getTargetNavigator(Entity entity,
Entity target,
net.citizensnpcs.api.ai.NavigatorParameters parameters) |
static MCNavigationStrategy.MCNavigator |
getTargetNavigator(Entity entity,
Iterable<Vector> dest,
net.citizensnpcs.api.ai.NavigatorParameters params) |
static MCNavigationStrategy.MCNavigator |
getTargetNavigator(Entity entity,
Location dest,
net.citizensnpcs.api.ai.NavigatorParameters params) |
static Entity |
getVehicle(Entity entity) |
static float |
getVerticalMovement(Entity bukkitEntity) |
static boolean |
isOnGround(Entity entity) |
static void |
load(net.citizensnpcs.api.command.CommandManager commands) |
static void |
loadBridge(String rev) |
static void |
loadPlugins() |
static void |
look(Entity bhandle,
Entity btarget) |
static void |
look(Entity entity,
float yaw,
float pitch) |
static void |
look(Entity entity,
Location to,
boolean headOnly,
boolean immediate) |
static void |
mount(Entity entity,
Entity passenger) |
static void |
openHorseScreen(Tameable horse,
Player equipper) |
static void |
playAnimation(PlayerAnimation animation,
Player player,
int radius) |
static void |
registerEntityClass(Class<?> clazz) |
static void |
remove(Entity entity) |
static void |
removeFromServerPlayerList(Player player) |
static void |
removeFromWorld(Entity entity) |
static void |
removeHookIfNecessary(net.citizensnpcs.api.npc.NPCRegistry npcRegistry,
FishHook entity) |
static void |
replaceTrackerEntry(Player player) |
static void |
sendPositionUpdate(Player excluding,
Entity from,
Location storedLocation) |
static void |
sendTabListAdd(Player recipient,
Player listPlayer) |
static void |
sendTabListRemove(Player recipient,
Collection<? extends SkinnableEntity> skinnableNPCs) |
static void |
sendTabListRemove(Player recipient,
Player listPlayer) |
static void |
setDestination(Entity entity,
double x,
double y,
double z,
float speed) |
static void |
setDummyAdvancement(Player entity) |
static void |
setHeadYaw(Entity entity,
float yaw) |
static void |
setKnockbackResistance(LivingEntity entity,
double d) |
static void |
setNavigationTarget(Entity handle,
Entity target,
float speed) |
static void |
setPeekShulker(Entity entity,
int peek) |
static void |
setProfile(SkullMeta meta,
com.mojang.authlib.GameProfile profile) |
static void |
setShouldJump(Entity entity) |
static void |
setSitting(Ocelot ocelot,
boolean sitting) |
static void |
setSitting(Tameable tameable,
boolean sitting) |
static void |
setStepHeight(Entity entity,
float height) |
static void |
setVerticalMovement(Entity bukkitEntity,
double d) |
static void |
setWitherCharged(Wither wither,
boolean charged) |
static boolean |
shouldJump(Entity entity) |
static void |
shutdown() |
static boolean |
tick(Entity next) |
static void |
trySwim(Entity entity) |
static void |
trySwim(Entity entity,
float power) |
static void |
updateNavigationWorld(Entity entity,
World world) |
static void |
updatePathfindingRange(net.citizensnpcs.api.npc.NPC npc,
float pathfindingRange) |
public static boolean addEntityToWorld(Entity entity, CreatureSpawnEvent.SpawnReason custom)
public static void addOrRemoveFromPlayerList(Entity entity, boolean remove)
public static void attack(LivingEntity attacker, LivingEntity bukkitTarget)
public static com.mojang.authlib.GameProfile fillProfileProperties(com.mojang.authlib.GameProfile profile, boolean requireSecure) throws Throwable
Throwable
public static net.citizensnpcs.api.npc.BlockBreaker getBlockBreaker(Entity entity, Block targetBlock, net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration config)
public static BoundingBox getBoundingBox(Entity handle)
public static java.lang.invoke.MethodHandle getFinalSetter(Class<?> clazz, String field)
public static java.lang.invoke.MethodHandle getFinalSetter(Class<?> clazz, String field, boolean log)
public static com.mojang.authlib.GameProfileRepository getGameProfileRepository()
public static java.lang.invoke.MethodHandle getGetter(Class<?> clazz, String name)
public static java.lang.invoke.MethodHandle getGetter(Class<?> clazz, String name, boolean log)
public static float getHeadYaw(Entity entity)
public static float getHorizontalMovement(Entity bukkitEntity)
public static Method getMethod(Class<?> clazz, String method, boolean log, Class<?>... params)
public static java.lang.invoke.MethodHandle getMethodHandle(Class<?> clazz, String method, boolean log, Class<?>... params)
public static net.citizensnpcs.api.npc.NPC getNPC(Entity entity)
public static com.mojang.authlib.GameProfile getProfile(SkullMeta meta)
public static java.lang.invoke.MethodHandle getSetter(Class<?> clazz, String name)
public static java.lang.invoke.MethodHandle getSetter(Class<?> clazz, String name, boolean log)
public static String getSound(String flag) throws net.citizensnpcs.api.command.exception.CommandException
net.citizensnpcs.api.command.exception.CommandException
public static float getSpeedFor(net.citizensnpcs.api.npc.NPC npc)
public static float getStepHeight(Entity entity)
public static MCNavigationStrategy.MCNavigator getTargetNavigator(Entity entity, Iterable<Vector> dest, net.citizensnpcs.api.ai.NavigatorParameters params)
public static MCNavigationStrategy.MCNavigator getTargetNavigator(Entity entity, Location dest, net.citizensnpcs.api.ai.NavigatorParameters params)
public static MCTargetStrategy.TargetNavigator getTargetNavigator(Entity entity, Entity target, net.citizensnpcs.api.ai.NavigatorParameters parameters)
public static float getVerticalMovement(Entity bukkitEntity)
public static boolean isOnGround(Entity entity)
public static void load(net.citizensnpcs.api.command.CommandManager commands)
public static void loadPlugins()
public static void look(Entity entity, float yaw, float pitch)
public static void playAnimation(PlayerAnimation animation, Player player, int radius)
public static void registerEntityClass(Class<?> clazz)
public static void remove(Entity entity)
public static void removeFromServerPlayerList(Player player)
public static void removeFromWorld(Entity entity)
public static void removeHookIfNecessary(net.citizensnpcs.api.npc.NPCRegistry npcRegistry, FishHook entity)
public static void replaceTrackerEntry(Player player)
public static void sendPositionUpdate(Player excluding, Entity from, Location storedLocation)
public static void sendTabListRemove(Player recipient, Collection<? extends SkinnableEntity> skinnableNPCs)
public static void setDestination(Entity entity, double x, double y, double z, float speed)
public static void setDummyAdvancement(Player entity)
public static void setHeadYaw(Entity entity, float yaw)
public static void setKnockbackResistance(LivingEntity entity, double d)
public static void setNavigationTarget(Entity handle, Entity target, float speed)
public static void setPeekShulker(Entity entity, int peek)
public static void setProfile(SkullMeta meta, com.mojang.authlib.GameProfile profile)
public static void setShouldJump(Entity entity)
public static void setSitting(Ocelot ocelot, boolean sitting)
public static void setSitting(Tameable tameable, boolean sitting)
public static void setStepHeight(Entity entity, float height)
public static void setVerticalMovement(Entity bukkitEntity, double d)
public static void setWitherCharged(Wither wither, boolean charged)
public static boolean shouldJump(Entity entity)
public static void shutdown()
public static boolean tick(Entity next)
public static void trySwim(Entity entity)
public static void trySwim(Entity entity, float power)
public static void updatePathfindingRange(net.citizensnpcs.api.npc.NPC npc, float pathfindingRange)
Copyright © 2019. All rights reserved.