public class ItemPneumaticArmor extends net.minecraft.item.ArmorItem implements IChargeableContainerProvider, IUpgradeAcceptor, IFOVModifierItem, ICustomDurabilityBar, IPressurizableItem, net.minecraft.item.IDyeableArmorItem, ColorHandlers.ITintableItem
net.minecraft.item.Item.Propertiesnet.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>IChargeableContainerProvider.Provider| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_EYEPIECE_COLOR |
static int |
DEFAULT_PRIMARY_COLOR |
static int |
DEFAULT_SECONDARY_COLOR |
static java.lang.String |
NBT_BUILDER_MODE |
static java.lang.String |
NBT_COORD_TRACKER |
static java.lang.String |
NBT_ENTITY_FILTER |
static java.lang.String |
NBT_FLIGHT_STABILIZERS |
static java.lang.String |
NBT_JET_BOOTS_POWER |
static java.lang.String |
NBT_JUMP_BOOST |
static java.lang.String |
NBT_SEARCH_ITEM |
static java.lang.String |
NBT_SMART_HOVER |
static java.lang.String |
NBT_SPEED_BOOST |
DISPENSE_ITEM_BEHAVIOR, knockbackResistance, material, slot| Constructor and Description |
|---|
ItemPneumaticArmor(net.minecraft.inventory.EquipmentSlotType equipmentSlotIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn) |
int |
getAir(net.minecraft.item.ItemStack stack)
Get the amount of air currently held in this ItemStack.
|
java.util.Map<EnumUpgrade,java.lang.Integer> |
getApplicableUpgrades()
This method is called as soon as an instance of this interface is registered, be aware.
|
java.lang.String |
getArmorTexture(net.minecraft.item.ItemStack stack,
net.minecraft.entity.Entity entity,
net.minecraft.inventory.EquipmentSlotType slot,
java.lang.String type) |
com.google.common.collect.Multimap<net.minecraft.entity.ai.attributes.Attribute,net.minecraft.entity.ai.attributes.AttributeModifier> |
getAttributeModifiers(net.minecraft.inventory.EquipmentSlotType equipmentSlot,
net.minecraft.item.ItemStack stack) |
int |
getBaseVolume()
Get the base item volume before any volume upgrades are added.
|
static boolean |
getBooleanData(net.minecraft.item.ItemStack stack,
java.lang.String key,
boolean def) |
int |
getColor(net.minecraft.item.ItemStack stack) |
net.minecraft.inventory.container.INamedContainerProvider |
getContainerProvider(TileEntityChargingStation te)
Get a container provider for this item
|
static net.minecraft.util.math.BlockPos |
getCoordTrackerPos(net.minecraft.item.ItemStack helmetStack,
net.minecraft.world.World world) |
float |
getCustomDurability(net.minecraft.item.ItemStack stack)
Get the actual value for the custom durability of the item, which controls the width of the drawn bar.
|
int |
getCustomDurabilityColour(net.minecraft.item.ItemStack stack)
Get the colour of the custom durability bar for this item, in RGB format (alpha will always be full)
|
static IDroneBase |
getDebuggedDrone()
Client-side method to get the debugged drone or programmable controller
|
static java.lang.String |
getEntityFilter(net.minecraft.item.ItemStack helmetStack) |
int |
getEyepieceColor(net.minecraft.item.ItemStack stack) |
float |
getFOVModifier(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.inventory.EquipmentSlotType slot)
Get the FOV modifer for the given item stack.
|
static int |
getIntData(net.minecraft.item.ItemStack stack,
java.lang.String key,
int def) |
static int |
getIntData(net.minecraft.item.ItemStack stack,
java.lang.String key,
int def,
int min,
int max) |
static net.minecraft.item.Item |
getSearchedItem(net.minecraft.item.ItemStack helmetStack) |
int |
getSecondaryColor(net.minecraft.item.ItemStack stack)
Get the overlay colour
|
net.minecraft.nbt.CompoundNBT |
getShareTag(net.minecraft.item.ItemStack stack) |
int |
getTintColor(net.minecraft.item.ItemStack stack,
int tintIndex) |
java.lang.String |
getUpgradeAcceptorTranslationKey()
Get a translation key for this upgrade acceptor.
|
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 |
isFoil(net.minecraft.item.ItemStack stack) |
static boolean |
isPlayerDebuggingDrone(net.minecraft.entity.player.PlayerEntity player,
EntityDroneBase e) |
static boolean |
isPlayerDebuggingDrone(net.minecraft.entity.player.PlayerEntity player,
IDroneBase e) |
static boolean |
isPlayerWearingAnyPneumaticArmor(net.minecraft.entity.player.PlayerEntity player)
Check if the player is wearing any pneumatic armor piece.
|
static boolean |
isPneumaticArmorPiece(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.inventory.EquipmentSlotType slot) |
static void |
setCoordTrackerPos(net.minecraft.item.ItemStack helmetStack,
net.minecraft.util.math.GlobalPos gPos) |
void |
setEyepieceColor(net.minecraft.item.ItemStack stack,
int color) |
static void |
setSearchedItem(net.minecraft.item.ItemStack helmetStack,
net.minecraft.item.Item searchedItem) |
void |
setSecondaryColor(net.minecraft.item.ItemStack stack,
int color) |
boolean |
shouldShowCustomDurabilityBar(net.minecraft.item.ItemStack stack)
Check if this item should be showing its custom bar at this time.
|
dispenseArmor, getDefaultAttributeModifiers, getDefense, getEnchantmentValue, getMaterial, getSlot, getToughness, isValidRepairItem, useallowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, 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, isEnchantable, isFireResistant, isRepairable, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisShowingOtherBargetEffectiveVolume, getPressureclearColor, dyeArmor, hasCustomColor, setColorcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic static final java.lang.String NBT_SEARCH_ITEM
public static final java.lang.String NBT_COORD_TRACKER
public static final java.lang.String NBT_ENTITY_FILTER
public static final java.lang.String NBT_JUMP_BOOST
public static final java.lang.String NBT_SPEED_BOOST
public static final java.lang.String NBT_BUILDER_MODE
public static final java.lang.String NBT_JET_BOOTS_POWER
public static final java.lang.String NBT_FLIGHT_STABILIZERS
public static final java.lang.String NBT_SMART_HOVER
public static final int DEFAULT_PRIMARY_COLOR
public static final int DEFAULT_SECONDARY_COLOR
public static final int DEFAULT_EYEPIECE_COLOR
public ItemPneumaticArmor(net.minecraft.inventory.EquipmentSlotType equipmentSlotIn)
@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.IForgeItempublic static boolean isPlayerWearingAnyPneumaticArmor(net.minecraft.entity.player.PlayerEntity player)
player - the playerpublic static boolean isPneumaticArmorPiece(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.inventory.EquipmentSlotType slot)
public 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 check@Nullable
public java.lang.String getArmorTexture(net.minecraft.item.ItemStack stack,
net.minecraft.entity.Entity entity,
net.minecraft.inventory.EquipmentSlotType slot,
java.lang.String type)
getArmorTexture in interface net.minecraftforge.common.extensions.IForgeItempublic void appendHoverText(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn)
appendHoverText in class net.minecraft.item.Itempublic java.util.Map<EnumUpgrade,java.lang.Integer> getApplicableUpgrades()
IUpgradeAcceptorgetApplicableUpgrades in interface IUpgradeAcceptorpublic java.lang.String getUpgradeAcceptorTranslationKey()
IUpgradeAcceptorgetUpgradeAcceptorTranslationKey in interface IUpgradeAcceptorpublic boolean isFoil(net.minecraft.item.ItemStack stack)
isFoil in class net.minecraft.item.Itempublic com.google.common.collect.Multimap<net.minecraft.entity.ai.attributes.Attribute,net.minecraft.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.inventory.EquipmentSlotType equipmentSlot,
net.minecraft.item.ItemStack stack)
getAttributeModifiers 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 static int getIntData(net.minecraft.item.ItemStack stack,
java.lang.String key,
int def)
public static int getIntData(net.minecraft.item.ItemStack stack,
java.lang.String key,
int def,
int min,
int max)
public static boolean getBooleanData(net.minecraft.item.ItemStack stack,
java.lang.String key,
boolean def)
public static net.minecraft.item.Item getSearchedItem(net.minecraft.item.ItemStack helmetStack)
public static void setSearchedItem(net.minecraft.item.ItemStack helmetStack,
net.minecraft.item.Item searchedItem)
public static net.minecraft.util.math.BlockPos getCoordTrackerPos(net.minecraft.item.ItemStack helmetStack,
net.minecraft.world.World world)
public static void setCoordTrackerPos(net.minecraft.item.ItemStack helmetStack,
net.minecraft.util.math.GlobalPos gPos)
public static java.lang.String getEntityFilter(net.minecraft.item.ItemStack helmetStack)
public static boolean isPlayerDebuggingDrone(net.minecraft.entity.player.PlayerEntity player,
EntityDroneBase e)
public static boolean isPlayerDebuggingDrone(net.minecraft.entity.player.PlayerEntity player,
IDroneBase e)
public static IDroneBase getDebuggedDrone()
public float getFOVModifier(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.inventory.EquipmentSlotType slot)
IFOVModifierItemgetFOVModifier in interface IFOVModifierItemstack - the equipped itemplayer - the player who has the item equippedslot - the equipment slotpublic net.minecraft.inventory.container.INamedContainerProvider getContainerProvider(TileEntityChargingStation te)
IChargeableContainerProvidergetContainerProvider in interface IChargeableContainerProviderte - the charging station that the item is inpublic boolean shouldShowCustomDurabilityBar(net.minecraft.item.ItemStack stack)
ICustomDurabilityBarshouldShowCustomDurabilityBar in interface ICustomDurabilityBarstack - the item stackpublic int getCustomDurabilityColour(net.minecraft.item.ItemStack stack)
ICustomDurabilityBargetCustomDurabilityColour in interface ICustomDurabilityBarstack - the item stackpublic float getCustomDurability(net.minecraft.item.ItemStack stack)
ICustomDurabilityBargetCustomDurability in interface ICustomDurabilityBarstack - the item stackpublic int getTintColor(net.minecraft.item.ItemStack stack,
int tintIndex)
getTintColor in interface ColorHandlers.ITintableItempublic int getColor(net.minecraft.item.ItemStack stack)
getColor in interface net.minecraft.item.IDyeableArmorItempublic int getSecondaryColor(net.minecraft.item.ItemStack stack)
stack - the armor piecepublic void setSecondaryColor(net.minecraft.item.ItemStack stack,
int color)
public int getEyepieceColor(net.minecraft.item.ItemStack stack)
public void setEyepieceColor(net.minecraft.item.ItemStack stack,
int color)