🤠
cedoscript
  • Introduction
  • Documentation
    • Packets
    • Setting Command
    • Java Imports
    • Examples
      • Creating a Pack
      • Custom Block Animation
      • Bhop
      • Setting Creation
      • Post Notification
      • Gradient Round Rectangle
      • Applying a gradient
      • Simulate a command
  • api
    • Events
    • Settings
    • Objects
      • EntityLivingBase
      • ItemStack
      • Player Abilities
      • Color
      • TimerUtil
      • Continual Animation
      • ShaderUtil
      • FrameBuffer
      • Rainbow
      • Drag
      • Pair
      • Module
  • Bindings
    • Client
    • Player
    • Packet
    • Action
    • Facing
    • Potion
    • Notification
    • Render
    • Stats
    • Font
    • User
    • World
Powered by GitBook
On this page
  • Functions
  • getMaxStackSize
  • getDisplayName
  • hasEffect

Was this helpful?

  1. api
  2. Objects

ItemStack

Functions

getMaxStackSize

var maxSize = itemStack.getMaxStackSize()

Returns a Number with the maximum stack size of the item stack

getDisplayName

var itemStackName = itemStack.getDisplayName()

Returns a String of the item stack's name

hasEffect

var effect = itemStack.hasEffect()

Returns True if the item stack has an enchantment effect

PreviousEntityLivingBaseNextPlayer Abilities

Last updated 2 years ago

Was this helpful?