mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Use BlockPos and Vec3i, remove our Vect implementations
This commit is contained in:
1 parent
62ddd7bafc
commit
c30c3d7575
82 files changed
+597
-967
No files matched your search
@@ -5,6 +5,8 @@
|
||||
******************************************************************************/
|
||||
package forestry.api.apiculture;
|
||||
|
||||
import net.minecraft.util.math.Vec3i;
|
||||
|
||||
import forestry.api.genetics.EnumTolerance;
|
||||
import forestry.api.genetics.IFlowerProvider;
|
||||
import forestry.api.genetics.IGenome;
|
||||
@@ -43,7 +45,7 @@ public interface IBeeGenome extends IGenome {
|
||||
|
||||
int getFlowering();
|
||||
|
||||
int[] getTerritory();
|
||||
Vec3i getTerritory();
|
||||
|
||||
IAlleleBeeEffect getEffect();
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ public enum FarmDirection {
|
||||
this.forgeDirection = forgeDirection;
|
||||
}
|
||||
|
||||
public EnumFacing getForgeDirection() {
|
||||
public EnumFacing getFacing() {
|
||||
return forgeDirection;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
package forestry.api.farming;
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Vec3i;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
@@ -14,11 +15,11 @@ import forestry.api.core.IErrorLogicSource;
|
||||
|
||||
public interface IFarmHousing extends IErrorLogicSource {
|
||||
|
||||
int[] getCoords();
|
||||
BlockPos getCoords();
|
||||
|
||||
int[] getArea();
|
||||
Vec3i getArea();
|
||||
|
||||
int[] getOffset();
|
||||
Vec3i getOffset();
|
||||
|
||||
World getWorld();
|
||||
|
||||
|
||||
@@ -5,11 +5,13 @@
|
||||
******************************************************************************/
|
||||
package forestry.api.genetics;
|
||||
|
||||
import net.minecraft.util.math.Vec3i;
|
||||
|
||||
/**
|
||||
* Simple interface to allow adding additional alleles containing float values.
|
||||
*/
|
||||
public interface IAlleleArea extends IAllele {
|
||||
|
||||
int[] getValue();
|
||||
Vec3i getValue();
|
||||
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package forestry.api.genetics;
|
||||
|
||||
import net.minecraft.util.math.Vec3i;
|
||||
|
||||
/**
|
||||
* Creates new alleles with smart localization.
|
||||
*
|
||||
@@ -41,15 +43,13 @@ public interface IAlleleFactory {
|
||||
* @param modId mod prefix for uid and localization (i.e. "forestry")
|
||||
* @param category allele category for uid and localization (i.e. "territory")
|
||||
* @param valueName allele value name for uid and localization (i.e. "large")
|
||||
* @param xDimValue allele area X Size
|
||||
* @param yDimValue allele area Y Size
|
||||
* @param zDimValue allele area Z Size
|
||||
* @param value allele area x, y, z size
|
||||
* @param isDominant allele dominance
|
||||
* @param types allele chromosome type for registration (i.e. EnumBeeChromosome.TERRITORY)
|
||||
* @return a new IAlleleArea, registered with the allele registry.
|
||||
* @since Forestry 4.2
|
||||
*/
|
||||
IAlleleArea createArea(String modId, String category, String valueName, int xDimValue, int yDimValue, int zDimValue, boolean isDominant, IChromosomeType... types);
|
||||
IAlleleArea createArea(String modId, String category, String valueName, Vec3i value, boolean isDominant, IChromosomeType... types);
|
||||
|
||||
/**
|
||||
* @param modId mod prefix for uid and localization (i.e. "forestry")
|
||||
|
||||
Reference in new issue
Block a user