Class ItemExaltedCrafter

java.lang.Object
net.minecraft.world.item.Item
org.cyclops.cyclopscore.item.ItemGui
org.cyclops.evilcraft.item.ItemExaltedCrafter
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem, IItemEmpowerable

public class ItemExaltedCrafter extends org.cyclops.cyclopscore.item.ItemGui implements IItemEmpowerable
A portable crafting table with a built-in ender chest.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemExaltedCrafter(net.minecraft.world.item.Item.Properties properties, boolean wooden, boolean empowered)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.Entity
    createEntity(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity location, net.minecraft.world.item.ItemStack itemStack)
     
    net.minecraft.world.item.ItemStack
    empower(net.minecraft.world.item.ItemStack itemStack)
    Set the given ItemStack as an empowered item.
    net.minecraft.world.MenuProvider
    getContainer(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player playerEntity, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation)
     
    Class<? extends net.minecraft.world.inventory.AbstractContainerMenu>
    getContainerClass(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player playerEntity, net.minecraft.world.item.ItemStack itemStack)
     
    net.minecraft.world.item.Rarity
    getRarity(net.minecraft.world.item.ItemStack itemStack)
     
    net.minecraft.world.Container
    getSupplementaryInventory(net.minecraft.world.entity.player.Player player, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation)
    Get the supplementary inventory of the given crafter.
    boolean
    hasCustomEntity(net.minecraft.world.item.ItemStack itemStack)
     
    net.minecraftforge.common.capabilities.ICapabilityProvider
    initCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt)
     
    boolean
    isEmpowered(net.minecraft.world.item.ItemStack itemStack)
    If the given ItemStack is an empowered item.
    boolean
    isFoil(net.minecraft.world.item.ItemStack itemStack)
     
    static boolean
    isReturnToInner(net.minecraft.world.item.ItemStack itemStack)
     
    static void
    setReturnToInner(net.minecraft.world.item.ItemStack itemStack, boolean returnToInner)
     
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     

    Methods inherited from class org.cyclops.cyclopscore.item.ItemGui

    getOpenStat, onDroppedByPlayer, openGuiForItemIndex, useOn, writeExtraGuiData

    Methods inherited from class net.minecraft.world.item.Item

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Constructor Details

    • ItemExaltedCrafter

      public ItemExaltedCrafter(net.minecraft.world.item.Item.Properties properties, boolean wooden, boolean empowered)
  • Method Details

    • isFoil

      public boolean isFoil(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      isFoil in class net.minecraft.world.item.Item
    • getRarity

      public net.minecraft.world.item.Rarity getRarity(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      getRarity in class net.minecraft.world.item.Item
    • isEmpowered

      public boolean isEmpowered(net.minecraft.world.item.ItemStack itemStack)
      Description copied from interface: IItemEmpowerable
      If the given ItemStack is an empowered item.
      Specified by:
      isEmpowered in interface IItemEmpowerable
      Parameters:
      itemStack - The ItemStack to check.
      Returns:
      If it is an empowered item.
    • empower

      public net.minecraft.world.item.ItemStack empower(net.minecraft.world.item.ItemStack itemStack)
      Description copied from interface: IItemEmpowerable
      Set the given ItemStack as an empowered item.
      Specified by:
      empower in interface IItemEmpowerable
      Parameters:
      itemStack - The ItemStack to check.
      Returns:
      The empowered item.
    • getSupplementaryInventory

      public net.minecraft.world.Container getSupplementaryInventory(net.minecraft.world.entity.player.Player player, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation)
      Get the supplementary inventory of the given crafter.
      Parameters:
      player - The player using the crafter.
      itemLocation - The item location.
      Returns:
      The inventory.
    • hasCustomEntity

      public boolean hasCustomEntity(net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      hasCustomEntity in interface net.minecraftforge.common.extensions.IForgeItem
    • createEntity

      public net.minecraft.world.entity.Entity createEntity(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity location, net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      createEntity in interface net.minecraftforge.common.extensions.IForgeItem
    • setReturnToInner

      public static void setReturnToInner(net.minecraft.world.item.ItemStack itemStack, boolean returnToInner)
    • isReturnToInner

      public static boolean isReturnToInner(net.minecraft.world.item.ItemStack itemStack)
    • getContainer

      @Nullable public net.minecraft.world.MenuProvider getContainer(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player playerEntity, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation)
      Specified by:
      getContainer in class org.cyclops.cyclopscore.item.ItemGui
    • getContainerClass

      public Class<? extends net.minecraft.world.inventory.AbstractContainerMenu> getContainerClass(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player playerEntity, net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      getContainerClass in class org.cyclops.cyclopscore.item.ItemGui
    • use

      public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Overrides:
      use in class org.cyclops.cyclopscore.item.ItemGui
    • initCapabilities

      public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      initCapabilities in interface net.minecraftforge.common.extensions.IForgeItem