Package org.cyclops.evilcraft.item
Class ItemExaltedCrafter
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.item.Item>
net.minecraft.world.item.Item
org.cyclops.cyclopscore.item.ItemGui
org.cyclops.evilcraft.item.ItemExaltedCrafter
- All Implemented Interfaces:
net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeItem,net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.item.Item>,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 ClassesNested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.PropertiesNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>> -
Field Summary
Fields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, category, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionItemExaltedCrafter(net.minecraft.world.item.Item.Properties properties, boolean wooden, boolean empowered) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.EntitycreateEntity(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity location, net.minecraft.world.item.ItemStack itemStack) net.minecraft.world.item.ItemStackempower(net.minecraft.world.item.ItemStack itemStack) Set the given ItemStack as an empowered item.net.minecraft.world.MenuProvidergetContainer(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.RaritygetRarity(net.minecraft.world.item.ItemStack itemStack) net.minecraft.world.ContainergetSupplementaryInventory(net.minecraft.world.entity.player.Player player, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation) Get the supplementary inventory of the given crafter.booleanhasCustomEntity(net.minecraft.world.item.ItemStack itemStack) net.minecraftforge.common.capabilities.ICapabilityProviderinitCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt) booleanisEmpowered(net.minecraft.world.item.ItemStack itemStack) If the given ItemStack is an empowered item.booleanisFoil(net.minecraft.world.item.ItemStack itemStack) static booleanisReturnToInner(net.minecraft.world.item.ItemStack itemStack) static voidsetReturnToInner(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, writeExtraGuiDataMethods inherited from class net.minecraft.world.item.Item
allowdedIn, appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, fillItemCategory, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getEquipSound, getFoodProperties, getId, getItemCategory, 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, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, canWalkOnPowderedSnow, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getItemEnchantability, getItemStackLimit, getMaxDamage, getShareTag, getSweepHitBox, getXpRepairRatio, hasContainerItem, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, 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:
isFoilin classnet.minecraft.world.item.Item
-
getRarity
public net.minecraft.world.item.Rarity getRarity(net.minecraft.world.item.ItemStack itemStack) - Overrides:
getRarityin classnet.minecraft.world.item.Item
-
isEmpowered
public boolean isEmpowered(net.minecraft.world.item.ItemStack itemStack) Description copied from interface:IItemEmpowerableIf the given ItemStack is an empowered item.- Specified by:
isEmpoweredin interfaceIItemEmpowerable- 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:IItemEmpowerableSet the given ItemStack as an empowered item.- Specified by:
empowerin interfaceIItemEmpowerable- 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:
hasCustomEntityin interfacenet.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:
createEntityin interfacenet.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:
getContainerin classorg.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:
getContainerClassin classorg.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:
usein classorg.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:
initCapabilitiesin interfacenet.minecraftforge.common.extensions.IForgeItem
-