public class ItemBroom extends ItemBloodContainer implements IBroom
EntityBroom.| Modifier and Type | Field and Description |
|---|---|
protected static net.minecraft.util.ResourceLocation |
OVERLAY |
canPickUpcomponent, fluid| Constructor and Description |
|---|
ItemBroom(net.minecraft.item.Item.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag) |
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.
|
net.minecraft.item.Rarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
boolean |
isPickupFluids()
If this item can pick up fluids when right-clicking (non-sneaking).
|
boolean |
isPlaceFluids()
If this item can place fluids when right-clicking (non-sneaking).
|
void |
onFovEvent(net.minecraftforge.client.event.FOVUpdateEvent event) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
net.minecraft.util.ActionResultType |
onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context) |
void |
onRenderOverlayEvent(net.minecraftforge.client.event.RenderGameOverlayEvent.Post event) |
canConsume, consume, doesSneakBypassUse, drainFromOthers, setPlaceFluidscanDrain, fillItemGroup, getDurabilityForDisplay, getFluid, getInfo, getRGBDurabilityForDisplay, initCapabilities, provideInformation, showDurabilityBarasItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isDamageable, isEnchantable, isFood, isImmuneToFire, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimationpublic boolean isPlaceFluids()
ItemBloodContainerisPlaceFluids in class ItemBloodContainerpublic boolean isPickupFluids()
ItemBloodContainerisPickupFluids in class ItemBloodContainerpublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
onItemRightClick in class ItemBloodContainerpublic net.minecraft.util.ActionResultType onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context)
onItemUseFirst in interface net.minecraftforge.common.extensions.IForgeItemonItemUseFirst in class ItemBloodContainerpublic net.minecraft.item.Rarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in class net.minecraft.item.Itempublic java.util.Collection<IBroomPart> getBroomParts(net.minecraft.item.ItemStack itemStack)
IBroomgetBroomParts in interface IBroomitemStack - The broom stack.public java.util.Map<BroomModifier,java.lang.Float> getBroomModifiers(net.minecraft.item.ItemStack itemStack)
IBroomgetBroomModifiers in interface IBroomitemStack - The broom stack.public boolean canConsumeBroomEnergy(int amount,
net.minecraft.item.ItemStack itemStack,
@Nullable
net.minecraft.entity.LivingEntity entityLiving)
IBroomcanConsumeBroomEnergy in interface IBroomamount - The energy amount to drain.itemStack - The broom stack.entityLiving - The mounted entity.public int consumeBroom(int amount,
net.minecraft.item.ItemStack itemStack,
@Nullable
net.minecraft.entity.LivingEntity entityLiving)
IBroomconsumeBroom in interface IBroomamount - The energy amount to drain.itemStack - The broom stack.entityLiving - The mounted entity.public void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag)
addInformation in class org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainerpublic void onFovEvent(net.minecraftforge.client.event.FOVUpdateEvent event)
public void onRenderOverlayEvent(net.minecraftforge.client.event.RenderGameOverlayEvent.Post event)