Class WerewolfPlayer
java.lang.Object
de.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
de.teamlapen.werewolves.entities.player.werewolf.WerewolfPlayer
- All Implemented Interfaces:
de.teamlapen.lib.lib.entity.IEntity,de.teamlapen.lib.lib.entity.IPlayerEventListener,de.teamlapen.lib.lib.storage.IAttachedSyncable,de.teamlapen.lib.lib.storage.IAttachment,de.teamlapen.lib.lib.storage.INBTObject,de.teamlapen.lib.lib.storage.ISavable,de.teamlapen.lib.lib.storage.ISyncable,de.teamlapen.lib.lib.storage.ISyncableSaveData,de.teamlapen.vampirism.api.entity.factions.IFactionEntity,de.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>,de.teamlapen.vampirism.api.extensions.IEntity,de.teamlapen.vampirism.api.extensions.ILivingEntity,de.teamlapen.vampirism.api.extensions.IPlayer,de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer,de.teamlapen.werewolves.api.entities.werewolf.IWerewolf,de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class WerewolfPlayer
extends de.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
implements de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
Fields inherited from class de.teamlapen.vampirism.entity.player.FactionBasePlayer
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbite(int entityId) booleancanBite()booleancanBiteEntity(net.minecraft.world.entity.LivingEntity entity) booleanbooleancanWearArmor(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, List<net.minecraft.world.item.ItemStack> stack) booleancanWearArmor(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, net.minecraft.world.item.ItemStack stack) booleancanWearArmor(List<net.minecraft.world.item.ItemStack> stacks) booleancanWearArmor(net.minecraft.world.item.ItemStack stack) voidcheckToolDamage(@NotNull net.minecraft.world.item.ItemStack from, @NotNull net.minecraft.world.item.ItemStack itemInHand, boolean forceCalculation) voidvoiddeserializeNBT(@NotNull net.minecraft.nbt.CompoundTag nbt) voiddeserializeUpdateNBT(@NotNull net.minecraft.nbt.CompoundTag nbt) voidstatic WerewolfPlayerget(net.minecraft.world.entity.player.Player playerEntity) de.teamlapen.vampirism.api.entity.player.actions.IActionHandler<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>net.minecraft.resources.ResourceLocationOptional<net.minecraft.world.item.Tier>floatde.teamlapen.vampirism.api.entity.factions.IFaction<?>intgetEyeType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) de.teamlapen.werewolves.api.entities.werewolf.WerewolfFormgetForm()intPredicate<net.minecraft.world.entity.LivingEntity>getNonFriendlySelector(boolean otherFactionPlayers, boolean ignoreDisguise) static Optional<WerewolfPlayer>getOpt(net.minecraft.world.entity.player.Player playerEntity) Deprecated.static Optional<WerewolfPlayer>getOptEx(net.minecraft.world.entity.Entity entity) gets werewolf player optionalstatic Optional<WerewolfPlayer>getOptSave(net.minecraft.world.entity.player.Player player) Deprecated, for removal: This API element is subject to removal in a future version.@NotNull de.teamlapen.vampirism.api.entity.player.skills.ISkillHandler<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>intgetSkinType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) booleanhasGlowingEyes(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) booleanisAffectedByWolfsbane(net.minecraft.world.level.LevelAccessor accessor, boolean forceRefresh) booleannbtKey()voidonChangedDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryKey, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryKey1) voidonDeath(net.minecraft.world.damagesource.DamageSource damageSource) booleanonEntityAttacked(net.minecraft.world.damagesource.DamageSource damageSource, float v) voidonEntityKilled(net.minecraft.world.entity.LivingEntity victim, net.minecraft.world.damagesource.DamageSource src) voidvoidonLevelChanged(int newLevel, int oldLevel) voidvoidvoidonUpdate()voidonUpdatePlayer(net.neoforged.neoforge.event.TickEvent.Phase phase) void@NotNull net.minecraft.nbt.CompoundTag@NotNull net.minecraft.nbt.CompoundTagbooleansetEyeType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, int type) voidsetForm(WerewolfFormAction action, de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) booleansetGlowingEyes(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, boolean on) voidsetSkinData(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, int[] data) booleansetSkinType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, int type) voidswitchForm(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) voidvoidupdateMinionAttributes(boolean increasedStats) Methods inherited from class de.teamlapen.vampirism.entity.player.FactionBasePlayer
asEntity, getLevel, getRepresentingEntity, getRepresentingPlayer, getTaskManager, isRemote, sync, sync, syncPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.teamlapen.vampirism.api.entity.factions.IFactionEntity
getRepresentingEntityMethods inherited from interface de.teamlapen.vampirism.api.entity.player.IFactionPlayer
asEntity, getFaction, getLevel, getRepresentingPlayer, getTaskManager, isRemoteMethods inherited from interface de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
getEyeType, getSkinType, hasGlowingEyesMethods inherited from interface de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer
getFaction
-
Constructor Details
-
WerewolfPlayer
public WerewolfPlayer(@Nonnull net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
get
-
getOpt
@Deprecated public static Optional<WerewolfPlayer> getOpt(@Nonnull net.minecraft.world.entity.player.Player playerEntity) Deprecated. -
getOptSave
@Deprecated(forRemoval=true) public static Optional<WerewolfPlayer> getOptSave(net.minecraft.world.entity.player.Player player) Deprecated, for removal: This API element is subject to removal in a future version. -
getOptEx
gets werewolf player optionalalready filters if the entity is a werewolf player
-
getForm
@Nonnull public de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm getForm()- Specified by:
getFormin interfacede.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
-
setForm
public void setForm(WerewolfFormAction action, de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) -
getInventory
-
switchForm
public void switchForm(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) -
canWearArmor
public boolean canWearArmor(net.minecraft.world.item.ItemStack stack) - Specified by:
canWearArmorin interfacede.teamlapen.werewolves.api.entities.player.IWerewolfPlayer
-
canWearArmor
-
canWearArmor
public boolean canWearArmor(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, List<net.minecraft.world.item.ItemStack> stack) -
canWearArmor
public boolean canWearArmor(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, net.minecraft.world.item.ItemStack stack) -
removeArmorModifier
public void removeArmorModifier() -
addArmorModifier
public void addArmorModifier() -
onChangedDimension
public void onChangedDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryKey, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryKey1) - Specified by:
onChangedDimensionin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener
-
getSpecialAttributes
-
onUpdate
public void onUpdate()- Specified by:
onUpdatein interfacede.teamlapen.lib.lib.entity.IPlayerEventListener- Overrides:
onUpdatein classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
setGlowingEyes
public boolean setGlowingEyes(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, boolean on) -
setEyeType
public boolean setEyeType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, int type) -
setSkinType
public boolean setSkinType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, int type) -
setSkinData
public void setSkinData(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form, int[] data) -
onDeath
public void onDeath(net.minecraft.world.damagesource.DamageSource damageSource) - Specified by:
onDeathin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener- Overrides:
onDeathin classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
getLevelHandler
-
onEntityAttacked
public boolean onEntityAttacked(net.minecraft.world.damagesource.DamageSource damageSource, float v) - Specified by:
onEntityAttackedin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener
-
onEntityKilled
public void onEntityKilled(net.minecraft.world.entity.LivingEntity victim, net.minecraft.world.damagesource.DamageSource src) - Specified by:
onEntityKilledin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener
-
onJoinWorld
public void onJoinWorld()- Specified by:
onJoinWorldin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener
-
syncLevelHandler
public void syncLevelHandler() -
onPlayerLoggedIn
public void onPlayerLoggedIn()- Specified by:
onPlayerLoggedInin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener
-
onPlayerLoggedOut
public void onPlayerLoggedOut()- Specified by:
onPlayerLoggedOutin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener
-
onUpdatePlayer
public void onUpdatePlayer(net.neoforged.neoforge.event.TickEvent.Phase phase) - Specified by:
onUpdatePlayerin interfacede.teamlapen.lib.lib.entity.IPlayerEventListener
-
canBiteEntity
public boolean canBiteEntity(net.minecraft.world.entity.LivingEntity entity) -
canBite
public boolean canBite() -
bite
public boolean bite(int entityId) -
onLevelChanged
public void onLevelChanged(int newLevel, int oldLevel) - Specified by:
onLevelChangedin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>- Overrides:
onLevelChangedin classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
isAffectedByWolfsbane
public boolean isAffectedByWolfsbane(net.minecraft.world.level.LevelAccessor accessor, boolean forceRefresh) -
canLeaveFaction
public boolean canLeaveFaction()- Specified by:
canLeaveFactionin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
getDisguisedAs
@Nullable public de.teamlapen.vampirism.api.entity.factions.IFaction<?> getDisguisedAs()- Specified by:
getDisguisedAsin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
getDigDropTier
-
getDigSpeed
public float getDigSpeed() -
getMaxLevel
public int getMaxLevel()- Specified by:
getMaxLevelin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
getNonFriendlySelector
public Predicate<net.minecraft.world.entity.LivingEntity> getNonFriendlySelector(boolean otherFactionPlayers, boolean ignoreDisguise) - Specified by:
getNonFriendlySelectorin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
isDisguised
public boolean isDisguised()- Specified by:
isDisguisedin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
getLastFormAction
-
getSkillHandler
@NotNull public @NotNull de.teamlapen.vampirism.api.entity.player.skills.ISkillHandler<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer> getSkillHandler()- Specified by:
getSkillHandlerin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
getActionHandler
public de.teamlapen.vampirism.api.entity.player.actions.IActionHandler<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer> getActionHandler()- Specified by:
getActionHandlerin interfacede.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
serializeNBT
@NotNull public @NotNull net.minecraft.nbt.CompoundTag serializeNBT()- Specified by:
serializeNBTin interfacenet.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>- Specified by:
serializeNBTin interfacede.teamlapen.lib.lib.storage.ISavable- Overrides:
serializeNBTin classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
serializeUpdateNBT
@NotNull public @NotNull net.minecraft.nbt.CompoundTag serializeUpdateNBT()- Specified by:
serializeUpdateNBTin interfacede.teamlapen.lib.lib.storage.ISyncable- Overrides:
serializeUpdateNBTin classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
deserializeNBT
public void deserializeNBT(@NotNull @NotNull net.minecraft.nbt.CompoundTag nbt) - Specified by:
deserializeNBTin interfacenet.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>- Specified by:
deserializeNBTin interfacede.teamlapen.lib.lib.storage.ISavable- Overrides:
deserializeNBTin classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
deserializeUpdateNBT
public void deserializeUpdateNBT(@NotNull @NotNull net.minecraft.nbt.CompoundTag nbt) - Specified by:
deserializeUpdateNBTin interfacede.teamlapen.lib.lib.storage.ISyncable- Overrides:
deserializeUpdateNBTin classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
checkToolDamage
public void checkToolDamage(@NotNull @NotNull net.minecraft.world.item.ItemStack from, @NotNull @NotNull net.minecraft.world.item.ItemStack itemInHand, boolean forceCalculation) -
checkWerewolfFormModifier
public void checkWerewolfFormModifier() -
getEyeType
public int getEyeType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) - Specified by:
getEyeTypein interfacede.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
-
getSkinType
public int getSkinType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) - Specified by:
getSkinTypein interfacede.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
-
hasGlowingEyes
public boolean hasGlowingEyes(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form) - Specified by:
hasGlowingEyesin interfacede.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
-
dropEquipment
public void dropEquipment() -
updateMinionAttributes
public void updateMinionAttributes(boolean increasedStats) - Specified by:
updateMinionAttributesin interfacede.teamlapen.werewolves.api.entities.player.IWerewolfPlayer
-
getAttachedKey
public net.minecraft.resources.ResourceLocation getAttachedKey()- Specified by:
getAttachedKeyin interfacede.teamlapen.lib.lib.storage.IAttachedSyncable
-
nbtKey
- Specified by:
nbtKeyin interfacede.teamlapen.lib.lib.storage.INBTObject
-