API doc tweak for stack nulls

This commit is contained in:
Vincent Lee committed 2017-12-07 13:03:22 -06:00
1 parent eb86921f1d
commit 15ab7d67d1
2 files changed
+4 -4

No files matched your search

@@ -21,20 +21,20 @@ public interface IHornHarvestable {
/**
* Returns true if this block can be uprooted.
* Note that the stack param can be null if it's a drum breaking it.
* Note that the stack param can be empty if it's a drum breaking it.
*/
public boolean canHornHarvest(World world, BlockPos pos, ItemStack stack, EnumHornType hornType);
/**
* Returns true if harvestByHorn() should be called. If false it just uses the normal
* block breaking method.
* Note that the stack param can be null if it's a drum breaking it.
* Note that the stack param can be empty if it's a drum breaking it.
*/
public boolean hasSpecialHornHarvest(World world, BlockPos pos, ItemStack stack, EnumHornType hornType);
/**
* Called to harvest by a horn.
* Note that the stack param can be null if it's a drum breaking it.
* Note that the stack param can be empty if it's a drum breaking it.
*/
public void harvestByHorn(World world, BlockPos pos, ItemStack stack, EnumHornType hornType);
@@ -26,7 +26,7 @@ public interface ILens extends ILensEffect {
public boolean canCombineLenses(ItemStack sourceLens, ItemStack compositeLens);
/**
* Gets the composite lens in the stack passed in, return null for none.
* Gets the composite lens in the stack passed in, return empty for none.
*/
public ItemStack getCompositeLens(ItemStack stack);