public class EntityWerewolf
extends net.minecraft.entity.monster.MonsterEntity
experienceValue, goalSelector, inventoryArmorDropChances, inventoryHandsDropChances, jumpController, livingSoundTime, lookController, moveController, navigator, targetSelectoractiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collidedHorizontally, collidedVertically, dataManager, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesFluidLevel, eyesInWater, fallDistance, field_241335_O_, field_242271_ac, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, stepHeight, ticksExisted, velocityChanged, world| Constructor and Description |
|---|
EntityWerewolf(net.minecraft.entity.EntityType<? extends EntityWerewolf> type,
net.minecraft.world.World world) |
EntityWerewolf(net.minecraft.world.World world) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDespawn(double distanceToClosestPlayer) |
net.minecraft.util.SoundEvent |
getAmbientSound() |
float |
getBarkProgressScaled(float scale)
Get the bark progress scaled to the given parameter.
|
net.minecraft.entity.CreatureAttribute |
getCreatureAttribute() |
net.minecraft.util.SoundEvent |
getDeathSound() |
protected net.minecraft.util.SoundEvent |
getHurtSound(net.minecraft.util.DamageSource damageSource) |
net.minecraft.util.ResourceLocation |
getLootTable() |
protected float |
getSoundPitch() |
net.minecraft.nbt.CompoundNBT |
getVillagerNBTTagCompound()
Get the villager data.
|
static void |
initializeWerewolfVillagerData(net.minecraft.entity.merchant.villager.VillagerEntity villager) |
boolean |
isFromVillager()
If this werewolf was created from a transforming villager.
|
static boolean |
isWerewolfTime(net.minecraft.world.World world)
If at the current time in the given world werewolves can appear.
|
void |
livingTick() |
protected void |
playStepSound(net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.BlockState block) |
void |
readAdditional(net.minecraft.nbt.CompoundNBT NBTTagCompound) |
protected void |
registerGoals() |
static void |
replaceVillager(net.minecraft.entity.merchant.villager.VillagerEntity villager)
Replace the given villager with a werewolf and store the data of that villager.
|
void |
replaceWithVillager()
Replace this entity with the stored villager.
|
void |
setFromVillager(boolean fromVillager)
Set is from villager.
|
static void |
transformWerewolfVillager(net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent event) |
void |
writeAdditional(net.minecraft.nbt.CompoundNBT NBTTagCompound) |
attackEntityFrom, canDropLoot, canMonsterSpawn, canMonsterSpawnInLight, findAmmo, func_230282_cS_, func_230292_f_, func_234295_eP_, getBlockPathWeight, getFallSound, getSoundCategory, getSplashSound, getSwimSound, idle, isDespawnPeaceful, isValidLightLevelcanSpawn, followLeashSpeed, getBlockPathWeight, hasPath, onLeashDistance, updateLeashedStateattackEntityAsMob, baseTick, canAttack, canAttack, canBeLeashedTo, canBeSteered, canEquipItem, canPassengerSteer, canPickUpItem, canPickUpLoot, canSpawnOn, checkDespawn, clearLeashed, createBodyController, createNavigator, detachHome, dropLoot, dropSpecialItems, eatGrassBonus, enablePersistence, faceEntity, func_230254_b_, func_230280_a_, func_230286_q_, func_230293_i_, func_233656_b_, func_233657_b_, func_233659_b_, func_233660_b_, func_233663_d_, func_233665_g_, func_233666_p_, func_241844_w, func_242289_a, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropChance, getEntitySenses, getExperiencePoints, getFaceRotSpeed, getHeldEquipment, getHomePosition, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpController, getLeashed, getLeashHolder, getLookController, getLootContextBuilder, getLootTableResourceLocation, getMaxFallHeight, getMaximumHomeDistance, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getSlotForItemStack, getTalkInterval, getVerticalFaceSpeed, handleFluidJump, handleStatusUpdate, isAggressive, isAIDisabled, isInDaylight, isItemStackInSlot, isLeftHanded, isMaxGroupSize, isNoDespawnRequired, isNotColliding, isServerWorld, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onChildSpawnFromEgg, onInitialSpawn, playAmbientSound, playHurtSound, preventDespawn, processInitialInteract, registerData, replaceItemInInventory, sendDebugPackets, setAggroed, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setChild, setDead, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setHomePosAndDistance, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, setVehicleEntityId, shouldExchangeEquipment, spawnExplosionParticle, startRiding, tick, updateAITasks, updateDistance, updateEntityActionState, updateEquipmentIfNeeded, updateMovementGoalFlagsaddPotionEffect, addSprintingEffect, applyArmorCalculations, applyEntityCollision, applyKnockback, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, calculateFallDamage, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canEntityBeSeen, canEquip, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createSpawnPacket, createWitherRose, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dropExperience, dropInventory, frostWalk, func_230246_e_, func_230285_a_, func_230295_b_, func_230296_cM_, func_233626_a_, func_233629_a_, func_233633_a_, func_233634_a_, func_233641_cN_, func_233642_cO_, func_233644_dn_, func_233646_e_, func_241208_cS_, func_241839_a, func_242288_h, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorCoverPercentage, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributeManager, getAttributeValue, getAvailablePoses, getBaseAttributeValue, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getBrainCodec, getCapability, getCombatTracker, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getMovementSpeed, getPoseAABB, getRenderBoundingBox, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getShouldBeDead, getSize, getSoundVolume, getSpeedFactor, getStandingEyeHeight, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidSneak, hasItemInSlot, hasStoppedClimbing, heal, invalidateCaps, isActiveItemStackBlocking, isActualySwimming, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPotionActive, isPotionApplicable, isSleeping, isSpinAttacking, isWaterSensitive, jump, lookAt, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onFoodEaten, onItemPickup, onItemUseFinish, onKillCommand, onLivingFall, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, registerAttributes, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setOnGround, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, spinAttack, startSleeping, startSpinAttack, stopActiveHand, stopRiding, swing, swingArm, travel, triggerItemPickupTrigger, triggerItemUseEffects, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden, updateSpinAttack, wakeUpaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, calculateUpVector, canBeAttackedWithItem, canBeRidden, canCollide, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, decrementTimeUntilPortal, detach, determineNextStepDistance, dismount, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceFireTicks, forceSetPosition, func_230268_c_, func_233559_a_, func_233566_aG_, func_233571_b_, func_233577_ch_, func_233578_ci_, func_233579_cu_, func_241205_ce_, func_241829_a, func_241830_a, func_241841_a, func_241842_k, func_241845_aY, func_241847_a, func_242274_V, func_242277_a, func_242278_a, func_242279_ag, func_242280_ah, func_242281_f, func_242282_l, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLeashPosition, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getSelfAndPassengers, getServer, getStateBelow, getTags, getTeam, getTeamColor, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYOffset, handleFluidAcceleration, handlePistonMovement, handleRunningEffect, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isEntityInRange, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnGround, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, makeFlySound, maybeBackOffFromEdge, move, moveForced, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onRemovedFromWorld, pick, playFlySound, playSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, shouldSpawnRunningEffects, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic EntityWerewolf(net.minecraft.entity.EntityType<? extends EntityWerewolf> type, net.minecraft.world.World world)
public EntityWerewolf(net.minecraft.world.World world)
protected void registerGoals()
registerGoals in class net.minecraft.entity.MobEntitypublic static void transformWerewolfVillager(net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent event)
protected float getSoundPitch()
getSoundPitch in class net.minecraft.entity.LivingEntitypublic void writeAdditional(net.minecraft.nbt.CompoundNBT NBTTagCompound)
writeAdditional in class net.minecraft.entity.MobEntitypublic void readAdditional(net.minecraft.nbt.CompoundNBT NBTTagCompound)
readAdditional in class net.minecraft.entity.MobEntitypublic static boolean isWerewolfTime(net.minecraft.world.World world)
world - The world.public void replaceWithVillager()
public static void initializeWerewolfVillagerData(net.minecraft.entity.merchant.villager.VillagerEntity villager)
public static void replaceVillager(net.minecraft.entity.merchant.villager.VillagerEntity villager)
villager - The villager to replace.public void livingTick()
livingTick in class net.minecraft.entity.monster.MonsterEntitypublic float getBarkProgressScaled(float scale)
scale - The scale.public net.minecraft.util.ResourceLocation getLootTable()
getLootTable in class net.minecraft.entity.MobEntitypublic net.minecraft.util.SoundEvent getAmbientSound()
getAmbientSound in class net.minecraft.entity.MobEntityprotected net.minecraft.util.SoundEvent getHurtSound(net.minecraft.util.DamageSource damageSource)
getHurtSound in class net.minecraft.entity.monster.MonsterEntitypublic net.minecraft.util.SoundEvent getDeathSound()
getDeathSound in class net.minecraft.entity.monster.MonsterEntityprotected void playStepSound(net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.BlockState block)
playStepSound in class net.minecraft.entity.Entitypublic net.minecraft.entity.CreatureAttribute getCreatureAttribute()
getCreatureAttribute in class net.minecraft.entity.LivingEntitypublic boolean canDespawn(double distanceToClosestPlayer)
canDespawn in class net.minecraft.entity.MobEntitypublic net.minecraft.nbt.CompoundNBT getVillagerNBTTagCompound()
public boolean isFromVillager()
public void setFromVillager(boolean fromVillager)
fromVillager - If this werewolf is a transformed villager.