mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
auto format
This commit is contained in:
1 parent
cc64b09ad4
commit
896767ae1b
16 files changed
+17
-16
No files matched your search
@@ -225,7 +225,7 @@ public final class FlowerRegistry implements IFlowerRegistry, IFlowerGrowthHelpe
|
||||
if (PluginManager.Module.AGRICRAFT.isEnabled()) {
|
||||
Block cropBlock = GameRegistry.findBlock("AgriCraft", "crops");
|
||||
if (block == cropBlock) {
|
||||
if(block instanceof IPlantable) {
|
||||
if (block instanceof IPlantable) {
|
||||
//For agricraft versions which implement IPlantable in the BlockCrop class
|
||||
block = ((IPlantable) block).getPlant(world, x, y, z);
|
||||
} else {
|
||||
|
||||
@@ -36,6 +36,7 @@ public class FruitProviderPod extends FruitProviderNone {
|
||||
PAPAYA((short) 2013, (short) 2014, (short) 2015);//, COCONUT((short)2016, (short)2017, (short)2018);
|
||||
|
||||
public final short[] uids;
|
||||
|
||||
EnumPodType(short stage1, short stage2, short stage3) {
|
||||
uids = new short[]{stage1, stage2, stage3};
|
||||
}
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
******************************************************************************/
|
||||
package forestry.arboriculture.blocks;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import forestry.arboriculture.tiles.TileArboristChest;
|
||||
import forestry.core.blocks.IMachinePropertiesTESR;
|
||||
import forestry.core.proxy.Proxies;
|
||||
|
||||
@@ -46,8 +46,9 @@ public class BlockPlanks extends BlockWood {
|
||||
@Override
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
EnumWoodType woodType = EnumWoodType.LARCH;
|
||||
if (meta > 0 && meta < EnumWoodType.VALUES.length)
|
||||
if (meta > 0 && meta < EnumWoodType.VALUES.length) {
|
||||
woodType = EnumWoodType.VALUES[meta];
|
||||
}
|
||||
return IconProviderWood.getPlankIcon(woodType);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,5 +12,6 @@ package forestry.core.access;
|
||||
|
||||
public interface IRestrictedAccess {
|
||||
IAccessHandler getAccessHandler();
|
||||
|
||||
void onSwitchAccess(EnumAccess oldAccess, EnumAccess newAccess);
|
||||
}
|
||||
@@ -16,9 +16,11 @@ package forestry.core.gui.buttons;
|
||||
public interface IButtonTextureSet {
|
||||
|
||||
int getX();
|
||||
|
||||
int getY();
|
||||
|
||||
int getHeight();
|
||||
|
||||
int getWidth();
|
||||
|
||||
}
|
||||
@@ -16,7 +16,6 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
|
||||
import forestry.core.config.Constants;
|
||||
import forestry.core.network.DataInputStreamForestry;
|
||||
|
||||
@@ -14,7 +14,6 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
|
||||
import forestry.api.core.INBTTagable;
|
||||
import forestry.core.utils.InventoryUtil;
|
||||
|
||||
@@ -28,8 +28,11 @@ import forestry.core.utils.StringUtil;
|
||||
public class ItemOverlay extends ItemForestry {
|
||||
public interface IOverlayInfo {
|
||||
String getName();
|
||||
|
||||
int getPrimaryColor();
|
||||
|
||||
int getSecondaryColor();
|
||||
|
||||
boolean isSecret();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,5 +14,6 @@ import java.io.IOException;
|
||||
|
||||
public interface IStreamableGui {
|
||||
void writeGuiData(DataOutputStreamForestry data) throws IOException;
|
||||
|
||||
void readGuiData(DataInputStreamForestry data) throws IOException;
|
||||
}
|
||||
@@ -12,7 +12,6 @@ package forestry.core.utils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.command.IEntitySelector;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityList;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
|
||||
@@ -466,7 +466,7 @@ public abstract class InventoryUtil {
|
||||
int added = addStack(inventory, stack, startSlot, slots, false);
|
||||
boolean success = all ? (added == stack.stackSize) : (added > 0);
|
||||
|
||||
if (success && doAdd) {
|
||||
if (success && doAdd) {
|
||||
addStack(inventory, stack, startSlot, slots, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,12 +12,9 @@ package forestry.energy.tiles;
|
||||
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
import forestry.core.blocks.IMachineProperties;
|
||||
import forestry.core.blocks.IMachinePropertiesTESR;
|
||||
import forestry.core.render.IBlockRenderer;
|
||||
import forestry.core.tiles.MachineDefinition;
|
||||
import forestry.core.tiles.TileEngine;
|
||||
import forestry.core.tiles.TileForestry;
|
||||
import forestry.core.tiles.TileUtil;
|
||||
|
||||
public class EngineDefinition extends MachineDefinition {
|
||||
|
||||
@@ -303,9 +303,9 @@ public class PluginHarvestCraft extends ForestryPlugin {
|
||||
}
|
||||
plants.add(cropName);
|
||||
}
|
||||
ItemStack mustardCropSeed = GameRegistry.findItemStack(HC,"mustard" + "seedItem",1);
|
||||
Block mustardCropBlock = GameRegistry.findBlock(HC,"pam"+"mustardseeds" + "Crop");
|
||||
ItemStack mustardFruit = GameRegistry.findItemStack(HC,"mustard" + "seedsItem",1);
|
||||
ItemStack mustardCropSeed = GameRegistry.findItemStack(HC, "mustard" + "seedItem", 1);
|
||||
Block mustardCropBlock = GameRegistry.findBlock(HC, "pam" + "mustardseeds" + "Crop");
|
||||
ItemStack mustardFruit = GameRegistry.findItemStack(HC, "mustard" + "seedsItem", 1);
|
||||
if (mustardCropSeed != null) {
|
||||
RecipeManagers.squeezerManager.addRecipe(10, new ItemStack[]{mustardCropSeed}, Fluids.SEEDOIL.getFluid(seedamount));
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ public class PluginPlantMegaPack extends ForestryPlugin {
|
||||
.put("cropRice", 4)
|
||||
.put("cropWaterSpinach", 4)
|
||||
.put("cropWildRice", 4)
|
||||
|
||||
|
||||
.put("immersedArrowArum", 4)
|
||||
.put("immersedCommonReed", 4)
|
||||
.put("immersedDuckPotato", 4)
|
||||
|
||||
@@ -47,7 +47,7 @@ public class PluginRotaryCraft extends ForestryPlugin {
|
||||
ItemStack canolaSeed = GameRegistry.findItemStack(RC, "rotarycraft_item_canola", 1);
|
||||
Block canolaCrop = GameRegistry.findBlock(RC, "rotarycraft_block_canola");
|
||||
|
||||
int seedAmount = (ForestryAPI.activeMode.getIntegerSetting("squeezer.liquid.seed")/16);
|
||||
int seedAmount = (ForestryAPI.activeMode.getIntegerSetting("squeezer.liquid.seed") / 16);
|
||||
seedAmount = Math.max(seedAmount, 1); // Produce at least 1 mb.
|
||||
if (canolaSeed != null && canolaCrop != null) {
|
||||
RecipeManagers.squeezerManager.addRecipe(10, new ItemStack[]{canolaSeed}, Fluids.SEEDOIL.getFluid(seedAmount));
|
||||
|
||||
Reference in new issue
Block a user