From 4c41128b37281b2ff75d94de8348520aa47e1383 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 30 Mar 2025 15:28:44 +0700 Subject: [PATCH] Remove RandomSource2Generator --- .../blockentity/EnergyCounterRenderer.kt | 1 - .../screen/panels/DecimalHistoryChartPanel.kt | 1 - .../mc/otm/core/RandomSource2Generator.kt | 30 ------------------- 3 files changed, 32 deletions(-) delete mode 100644 src/main/kotlin/ru/dbotthepony/mc/otm/core/RandomSource2Generator.kt diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/EnergyCounterRenderer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/EnergyCounterRenderer.kt index 741f3f925..9d7ae286c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/EnergyCounterRenderer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/EnergyCounterRenderer.kt @@ -14,7 +14,6 @@ import ru.dbotthepony.mc.otm.client.minecraft import ru.dbotthepony.mc.otm.client.render.* import ru.dbotthepony.mc.otm.core.TextComponent import ru.dbotthepony.kommons.math.RGBAColor -import ru.dbotthepony.mc.otm.core.RandomSource2Generator import ru.dbotthepony.mc.otm.core.math.Decimal import ru.dbotthepony.mc.otm.core.math.asAngle import ru.dbotthepony.mc.otm.core.math.clusterize diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/DecimalHistoryChartPanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/DecimalHistoryChartPanel.kt index dfc9287ab..a710b1eed 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/DecimalHistoryChartPanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/DecimalHistoryChartPanel.kt @@ -8,7 +8,6 @@ import ru.dbotthepony.mc.otm.client.render.ChartMouseLabels import ru.dbotthepony.mc.otm.client.render.MGUIGraphics import ru.dbotthepony.mc.otm.client.render.renderChart import ru.dbotthepony.mc.otm.client.screen.MatteryScreen -import ru.dbotthepony.mc.otm.core.RandomSource2Generator import ru.dbotthepony.mc.otm.core.chart.DecimalHistoryChart import ru.dbotthepony.mc.otm.core.TextComponent import ru.dbotthepony.mc.otm.core.TranslatableComponent diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/RandomSource2Generator.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/RandomSource2Generator.kt deleted file mode 100644 index 323cd254b..000000000 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/RandomSource2Generator.kt +++ /dev/null @@ -1,30 +0,0 @@ -package ru.dbotthepony.mc.otm.core - -import net.minecraft.util.RandomSource -import java.util.random.RandomGenerator - -class RandomSource2Generator(private val parent: RandomSource) : RandomGenerator { - override fun nextLong(): Long { - return parent.nextLong() - } - - override fun nextInt(): Int { - return parent.nextInt() - } - - override fun nextFloat(): Float { - return parent.nextFloat() - } - - override fun nextDouble(): Double { - return parent.nextDouble() - } - - override fun nextBoolean(): Boolean { - return parent.nextBoolean() - } - - override fun nextGaussian(): Double { - return parent.nextGaussian() - } -}