Package team.lodestar.lodestone.helpers
Class ItemHelper
java.lang.Object
team.lodestar.lodestone.helpers.ItemHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<net.minecraft.world.item.ItemStack> copyWithNewCount(List<net.minecraft.world.item.ItemStack> stacks, int newCount) static net.minecraft.world.item.ItemStackcopyWithNewCount(net.minecraft.world.item.ItemStack stack, int newCount) static <T extends net.minecraft.world.entity.Entity>
net.minecraft.world.entity.EntitygetClosestEntity(List<T> entities, net.minecraft.world.phys.Vec3 pos) static voidgiveItemToEntity(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) static voidquietlyGiveItemToPlayer(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) static voidspawnItemOnEntity(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
-
Constructor Details
-
ItemHelper
public ItemHelper()
-
-
Method Details
-
copyWithNewCount
-
copyWithNewCount
public static net.minecraft.world.item.ItemStack copyWithNewCount(net.minecraft.world.item.ItemStack stack, int newCount) -
getClosestEntity
public static <T extends net.minecraft.world.entity.Entity> net.minecraft.world.entity.Entity getClosestEntity(List<T> entities, net.minecraft.world.phys.Vec3 pos) -
giveItemToEntity
public static void giveItemToEntity(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) -
quietlyGiveItemToPlayer
public static void quietlyGiveItemToPlayer(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) -
spawnItemOnEntity
public static void spawnItemOnEntity(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
-