Class BookEditCache

java.lang.Object
org.geysermc.geyser.session.cache.BookEditCache

public class BookEditCache extends Object
Manages updating the current writable book. Java sends book updates less frequently than Bedrock, and this can cause issues with servers that rate limit book packets. Because of this, we need to ensure packets are only send every second or so at maximum.
  • Constructor Details

  • Method Details

    • checkForSend

      public void checkForSend()
      Check to see if there is a book edit update to send, and if so, send it.
    • setPacket

      public void setPacket(com.github.steveice10.mc.protocol.packet.ingame.serverbound.inventory.ServerboundEditBookPacket packet)