public class MaceOfDistortion extends ConfigurableDamageIndicatedItemFluidContainer
| Modifier and Type | Field and Description |
|---|---|
static int |
AOE_TICK_UPDATE
The amount of ticks that should go between each update of the area of effect particles.
|
canPickUp, eConfigcomponent, fluidbFull3D, canRepair, delegate, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSizeBLOCK_PREFIX, INFO_PREFIX, ITEM_PREFIX| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4) |
protected void |
animateOutOfEnergy(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player) |
protected void |
distortEntities(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemUsedCount,
int power) |
static void |
distortEntity(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity,
double x,
double y,
double z,
int itemUsedCount,
int power)
Distort an entity.
|
com.google.common.collect.Multimap |
getAttributeModifiers(net.minecraft.item.ItemStack itemStack) |
static MaceOfDistortion |
getInstance()
Get the unique instance.
|
int |
getItemEnchantability() |
net.minecraft.item.EnumAction |
getItemUseAction(net.minecraft.item.ItemStack itemStack) |
int |
getMaxItemUseDuration(net.minecraft.item.ItemStack itemStack) |
static int |
getPower(net.minecraft.item.ItemStack itemStack)
Get the power level of the given ItemStack.
|
boolean |
hitEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase attacked,
net.minecraft.entity.EntityLivingBase attacker) |
static void |
initInstance(ExtendedConfig<ItemConfig> eConfig)
Initialise the configurable.
|
boolean |
isFull3D() |
net.minecraft.item.ItemStack |
onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player) |
boolean |
onLeftClickEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity) |
void |
onPlayerStoppedUsing(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemInUseCount) |
void |
onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
int duration) |
static void |
setPower(net.minecraft.item.ItemStack itemStack,
int power)
Set the power level of the given ItemStack.
|
protected static void |
showEntityDistored(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity,
int power) |
protected void |
showUsingItemTick(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
int duration) |
canConsume, canItemEditBlocks, consume, doesSneakBypassUse, drainFromOthers, getConfig, getIconString, isPickupFluids, isPlaceFluids, onItemUseFirst, registerIcons, setPlaceFluidscanDrain, drain, fill, getDurabilityForDisplay, getFluid, getInfo, getSubItems, provideInformation, showDurabilityBargetCapacity, getFluid, setCapacitycanHarvestBlock, createEntity, doesContainerItemLeaveCraftingGrid, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamage, getIconFromDamageForRenderPass, getIconIndex, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemUse, onUpdate, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRenderingpublic static final int AOE_TICK_UPDATE
public static void initInstance(ExtendedConfig<ItemConfig> eConfig)
eConfig - The config.public static MaceOfDistortion getInstance()
public boolean isFull3D()
isFull3D in class net.minecraft.item.Itempublic boolean hitEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase attacked,
net.minecraft.entity.EntityLivingBase attacker)
hitEntity in class net.minecraft.item.Itempublic boolean onLeftClickEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity)
onLeftClickEntity in class net.minecraft.item.Itempublic net.minecraft.item.EnumAction getItemUseAction(net.minecraft.item.ItemStack itemStack)
getItemUseAction in class net.minecraft.item.Itempublic int getMaxItemUseDuration(net.minecraft.item.ItemStack itemStack)
getMaxItemUseDuration in class net.minecraft.item.Itempublic net.minecraft.item.ItemStack onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
onItemRightClick in class ConfigurableDamageIndicatedItemFluidContainerpublic void onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
int duration)
onUsingTick in class net.minecraft.item.Itemprotected void showUsingItemTick(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
int duration)
public void onPlayerStoppedUsing(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemInUseCount)
onPlayerStoppedUsing in class net.minecraft.item.Itemprotected void distortEntities(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemUsedCount,
int power)
public static void distortEntity(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity,
double x,
double y,
double z,
int itemUsedCount,
int power)
world - The world.player - 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.protected static void showEntityDistored(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity,
int power)
protected void animateOutOfEnergy(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
public int getItemEnchantability()
getItemEnchantability in class net.minecraft.item.Itempublic com.google.common.collect.Multimap getAttributeModifiers(net.minecraft.item.ItemStack itemStack)
getAttributeModifiers in class net.minecraft.item.Itempublic void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
addInformation in class ConfigurableDamageIndicatedItemFluidContainerpublic static int getPower(net.minecraft.item.ItemStack itemStack)
itemStack - The item to check.public static void setPower(net.minecraft.item.ItemStack itemStack,
int power)
itemStack - The item to change.power - The new power level.