fix xlint warnings

This commit is contained in:
FalsePattern committed 2024-06-07 19:56:58 +02:00
1 parent 35bd58a9d0
commit 8c77bf1110
2 files changed
+3 -2

No files matched your search

@@ -34,6 +34,7 @@ public class EndlessIDsCore implements IFMLLoadingPlugin {
val cl = Launch.classLoader;
val field = LaunchClassLoader.class.getDeclaredField("transformerExceptions");
field.setAccessible(true);
@SuppressWarnings("unchecked")
val exceptions = (Set<String>) field.get(cl);
if (exceptions.contains("code.elix_x.coremods")) {
EndlessIDsTransformer.logger.info("AntiIDConflict detected!");
@@ -73,7 +73,7 @@ public abstract class BiomeWandItemMixin {
* @reason Biome ID extension
*/
@Overwrite
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean par4) {
NBTTagCompound tag = stack.getTagCompound();
String str = TranslateUtils.translate("biomewand.tooltip.biome") + ": ";
if (tag == null || !tag.hasKey("sampledBiomeS")) {
@@ -95,7 +95,7 @@ public abstract class BiomeWandItemMixin {
* @reason Biome ID extension
*/
@Overwrite
public void getSubItems(Item item, CreativeTabs tabs, List list) {
public void getSubItems(Item item, CreativeTabs tabs, List<ItemStack> list) {
list.add(new ItemStack((BiomeWandItem) (Object) this, 1));
for (BiomeGenBase biome : BiomeGenBase.getBiomeGenArray()) {
if (biome != null && !(biome instanceof PlaceholderBiome)) {