diff --git a/build.gradle b/build.gradle index fe8a2e7b..7c72b046 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1675110695 +//version: 1675164841 /* DO NOT CHANGE THIS FILE! Also, you may replace this file at any time if there is an update available. @@ -66,7 +66,7 @@ plugins { id 'com.diffplug.spotless' version '6.7.2' apply false id 'com.modrinth.minotaur' version '2.+' apply false id 'com.matthewprenger.cursegradle' version '1.4.0' apply false - id 'com.gtnewhorizons.retrofuturagradle' version '1.1.2' + id 'com.gtnewhorizons.retrofuturagradle' version '1.1.3' } boolean settingsupdated = verifySettingsGradle() settingsupdated = verifyGitAttributes() || settingsupdated diff --git a/src/main/java/com/gtnewhorizon/gtnhlib/reflect/Fields.java b/src/main/java/com/gtnewhorizon/gtnhlib/reflect/Fields.java index 4d477f0f..6caaae03 100644 --- a/src/main/java/com/gtnewhorizon/gtnhlib/reflect/Fields.java +++ b/src/main/java/com/gtnewhorizon/gtnhlib/reflect/Fields.java @@ -1,3 +1,9 @@ +/* + * GTNHLib Fields helper - A Java 8-19 compatible reflection helper for unsafe accesses to fields. Written in 2023 by + * Raven Szewczyk To the extent possible under law, the author(s) have dedicated all copyright and related and + * neighboring rights to this software to the public domain worldwide. This software is distributed without any + * warranty. See for the detailed license. + */ package com.gtnewhorizon.gtnhlib.reflect; import java.lang.invoke.MethodHandle; @@ -119,7 +125,7 @@ public class Fields { /** * Looks up a field in the class using the reflection API and provides non-type-safe accessors to it. - * + * * @param strategy The lookup strategy, see {@link LookupType} * @param name Name of the field we are searching for * @return A field wrapper for the found field, or null if not found. @@ -137,7 +143,7 @@ public class Fields { /** * Looks up a field in the class using the reflection API and provides type-safe accessors to it. - * + * * @param strategy The lookup strategy, see {@link LookupType} * @param name Name of the field we are searching for * @param expectedType The type we want to access the field as @@ -158,7 +164,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getBooleanField(@Nonnull LookupType strategy, @Nonnull String name) { @@ -174,7 +180,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getByteField(@Nonnull LookupType strategy, @Nonnull String name) { @@ -190,7 +196,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getShortField(@Nonnull LookupType strategy, @Nonnull String name) { @@ -206,7 +212,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getIntField(@Nonnull LookupType strategy, @Nonnull String name) { @@ -222,7 +228,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getLongField(@Nonnull LookupType strategy, @Nonnull String name) { @@ -238,7 +244,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getCharField(@Nonnull LookupType strategy, @Nonnull String name) { @@ -254,7 +260,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getFloatField(@Nonnull LookupType strategy, @Nonnull String name) { @@ -270,7 +276,7 @@ public class Fields { /** * Looks up a primitive field in the class. - * + * * @see ClassFields#getField(LookupType, String, Class) */ public Field getDoubleField(@Nonnull LookupType strategy, @Nonnull String name) {