public class ItemPressurizable extends net.minecraft.item.Item implements IPressurizableItem, net.minecraft.enchantment.IVanishable
| Constructor and Description |
|---|
ItemPressurizable(int maxAir,
int volume) |
ItemPressurizable(net.minecraft.item.Item.Properties props,
int maxAir,
int volume) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
int |
getAir(net.minecraft.item.ItemStack stack)
Get the amount of air currently held in this ItemStack.
|
int |
getBaseVolume()
Get the base item volume before any volume upgrades are added.
|
double |
getDurabilityForDisplay(net.minecraft.item.ItemStack stack) |
int |
getEnchantmentValue() |
int |
getRGBDurabilityForDisplay(net.minecraft.item.ItemStack stack) |
net.minecraft.nbt.CompoundNBT |
getShareTag(net.minecraft.item.ItemStack stack) |
int |
getVolumeUpgrades(net.minecraft.item.ItemStack stack)
Get the number of volume upgrades currently in this ItemStack.
|
net.minecraftforge.common.capabilities.ICapabilityProvider |
initCapabilities(net.minecraft.item.ItemStack stack,
net.minecraft.nbt.CompoundNBT nbt) |
boolean |
isEnchantable(net.minecraft.item.ItemStack stack) |
static net.minecraft.nbt.CompoundNBT |
roundedPressure(net.minecraft.item.ItemStack stack)
Get an ItemStack's NBT, rounding its air level for sync to client.
|
boolean |
shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged) |
boolean |
showDurabilityBar(net.minecraft.item.ItemStack stack) |
allowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEffectiveVolume, getPressurecanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakResetpublic ItemPressurizable(int maxAir,
int volume)
public ItemPressurizable(net.minecraft.item.Item.Properties props,
int maxAir,
int volume)
public boolean shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged)
shouldCauseReequipAnimation in interface net.minecraftforge.common.extensions.IForgeItempublic boolean showDurabilityBar(net.minecraft.item.ItemStack stack)
showDurabilityBar in interface net.minecraftforge.common.extensions.IForgeItempublic int getRGBDurabilityForDisplay(net.minecraft.item.ItemStack stack)
getRGBDurabilityForDisplay in interface net.minecraftforge.common.extensions.IForgeItempublic double getDurabilityForDisplay(net.minecraft.item.ItemStack stack)
getDurabilityForDisplay in interface net.minecraftforge.common.extensions.IForgeItempublic void fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemCategory in class net.minecraft.item.Item@Nullable
public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.nbt.CompoundNBT nbt)
initCapabilities in interface net.minecraftforge.common.extensions.IForgeItem@Nullable public net.minecraft.nbt.CompoundNBT getShareTag(net.minecraft.item.ItemStack stack)
getShareTag in interface net.minecraftforge.common.extensions.IForgeItempublic int getBaseVolume()
IPressurizableItemgetBaseVolume in interface IPressurizableItempublic int getVolumeUpgrades(net.minecraft.item.ItemStack stack)
IPressurizableItemgetVolumeUpgrades in interface IPressurizableItemstack - the ItemStack to checkpublic int getAir(net.minecraft.item.ItemStack stack)
IPressurizableItemgetAir in interface IPressurizableItemstack - the ItemStack to checkpublic boolean isEnchantable(net.minecraft.item.ItemStack stack)
isEnchantable in class net.minecraft.item.Itempublic int getEnchantmentValue()
getEnchantmentValue in class net.minecraft.item.Itempublic static net.minecraft.nbt.CompoundNBT roundedPressure(net.minecraft.item.ItemStack stack)
stack - the itemstack being sync'd