aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/util/MCUtil.java
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-30 13:58:29 +0200
committermakamys <makamys@outlook.com>2022-06-30 13:58:29 +0200
commit66ffe390a8b62b0d56db99f831b1dea60feaa225 (patch)
treefbb44d898b57b7e9e00071c4b190002f44a8b4b3 /src/main/java/makamys/neodymium/util/MCUtil.java
parentdf16ef444a101dff20c1846fe52a082862ad0078 (diff)
downloadNeodymium-66ffe390a8b62b0d56db99f831b1dea60feaa225.tar.gz
Neodymium-66ffe390a8b62b0d56db99f831b1dea60feaa225.tar.bz2
Neodymium-66ffe390a8b62b0d56db99f831b1dea60feaa225.zip
Refactor chat message helper
Diffstat (limited to 'src/main/java/makamys/neodymium/util/MCUtil.java')
-rw-r--r--src/main/java/makamys/neodymium/util/MCUtil.java36
1 files changed, 0 insertions, 36 deletions
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);
- }
- }
-
-}