mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +00:00
Fix java 11 incompatibility
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
package com.volmit.iris.scaffold.stream.interpolation;
|
package com.volmit.iris.scaffold.stream.interpolation;
|
||||||
|
|
||||||
import java.util.function.Function;
|
import com.volmit.iris.scaffold.stream.ProceduralStream;
|
||||||
|
|
||||||
import com.volmit.iris.util.CaveResult;
|
import com.volmit.iris.util.CaveResult;
|
||||||
import com.volmit.iris.util.KList;
|
import com.volmit.iris.util.KList;
|
||||||
import com.volmit.iris.scaffold.stream.ProceduralStream;
|
import com.volmit.iris.util.RNG;
|
||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
|
|
||||||
import com.volmit.iris.util.RNG;
|
import java.util.function.Function;
|
||||||
|
|
||||||
public interface Interpolated<T>
|
public interface Interpolated<T>
|
||||||
{
|
{
|
||||||
@@ -15,8 +14,8 @@ public interface Interpolated<T>
|
|||||||
public static final Interpolated<KList<CaveResult>> CAVE_RESULTS = of((t) -> 0D, (t) -> null);
|
public static final Interpolated<KList<CaveResult>> CAVE_RESULTS = of((t) -> 0D, (t) -> null);
|
||||||
public static final Interpolated<RNG> RNG = of((t) -> 0D, (t) -> null);
|
public static final Interpolated<RNG> RNG = of((t) -> 0D, (t) -> null);
|
||||||
public static final Interpolated<Double> DOUBLE = of((t) -> t, (t) -> t);
|
public static final Interpolated<Double> DOUBLE = of((t) -> t, (t) -> t);
|
||||||
public static final Interpolated<Integer> INT = of((t) -> Double.valueOf(t), (t) -> t.intValue());
|
public static final Interpolated<Integer> INT = of(Double::valueOf, Double::intValue);
|
||||||
public static final Interpolated<Long> LONG = of((t) -> Double.valueOf(t), (t) -> t.longValue());
|
public static final Interpolated<Long> LONG = of(Double::valueOf, Double::longValue);
|
||||||
|
|
||||||
public double toDouble(T t);
|
public double toDouble(T t);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user