mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 20:52:20 +00:00
Basic framework for composite lenses.
This commit is contained in:
1 parent
37af380fbd
commit
9f9b279d0c
2 files changed
+33
No files matched your search
@@ -49,5 +49,22 @@ public interface ILens {
|
||||
* do any particles.
|
||||
*/
|
||||
public boolean doParticles(IManaBurst burst, ItemStack stack);
|
||||
|
||||
/**
|
||||
* Can the source lens be combined with the composite lens? This is called
|
||||
* for both the ILens instance of ItemStack.getItem() of sourceLens and compositeLens.
|
||||
*/
|
||||
public boolean canCombineLenses(ItemStack sourceLens, ItemStack compositeLens);
|
||||
|
||||
/**
|
||||
* Gets the composite lens in the stack passed in, return null for none.
|
||||
*/
|
||||
public ItemStack getCompositeLens(ItemStack stack);
|
||||
|
||||
/**
|
||||
* Sets the composite lens for the sourceLens as the compositeLens, returns
|
||||
* the ItemStack with the combination.
|
||||
*/
|
||||
public ItemStack setCompositeLens(ItemStack sourceLens, ItemStack compositeLens);
|
||||
|
||||
}
|
||||
@@ -321,4 +321,20 @@ public class ItemLens extends ItemMod implements ILens {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO
|
||||
@Override
|
||||
public boolean canCombineLenses(ItemStack sourceLens, ItemStack compositeLens) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getCompositeLens(ItemStack stack) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack setCompositeLens(ItemStack sourceLens, ItemStack compositeLens) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user