public class ItemDrone extends ItemPressurizable implements IChargeableContainerProvider, IProgrammable, IUpgradeAcceptor
net.minecraft.item.Item.Propertiesnet.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>IChargeableContainerProvider.ProviderBASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, category, randomNBT_WIDGETS| Constructor and Description |
|---|
ItemDrone(java.util.function.BiFunction<net.minecraft.world.World,net.minecraft.entity.player.PlayerEntity,EntityDrone> droneCreator,
boolean programmable) |
| 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) |
boolean |
canProgram(net.minecraft.item.ItemStack stack)
When returned true, this stack may be programmed.
|
java.util.Map<EnumUpgrade,java.lang.Integer> |
getApplicableUpgrades()
This method is called as soon as an instance of this interface is registered, be aware.
|
net.minecraft.inventory.container.INamedContainerProvider |
getContainerProvider(TileEntityChargingStation te)
Get a container provider for this item
|
java.lang.String |
getUpgradeAcceptorTranslationKey()
Get a translation key for this upgrade acceptor.
|
boolean |
onEntityItemUpdate(net.minecraft.item.ItemStack stack,
net.minecraft.entity.item.ItemEntity entity) |
boolean |
showProgramTooltip()
Check if the item should have a tooltip added detailing the puzzle piece used to program it.
|
void |
spawnDrone(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos clickPos,
net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos placePos,
net.minecraft.item.ItemStack iStack) |
net.minecraft.util.ActionResultType |
useOn(net.minecraft.item.ItemUseContext ctx) |
boolean |
usesPieces(net.minecraft.item.ItemStack stack)
Check if Programming Puzzles are needed to program this item.
|
fillItemCategory, getAir, getBaseVolume, getDurabilityForDisplay, getEnchantmentValue, getRGBDurabilityForDisplay, getShareTag, getVolumeUpgrades, initCapabilities, isEnchantable, roundedPressure, shouldCauseReequipAnimation, showDurabilityBarallowdedIn, 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, 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, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakResetpublic ItemDrone(java.util.function.BiFunction<net.minecraft.world.World,net.minecraft.entity.player.PlayerEntity,EntityDrone> droneCreator, boolean programmable)
public net.minecraft.util.ActionResultType useOn(net.minecraft.item.ItemUseContext ctx)
useOn in class net.minecraft.item.Itempublic boolean onEntityItemUpdate(net.minecraft.item.ItemStack stack,
net.minecraft.entity.item.ItemEntity entity)
onEntityItemUpdate 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 void spawnDrone(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos clickPos,
net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos placePos,
net.minecraft.item.ItemStack iStack)
public boolean canProgram(net.minecraft.item.ItemStack stack)
IProgrammablecanProgram in interface IProgrammablestack - the item stack to checkpublic boolean usesPieces(net.minecraft.item.ItemStack stack)
IProgrammableusesPieces in interface IProgrammablestack - the item stack to checkpublic boolean showProgramTooltip()
IProgrammableshowProgramTooltip in interface IProgrammablepublic java.util.Map<EnumUpgrade,java.lang.Integer> getApplicableUpgrades()
IUpgradeAcceptorgetApplicableUpgrades in interface IUpgradeAcceptorpublic java.lang.String getUpgradeAcceptorTranslationKey()
IUpgradeAcceptorgetUpgradeAcceptorTranslationKey in interface IUpgradeAcceptorpublic net.minecraft.inventory.container.INamedContainerProvider getContainerProvider(TileEntityChargingStation te)
IChargeableContainerProvidergetContainerProvider in interface IChargeableContainerProviderte - the charging station that the item is in