public class ItemBloodContainer
extends org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canPickUp |
component, fluid| Constructor and Description |
|---|
ItemBloodContainer(net.minecraft.item.Item.Properties builder,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConsume(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.PlayerEntity player)
If this container can consume a given fluid amount.
|
net.minecraftforge.fluids.FluidStack |
consume(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.PlayerEntity player)
Consume a given fluid amount.
|
boolean |
doesSneakBypassUse(net.minecraft.item.ItemStack stack,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
protected net.minecraftforge.fluids.FluidStack |
drainFromOthers(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.fluid.Fluid fluid,
net.minecraft.entity.player.PlayerEntity player,
net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action) |
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.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
net.minecraft.util.ActionResultType |
onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context) |
void |
setPlaceFluids(boolean placeFluids)
Set whether or not this item should be able to place fluids in the world
when right-clicking (non-sneaking).
|
addInformation, canDrain, fillItemGroup, getDurabilityForDisplay, getFluid, getInfo, getRGBDurabilityForDisplay, initCapabilities, provideInformation, showDurabilityBarasItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isDamageable, isEnchantable, isFood, isImmuneToFire, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimationpublic ItemBloodContainer(net.minecraft.item.Item.Properties builder,
int capacity)
public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
onItemRightClick in class net.minecraft.item.Itempublic boolean isPlaceFluids()
public boolean isPickupFluids()
public void setPlaceFluids(boolean placeFluids)
placeFluids - If it can place fluids.public net.minecraft.util.ActionResultType onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context)
public boolean doesSneakBypassUse(net.minecraft.item.ItemStack stack,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player)
protected net.minecraftforge.fluids.FluidStack drainFromOthers(int amount,
net.minecraft.item.ItemStack itemStack,
net.minecraft.fluid.Fluid fluid,
net.minecraft.entity.player.PlayerEntity player,
net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action)
public boolean canConsume(int amount,
net.minecraft.item.ItemStack itemStack,
@Nullable
net.minecraft.entity.player.PlayerEntity 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,
@Nullable
net.minecraft.entity.player.PlayerEntity player)
amount - The amount to drain.itemStack - The fluid container.player - The player.