Interface ServerPlayerKJS

All Superinterfaces:
DataSenderKJS, EntityKJS, LivingEntityKJS, MessageSenderKJS, PlayerKJS, ScriptTypeHolder, WithAttachedData<net.minecraft.world.entity.player.Player>, WithPersistentData
All Known Implementing Classes:
ServerPlayerMixin

@RemapPrefixForJS("kjs$") public interface ServerPlayerKJS extends PlayerKJS
  • Method Details

    • kjs$self

      default net.minecraft.server.level.ServerPlayer kjs$self()
      Specified by:
      kjs$self in interface EntityKJS
      Specified by:
      kjs$self in interface LivingEntityKJS
      Specified by:
      kjs$self in interface PlayerKJS
    • kjs$sendData

      default void kjs$sendData(String channel, @Nullable @Nullable net.minecraft.nbt.CompoundTag data)
      Specified by:
      kjs$sendData in interface DataSenderKJS
    • kjs$getStats

      default PlayerStatsJS kjs$getStats()
      Specified by:
      kjs$getStats in interface PlayerKJS
    • kjs$isMiningBlock

      default boolean kjs$isMiningBlock()
      Specified by:
      kjs$isMiningBlock in interface PlayerKJS
    • kjs$setPositionAndRotation

      default void kjs$setPositionAndRotation(double x, double y, double z, float yaw, float pitch)
      Specified by:
      kjs$setPositionAndRotation in interface EntityKJS
    • kjs$setCreativeMode

      default void kjs$setCreativeMode(boolean mode)
    • kjs$isOp

      default boolean kjs$isOp()
    • kjs$kick

      default void kjs$kick(net.minecraft.network.chat.Component reason)
    • kjs$kick

      default void kjs$kick()
    • kjs$ban

      default void kjs$ban(String banner, String reason, long expiresInMillis)
    • kjs$isAdvancementDone

      default boolean kjs$isAdvancementDone(net.minecraft.resources.ResourceLocation id)
    • kjs$unlockAdvancement

      default void kjs$unlockAdvancement(net.minecraft.resources.ResourceLocation id)
    • kjs$revokeAdvancement

      default void kjs$revokeAdvancement(net.minecraft.resources.ResourceLocation id)
    • kjs$setSelectedSlot

      default void kjs$setSelectedSlot(int index)
      Specified by:
      kjs$setSelectedSlot in interface PlayerKJS
    • kjs$setMouseItem

      default void kjs$setMouseItem(net.minecraft.world.item.ItemStack item)
      Specified by:
      kjs$setMouseItem in interface PlayerKJS
    • kjs$getSpawnLocation

      @Nullable default @Nullable LevelBlock kjs$getSpawnLocation()
    • kjs$setSpawnLocation

      default void kjs$setSpawnLocation(LevelBlock c)
    • kjs$notify

      default void kjs$notify(NotificationToastData builder)
      Specified by:
      kjs$notify in interface PlayerKJS
    • kjs$openChestGUI

      default void kjs$openChestGUI(Consumer<KubeJSGUI> gui)
    • kjs$openInventoryGUI

      default void kjs$openInventoryGUI(InventoryKJS inventory, net.minecraft.network.chat.Component title)
    • kjs$openInventoryGUI

      default void kjs$openInventoryGUI(InventoryKJS inventory, net.minecraft.network.chat.Component title, int columns)
    • kjs$openInventoryGUI

      default void kjs$openInventoryGUI(InventoryKJS inventory, net.minecraft.network.chat.Component title, int columns, int rows)
    • kjs$captureInventory

      default net.minecraft.world.Container kjs$captureInventory(boolean autoRestore)
    • kjs$openChestGUI

      default void kjs$openChestGUI(net.minecraft.network.chat.Component title, int rows, Consumer<ChestMenuData> gui)
    • kjs$heal

      default void kjs$heal()
    • kjs$setActivePostShader

      default void kjs$setActivePostShader(@Nullable @Nullable net.minecraft.resources.ResourceLocation id)
      Specified by:
      kjs$setActivePostShader in interface MessageSenderKJS