Class ItemUtils
java.lang.Object
com.hypixel.hytale.server.core.entity.ItemUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Ref<EntityStore> dropItem(Ref<EntityStore> ref, ItemStack itemStack, ComponentAccessor<EntityStore> componentAccessor) static voidinteractivelyPickupItem(Ref<EntityStore> ref, ItemStack itemStack, Vector3d origin, ComponentAccessor<EntityStore> componentAccessor) static Ref<EntityStore> throwItem(Ref<EntityStore> ref, ComponentAccessor<EntityStore> store, ItemStack itemStack, Vector3d throwDirection, float throwSpeed) static Ref<EntityStore> throwItem(Ref<EntityStore> ref, ItemStack itemStack, float throwSpeed, ComponentAccessor<EntityStore> componentAccessor)
-
Constructor Details
-
ItemUtils
public ItemUtils()
-
-
Method Details
-
interactivelyPickupItem
public static void interactivelyPickupItem(@Nonnull Ref<EntityStore> ref, @Nonnull ItemStack itemStack, @Nullable Vector3d origin, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
throwItem
@Nullable public static Ref<EntityStore> throwItem(@Nonnull Ref<EntityStore> ref, @Nonnull ItemStack itemStack, float throwSpeed, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
throwItem
@Nullable public static Ref<EntityStore> throwItem(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> store, @Nonnull ItemStack itemStack, @Nonnull Vector3d throwDirection, float throwSpeed) -
dropItem
@Nullable public static Ref<EntityStore> dropItem(@Nonnull Ref<EntityStore> ref, @Nonnull ItemStack itemStack, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-