Class BookEditCache
java.lang.Object
org.geysermc.geyser.session.cache.BookEditCache
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Check to see if there is a book edit update to send, and if so, send it.void
setPacket(com.github.steveice10.mc.protocol.packet.ingame.serverbound.inventory.ServerboundEditBookPacket packet)
-
Constructor Details
-
BookEditCache
-
-
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)
-