Package org.cyclops.evilcraft.item
Class ItemMaceOfDistortion
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.item.Item>
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.ItemMace
org.cyclops.evilcraft.item.ItemMaceOfDistortion
- All Implemented Interfaces:
net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeItem,net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.item.Item>,org.cyclops.cyclopscore.item.IInformationProvider
A powerful magical mace.
The power of it can be changed by Shift + Right clicking.
It can be used as primary weapon by just right clicking on entities, it will however
use up some blood for that and become unusable when the tank is empty.
It can also be used as secondary weapon to do a distortion effect in a certain area
with the area increasing depending on how long the item is being charged, this
area is smaller with a larger power level, but more powerful.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.PropertiesNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe amount of ticks that should go between each update of the area of effect particles.Fields 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, category, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegateFields inherited from interface org.cyclops.cyclopscore.item.IInformationProvider
BLOCK_PREFIX, INFO_PREFIX, INFO_PREFIX_STYLES, ITEM_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanimateOutOfEnergy(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) protected voiddistortEntities(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, int itemUsedCount, int power) voiddistortEntity(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, double x, double y, double z, int itemUsedCount, int power) Distort an entity.com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack itemStack) intgetItemEnchantability(net.minecraft.world.item.ItemStack itemStack) static voidshowEntityDistored(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, int power) protected voiduse(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int itemUsedCount, int power) The usage action after charging the mace.Methods inherited from class org.cyclops.evilcraft.item.ItemMace
animateOutOfEnergy, appendHoverText, getArea, getEnchantmentValue, getPower, getUseAnimation, getUseDuration, hurtEnemy, isUsable, onLeftClickEntity, onUsingTick, releaseUsing, showUsedItemTick, showUsingItemTick, useMethods inherited from class org.cyclops.evilcraft.core.item.ItemBloodContainer
canConsume, consume, doesSneakBypassUse, drainFromOthers, isPickupFluids, isPlaceFluids, onItemUseFirst, setPlaceFluidsMethods inherited from class org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer
canDrain, fillItemCategory, getBarColor, getBarWidth, getFluid, getInfo, initCapabilities, isBarVisible, provideInformationMethods inherited from class net.minecraft.world.item.Item
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEquipSound, getFoodProperties, getId, getItemCategory, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTags, getTooltipImage, hasCraftingRemainingItem, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, createEntity, damageItem, elytraFlightTick, getArmorTexture, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEntityLifespan, getEquipmentSlot, getHighlightTip, getItemStackLimit, getMaxDamage, getShareTag, getSweepHitBox, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
Field Details
-
AOE_TICK_UPDATE
public static final int AOE_TICK_UPDATEThe amount of ticks that should go between each update of the area of effect particles.- See Also:
-
-
Constructor Details
-
ItemMaceOfDistortion
public ItemMaceOfDistortion(net.minecraft.world.item.Item.Properties properties)
-
-
Method Details
-
distortEntities
protected void distortEntities(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, int itemUsedCount, int power) -
distortEntity
public void distortEntity(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, double x, double y, double z, int itemUsedCount, int power) Distort an entity.- Parameters:
world- The world.initiator- The player distoring the entity, can be null.entity- The distorted entity.x- Center X coordinate.y- Center Y coordinate.z- Center Z coordinate.itemUsedCount- The distortion usage power.power- The current power.
-
showEntityDistored
public static void showEntityDistored(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, int power) -
animateOutOfEnergy
protected void animateOutOfEnergy(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) -
getItemEnchantability
public int getItemEnchantability(net.minecraft.world.item.ItemStack itemStack) -
getAttributeModifiers
public com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack itemStack) - Specified by:
getAttributeModifiersin interfacenet.minecraftforge.common.extensions.IForgeItem- Overrides:
getAttributeModifiersin classItemMace
-
use
protected void use(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int itemUsedCount, int power) Description copied from class:ItemMaceThe usage action after charging the mace.
-