Fix Java doc comments for tickable interface

This commit is contained in:
LetsGoAway 2024-07-25 13:51:08 +08:00 committed by GitHub
parent 046d287cb9
commit 2da55999a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2022 GeyserMC. http://geysermc.org
* Copyright (c) 2019-2024 GeyserMC. http://geysermc.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@ -26,18 +26,19 @@
package org.geysermc.geyser.entity.type;
/**
* Implemented onto anything that should have code ran every Minecraft tick - 50 milliseconds.
* Implemented onto anything that should have code ran every Minecraft tick.
* By default, the Java server runs at 20 TPS, 50 milliseconds for each tick.
*/
public interface Tickable {
/*
* This function gets called every tick at all times, even when the server requests that the
* game should be frozen. This should be used for updating things that are always
/**
* This function gets called every tick at all times, even when the server requests that
* the game should be frozen. This should be used for updating things that are always
* client side updated on Java, regardless of if the server is frozen or not.
*/
default void drawTick() {
}
/*
/**
* This function gets called every game tick as long as the
* game tick loop isn't frozen.
*/