Class BasicWerewolfEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.entity.Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
de.teamlapen.vampirism.entity.VampirismEntity
de.teamlapen.werewolves.entities.werewolf.WerewolfBaseEntity
de.teamlapen.werewolves.entities.werewolf.BasicWerewolfEntity
All Implemented Interfaces:
de.teamlapen.vampirism.api.difficulty.IAdjustableLevel, de.teamlapen.vampirism.api.entity.factions.IFactionEntity, de.teamlapen.vampirism.api.entity.IEntityWithHome, de.teamlapen.vampirism.api.entity.IFactionMob, de.teamlapen.vampirism.api.entity.IVampirismEntity, de.teamlapen.vampirism.api.entity.IVillageCaptureEntity, de.teamlapen.werewolves.api.entities.IEntityFollower, de.teamlapen.werewolves.api.entities.werewolf.IWerewolf, de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder, de.teamlapen.werewolves.api.entities.werewolf.IWerewolfMob, de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable, net.minecraft.commands.CommandSource, net.minecraft.world.entity.Attackable, net.minecraft.world.entity.Targeting, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.entity.Entity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeEntity, net.minecraftforge.common.extensions.IForgeLivingEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Direct Known Subclasses:
BasicWerewolfEntity.Beast, BasicWerewolfEntity.Survivalist

