Package net.citizensnpcs.util
Interface NMSBridge
public interface NMSBridge
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
boolean
addEntityToWorld
(Entity entity, CreatureSpawnEvent.SpawnReason custom) void
addOrRemoveFromPlayerList
(Entity entity, boolean remove) void
attack
(LivingEntity attacker, LivingEntity target) void
cancelMoveDestination
(Entity entity) createBundlePacket
(List<Object> packets) com.mojang.authlib.GameProfile
fillProfileProperties
(com.mojang.authlib.GameProfile profile, boolean requireSecure) getBlockBreaker
(Entity entity, Block targetBlock, BlockBreaker.BlockBreakerConfiguration config) default Object
getBossBar
(Entity entity) getBoundingBox
(Entity handle) default double
getBoundingBoxHeight
(Entity entity) default BoundingBox
getCollisionBox
(Object blockdata) getCollisionBox
(Block block) getComponentMap
(ItemStack item) getDestination
(Entity entity) float
getForwardBackwardMovement
(Entity entity) com.mojang.authlib.GameProfileRepository
float
getHeadYaw
(Entity entity) getPacketTracker
(Entity entity) getPassengers
(Entity entity) com.mojang.authlib.GameProfile
getProfile
(Player player) com.mojang.authlib.GameProfile
getProfile
(SkullMeta meta) default float
getRidingHeightOffset
(Entity entity, Entity mount) getSoundPath
(Sound flag) getSource
(BlockCommandSender sender) float
getSpeedFor
(NPC npc) float
getStepHeight
(Entity entity) getTargetNavigator
(Entity entity, Iterable<Vector> dest, NavigatorParameters params) getTargetNavigator
(Entity handle, Entity target, NavigatorParameters parameters) getTargetNavigator
(Entity entity, Location dest, NavigatorParameters params) getVehicle
(Entity entity) default Collection
<Player> getViewingPlayers
(Entity entity) double
float
getXZMovement
(Entity entity) float
boolean
isOnGround
(Entity entity) default boolean
isSneaking
(Entity entity) boolean
default boolean
isSprinting
(Entity entity) boolean
void
load
(CommandManager commands) void
void
void
default void
markPoseDirty
(Entity tracker) void
default void
onPlayerInfoAdd
(Player player, Object source, Function<UUID, MirrorTrait> mirrorTraits) openAnvilInventory
(Player player, Inventory anvil, String title) void
openHorseInventory
(Tameable horse, Player equipper) void
playAnimation
(PlayerAnimation animation, Player player, Iterable<Player> to) playerTicker
(NPC npc, Player entity) default void
positionInteractionText
(Player player, Entity interaction, Entity mount, double height) void
registerEntityClass
(Class<?> clazz, Object type) void
void
removeFromServerPlayerList
(Player player) void
removeFromWorld
(Entity entity) void
removeHookIfNecessary
(FishHook entity) void
replaceTrackerEntry
(Entity entity) void
sendPositionUpdate
(Entity from, Collection<Player> to, boolean position, Float bodyYaw, Float pitch, Float headYaw) boolean
sendTabListAdd
(Player recipient, Player listPlayer) void
sendTabListRemove
(Player recipient, Collection<Player> players) void
sendTeamPacket
(Player recipient, Team team, int mode) default void
setAggressive
(Entity entity, boolean aggro) default void
setAllayDancing
(Entity entity, boolean dancing) default void
setArmadilloState
(Entity entity, ArmadilloTrait.ArmadilloState state) void
setBodyYaw
(Entity entity, float yaw) void
setBoundingBox
(Entity entity, BoundingBox box) default void
setCamelPose
(Entity entity, CamelTrait.CamelPose pose) void
setCustomName
(Entity entity, Object component, String string) void
setDestination
(Entity entity, double x, double y, double z, float speed) void
setDimensions
(Entity entity, EntityDim desired) void
setEndermanAngry
(Enderman enderman, boolean angry) void
setHeadAndBodyYaw
(Entity entity, float yaw) void
setHeadYaw
(Entity entity, float yaw) void
setKnockbackResistance
(LivingEntity entity, double d) void
setLocationDirectly
(Entity entity, Location location) default void
setLyingDown
(Entity cat, boolean lying) void
setNavigationTarget
(Entity handle, Entity target, float speed) void
setNavigationType
(Entity entity, NMS.MinecraftNavigationType type) void
setNoGravity
(Entity entity, boolean nogravity) void
setOpWithoutSaving
(Player player, boolean op) default void
setPandaSitting
(Entity entity, boolean sitting) default void
setPeekShulker
(Entity entity, int peek) default void
setPiglinDancing
(Entity entity, boolean dancing) void
default void
setPolarBearRearing
(Entity entity, boolean rearing) default void
setPose
(Entity entity, EntityPoseTrait.EntityPose pose) void
setProfile
(SkullMeta meta, com.mojang.authlib.GameProfile profile) void
setShouldJump
(Entity entity) void
setSitting
(Ocelot ocelot, boolean sitting) void
setSitting
(Tameable tameable, boolean sitting) default void
setSneaking
(Entity entity, boolean sneaking) default void
setSnifferState
(Entity entity, SnifferTrait.SnifferState state) void
setStepHeight
(Entity entity, float height) default void
setTeamNameTagVisible
(Team team, boolean visible) default void
setTextDisplayComponent
(Entity entity, Object component) void
setVerticalMovement
(Entity bukkitEntity, double d) default void
setWardenPose
(Entity entity, Object pose) default void
setWitherInvulnerableTicks
(Wither wither, int ticks) boolean
shouldJump
(Entity entity) void
shutdown()
void
void
void
void
updateInventoryTitle
(Player player, SpigotUtil.InventoryViewAPI view, String newTitle) void
updateNavigationWorld
(Entity entity, World world) void
updatePathfindingRange
(NPC npc, float pathfindingRange)
-
Method Details
-
activate
-
addEntityToWorld
-
addOrRemoveFromPlayerList
-
attack
-
cancelMoveDestination
-
createBundlePacket
-
createPacketTracker
-
fillProfileProperties
com.mojang.authlib.GameProfile fillProfileProperties(com.mojang.authlib.GameProfile profile, boolean requireSecure) throws Throwable - Throws:
Throwable
-
getBlockBreaker
BlockBreaker getBlockBreaker(Entity entity, Block targetBlock, BlockBreaker.BlockBreakerConfiguration config) -
getBossBar
-
getBoundingBox
-
getBoundingBoxHeight
-
getCollisionBox
-
getCollisionBox
-
getComponentMap
-
getDestination
-
getGameProfileRepository
com.mojang.authlib.GameProfileRepository getGameProfileRepository() -
getHeadYaw
-
getForwardBackwardMovement
-
getPacketTracker
-
getPassengers
-
getProfile
-
getProfile
-
getRidingHeightOffset
-
getSoundPath
- Throws:
CommandException
-
getSource
-
getSpeedFor
-
getStepHeight
-
getVehicle
-
getXZMovement
-
getViewingPlayers
-
getWidth
-
getYaw
-
isOnGround
-
isSneaking
-
isSolid
-
isSprinting
-
isValid
-
load
-
look
-
look
-
look
-
markPoseDirty
-
mount
-
onPlayerInfoAdd
-
openAnvilInventory
-
openHorseInventory
-
playAnimation
-
playerTicker
-
positionInteractionText
-
registerEntityClass
-
remove
-
removeFromServerPlayerList
-
removeFromWorld
-
removeHookIfNecessary
-
replaceTrackerEntry
-
sendPositionUpdate
-
sendTabListAdd
-
sendTabListRemove
-
sendTeamPacket
-
setAggressive
-
setAllayDancing
-
setArmadilloState
-
setBodyYaw
-
setBoundingBox
-
setCamelPose
-
setCustomName
-
setDestination
-
setDimensions
-
setEndermanAngry
-
setHeadAndBodyYaw
-
setHeadYaw
-
setKnockbackResistance
-
setLocationDirectly
-
setLyingDown
-
setNoGravity
-
setOpWithoutSaving
-
setPandaSitting
-
setPeekShulker
-
setPiglinDancing
-
setPitch
-
setPolarBearRearing
-
setPose
-
setProfile
-
setShouldJump
-
setSitting
-
setSitting
-
setSneaking
-
setSnifferState
-
setStepHeight
-
setTeamNameTagVisible
-
setTextDisplayComponent
-
setVerticalMovement
-
setWardenPose
-
setWitherInvulnerableTicks
-
shouldJump
-
shutdown
void shutdown() -
sleep
-
trySwim
-
trySwim
-
updateInventoryTitle
-
updatePathfindingRange
-