Update Greenhouse Code to 1.12

This commit is contained in:
Nedelosk committed 2017-08-14 19:51:09 +02:00
1 parent 26bf69effc
commit 54ca3488df
21 files changed
+68 -79

No files matched your search

@@ -5,7 +5,7 @@
******************************************************************************/
package forestry.api.climate;
import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.math.MathHelper;
@@ -108,7 +108,7 @@ public class ClimateChange implements IClimateState, INbtReadable{
@Override
public String toString() {
return Objects.toStringHelper(this).add("temperature", temperature).add("humidity", humidity).toString();
return MoreObjects.toStringHelper(this).add("temperature", temperature).add("humidity", humidity).toString();
}
}
@@ -5,7 +5,7 @@
******************************************************************************/
package forestry.api.climate;
import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.math.MathHelper;
@@ -118,7 +118,7 @@ public class ClimateState implements IClimateState, INbtReadable{
@Override
public String toString() {
return Objects.toStringHelper(this).add("temperature", temperature).add("humidity", humidity).toString();
return MoreObjects.toStringHelper(this).add("temperature", temperature).add("humidity", humidity).toString();
}
}
@@ -5,7 +5,7 @@
******************************************************************************/
package forestry.api.climate;
import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.math.MathHelper;
@@ -107,7 +107,7 @@ public class ImmutableClimateState implements IClimateState, INbtWritable{
@Override
public String toString() {
return Objects.toStringHelper(this).add("temperature", temperature).add("humidity", humidity).toString();
return MoreObjects.toStringHelper(this).add("temperature", temperature).add("humidity", humidity).toString();
}
}
@@ -5,7 +5,7 @@
******************************************************************************/
package forestry.api.greenhouse;
import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;
import javax.annotation.concurrent.Immutable;
@@ -117,6 +117,6 @@ public class Position2D implements Comparable<Position2D>, INbtWritable {
}
public String toString() {
return Objects.toStringHelper(this).add("x", this.getX()).add("z", this.getZ()).toString();
return MoreObjects.toStringHelper(this).add("x", this.getX()).add("z", this.getZ()).toString();
}
}