public class Broom extends org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainer implements IBroom
EntityBroom.| Modifier and Type | Field and Description |
|---|---|
protected static net.minecraft.util.ResourceLocation |
OVERLAY |
canPickUp, eConfigcomponent, fluid| Constructor and Description |
|---|
Broom(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.ItemConfig> eConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
java.util.List<java.lang.String> list,
net.minecraft.client.util.ITooltipFlag flag) |
boolean |
canConsumeBroomEnergy(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase entityLiving)
If this broom can consume a given energy amount.
|
int |
consumeBroom(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase 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.
|
static Broom |
getInstance()
Get the unique instance.
|
net.minecraft.item.EnumRarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
boolean |
isPickupFluids() |
boolean |
isPlaceFluids() |
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.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
net.minecraft.util.EnumActionResult |
onItemUseFirst(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ,
net.minecraft.util.EnumHand hand) |
void |
onRenderOverlayEvent(net.minecraftforge.client.event.RenderGameOverlayEvent.Post event) |
canConsume, canItemEditBlocks, consume, doesSneakBypassUse, drainFromOthers, getConfig, setPlaceFluidscanDrain, getDurabilityForDisplay, getFluid, getInfo, getRGBDurabilityForDisplay, getSubItems, initCapabilities, provideInformation, showDurabilityBaraddPropertyOverride, canApplyAtEnchantingTable, canDestroyBlockInCreative, canDisableShield, canHarvestBlock, canHarvestBlock, createEntity, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getCreatorModId, getDamage, getDefaultInstance, getDestroySpeed, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHarvestLevel, getHasSubtypes, getHighlightTip, getHorseArmorTexture, getHorseArmorType, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemBurnTime, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getShareTag, getSmeltingExperience, getTileEntityItemStackRenderer, getToolClasses, getTranslationKey, getTranslationKey, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isInCreativeTab, isMap, isRepairable, isShield, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUse, onItemUseFinish, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, readNBTShareTag, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setTileEntityItemStackRenderer, setTranslationKey, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, updateItemStackNBTpublic Broom(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.ItemConfig> eConfig)
public static Broom getInstance()
public boolean isPlaceFluids()
isPlaceFluids in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic boolean isPickupFluids()
isPickupFluids in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
onItemRightClick in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic net.minecraft.util.EnumActionResult onItemUseFirst(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ,
net.minecraft.util.EnumHand hand)
onItemUseFirst in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic net.minecraft.item.EnumRarity 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.EntityLivingBase 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.EntityLivingBase 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<java.lang.String> list,
net.minecraft.client.util.ITooltipFlag flag)
addInformation in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic void onFovEvent(net.minecraftforge.client.event.FOVUpdateEvent event)
public void onRenderOverlayEvent(net.minecraftforge.client.event.RenderGameOverlayEvent.Post event)