From 66ffe390a8b62b0d56db99f831b1dea60feaa225 Mon Sep 17 00:00:00 2001 From: makamys Date: Thu, 30 Jun 2022 13:58:29 +0200 Subject: Refactor chat message helper --- src/main/java/makamys/neodymium/util/MCUtil.java | 36 ------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/main/java/makamys/neodymium/util/MCUtil.java (limited to 'src/main/java/makamys/neodymium/util/MCUtil.java') diff --git a/src/main/java/makamys/neodymium/util/MCUtil.java b/src/main/java/makamys/neodymium/util/MCUtil.java deleted file mode 100644 index 2e14d16..0000000 --- a/src/main/java/makamys/neodymium/util/MCUtil.java +++ /dev/null @@ -1,36 +0,0 @@ -package makamys.neodymium.util; - -import static makamys.neodymium.Neodymium.LOGGER; - -import net.minecraft.client.Minecraft; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.util.ChatComponentText; -import net.minecraft.world.biome.BiomeGenBase; - -public class MCUtil { - - public static float getBiomeTemperatureVanilla(BiomeGenBase biome, int p_150564_1_, int p_150564_2_, int p_150564_3_){ - if (p_150564_2_ > 64) - { - float f = (float)BiomeGenBase.temperatureNoise - .func_151601_a((double)p_150564_1_ * 1.0D / 8.0D, (double)p_150564_3_ * 1.0D / 8.0D) * 4.0F; - return biome.temperature - (f + (float)p_150564_2_ - 64.0F) * 0.05F / 30.0F; - } - else - { - return biome.temperature; - } - } - - public static void showChatMessage(String text) { - EntityPlayer player = Minecraft.getMinecraft().thePlayer; - - if(player != null) { - ChatComponentText cc = new ChatComponentText(text); - player.addChatComponentMessage(cc); - } else { - LOGGER.info(text); - } - } - -} -- cgit