Package org.cyclops.evilcraft.api.broom
Interface IBroom
- All Known Implementing Classes:
ItemBroom
public interface IBroom
Indicates if an item is a broom.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanConsumeBroomEnergy(int amount, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.LivingEntity entityLiving) If this broom can consume a given energy amount.intconsumeBroom(int amount, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.LivingEntity entityLiving) Consume a given energy amount.getBroomModifiers(net.minecraft.world.item.ItemStack itemStack) All modifiers from the given broom.getBroomParts(net.minecraft.world.item.ItemStack itemStack) All parts from the given broom.
-
Method Details
-
getBroomParts
All parts from the given broom.- Parameters:
itemStack- The broom stack.- Returns:
- The broom parts.
-
getBroomModifiers
All modifiers from the given broom.- Parameters:
itemStack- The broom stack.- Returns:
- The broom modifiers.
-
canConsumeBroomEnergy
boolean canConsumeBroomEnergy(int amount, net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.world.entity.LivingEntity entityLiving) If this broom can consume a given energy amount.- Parameters:
amount- The energy amount to drain.itemStack- The broom stack.entityLiving- The mounted entity.- Returns:
- If the given amount can be drained.
-
consumeBroom
int consumeBroom(int amount, net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.world.entity.LivingEntity entityLiving) Consume a given energy amount.- Parameters:
amount- The energy amount to drain.itemStack- The broom stack.entityLiving- The mounted entity.- Returns:
- The energy amount that was drained.
-