Package de.teamlapen.werewolves.util
Class Helper
java.lang.Object
de.teamlapen.vampirism.util.Helper
de.teamlapen.werewolves.util.Helper
public class Helper
extends de.teamlapen.vampirism.util.Helper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<de.teamlapen.werewolves.api.entities.werewolf.IWerewolf>asIWerewolf(net.minecraft.world.entity.LivingEntity entity) static booleancanBecomeWerewolf(net.minecraft.world.entity.player.Player player) static booleancanEat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) static booleancanWerewolfEatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) Deprecated.static booleancanWerewolfPlayerEatItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Deprecated.getMissingItems(net.minecraft.world.Container inventory, net.minecraft.world.item.Item[] items, int[] amount) static booleanhasFaction(net.minecraft.world.entity.Entity entity) static booleanisFullMoon(net.minecraft.world.level.Level world) static booleanisMeat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) static booleanisMeat(net.minecraft.world.item.ItemStack stack) Deprecated.static booleanisNight(net.minecraft.world.level.Level world) static booleanisNoLiving(net.minecraft.world.entity.LivingEntity entity) static booleanisRawMeat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) static booleanisRawMeat(net.minecraft.world.item.ItemStack stack) Deprecated.static booleanisRawMeatSkipMeat(net.minecraft.world.item.ItemStack stack) Should only be called whenisMeat(net.minecraft.world.entity.LivingEntity, net.minecraft.world.item.ItemStack)wastruepreviously.static booleanisSilverItem(net.minecraft.world.item.ItemStack stack) static booleanisWerewolf(net.minecraft.world.entity.Entity entity) static booleanisWerewolf(net.minecraft.world.entity.player.Player entity) static net.minecraft.network.chat.MutableComponentjoinComponents(String delimiter, net.minecraft.network.chat.MutableComponent... components) static booleanmatchesItem(net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack searchStack) static net.minecraft.core.BlockPosmultiplyBlockPos(net.minecraft.core.BlockPos pos, double amount) Methods inherited from class de.teamlapen.vampirism.util.Helper
areSkillsEnabled, attemptToGuessGenderSafe, canBecomeVampire, canBlockSeeSun, canKillVampires, canTurnPlayer, canUseFactionItem, createEntity, getBiome, getBiomeId, getBiomeId, getBiomeId, getExperiencePoints, getGarlicStrength, getGarlicStrengthAt, gettingSundamge, getWorldKey, isEntityInArtificalVampireFogArea, isEntityInVampireBiome, isHunter, isHunter, isPosInVampireBiome, isVampire, isVampire, newDoubleNBTList
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
isWerewolf
public static boolean isWerewolf(net.minecraft.world.entity.Entity entity) -
isWerewolf
public static boolean isWerewolf(net.minecraft.world.entity.player.Player entity) -
hasFaction
public static boolean hasFaction(net.minecraft.world.entity.Entity entity) -
multiplyBlockPos
public static net.minecraft.core.BlockPos multiplyBlockPos(net.minecraft.core.BlockPos pos, double amount) -
canBecomeWerewolf
public static boolean canBecomeWerewolf(net.minecraft.world.entity.player.Player player) -
isNight
public static boolean isNight(net.minecraft.world.level.Level world) -
isFullMoon
public static boolean isFullMoon(net.minecraft.world.level.Level world) -
getMissingItems
-
canWerewolfEatItem
@Deprecated public static boolean canWerewolfEatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) Deprecated. -
canWerewolfPlayerEatItem
@Deprecated public static boolean canWerewolfPlayerEatItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Deprecated. -
isMeat
public static boolean isMeat(@Nullable net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) -
isMeat
Deprecated. -
isRawMeat
public static boolean isRawMeat(@Nullable net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) -
isRawMeat
Deprecated. -
isRawMeatSkipMeat
public static boolean isRawMeatSkipMeat(net.minecraft.world.item.ItemStack stack) Should only be called whenisMeat(net.minecraft.world.entity.LivingEntity, net.minecraft.world.item.ItemStack)wastruepreviously.Otherwise use
isRawMeat(net.minecraft.world.entity.LivingEntity, net.minecraft.world.item.ItemStack) -
canEat
public static boolean canEat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) -
asIWerewolf
public static Optional<de.teamlapen.werewolves.api.entities.werewolf.IWerewolf> asIWerewolf(net.minecraft.world.entity.LivingEntity entity) -
matchesItem
public static boolean matchesItem(net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack searchStack) -
joinComponents
public static net.minecraft.network.chat.MutableComponent joinComponents(String delimiter, net.minecraft.network.chat.MutableComponent... components) -
isSilverItem
public static boolean isSilverItem(net.minecraft.world.item.ItemStack stack) -
isNoLiving
public static boolean isNoLiving(net.minecraft.world.entity.LivingEntity entity)
-