mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix Java doc comments for tickable interface
This commit is contained in:
parent
046d287cb9
commit
2da55999a9
1 changed files with 7 additions and 6 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue