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.IPlayerEventListener,de.teamlapen.lib.lib.network.ISyncable,de.teamlapen.lib.lib.network.ISyncable.ISyncableEntityCapabilityInst,de.teamlapen.vampirism.api.entity.factions.IFactionEntity,de.teamlapen.vampirism.api.entity.player.IFactionPlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>,de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer,de.teamlapen.werewolves.api.entities.werewolf.IWerewolf,de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
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 classes/interfaces inherited from interface de.teamlapen.lib.lib.network.ISyncable
de.teamlapen.lib.lib.network.ISyncable.ISyncableEntityCapabilityInst -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.common.capabilities.Capability<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>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) voidprotected de.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>copyFromPlayer(net.minecraft.world.entity.player.Player playerEntity) static net.minecraftforge.common.capabilities.ICapabilityProvidercreateNewCapability(net.minecraft.world.entity.player.Player player) 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 net.minecraftforge.common.util.LazyOptional<WerewolfPlayer>getOpt(net.minecraft.world.entity.player.Player playerEntity) static net.minecraftforge.common.util.LazyOptional<WerewolfPlayer>getOptEx(net.minecraft.world.entity.Entity entity) gets werewolf player optionalstatic net.minecraftforge.common.util.LazyOptional<WerewolfPlayer>getOptSave(net.minecraft.world.entity.player.Player player) 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) booleanvoidloadData(net.minecraft.nbt.CompoundTag compound) protected voidloadUpdate(net.minecraft.nbt.CompoundTag nbt) 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.minecraftforge.event.TickEvent.Phase phase) voidvoidsaveData(net.minecraft.nbt.CompoundTag compound) booleansetEyeType(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) protected voidwriteFullUpdate(net.minecraft.nbt.CompoundTag nbt) Methods inherited from class de.teamlapen.vampirism.entity.player.FactionBasePlayer
getLevel, getRepresentingEntity, getRepresentingPlayer, getTaskManager, getTheEntityID, isRemote, loadUpdateFromNBT, onPlayerClone, sync, sync, writeFullUpdateToNBTMethods 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
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
-
Field Details
-
CAP
public static final net.minecraftforge.common.capabilities.Capability<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer> CAP
-
-
Constructor Details
-
WerewolfPlayer
public WerewolfPlayer(@Nonnull net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
get
-
getOpt
public static net.minecraftforge.common.util.LazyOptional<WerewolfPlayer> getOpt(@Nonnull net.minecraft.world.entity.player.Player playerEntity) -
getOptSave
public static net.minecraftforge.common.util.LazyOptional<WerewolfPlayer> getOptSave(net.minecraft.world.entity.player.Player player) -
getOptEx
public static net.minecraftforge.common.util.LazyOptional<WerewolfPlayer> getOptEx(@Nullable net.minecraft.world.entity.Entity entity) 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) -
copyFromPlayer
protected de.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer> copyFromPlayer(net.minecraft.world.entity.player.Player playerEntity) - Specified by:
copyFromPlayerin classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
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.minecraftforge.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) -
getCapKey
public net.minecraft.resources.ResourceLocation getCapKey()- Specified by:
getCapKeyin interfacede.teamlapen.lib.lib.network.ISyncable.ISyncableEntityCapabilityInst
-
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
public 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>
-
saveData
public void saveData(net.minecraft.nbt.CompoundTag compound) - Overrides:
saveDatain classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
loadData
public void loadData(net.minecraft.nbt.CompoundTag compound) - Overrides:
loadDatain classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
writeFullUpdate
protected void writeFullUpdate(net.minecraft.nbt.CompoundTag nbt) - Overrides:
writeFullUpdatein classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
loadUpdate
protected void loadUpdate(net.minecraft.nbt.CompoundTag nbt) - Overrides:
loadUpdatein classde.teamlapen.vampirism.entity.player.FactionBasePlayer<de.teamlapen.werewolves.api.entities.player.IWerewolfPlayer>
-
createNewCapability
public static net.minecraftforge.common.capabilities.ICapabilityProvider createNewCapability(net.minecraft.world.entity.player.Player player) -
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
-