public interface IBroom
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConsumeBroomEnergy(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity entityLiving)
If this broom can consume a given energy amount.
|
int |
consumeBroom(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity entityLiving)
Consume a given energy amount.
|
java.util.Map<BroomModifier,java.lang.Float> |
getBroomModifiers(net.minecraft.item.ItemStack itemStack)
All modifiers from the given broom.
|
java.util.Collection<IBroomPart> |
getBroomParts(net.minecraft.item.ItemStack itemStack)
All parts from the given broom.
|
java.util.Collection<IBroomPart> getBroomParts(net.minecraft.item.ItemStack itemStack)
itemStack - The broom stack.java.util.Map<BroomModifier,java.lang.Float> getBroomModifiers(net.minecraft.item.ItemStack itemStack)
itemStack - The broom stack.boolean canConsumeBroomEnergy(int amount,
net.minecraft.item.ItemStack itemStack,
@Nullable
net.minecraft.entity.LivingEntity entityLiving)
amount - The energy amount to drain.itemStack - The broom stack.entityLiving - The mounted entity.int consumeBroom(int amount,
net.minecraft.item.ItemStack itemStack,
@Nullable
net.minecraft.entity.LivingEntity entityLiving)
amount - The energy amount to drain.itemStack - The broom stack.entityLiving - The mounted entity.