Class ExpandLivingDropsEvent
java.lang.Object
com.blamejared.crafttweaker.natives.event.entity.living.ExpandLivingDropsEvent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDrop(net.minecraftforge.event.entity.living.LivingDropsEvent internal, IItemStack stack) Adds an item to the drops.static List<IItemStack>getDrops(net.minecraftforge.event.entity.living.LivingDropsEvent internal) Returns the list of items will be dropped.static intgetLootingLevel(net.minecraftforge.event.entity.living.LivingDropsEvent internal) static net.minecraft.world.damagesource.DamageSourcegetSource(net.minecraftforge.event.entity.living.LivingDropsEvent internal) static booleanisRecentlyHit(net.minecraftforge.event.entity.living.LivingDropsEvent internal) Whether the Entity doing the drop has recently been damaged.static voidremoveDrop(net.minecraftforge.event.entity.living.LivingDropsEvent internal, IIngredient ingredient) Removes items that match the given ingredient from drops.static voidsetDrops(net.minecraftforge.event.entity.living.LivingDropsEvent internal, List<IItemStack> drops) Sets which items will be dropped.
-
Field Details
-
BUS
-
-
Constructor Details
-
ExpandLivingDropsEvent
public ExpandLivingDropsEvent()
-
-
Method Details
-
getSource
public static net.minecraft.world.damagesource.DamageSource getSource(net.minecraftforge.event.entity.living.LivingDropsEvent internal) -
getDrops
public static List<IItemStack> getDrops(net.minecraftforge.event.entity.living.LivingDropsEvent internal) Returns the list of items will be dropped. The list is read-only, modifying this list does not change the drops.You should use the `drops` setter, `addDrop` or `removeDrop` method to change the drops.
-
setDrops
public static void setDrops(net.minecraftforge.event.entity.living.LivingDropsEvent internal, List<IItemStack> drops) Sets which items will be dropped. -
getLootingLevel
public static int getLootingLevel(net.minecraftforge.event.entity.living.LivingDropsEvent internal) -
isRecentlyHit
public static boolean isRecentlyHit(net.minecraftforge.event.entity.living.LivingDropsEvent internal) Whether the Entity doing the drop has recently been damaged. -
addDrop
public static void addDrop(net.minecraftforge.event.entity.living.LivingDropsEvent internal, IItemStack stack) Adds an item to the drops. -
removeDrop
public static void removeDrop(net.minecraftforge.event.entity.living.LivingDropsEvent internal, IIngredient ingredient) Removes items that match the given ingredient from drops.
-