Fixes lombok

This commit is contained in:
cyberpwn 2021-09-12 07:48:01 -04:00
parent cd7f192fba
commit 91c24d5501
2 changed files with 12 additions and 2 deletions

View File

@ -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);
}

View File

@ -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 {