Close #1838 Make IHiveFrame's getBeeModifier() ItemStack aware

This commit is contained in:
mezz committed 2017-09-04 13:52:32 -07:00
1 parent e6cb758e0e
commit 76f09be39d
6 files changed
+37 -8

No files matched your search

@@ -20,5 +20,18 @@ public interface IHiveFrame {
*/
ItemStack frameUsed(IBeeHousing housing, ItemStack frame, IBee queen, int wear);
/**
* @param frame ItemStack containing the actual frame.
* @return the {@link IBeeModifier} for this frame.
* @since Forestry 5.5.1
*/
default IBeeModifier getBeeModifier(ItemStack frame) {
return getBeeModifier();
}
/**
* @deprecated since Forestry 5.5.1. Use {@link #getBeeModifier(ItemStack)}
*/
@Deprecated
IBeeModifier getBeeModifier();
}