mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 23:03:18 +00:00
Vect cleanup
This commit is contained in:
1 parent
e04bbcba84
commit
d24eb693e9
13 files changed
+46
-29
No files matched your search
@@ -16,8 +16,6 @@ import net.minecraft.init.Blocks;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import forestry.api.farming.FarmDirection;
|
||||
import forestry.api.farming.IFarmHousing;
|
||||
import forestry.api.farming.IFarmLogic;
|
||||
@@ -59,8 +57,7 @@ public abstract class FarmLogic implements IFarmLogic {
|
||||
}
|
||||
|
||||
protected final Vect translateWithOffset(int x, int y, int z, FarmDirection farmDirection, int step) {
|
||||
ForgeDirection direction = farmDirection.getForgeDirection();
|
||||
return new Vect(x + direction.offsetX * step, y + direction.offsetY * step, z + direction.offsetZ * step);
|
||||
return new Vect(farmDirection.getForgeDirection()).multiply(step).add(x, y, z);
|
||||
}
|
||||
|
||||
protected final void setBlock(Vect position, Block block, int meta) {
|
||||
|
||||
Reference in new issue
Block a user