public abstract class BasicWerewolfEntity extends WerewolfBaseEntity implements de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable, de.teamlapen.vampirism.api.entity.IVillageCaptureEntity, de.teamlapen.werewolves.api.entities.IEntityFollower, de.teamlapen.vampirism.api.difficulty.IAdjustableLevel, de.teamlapen.vampirism.api.entity.factions.IFactionEntity
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity

    net.minecraft.world.entity.LivingEntity.Fallsounds

    Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity

    net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReason

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    protected static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    protected de.teamlapen.vampirism.api.world.ICaptureAttributes
     

    Fields inherited from class de.teamlapen.vampirism.entity.VampirismEntity

    hasArms, peaceful, saveHome

    Fields inherited from class net.minecraft.world.entity.PathfinderMob

    DEFAULT_WALK_TARGET_VALUE

    Fields inherited from class net.minecraft.world.entity.Mob

    ambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpReward

    Fields inherited from class net.minecraft.world.entity.LivingEntity

    animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza

    Fields inherited from class net.minecraft.world.entity.Entity

    BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL

    Fields inherited from interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable

    TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicWerewolfEntity(net.minecraft.world.entity.EntityType<? extends BasicWerewolfEntity> type, net.minecraft.world.level.Level world)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
     
     
    void
    addAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt)
     
    void
     
    void
    attackVillage(de.teamlapen.vampirism.api.world.ICaptureAttributes iCaptureAttributes)
     
    boolean
     
    void
    convertToMinion(net.minecraft.world.entity.player.Player lord)
    Assumes preconditions as been met.
    void
    defendVillage(de.teamlapen.vampirism.api.world.ICaptureAttributes iCaptureAttributes)
     
    protected void
     
    boolean
    doHurtTarget(@NotNull net.minecraft.world.entity.Entity entity)
     
    protected net.minecraft.sounds.SoundEvent
     
    int
     
    de.teamlapen.vampirism.api.world.ICaptureAttributes
     
    net.minecraft.world.entity.EntityDimensions
    getDimensions(net.minecraft.world.entity.Pose poseIn)
     
    de.teamlapen.vampirism.api.entity.EntityClassType
     
    int
     
    de.teamlapen.vampirism.api.entity.actions.EntityActionTier
     
    int
    getEyeType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
     
    abstract de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm
     
    Optional<de.teamlapen.vampirism.api.entity.IEntityLeader>
     
    int
     
    int
    getSkinType(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
     
    net.minecraft.world.phys.AABB
     
    boolean
    hasGlowingEyes(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
     
    boolean
    hurt(net.minecraft.world.damagesource.DamageSource source, float amount)
     
    boolean
     
    boolean
     
    boolean
     
    protected net.minecraft.world.InteractionResult
    mobInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     
    void
     
    void
    readAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt)
     
    protected void
     
    void
    setEntityLevel(int level)
     
    void
    setLeader(de.teamlapen.vampirism.api.entity.IEntityLeader leader)
     
    void
    setSourceEntity(de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable entity)
     
    void
    start(de.teamlapen.werewolves.api.entities.werewolf.TransformType type)
     
    void
     
    int
    suggestEntityLevel(de.teamlapen.vampirism.api.difficulty.Difficulty difficulty)
     
    protected void
     

    Methods inherited from class de.teamlapen.werewolves.entities.werewolf.WerewolfBaseEntity

    bite, getAttributeBuilder, getClassification, getRepresentingEntity, spawnPredicateWerewolf

    Methods inherited from class de.teamlapen.vampirism.entity.VampirismEntity

    canBeLeashed, checkSpawnRules, customServerAiStep, disableImobConversion, disableMoveTowardsRestriction, enableImobConversion, getDeathSound, getFallSounds, getHome, getHomePosition, getHurtSound, getIMobTypeOpt, getSwimSound, getSwimSplashSound, isLowLightLevel, isWithinHomeDistance, isWithinRestriction, isWithinRestriction, onRandomTick, restrictTo, setDontDropEquipment, setHome, setHomeArea, setMoveTowardsRestriction, shouldDropExperience, spawnPredicateVampireFog, teleportAway, tick

    Methods inherited from class net.minecraft.world.entity.PathfinderMob

    followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeash

    Methods inherited from class net.minecraft.world.entity.Mob

    ate, baseTick, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createMobAttributes, createNavigation, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, finalizeSpawn, getArmorSlots, getControllingPassenger, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, getTarget, handleEntityEvent, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isSpawnCancelled, isSunBurnTick, isWithinMeleeAttackRange, jumpInFluid, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, removeWhenFarAway, requiresCustomPersistence, sendDebugPackets, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp

    Methods inherited from class net.minecraft.world.entity.LivingEntity

    actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMeleeAttackReferencePosition, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, onSyncedDataUpdated, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed

    Methods inherited from class net.minecraft.world.entity.Entity

    absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface de.teamlapen.vampirism.api.entity.IEntityWithHome

    isWithinHomeDistance

    Methods inherited from interface de.teamlapen.vampirism.api.entity.factions.IFactionEntity

    getRepresentingEntity

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity

    canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity

    canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid

    Methods inherited from interface de.teamlapen.werewolves.api.entities.werewolf.IWerewolf

    getFaction

    Methods inherited from interface de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder

    getEyeType, getSkinType, hasGlowingEyes

    Methods inherited from interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable

    reset, transformBack, transformToWerewolf
  • Field Details

    • SKINTYPE

      protected static final net.minecraft.network.syncher.EntityDataAccessor<Integer> SKINTYPE
    • EYETYPE

      protected static final net.minecraft.network.syncher.EntityDataAccessor<Integer> EYETYPE
    • villageAttributes

      @Nullable protected de.teamlapen.vampirism.api.world.ICaptureAttributes villageAttributes
    • attack

      protected boolean attack
  • Constructor Details

    • BasicWerewolfEntity

      public BasicWerewolfEntity(net.minecraft.world.entity.EntityType<? extends BasicWerewolfEntity> type, net.minecraft.world.level.Level world)
  • Method Details

    • getDimensions

      @Nonnull public net.minecraft.world.entity.EntityDimensions getDimensions(@Nonnull net.minecraft.world.entity.Pose poseIn)
      Overrides:
      getDimensions in class net.minecraft.world.entity.LivingEntity
    • isPersistenceRequired

      public boolean isPersistenceRequired()
      Overrides:
      isPersistenceRequired in class net.minecraft.world.entity.Mob
    • getForm

      @Nonnull public abstract de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm getForm()
      Specified by:
      getForm in interface de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
      Specified by:
      getForm in interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
    • _transformToWerewolf

      public BasicWerewolfEntity _transformToWerewolf()
      Specified by:
      _transformToWerewolf in interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
    • _transformBack

      public de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable _transformBack()
      Specified by:
      _transformBack in interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
    • getEntityClass

      public de.teamlapen.vampirism.api.entity.EntityClassType getEntityClass()
      Specified by:
      getEntityClass in interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
    • getEntityTier

      public de.teamlapen.vampirism.api.entity.actions.EntityActionTier getEntityTier()
      Specified by:
      getEntityTier in interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
    • getSkinType

      public int getSkinType(@Nullable de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
      Specified by:
      getSkinType in interface de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
    • getEyeType

      public int getEyeType(@Nullable de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
      Specified by:
      getEyeType in interface de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
    • start

      public void start(de.teamlapen.werewolves.api.entities.werewolf.TransformType type)
      Specified by:
      start in interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
    • aiStep

      public void aiStep()
      Overrides:
      aiStep in class de.teamlapen.vampirism.entity.VampirismEntity
    • readAdditionalSaveData

      public void readAdditionalSaveData(@Nonnull net.minecraft.nbt.CompoundTag nbt)
      Overrides:
      readAdditionalSaveData in class de.teamlapen.vampirism.entity.VampirismEntity
    • addAdditionalSaveData

      public void addAdditionalSaveData(@Nonnull net.minecraft.nbt.CompoundTag nbt)
      Overrides:
      addAdditionalSaveData in class de.teamlapen.vampirism.entity.VampirismEntity
    • hurt

      public boolean hurt(@Nonnull net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurt in class net.minecraft.world.entity.LivingEntity
    • getEntityLevel

      public int getEntityLevel()
      Specified by:
      getEntityLevel in interface de.teamlapen.vampirism.api.difficulty.IAdjustableLevel
    • hasGlowingEyes

      public boolean hasGlowingEyes(de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm form)
      Specified by:
      hasGlowingEyes in interface de.teamlapen.werewolves.api.entities.werewolf.IWerewolfDataholder
    • setEntityLevel

      public void setEntityLevel(int level)
      Specified by:
      setEntityLevel in interface de.teamlapen.vampirism.api.difficulty.IAdjustableLevel
    • mobInteract

      @Nonnull protected net.minecraft.world.InteractionResult mobInteract(@Nonnull net.minecraft.world.entity.player.Player player, @Nonnull net.minecraft.world.InteractionHand hand)
      Overrides:
      mobInteract in class net.minecraft.world.entity.Mob
    • convertToMinion

      public void convertToMinion(net.minecraft.world.entity.player.Player lord)
      Assumes preconditions as been met. Checks conditions but does not give feedback to user
    • getMaxEntityLevel

      public int getMaxEntityLevel()
      Specified by:
      getMaxEntityLevel in interface de.teamlapen.vampirism.api.difficulty.IAdjustableLevel
    • canTransform

      public boolean canTransform()
      Specified by:
      canTransform in interface de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable
    • suggestEntityLevel

      public int suggestEntityLevel(de.teamlapen.vampirism.api.difficulty.Difficulty difficulty)
      Specified by:
      suggestEntityLevel in interface de.teamlapen.vampirism.api.difficulty.IAdjustableLevel
    • updateEntityAttributes

      protected void updateEntityAttributes()
    • onAddedToWorld

      public void onAddedToWorld()
      Specified by:
      onAddedToWorld in interface net.minecraftforge.common.extensions.IForgeEntity
      Overrides:
      onAddedToWorld in class net.minecraft.world.entity.Entity
    • setSourceEntity

      public void setSourceEntity(de.teamlapen.werewolves.api.entities.werewolf.WerewolfTransformable entity)
    • attackVillage

      public void attackVillage(de.teamlapen.vampirism.api.world.ICaptureAttributes iCaptureAttributes)
      Specified by:
      attackVillage in interface de.teamlapen.vampirism.api.entity.IVillageCaptureEntity
    • defendVillage

      public void defendVillage(de.teamlapen.vampirism.api.world.ICaptureAttributes iCaptureAttributes)
      Specified by:
      defendVillage in interface de.teamlapen.vampirism.api.entity.IVillageCaptureEntity
    • getTargetVillageArea

      @Nullable public net.minecraft.world.phys.AABB getTargetVillageArea()
      Specified by:
      getTargetVillageArea in interface de.teamlapen.vampirism.api.entity.IVillageCaptureEntity
    • getAmbientSoundInterval

      public int getAmbientSoundInterval()
      Overrides:
      getAmbientSoundInterval in class net.minecraft.world.entity.Mob
    • getAmbientSound

      protected net.minecraft.sounds.SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class net.minecraft.world.entity.Mob
    • getCaptureInfo

      @Nullable public de.teamlapen.vampirism.api.world.ICaptureAttributes getCaptureInfo()
      Specified by:
      getCaptureInfo in interface de.teamlapen.vampirism.api.entity.IVillageCaptureEntity
    • isDefendingVillage

      public boolean isDefendingVillage()
      Specified by:
      isDefendingVillage in interface de.teamlapen.vampirism.api.entity.IVillageCaptureEntity
    • isAttackingVillage

      public boolean isAttackingVillage()
      Specified by:
      isAttackingVillage in interface de.teamlapen.vampirism.api.entity.IVillageCaptureEntity
    • stopVillageAttackDefense

      public void stopVillageAttackDefense()
      Specified by:
      stopVillageAttackDefense in interface de.teamlapen.vampirism.api.entity.IVillageCaptureEntity
    • registerGoals

      protected void registerGoals()
      Overrides:
      registerGoals in class net.minecraft.world.entity.Mob
    • defineSynchedData

      protected void defineSynchedData()
      Overrides:
      defineSynchedData in class net.minecraft.world.entity.Mob
    • getLeader

      @Nonnull public Optional<de.teamlapen.vampirism.api.entity.IEntityLeader> getLeader()
      Specified by:
      getLeader in interface de.teamlapen.werewolves.api.entities.IEntityFollower
    • setLeader

      public void setLeader(@Nullable de.teamlapen.vampirism.api.entity.IEntityLeader leader)
      Specified by:
      setLeader in interface de.teamlapen.werewolves.api.entities.IEntityFollower
    • doHurtTarget

      public boolean doHurtTarget(@NotNull @NotNull net.minecraft.world.entity.Entity entity)
      Overrides:
      doHurtTarget in class net.minecraft.world.entity.Mob