public class ItemUtils
Class ItemUtils. Provides itemutils functionality for the Hytale server.
java.lang.Object > ItemUtils
Field Summary
entity
final
LivingEntity
entity
Field entity.
event
final
InteractivelyPickupItemEvent
event
Field event.
playerComponent
final
Player
playerComponent
Field playerComponent.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
item
final
Item
item
Field item.
itemContainer
final
ItemContainer
itemContainer
Field itemContainer.
transaction
final
ItemStackTransaction
transaction
Field transaction.
remainder
final
ItemStack
remainder
Field remainder.
quantity
final
int
quantity
Field quantity.
itemStackClone
final
ItemStack
itemStackClone
Field itemStackClone.
headRotationComponent
final
HeadRotation
headRotationComponent
Field headRotationComponent.
rotation
final
Vector3f
rotation
Field rotation.
direction
final
Vector3d
direction
Field direction.
modelComponent
final
ModelComponent
modelComponent
Field modelComponent.
throwPosition
final
Vector3d
throwPosition
Field throwPosition.
model
final
Model
model
Field model.
itemEntityHolder
final
Holder
itemEntityHolder
Field itemEntityHolder.
itemComponent
final
ItemComponent
itemComponent
Field itemComponent.
Method Detail
interactivelyPickupItem
static
void
interactivelyPickupItem
(@Nonnull final Ref ref, @Nonnull final ItemStack itemStack, @Nullable final Vector3d origin, @Nonnull final ComponentAccessor componentAccessor)
Method interactivelyPickupItem.
- Parameters:
@Nonnull final Refref@Nonnull final ItemStackitemStack@Nullable final Vector3dorigin@Nonnull final ComponentAccessorcomponentAccessor
throwItem
static
Ref
throwItem
(@Nonnull final Ref ref, @Nonnull ItemStack itemStack, float throwSpeed, @Nonnull final ComponentAccessor componentAccessor)
Method throwItem.
- Parameters:
@Nonnull final Refref@Nonnull ItemStackitemStackfloatthrowSpeed@Nonnull final ComponentAccessorcomponentAccessor
dropItem
static
Ref
dropItem
(@Nonnull final Ref ref, @Nonnull final ItemStack itemStack, @Nonnull final ComponentAccessor componentAccessor)
Method dropItem.
- Parameters:
@Nonnull final Refref@Nonnull final ItemStackitemStack@Nonnull final ComponentAccessorcomponentAccessor