Class EntityUtil
java.lang.Object
com.binaris.wizardry.api.content.util.EntityUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.entity.EquipmentSlot[] -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanattackEntityWithoutKnockback(net.minecraft.world.entity.Entity entity, net.minecraft.world.damagesource.DamageSource source, float amount) static booleancanDamageBlocks(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.level.Level world) static booleandoAllArmorPiecesHaveMana(net.minecraft.world.entity.LivingEntity entity) static booleandoesPlayerHaveItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) static net.minecraft.world.phys.Vec3findSpaceForTeleport(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 destination, boolean accountForPassengers) static Collection<net.minecraft.world.item.ItemStack>getAllItems(net.minecraft.world.entity.player.Player player) static Collection<net.minecraft.world.item.ItemStack>getAllItemsIncludingCarried(net.minecraft.world.entity.player.Player player) static intgetDefaultAimingError(net.minecraft.world.Difficulty difficulty) static <T extends net.minecraft.world.entity.Entity>
List<T>getEntitiesInRange(net.minecraft.world.level.Level world, double x, double y, double z, double range, Class<T> entityClass) static <T extends net.minecraft.world.entity.Entity>
List<T>getEntitiesWithinCylinder(double radius, double x, double y, double z, double height, net.minecraft.world.level.Level world, Class<T> entityType) static <T extends net.minecraft.world.entity.Entity>
List<T>getEntitiesWithinRadius(double radius, double x, double y, double z, net.minecraft.world.level.Level world, Class<T> entityType) static @Nullable net.minecraft.world.entity.EntitygetEntityByUUID(net.minecraft.world.level.Level world, @Nullable UUID id) static List<net.minecraft.world.item.ItemStack>getHotBarAndHandItems(net.minecraft.world.entity.player.Player player) static List<net.minecraft.world.item.ItemStack>getHotbarItems(net.minecraft.world.entity.player.Player player) static List<net.minecraft.world.entity.LivingEntity>getLivingEntitiesInRange(net.minecraft.world.level.Level world, double x, double y, double z, double range) static List<net.minecraft.world.entity.LivingEntity>getLivingWithinCylinder(double radius, double x, double y, double z, double height, net.minecraft.world.level.Level world) static List<net.minecraft.world.entity.LivingEntity>getLivingWithinRadius(double radius, double x, double y, double z, net.minecraft.world.level.Level world) static @Nullable net.minecraft.world.entity.EntitygetRider(net.minecraft.world.entity.Entity entity) static @NotNull net.minecraft.world.item.ItemStackgetWandInUse(net.minecraft.world.entity.player.Player player) static booleanstatic booleanisWearingFullMagicArmorSet(net.minecraft.world.entity.LivingEntity entity, @Nullable Element element, @Nullable WizardArmorMaterial armor) static voidplaySoundAtPlayer(net.minecraft.world.entity.player.Player player, net.minecraft.sounds.SoundEvent sound, float volume, float pitch) static SpellTierpopulateSpells(List<Spell> spells, Element e, boolean master, int n, net.minecraft.util.RandomSource random)
-
Field Details
-
ARMOR_SLOTS
public static final net.minecraft.world.entity.EquipmentSlot[] ARMOR_SLOTS
-
-
Method Details
-
getEntityByUUID
@Nullable public static @Nullable net.minecraft.world.entity.Entity getEntityByUUID(net.minecraft.world.level.Level world, @Nullable @Nullable UUID id) -
getLivingEntitiesInRange
public static List<net.minecraft.world.entity.LivingEntity> getLivingEntitiesInRange(net.minecraft.world.level.Level world, double x, double y, double z, double range) -
getLivingWithinRadius
public static List<net.minecraft.world.entity.LivingEntity> getLivingWithinRadius(double radius, double x, double y, double z, net.minecraft.world.level.Level world) -
getEntitiesInRange
-
getEntitiesWithinRadius
-
attackEntityWithoutKnockback
public static boolean attackEntityWithoutKnockback(net.minecraft.world.entity.Entity entity, net.minecraft.world.damagesource.DamageSource source, float amount) -
getRider
@Nullable public static @Nullable net.minecraft.world.entity.Entity getRider(net.minecraft.world.entity.Entity entity) -
findSpaceForTeleport
public static net.minecraft.world.phys.Vec3 findSpaceForTeleport(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 destination, boolean accountForPassengers) -
getLivingWithinCylinder
public static List<net.minecraft.world.entity.LivingEntity> getLivingWithinCylinder(double radius, double x, double y, double z, double height, net.minecraft.world.level.Level world) -
getEntitiesWithinCylinder
-
canDamageBlocks
public static boolean canDamageBlocks(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.level.Level world) -
getDefaultAimingError
public static int getDefaultAimingError(net.minecraft.world.Difficulty difficulty) -
playSoundAtPlayer
public static void playSoundAtPlayer(net.minecraft.world.entity.player.Player player, net.minecraft.sounds.SoundEvent sound, float volume, float pitch) -
isCasting
-
populateSpells
-
getWandInUse
@NotNull public static @NotNull net.minecraft.world.item.ItemStack getWandInUse(net.minecraft.world.entity.player.Player player) -
getAllItems
public static Collection<net.minecraft.world.item.ItemStack> getAllItems(net.minecraft.world.entity.player.Player player) -
getAllItemsIncludingCarried
public static Collection<net.minecraft.world.item.ItemStack> getAllItemsIncludingCarried(net.minecraft.world.entity.player.Player player) -
getHotBarAndHandItems
public static List<net.minecraft.world.item.ItemStack> getHotBarAndHandItems(net.minecraft.world.entity.player.Player player) -
doesPlayerHaveItem
public static boolean doesPlayerHaveItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) -
getHotbarItems
public static List<net.minecraft.world.item.ItemStack> getHotbarItems(net.minecraft.world.entity.player.Player player) -
isWearingFullMagicArmorSet
public static boolean isWearingFullMagicArmorSet(net.minecraft.world.entity.LivingEntity entity, @Nullable @Nullable Element element, @Nullable @Nullable WizardArmorMaterial armor) -
doAllArmorPiecesHaveMana
public static boolean doAllArmorPiecesHaveMana(net.minecraft.world.entity.LivingEntity entity)
-