Package org.cyclops.evilcraft.item
Class ItemBroom
java.lang.Object
net.minecraft.world.item.Item
net.minecraftforge.fluids.capability.ItemFluidContainer
org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer
org.cyclops.evilcraft.core.item.ItemBloodContainer
org.cyclops.evilcraft.item.ItemBroom
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeItem,org.cyclops.cyclopscore.item.IInformationProvider,IBroom
Item for the
EntityBroom.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final net.minecraft.resources.ResourceLocationFields inherited from class org.cyclops.evilcraft.core.item.ItemBloodContainer
canPickUpFields inherited from class org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer
component, fluidFields inherited from class net.minecraftforge.fluids.capability.ItemFluidContainer
capacityFields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIESFields inherited from interface org.cyclops.cyclopscore.item.IInformationProvider
BLOCK_PREFIX, INFO_PREFIX, INFO_PREFIX_STYLES, ITEM_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flag) booleancanConsumeBroomEnergy(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.net.minecraft.world.item.RaritygetRarity(net.minecraft.world.item.ItemStack itemStack) booleanIf this item can pick up fluids when right-clicking (non-sneaking).booleanIf this item can place fluids when right-clicking (non-sneaking).voidonFovEvent(net.minecraftforge.client.event.ComputeFovModifierEvent event) net.minecraft.world.InteractionResultonItemUseFirst(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.context.UseOnContext context) voidonRenderOverlayEvent(net.minecraftforge.client.event.RenderGuiEvent.Post event) net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) Methods inherited from class org.cyclops.evilcraft.core.item.ItemBloodContainer
canConsume, consume, doesSneakBypassUse, drainFromOthers, setPlaceFluidsMethods inherited from class org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer
canDrain, getBarColor, getBarWidth, getDefaultCreativeTabEntries, getFluid, getInfo, initCapabilities, isBarVisible, provideInformationMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getEquipSound, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onLeftClickEntity, onUsingTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
Field Details
-
OVERLAY
protected static final net.minecraft.resources.ResourceLocation OVERLAY
-
-
Constructor Details
-
ItemBroom
public ItemBroom(net.minecraft.world.item.Item.Properties properties)
-
-
Method Details
-
isPlaceFluids
public boolean isPlaceFluids()Description copied from class:ItemBloodContainerIf this item can place fluids when right-clicking (non-sneaking). The fluid will only be placed if the container has at least 1000 mB inside of it and will drain that accordingly.- Overrides:
isPlaceFluidsin classItemBloodContainer- Returns:
- If it can place fluids.
-
isPickupFluids
public boolean isPickupFluids()Description copied from class:ItemBloodContainerIf this item can pick up fluids when right-clicking (non-sneaking).- Overrides:
isPickupFluidsin classItemBloodContainer- Returns:
- If it can pick up fluids.
-
use
public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
usein classItemBloodContainer
-
onItemUseFirst
public net.minecraft.world.InteractionResult onItemUseFirst(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.context.UseOnContext context) - Specified by:
onItemUseFirstin interfacenet.minecraftforge.common.extensions.IForgeItem- Overrides:
onItemUseFirstin classItemBloodContainer
-
getRarity
public net.minecraft.world.item.Rarity getRarity(net.minecraft.world.item.ItemStack itemStack) - Overrides:
getRarityin classnet.minecraft.world.item.Item
-
getBroomParts
Description copied from interface:IBroomAll parts from the given broom.- Specified by:
getBroomPartsin interfaceIBroom- Parameters:
itemStack- The broom stack.- Returns:
- The broom parts.
-
getBroomModifiers
Description copied from interface:IBroomAll modifiers from the given broom.- Specified by:
getBroomModifiersin interfaceIBroom- Parameters:
itemStack- The broom stack.- Returns:
- The broom modifiers.
-
canConsumeBroomEnergy
public boolean canConsumeBroomEnergy(int amount, net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.world.entity.LivingEntity entityLiving) Description copied from interface:IBroomIf this broom can consume a given energy amount.- Specified by:
canConsumeBroomEnergyin interfaceIBroom- Parameters:
amount- The energy amount to drain.itemStack- The broom stack.entityLiving- The mounted entity.- Returns:
- If the given amount can be drained.
-
consumeBroom
public int consumeBroom(int amount, net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.world.entity.LivingEntity entityLiving) Description copied from interface:IBroomConsume a given energy amount.- Specified by:
consumeBroomin interfaceIBroom- Parameters:
amount- The energy amount to drain.itemStack- The broom stack.entityLiving- The mounted entity.- Returns:
- The energy amount that was drained.
-
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flag) - Overrides:
appendHoverTextin classorg.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer
-
onFovEvent
public void onFovEvent(net.minecraftforge.client.event.ComputeFovModifierEvent event) -
onRenderOverlayEvent
public void onRenderOverlayEvent(net.minecraftforge.client.event.RenderGuiEvent.Post event)
-