Rebalance electron tubes and add ender farm

This commit is contained in:
Nedelosk committed 2018-01-20 18:05:31 +01:00
1 parent 10fec50457
commit 287cb8cb87
36 files changed
+617 -115

No files matched your search

@@ -14,6 +14,8 @@ public interface IFarmInstance {
registerSoil(resource, soilState, false);
}
void registerFarmables(String identifier);
void registerSoil(ItemStack resource, IBlockState soilState, boolean hasMetaData);
boolean isAcceptedSoil(IBlockState blockState);
@@ -20,8 +20,19 @@ public interface IFarmable {
/**
* @return true if the block at the given location is a "sapling" for this type, i.e. a non-harvestable immature version of the crop.
* @deprecated Since Forestry 5.8. Use the version below. TODO Remove this method in 1.13
*/
boolean isSaplingAt(World world, BlockPos pos);
@Deprecated
default boolean isSaplingAt(World world, BlockPos pos){
return false;
}
/**
* @return true if the block at the given location is a "sapling" for this type, i.e. a non-harvestable immature version of the crop.
*/
default boolean isSaplingAt(World world, BlockPos pos, IBlockState blockState){
return isSaplingAt(world, pos);
}
/**
* @return {@link ICrop} if the block at the given location is a harvestable and mature crop, null otherwise.