Fixes lombok

This commit is contained in:
cyberpwn committed 2021-09-12 07:48:01 -04:00
1 parent cd7f192fba
commit 91c24d5501
2 files changed
+12 -2

No files matched your search

@@ -51,11 +51,23 @@ public class IrisInterpolator {
@Desc("The range checked horizontally. Smaller ranges yeild more detail but are not as smooth.")
private double horizontalScale = 7;
@Override
public int hashCode()
{
return Objects.hash(horizontalScale, function);
}
@Override
public boolean equals(Object o)
{
if(o instanceof IrisInterpolator i)
{
return i.getFunction().equals(function) && i.getHorizontalScale() == horizontalScale;
}
return false;
}
public double interpolate(double x, double z, NoiseProvider provider) {
return interpolate((int) Math.round(x), (int) Math.round(z), provider);
}
@@ -20,7 +20,6 @@ package com.volmit.iris.engine.object;
import com.volmit.iris.engine.object.annotations.Desc;
import com.volmit.iris.engine.object.annotations.Snippet;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@@ -30,7 +29,6 @@ import lombok.experimental.Accessors;
@EqualsAndHashCode()
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Desc("Represents an iris object placer. It places objects.")
@Data
public class IrisMatterPlacement {