TransformedItemStack

ItemStack with offset and scale

Parameters

position

global position (x, y, z)

offset

offset (x, y, z)

scale

scale (x, y, z)

itemStack

item

See also

ItemStack

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@NotNull
open fun asAir(): @NotNull TransformedItemStack
Gets transformed item as air
Link copied to clipboard
@NotNull
open fun copy(): @NotNull TransformedItemStack
Copy this item
Link copied to clipboard
@NotNull
open fun empty(): @NotNull TransformedItemStack
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isAir(): Boolean
Checks this item is air
Link copied to clipboard
@NotNull
open fun modify(@NotNull mapper: @NotNull (ItemStack) -> ItemStack): @NotNull TransformedItemStack
Modify item
Link copied to clipboard
@NotNull
open fun of(@NotNull itemStack: @NotNull ItemStack): @NotNull TransformedItemStack
@NotNull
open fun of(@NotNull position: @NotNull Vector3f, @NotNull offset: @NotNull Vector3f, @NotNull scale: @NotNull Vector3f, @NotNull itemStack: @NotNull ItemStack): @NotNull TransformedItemStack
Creates transformed item
Link copied to clipboard
abstract fun toString(): String