Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 08:30:12 +01:00
Fix javadoc related errors
Dieser Commit ist enthalten in:
Ursprung
7ca1d1bea6
Commit
e8bf8ff2a0
@ -120,6 +120,9 @@ public class Entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Despawns the entity
|
||||||
|
*
|
||||||
|
* @param session The GeyserSession
|
||||||
* @return can be deleted
|
* @return can be deleted
|
||||||
*/
|
*/
|
||||||
public boolean despawnEntity(GeyserSession session) {
|
public boolean despawnEntity(GeyserSession session) {
|
||||||
@ -234,6 +237,7 @@ public class Entity {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* x = Pitch, y = HeadYaw, z = Yaw
|
* x = Pitch, y = HeadYaw, z = Yaw
|
||||||
|
* @return the bedrock rotation
|
||||||
*/
|
*/
|
||||||
public Vector3f getBedrockRotation() {
|
public Vector3f getBedrockRotation() {
|
||||||
return Vector3f.from(rotation.getY(), rotation.getZ(), rotation.getX());
|
return Vector3f.from(rotation.getY(), rotation.getZ(), rotation.getX());
|
||||||
|
@ -46,7 +46,7 @@ public class BlockStateValues {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines if the block state contains Bedrock block information
|
* Determines if the block state contains Bedrock block information
|
||||||
* @param entry The String -> JsonNode map used in BlockTranslator
|
* @param entry The String to JsonNode map used in BlockTranslator
|
||||||
* @param javaBlockState the Java Block State of the block
|
* @param javaBlockState the Java Block State of the block
|
||||||
*/
|
*/
|
||||||
public static void storeBlockStateValues(Map.Entry<String, JsonNode> entry, BlockState javaBlockState) {
|
public static void storeBlockStateValues(Map.Entry<String, JsonNode> entry, BlockState javaBlockState) {
|
||||||
|
@ -30,16 +30,22 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
|
|
||||||
@Retention(value = RetentionPolicy.RUNTIME)
|
@Retention(value = RetentionPolicy.RUNTIME)
|
||||||
public @interface BlockEntity {
|
public @interface BlockEntity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to delay the sending of the block entity
|
* Whether to delay the sending of the block entity
|
||||||
|
* @return the delay for when sending the block entity
|
||||||
*/
|
*/
|
||||||
boolean delay();
|
boolean delay();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The block entity name
|
* The block entity name
|
||||||
|
* @return the name of the block entity
|
||||||
*/
|
*/
|
||||||
String name();
|
String name();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The search term used in BlockTranslator
|
* The search term used in BlockTranslator
|
||||||
|
* @return the search term used in BlockTranslator
|
||||||
*/
|
*/
|
||||||
String regex();
|
String regex();
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,8 @@ public class Objective {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* /!\ This method is made for temporary objectives until the real objective is received
|
* /!\ This method is made for temporary objectives until the real objective is received
|
||||||
|
* @param scoreboard the scoreboard
|
||||||
|
* @param objectiveName the name of the objective
|
||||||
*/
|
*/
|
||||||
public Objective(Scoreboard scoreboard, String objectiveName) {
|
public Objective(Scoreboard scoreboard, String objectiveName) {
|
||||||
this(scoreboard);
|
this(scoreboard);
|
||||||
|
@ -43,7 +43,7 @@ public class FileUtils {
|
|||||||
* @param src File to load
|
* @param src File to load
|
||||||
* @param valueType Class to load file into
|
* @param valueType Class to load file into
|
||||||
* @return The data as the given class
|
* @return The data as the given class
|
||||||
* @throws IOException
|
* @throws IOException if the config could not be loaded
|
||||||
*/
|
*/
|
||||||
public static <T> T loadConfig(File src, Class<T> valueType) throws IOException {
|
public static <T> T loadConfig(File src, Class<T> valueType) throws IOException {
|
||||||
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
|
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
|
||||||
@ -56,7 +56,7 @@ public class FileUtils {
|
|||||||
* @param name File and resource name
|
* @param name File and resource name
|
||||||
* @param fallback Formatting callback
|
* @param fallback Formatting callback
|
||||||
* @return File handle of the specified file
|
* @return File handle of the specified file
|
||||||
* @throws IOException
|
* @throws IOException if the file failed to copy from resource
|
||||||
*/
|
*/
|
||||||
public static File fileOrCopiedFromResource(String name, Function<String, String> fallback) throws IOException {
|
public static File fileOrCopiedFromResource(String name, Function<String, String> fallback) throws IOException {
|
||||||
return fileOrCopiedFromResource(new File(name), name, fallback);
|
return fileOrCopiedFromResource(new File(name), name, fallback);
|
||||||
@ -69,7 +69,7 @@ public class FileUtils {
|
|||||||
* @param name Name of the resource get if needed
|
* @param name Name of the resource get if needed
|
||||||
* @param format Formatting callback
|
* @param format Formatting callback
|
||||||
* @return File handle of the specified file
|
* @return File handle of the specified file
|
||||||
* @throws IOException
|
* @throws IOException if the file failed to copy from resource
|
||||||
*/
|
*/
|
||||||
public static File fileOrCopiedFromResource(File file, String name, Function<String, String> format) throws IOException {
|
public static File fileOrCopiedFromResource(File file, String name, Function<String, String> format) throws IOException {
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
@ -98,7 +98,7 @@ public class FileUtils {
|
|||||||
*
|
*
|
||||||
* @param file File to write to
|
* @param file File to write to
|
||||||
* @param data Data to write to the file
|
* @param data Data to write to the file
|
||||||
* @throws IOException
|
* @throws IOException if the file failed to write
|
||||||
*/
|
*/
|
||||||
public static void writeFile(File file, char[] data) throws IOException {
|
public static void writeFile(File file, char[] data) throws IOException {
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
@ -120,7 +120,7 @@ public class FileUtils {
|
|||||||
*
|
*
|
||||||
* @param name File path to write to
|
* @param name File path to write to
|
||||||
* @param data Data to write to the file
|
* @param data Data to write to the file
|
||||||
* @throws IOException
|
* @throws IOException if the file failed to write
|
||||||
*/
|
*/
|
||||||
public static void writeFile(String name, char[] data) throws IOException {
|
public static void writeFile(String name, char[] data) throws IOException {
|
||||||
writeFile(new File(name), data);
|
writeFile(new File(name), data);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren