public abstract class ConfigurableDamageIndicatedItemFluidContainer extends DamageIndicatedItemFluidContainer implements IConfigurable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canPickUp |
protected ExtendedConfig |
eConfig |
component, fluidbFull3D, canRepair, delegate, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSizeBLOCK_PREFIX, INFO_PREFIX, ITEM_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurableDamageIndicatedItemFluidContainer(ExtendedConfig eConfig,
int capacity,
net.minecraftforge.fluids.Fluid fluid)
Make a new block instance.
|
| 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) |
boolean |
canConsume(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player)
If this container can consume a given fluid amount.
|
boolean |
canItemEditBlocks() |
net.minecraftforge.fluids.FluidStack |
consume(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player)
Consume a given fluid amount.
|
boolean |
doesSneakBypassUse(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player) |
protected net.minecraftforge.fluids.FluidStack |
drainFromOthers(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraftforge.fluids.Fluid fluid,
net.minecraft.entity.player.EntityPlayer player,
boolean doDrain) |
ExtendedConfig<?> |
getConfig() |
java.lang.String |
getIconString() |
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).
|
net.minecraft.item.ItemStack |
onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player) |
boolean |
onItemUseFirst(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ) |
void |
registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
void |
setPlaceFluids(boolean placeFluids)
Set whether or not this item should be able to place fluids in the world
when right-clicking (non-sneaking).
|
canDrain, drain, fill, getDurabilityForDisplay, getFluid, getInfo, getSubItems, provideInformation, showDurabilityBargetCapacity, getFluid, setCapacitycanHarvestBlock, createEntity, doesContainerItemLeaveCraftingGrid, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamage, getIconFromDamageForRenderPass, getIconIndex, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemUse, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRenderingprotected ExtendedConfig eConfig
protected boolean canPickUp
protected ConfigurableDamageIndicatedItemFluidContainer(ExtendedConfig eConfig, int capacity, net.minecraftforge.fluids.Fluid fluid)
eConfig - Config for this item.capacity - The capacity for the fluid container this item should have.fluid - The fluid this container should be able to hold.public ExtendedConfig<?> getConfig()
getConfig in interface IConfigurablepublic java.lang.String getIconString()
getIconString in class net.minecraft.item.Itempublic void registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerIcons 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 net.minecraft.item.Itempublic boolean canItemEditBlocks()
canItemEditBlocks in class net.minecraft.item.Itempublic boolean isPlaceFluids()
public boolean isPickupFluids()
public void setPlaceFluids(boolean placeFluids)
placeFluids - If it can place fluids.public boolean onItemUseFirst(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ)
onItemUseFirst in class net.minecraft.item.Itempublic boolean doesSneakBypassUse(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player)
doesSneakBypassUse 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 DamageIndicatedItemFluidContainerprotected net.minecraftforge.fluids.FluidStack drainFromOthers(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraftforge.fluids.Fluid fluid,
net.minecraft.entity.player.EntityPlayer player,
boolean doDrain)
public boolean canConsume(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player)
amount - The amount to drain.itemStack - The fluid container.player - The player.public net.minecraftforge.fluids.FluidStack consume(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player)
amount - The amount to drain.itemStack - The fluid container.player - The player.