Interface NMSBridge


public interface NMSBridge
  • Method Details

    • activate

      default void activate(Entity entity)
    • addEntityToWorld

      boolean addEntityToWorld(Entity entity, CreatureSpawnEvent.SpawnReason custom)
    • addOrRemoveFromPlayerList

      void addOrRemoveFromPlayerList(Entity entity, boolean remove)
    • attack

      void attack(LivingEntity attacker, LivingEntity target)
    • cancelMoveDestination

      void cancelMoveDestination(Entity entity)
    • createBundlePacket

      default Iterable<Object> createBundlePacket(List<Object> packets)
    • 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

      default Object getBossBar(Entity entity)
    • getBoundingBox

      BoundingBox getBoundingBox(Entity handle)
    • getBoundingBoxHeight

      default double getBoundingBoxHeight(Entity entity)
    • getCollisionBox

      BoundingBox getCollisionBox(Block block)
    • getComponentMap

      default Map<String,Object> getComponentMap(ItemStack item)
    • getDestination

      Location getDestination(Entity entity)
    • getGameProfileRepository

      com.mojang.authlib.GameProfileRepository getGameProfileRepository()
    • getHeadYaw

      float getHeadYaw(Entity entity)
    • getHorizontalMovement

      float getHorizontalMovement(Entity entity)
    • getPacketTracker

      EntityPacketTracker getPacketTracker(Entity entity)
    • getPassengers

      List<Entity> getPassengers(Entity entity)
    • getProfile

      com.mojang.authlib.GameProfile getProfile(Player player)
    • getProfile

      com.mojang.authlib.GameProfile getProfile(SkullMeta meta)
    • getRidingHeightOffset

      default float getRidingHeightOffset(Entity entity, Entity mount)
    • getSoundPath

      String getSoundPath(Sound flag) throws CommandException
      Throws:
      CommandException
    • getSource

      Entity getSource(BlockCommandSender sender)
    • getSpeedFor

      float getSpeedFor(NPC npc)
    • getStepHeight

      float getStepHeight(Entity entity)
    • getTargetNavigator

      MCTargetStrategy.TargetNavigator getTargetNavigator(Entity handle, Entity target, NavigatorParameters parameters)
    • getTargetNavigator

      MCNavigationStrategy.MCNavigator getTargetNavigator(Entity entity, Iterable<Vector> dest, NavigatorParameters params)
    • getTargetNavigator

      MCNavigationStrategy.MCNavigator getTargetNavigator(Entity entity, Location dest, NavigatorParameters params)
    • getVehicle

      Entity getVehicle(Entity entity)
    • getVerticalMovement

      float getVerticalMovement(Entity entity)
    • getViewingPlayers

      default Collection<Player> getViewingPlayers(Entity entity)
    • getWidth

      double getWidth(Entity entity)
    • getYaw

      float getYaw(Entity entity)
    • isOnGround

      boolean isOnGround(Entity entity)
    • isSneaking

      default boolean isSneaking(Entity entity)
    • isSolid

      boolean isSolid(Block in)
    • isValid

      boolean isValid(Entity entity)
    • load

      void load(CommandManager commands)
    • look

      void look(Entity from, Entity to)
    • look

      void look(Entity entity, float yaw, float pitch)
    • look

      void look(Entity entity, Location to, boolean headOnly, boolean immediate)
    • markPoseDirty

      default void markPoseDirty(Entity tracker)
    • mount

      void mount(Entity entity, Entity passenger)
    • onPlayerInfoAdd

      default void onPlayerInfoAdd(Player player, Object source, Function<UUID,MirrorTrait> mirrorTraits)
    • openAnvilInventory

      InventoryView openAnvilInventory(Player player, Inventory anvil, String title)
    • openHorseInventory

      void openHorseInventory(Tameable horse, Player equipper)
    • playAnimation

      void playAnimation(PlayerAnimation animation, Player player, Iterable<Player> to)
    • playerTicker

      Runnable playerTicker(NPC npc, Player entity)
    • positionInteractionText

      default void positionInteractionText(Player player, Entity interaction, Entity mount, double height)
    • registerEntityClass

      void registerEntityClass(Class<?> clazz)
    • remove

      void remove(Entity entity)
    • removeFromServerPlayerList

      void removeFromServerPlayerList(Player player)
    • removeFromWorld

      void removeFromWorld(Entity entity)
    • removeHookIfNecessary

      void removeHookIfNecessary(FishHook entity)
    • replaceTrackerEntry

      void replaceTrackerEntry(Entity entity)
    • sendPositionUpdate

      void sendPositionUpdate(Entity from, Collection<Player> to, boolean position, Float bodyYaw, Float pitch, Float headYaw)
    • sendTabListAdd

      boolean sendTabListAdd(Player recipient, Player listPlayer)
    • sendTabListRemove

      void sendTabListRemove(Player recipient, Collection<Player> players)
    • sendTeamPacket

      void sendTeamPacket(Player recipient, Team team, int mode)
    • setAggressive

      default void setAggressive(Entity entity, boolean aggro)
    • setAllayDancing

      default void setAllayDancing(Entity entity, boolean dancing)
    • setArmadilloState

      default void setArmadilloState(Entity entity, ArmadilloTrait.ArmadilloState state)
    • setBodyYaw

      void setBodyYaw(Entity entity, float yaw)
    • setBoundingBox

      void setBoundingBox(Entity entity, BoundingBox box)
    • setCamelPose

      default void setCamelPose(Entity entity, CamelTrait.CamelPose pose)
    • setCustomName

      void setCustomName(Entity entity, Object component, String string)
    • setDestination

      void setDestination(Entity entity, double x, double y, double z, float speed)
    • setDimensions

      void setDimensions(Entity entity, EntityDim desired)
    • setEndermanAngry

      void setEndermanAngry(Enderman enderman, boolean angry)
    • setHeadAndBodyYaw

      void setHeadAndBodyYaw(Entity entity, float yaw)
    • setHeadYaw

      void setHeadYaw(Entity entity, float yaw)
    • setKnockbackResistance

      void setKnockbackResistance(LivingEntity entity, double d)
    • setLocationDirectly

      void setLocationDirectly(Entity entity, Location location)
    • setLyingDown

      default void setLyingDown(Entity cat, boolean lying)
    • setNavigationTarget

      void setNavigationTarget(Entity handle, Entity target, float speed)
    • setNavigationType

      void setNavigationType(Entity entity, NMS.MinecraftNavigationType type)
    • setNoGravity

      void setNoGravity(Entity entity, boolean nogravity)
    • setPandaSitting

      default void setPandaSitting(Entity entity, boolean sitting)
    • setPeekShulker

      default void setPeekShulker(Entity entity, int peek)
    • setPiglinDancing

      default void setPiglinDancing(Entity entity, boolean dancing)
    • setPitch

      void setPitch(Entity entity, float pitch)
    • setPolarBearRearing

      default void setPolarBearRearing(Entity entity, boolean rearing)
    • setPose

      default void setPose(Entity entity, EntityPoseTrait.EntityPose pose)
    • setProfile

      void setProfile(SkullMeta meta, com.mojang.authlib.GameProfile profile)
    • setShouldJump

      void setShouldJump(Entity entity)
    • setSitting

      void setSitting(Ocelot ocelot, boolean sitting)
    • setSitting

      void setSitting(Tameable tameable, boolean sitting)
    • setSneaking

      default void setSneaking(Entity entity, boolean sneaking)
    • setSnifferState

      default void setSnifferState(Entity entity, SnifferTrait.SnifferState state)
    • setStepHeight

      void setStepHeight(Entity entity, float height)
    • setTeamNameTagVisible

      default void setTeamNameTagVisible(Team team, boolean visible)
    • setTextDisplayComponent

      default void setTextDisplayComponent(Entity entity, Object component)
    • setVerticalMovement

      void setVerticalMovement(Entity bukkitEntity, double d)
    • setWardenPose

      default void setWardenPose(Entity entity, Object pose)
    • setWitherInvulnerableTicks

      default void setWitherInvulnerableTicks(Wither wither, int ticks)
    • shouldJump

      boolean shouldJump(Entity entity)
    • shutdown

      void shutdown()
    • sleep

      void sleep(Player entity, boolean sleep)
    • trySwim

      void trySwim(Entity entity)
    • trySwim

      void trySwim(Entity entity, float power)
    • updateInventoryTitle

      void updateInventoryTitle(Player player, SpigotUtil.InventoryViewAPI view, String newTitle)
    • updateNavigationWorld

      void updateNavigationWorld(Entity entity, World world)
    • updatePathfindingRange

      void updatePathfindingRange(NPC npc, float pathfindingRange)