Package vazkii.botania.api.mana
Interface BasicLensItem
- All Superinterfaces:
LensEffectItem
- All Known Subinterfaces:
CompositableLensItem,ControlLensItem
- All Known Implementing Classes:
LensItem
Have an Item implement this to be counted as a lens for the mana spreader.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCombineLenses(net.minecraft.world.item.ItemStack sourceLens, net.minecraft.world.item.ItemStack compositeLens) Can the source lens be combined with the composite lens? This is called for both the BasicLensItem instance of ItemStack.getItem() of sourceLens and compositeLens.net.minecraft.world.item.ItemStackgetCompositeLens(net.minecraft.world.item.ItemStack stack) Gets the composite lens in the stack passed in, return empty for none.intgetLensColor(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level) net.minecraft.world.item.ItemStacksetCompositeLens(net.minecraft.world.item.ItemStack sourceLens, net.minecraft.world.item.ItemStack compositeLens) Sets the composite lens for the sourceLens as the compositeLens, returns the ItemStack with the combination.Methods inherited from interface vazkii.botania.api.mana.LensEffectItem
apply, collideBurst, doParticles, getManaToTransfer, updateBurst
-
Method Details
-
getLensColor
int getLensColor(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level) -
canCombineLenses
boolean canCombineLenses(net.minecraft.world.item.ItemStack sourceLens, net.minecraft.world.item.ItemStack compositeLens) Can the source lens be combined with the composite lens? This is called for both the BasicLensItem instance of ItemStack.getItem() of sourceLens and compositeLens. -
getCompositeLens
net.minecraft.world.item.ItemStack getCompositeLens(net.minecraft.world.item.ItemStack stack) Gets the composite lens in the stack passed in, return empty for none. -
setCompositeLens
net.minecraft.world.item.ItemStack setCompositeLens(net.minecraft.world.item.ItemStack sourceLens, net.minecraft.world.item.ItemStack compositeLens) Sets the composite lens for the sourceLens as the compositeLens, returns the ItemStack with the combination. If compositeLens is empty, this removes the composite.
-