Package net.citizensnpcs.util
Class NMS
java.lang.Object
net.citizensnpcs.util.NMS
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddEntityToWorld(Entity entity, CreatureSpawnEvent.SpawnReason custom) static voidaddOrRemoveFromPlayerList(Entity entity, boolean remove) static voidattack(LivingEntity attacker, LivingEntity bukkitTarget) static com.mojang.authlib.GameProfilefillProfileProperties(com.mojang.authlib.GameProfile profile, boolean requireSecure) static BlockBreakergetBlockBreaker(Entity entity, Block targetBlock, BlockBreaker.BlockBreakerConfiguration config) static ObjectgetBossBar(Entity entity) static BoundingBoxgetBoundingBox(Entity handle) static BoundingBoxgetCollisionBox(Block block) static Fieldstatic Fieldstatic MethodHandlegetFinalSetter(Class<?> clazz, String field) static MethodHandlegetFinalSetter(Class<?> clazz, String field, boolean log) static MethodHandlegetFirstGetter(Class<?> clazz, Class<?> type) static MethodHandlegetFirstMethodHandle(Class<?> clazz, boolean log, Class<?>... params) static MethodHandlegetFirstSetter(Class<?> clazz, Class<?> type) static MethodHandlegetFirstStaticGetter(Class<?> clazz, Class<?> type) static com.mojang.authlib.GameProfileRepositorystatic MethodHandlestatic MethodHandlestatic floatgetHeadYaw(Entity entity) static doublestatic floatgetHorizontalMovement(Entity bukkitEntity) static Methodstatic MethodHandlegetMethodHandle(Class<?> clazz, String method, boolean log, Class<?>... params) static NPCgetPassengers(Entity entity) static com.mojang.authlib.GameProfilegetProfile(SkullMeta meta) static MethodHandlestatic MethodHandlestatic Stringstatic floatgetSpeedFor(NPC npc) static floatgetStepHeight(Entity entity) getTargetNavigator(Entity entity, Iterable<Vector> dest, NavigatorParameters params) getTargetNavigator(Entity entity, Entity target, NavigatorParameters parameters) getTargetNavigator(Entity entity, Location dest, NavigatorParameters params) static EntitygetVehicle(Entity entity) static floatgetVerticalMovement(Entity bukkitEntity) static doublestatic floatstatic voidgiveReflectiveAccess(Class<?> from, Class<?> to) static booleanisOnGround(Entity entity) static booleanstatic booleanstatic voidload(CommandManager commands) static voidloadBridge(String rev) static voidstatic voidstatic voidstatic voidstatic voidstatic voidopenHorseScreen(Tameable horse, Player equipper) static voidplayAnimation(PlayerAnimation animation, Player player, int radius) static voidplayerTick(Player entity) static voidregisterEntityClass(Class<?> clazz) static voidstatic voidremoveFromServerPlayerList(Player player) static voidremoveFromWorld(Entity entity) static voidremoveHookIfNecessary(NPCRegistry npcRegistry, FishHook entity) static voidreplaceTrackerEntry(Player player) static voidsendPositionUpdate(Player excluding, Entity from, Location storedLocation) static voidsendTabListAdd(Player recipient, Player listPlayer) static voidsendTabListRemove(Player recipient, Collection<? extends SkinnableEntity> skinnableNPCs) static voidsendTabListRemove(Player recipient, Player listPlayer) static voidsendTeamPacket(Player recipient, Team team, int mode) static voidsetBodyYaw(Entity entity, float yaw) static voidsetDestination(Entity entity, double x, double y, double z, float speed) static voidsetEndermanAngry(Enderman enderman, boolean angry) static voidsetHeadYaw(Entity entity, float yaw) static voidsetKnockbackResistance(LivingEntity entity, double d) static voidsetLyingDown(Entity cat, boolean lying) static voidsetNavigationTarget(Entity handle, Entity target, float speed) static voidsetNoGravity(Entity entity, boolean enabled) static voidsetPandaSitting(Entity entity, boolean sitting) static voidsetPeekShulker(Entity entity, int peek) static voidsetPolarBearRearing(Entity entity, boolean rearing) static voidsetProfile(SkullMeta meta, com.mojang.authlib.GameProfile profile) static voidsetShouldJump(Entity entity) static voidsetSitting(Ocelot ocelot, boolean sitting) static voidsetSitting(Tameable tameable, boolean sitting) static voidsetSneaking(Entity entity, boolean sneaking) static voidsetStepHeight(Entity entity, float height) static voidsetTeamNameTagVisible(Team team, boolean visible) static voidsetVerticalMovement(Entity bukkitEntity, double d) static voidsetWitherCharged(Wither wither, boolean charged) static booleanshouldJump(Entity entity) static voidshutdown()static booleanstatic voidstatic voidstatic voidupdateNavigationWorld(Entity entity, World world) static voidupdatePathfindingRange(NPC npc, float pathfindingRange)
-
Method Details
-
addEntityToWorld
-
addOrRemoveFromPlayerList
-
attack
-
fillProfileProperties
public static com.mojang.authlib.GameProfile fillProfileProperties(com.mojang.authlib.GameProfile profile, boolean requireSecure) throws Throwable - Throws:
Throwable
-
getBlockBreaker
public static BlockBreaker getBlockBreaker(Entity entity, Block targetBlock, BlockBreaker.BlockBreakerConfiguration config) -
getBossBar
-
getBoundingBox
-
getCollisionBox
-
getField
-
getField
-
getFinalSetter
-
getFinalSetter
-
getFirstGetter
-
getFirstMethodHandle
-
getFirstSetter
-
getFirstStaticGetter
-
getGameProfileRepository
public static com.mojang.authlib.GameProfileRepository getGameProfileRepository() -
getGetter
-
getGetter
-
getHeadYaw
-
getHeight
-
getHorizontalMovement
-
getMethod
-
getMethodHandle
public static MethodHandle getMethodHandle(Class<?> clazz, String method, boolean log, Class<?>... params) -
getNPC
-
getPassengers
-
getProfile
-
getSetter
-
getSetter
-
getSound
- Throws:
CommandException
-
getSpeedFor
-
getStepHeight
-
getVehicle
-
getVerticalMovement
-
getWidth
-
getYaw
-
giveReflectiveAccess
-
isOnGround
-
isSolid
-
isValid
-
load
-
loadBridge
- Throws:
Exception
-
loadPlugins
public static void loadPlugins() -
look
-
look
-
look
-
mount
-
openHorseScreen
-
playAnimation
-
playerTick
-
registerEntityClass
-
remove
-
removeFromServerPlayerList
-
removeFromWorld
-
removeHookIfNecessary
-
replaceTrackerEntry
-
sendPositionUpdate
-
sendTabListAdd
-
sendTabListRemove
public static void sendTabListRemove(Player recipient, Collection<? extends SkinnableEntity> skinnableNPCs) -
sendTabListRemove
-
sendTeamPacket
-
setBodyYaw
-
setDestination
-
setEndermanAngry
-
setHeadYaw
-
setKnockbackResistance
-
setLyingDown
-
setNoGravity
-
setPandaSitting
-
setPeekShulker
-
setPolarBearRearing
-
setProfile
-
setShouldJump
-
setSitting
-
setSitting
-
setSneaking
-
setStepHeight
-
setTeamNameTagVisible
-
setVerticalMovement
-
setWitherCharged
-
shouldJump
-
shutdown
public static void shutdown() -
tick
-
trySwim
-
trySwim
-
updatePathfindingRange
-