Class WolfEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.living.MobEntity
org.geysermc.geyser.entity.type.living.CreatureEntity
org.geysermc.geyser.entity.type.living.AgeableEntity
org.geysermc.geyser.entity.type.living.animal.AnimalEntity
org.geysermc.geyser.entity.type.living.animal.tameable.TameableEntity
org.geysermc.geyser.entity.type.living.animal.tameable.WolfEntity
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,Leashable,VariantHolder<VariantIntHolder.BuiltIn>,VariantIntHolder,Tickable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.geysermc.geyser.entity.type.living.animal.VariantIntHolder
VariantIntHolder.BuiltIn -
Field Summary
FieldsFields inherited from class org.geysermc.geyser.entity.type.living.animal.tameable.TameableEntity
ownerBedrockIdFields inherited from class org.geysermc.geyser.entity.type.LivingEntity
dirtyHeadYaw, dirtyPitch, dirtyYaw, equipment, health, maxHealthFields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, displayName, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, propertyManager, session, silent, uuid, valid, vehicle, yaw -
Constructor Summary
ConstructorsConstructorDescriptionWolfEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected @NonNull InteractionResultmobInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) voidsetBedrockVariantId(int bedrockId) Should set the variant on bedrock's metadata.voidsetBody(GeyserItemStack stack) voidsetCollarColor(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) voidsetTameableFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) voidsetWolfAngerTime(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.LongEntityMetadata entityMetadata) protected @NonNull InteractiveTagtestMobInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) The registry inJavaRegistriesfor this mob's variants.Methods inherited from class org.geysermc.geyser.entity.type.living.animal.tameable.TameableEntity
getOwnerBedrockId, setOwnerMethods inherited from class org.geysermc.geyser.entity.type.living.animal.AnimalEntity
canEatMethods inherited from class org.geysermc.geyser.entity.type.living.AgeableEntity
getAdultSize, getBabySize, initializeMetadata, isBaby, setBabyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
canShearEquipment, interact, isEnemy, leashHolderBedrockId, setLeashHolderBedrockId, setMobFlags, testInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, canUseSlot, checkInteractWithNameTag, createHealthAttribute, getEquipment, getItemInSlot, getLerpPosition, getLerpSteps, getMainHandItem, getOffHandItem, hasBodyArmor, hasShield, isAlive, isDirtyHeadYaw, isDirtyPitch, isDirtyYaw, isEquippableInSlot, isHolding, isMaxFrozenState, isShaking, moveAbsolute, moveRelative, setBedPosition, setBoots, setBoundingBoxHeight, setBoundingBoxWidth, setChestplate, setDimensionsFromPose, setDirtyHeadYaw, setDirtyPitch, setDirtyYaw, setEquipment, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLerpPosition, setLerpSteps, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffhand, setParticles, setPosition, setSaddle, setScale, setSpinAttack, shouldLerp, switchHands, tick, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateNametag, updateOffHand, updateSaddled, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, despawnEntity, doesJumpDismount, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, hasLeashesToDrop, interactAt, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveAbsoluteRaw, moveRelativeRaw, playEntityEvent, playEntityEvent, scoreVisibility, setAir, setAirSupply, setClientSideSilent, setDefinition, setDisplayName, setDisplayNameVisible, setEntityId, setFlag, setFlags, setFlagsDirty, setGliding, setGravity, setHeadYaw, setInvisible, setMotion, setNametag, setOnGround, setPassengers, setPitch, setPose, setRiderSeatPosition, setSilent, setSneaking, setSprinting, setUuid, setValid, setVehicle, setYaw, spawnEntity, standardDisplayName, teamIdentifier, teleport, updateBedrockEntityProperties, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updatePropertiesBatched, updateRotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.entity.type.GeyserEntity
updatePropertiesBatched, updatePropertyMethods inherited from interface org.geysermc.geyser.entity.type.living.animal.VariantHolder
getSession, setVariant, setVariantFromJavaIdMethods inherited from interface org.geysermc.geyser.entity.type.living.animal.VariantIntHolder
setBedrockVariant
-
Field Details
-
SOUND_VARIANT
-
-
Constructor Details
-
WolfEntity
public WolfEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
setTameableFlags
public void setTameableFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) - Overrides:
setTameableFlagsin classTameableEntity
-
setCollarColor
public void setCollarColor(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) -
setWolfAngerTime
public void setWolfAngerTime(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.LongEntityMetadata entityMetadata) -
variantRegistry
Description copied from interface:VariantHolderThe registry inJavaRegistriesfor this mob's variants. The registry can utilise theVariantHolder.reader(Class, Enum)method to create a reader to be used inRegistryCache.- Specified by:
variantRegistryin interfaceVariantHolder<VariantIntHolder.BuiltIn>
-
setBedrockVariantId
public void setBedrockVariantId(int bedrockId) Description copied from interface:VariantIntHolderShould set the variant on bedrock's metadata. The bedrock ID has already been checked and is always valid.- Specified by:
setBedrockVariantIdin interfaceVariantIntHolder
-
getFoodTag
- Specified by:
getFoodTagin classAnimalEntity- Returns:
- the tag associated with this animal for eating food. Null for nothing or different behavior.
-
setBody
- Overrides:
setBodyin classLivingEntity
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashedin interfaceLeashable- Overrides:
canBeLeashedin classTameableEntity
-
testMobInteraction
protected @NonNull InteractiveTag testMobInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) - Overrides:
testMobInteractionin classAnimalEntity
-
mobInteract
protected @NonNull InteractionResult mobInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) - Overrides:
mobInteractin classAnimalEntity
-