TaterzenNPC

open class TaterzenNPC : PathfinderMob, CrossbowAttackMob, RangedAttackMob

The NPC itself.

Constructors

TaterzenNPC
Link copied to clipboard
open fun TaterzenNPC(world: Level)
TaterzenNPC
Link copied to clipboard
open fun TaterzenNPC(entityType: EntityType<out PathfinderMob>, world: Level)
Creates a TaterzenNPC.

Properties

attackMonstersGoal
Link copied to clipboard
val attackMonstersGoal: MeleeAttackGoal
commandGroups
Link copied to clipboard
private val commandGroups: CommandGroups
directPathGoal
Link copied to clipboard
val directPathGoal: DirectPathGoal
fakePlayer
Link copied to clipboard
private open val fakePlayer: ServerPlayer
followMonstersGoal
Link copied to clipboard
val followMonstersGoal: NearestAttackableTargetGoal<Monster>
followTargetGoal
Link copied to clipboard
val followTargetGoal: NearestAttackableTargetGoal<LivingEntity>
Target selectors.
gameProfile
Link copied to clipboard
private open val gameProfile: GameProfile
lookAroundGoal
Link copied to clipboard
val lookAroundGoal: RandomLookAroundGoal
lookPlayerGoal
Link copied to clipboard
val lookPlayerGoal: LookAtPlayerGoal
Goals Public so they can be accessed from professions.
pathGoal
Link copied to clipboard
val pathGoal: LazyPathGoal
Used for PATH.
projectileAttackGoal
Link copied to clipboard
val projectileAttackGoal: RangedAttackGoal
Attack-based goals
reachMeleeAttackGoal
Link copied to clipboard
val reachMeleeAttackGoal: ReachMeleeAttackGoal
revengeGoal
Link copied to clipboard
val revengeGoal: TeamRevengeGoal
swimGoal
Link copied to clipboard
val swimGoal: FloatGoal
trackLivingGoal
Link copied to clipboard
val trackLivingGoal: TrackEntityGoal
Tracking movement
trackPlayersGoal
Link copied to clipboard
val trackPlayersGoal: TrackEntityGoal
trackUuidGoal
Link copied to clipboard
val trackUuidGoal: TrackUuidGoal
wanderAroundFarGoal
Link copied to clipboard
val wanderAroundFarGoal: RandomStrollGoal

Functions

addAdditionalSaveData
Link copied to clipboard
open fun addAdditionalSaveData(tag: CompoundTag)
Saves Taterzen to tag.
addAmbientSound
Link copied to clipboard
open fun addAmbientSound(ambientSound: String)
Adds sounds to the list of ambient sounds of a Taterzen.
addCommand
Link copied to clipboard
open fun addCommand(command: AbstractTaterzenCommand): Boolean
open fun addCommand(command: AbstractTaterzenCommand, groupIndex: Int): Boolean
Adds command to the list of commands that will be executed on right-clicking the Taterzen.
addDeathSound
Link copied to clipboard
open fun addDeathSound(deathSound: String)
Adds sounds to the list of death sounds of a Taterzen.
addHurtSound
Link copied to clipboard
open fun addHurtSound(hurtSound: String)
Adds sounds to the list of hurt sounds of a Taterzen.
addMessage
Link copied to clipboard
open fun addMessage(text: Component)
open fun addMessage(text: Component, delay: Int)
Adds the message to taterzen's message list.
addPathTarget
Link copied to clipboard
open fun addPathTarget(blockPos: BlockPos)
Adds block position as a node in path of Taterzen.
addProfession
Link copied to clipboard
open fun addProfession(professionId: ResourceLocation)
open fun addProfession(professionId: ResourceLocation, profession: TaterzenProfession)
Adds TaterzenProfession to Taterzen.
aiStep
Link copied to clipboard
open fun aiStep()
Ticks the movement depending on org.samo_lego.taterzens.npc.NPCData.Movement type
allowEditBy
Link copied to clipboard
open fun allowEditBy(uuid: UUID): Boolean
Whether taterzen should be allowed to be edited by provided uuid.
open fun allowEditBy(entity: Entity): Boolean
Whether taterzen should be allowed to be edited by entity.
allowEquipmentDrops
Link copied to clipboard
open fun allowEquipmentDrops(drop: Boolean)
Toggles whether Taterzen will drop its equipment.
applySkin
Link copied to clipboard
open fun applySkin(texturesProfile: GameProfile)
Applies skin from GameProfile.
canAttack
Link copied to clipboard
open fun canAttack(target: LivingEntity): Boolean
canBeLeashed
Link copied to clipboard
open fun canBeLeashed(player: Player): Boolean
canFireProjectileWeapon
Link copied to clipboard
open fun canFireProjectileWeapon(weapon: ProjectileWeaponItem): Boolean
canPickUpLoot
Link copied to clipboard
open fun canPickUpLoot(): Boolean
causeFallDamage
Link copied to clipboard
open fun causeFallDamage(fallDistance: Float, multiplier: Float, source: DamageSource): Boolean
Whether taterzen can take fall damage.
clearAllCommands
Link copied to clipboard
open fun clearAllCommands()
Clears all the commands Taterzen executes on right-click.
clearGroupCommands
Link copied to clipboard
open fun clearGroupCommands(index: Int)
clearMessages
Link copied to clipboard
open fun clearMessages()
clearPathTargets
Link copied to clipboard
open fun clearPathTargets()
Clears all the path nodes / targets.
constructFakePlayer
Link copied to clipboard
open fun constructFakePlayer()
Creates a fake player for this NPC in order to be able to use the player synched data.
createTaterzenAttributes
Link copied to clipboard
open fun createTaterzenAttributes(): AttributeSupplier.Builder
Creates default taterzen attributes.
die
Link copied to clipboard
open fun die(source: DamageSource)
Handles death of NPC.
doHurtTarget
Link copied to clipboard
open fun doHurtTarget(target: Entity): Boolean
editMessage
Link copied to clipboard
open fun editMessage(index: Int, text: Component)
Edits the message from taterzen's message list at index.
getAddEntityPacket
Link copied to clipboard
open fun getAddEntityPacket(): Packet<ClientGamePacketListener>
getAmbientSoundData
Link copied to clipboard
open fun getAmbientSoundData(): ArrayList<String>
getDeathSoundData
Link copied to clipboard
open fun getDeathSoundData(): ArrayList<String>
getEntityData
Link copied to clipboard
open fun getEntityData(): SynchedEntityData
getFollowType
Link copied to clipboard
open fun getFollowType(): NPCData.FollowTypes
Gets follow type for taterzen.
getFollowUuid
Link copied to clipboard
@Nullable
open fun getFollowUuid(): @Nullable UUID
Gets the UUID of the entity that taterzen is following.
getGoalSelector
Link copied to clipboard
open fun getGoalSelector(): GoalSelector
Gets the Taterzen's goal selector.
getGroupCommands
Link copied to clipboard
open fun getGroupCommands(group: Int): ArrayList<AbstractTaterzenCommand>
Gets commands from specific group.
getHurtSoundData
Link copied to clipboard
open fun getHurtSoundData(): ArrayList<String>
getMessages
Link copied to clipboard
open fun getMessages(): ArrayList<Pair<Component, Integer>>
Gets ArrayList of Pairs of messages and their delays.
getMovement
Link copied to clipboard
open fun getMovement(): NPCData.Movement
Gets current movement of taterzen.
getPathTargets
Link copied to clipboard
open fun getPathTargets(): ArrayList<BlockPos>
Gets the path nodes / targets.
getProfession
Link copied to clipboard
@Nullable
open fun getProfession(professionId: ResourceLocation): @Nullable TaterzenProfession
Gets Taterzen's profession.
getProfessionIds
Link copied to clipboard
open fun getProfessionIds(): Collection<ResourceLocation>
Gets taterzen's professions.
getTabListName
Link copied to clipboard
open fun getTabListName(): Component
getTargetSelector
Link copied to clipboard
open fun getTargetSelector(): GoalSelector
Gets the Taterzen's target selector.
getWalkTargetValue
Link copied to clipboard
open fun getWalkTargetValue(pos: BlockPos, world: LevelReader): Float
interact
Link copied to clipboard
open fun interact(pos: BlockPos): Boolean
Makes Taterzen interact with block at given position.
isEquipmentDropsAllowed
Link copied to clipboard
open fun isEquipmentDropsAllowed(): Boolean
Gets whether Taterzen will drop its equipment.
isEquipmentEditor
Link copied to clipboard
open fun isEquipmentEditor(@NotNull player: @NotNull Player): Boolean
Sets player as equipment editor.
isInvulnerableTo
Link copied to clipboard
open fun isInvulnerableTo(damageSource: DamageSource): Boolean
isLocked
Link copied to clipboard
open fun isLocked(): Boolean
Whether taterzen is locked.
loadFromPresetFile
Link copied to clipboard
open fun loadFromPresetFile(presetFile: File, presetName: String)
Loads Taterzen data from preset file.
lookAt
Link copied to clipboard
open fun lookAt(target: BlockPos)
Makes Taterzen look at given block position.
mobInteract
Link copied to clipboard
open fun mobInteract(player: Player, hand: InteractionHand): InteractionResult
Handles interaction (right clicking on the NPC).
onCrossbowAttackPerformed
Link copied to clipboard
open fun onCrossbowAttackPerformed()
performRangedAttack
Link copied to clipboard
open fun performRangedAttack(target: LivingEntity, pullProgress: Float)
push
Link copied to clipboard
open fun push(entity: Entity)
Used for disabling pushing
readAdditionalSaveData
Link copied to clipboard
open fun readAdditionalSaveData(tag: CompoundTag)
Loads Taterzen from CompoundTag.
remove
Link copied to clipboard
open fun remove(reason: Entity.RemovalReason)
removeAmbientSound
Link copied to clipboard
open fun removeAmbientSound(index: Int)
Removes sounds from the list of ambient sounds of a Taterzen.
removeDeathSound
Link copied to clipboard
open fun removeDeathSound(index: Int)
Removes sounds from the list of death sounds of a Taterzen.
removeGroupCommand
Link copied to clipboard
open fun removeGroupCommand(groupIndex: Int, commandIndex: Int)
Removes certain command from command list.
removeHurtSound
Link copied to clipboard
open fun removeHurtSound(index: Int)
Removes sounds from the list of hurt sounds of a Taterzen.
removeMessage
Link copied to clipboard
open fun removeMessage(index: Int): Component
Removes message at index.
removePathTarget
Link copied to clipboard
open fun removePathTarget(blockPos: BlockPos)
Removes node from path targets.
removeProfession
Link copied to clipboard
open fun removeProfession(professionId: ResourceLocation)
Removes Taterzen's profession and triggers the corresponding onRemove event.
sendProfileUpdates
Link copied to clipboard
open fun sendProfileUpdates()
Updates Taterzen's GameProfile for others.
setAllowFlight
Link copied to clipboard
open fun setAllowFlight(allowFlight: Boolean)
Sets whether taterzen should be able to fly.
setAllowRiding
Link copied to clipboard
open fun setAllowRiding(allow: Boolean)
Sets whether taterzen should be allowed to be ride entities.
setAllowSounds
Link copied to clipboard
open fun setAllowSounds(allowSounds: Boolean)
Whether this Taterzen should make sound.
setAllowSwimming
Link copied to clipboard
open fun setAllowSwimming(allowSwimming: Boolean)
setAmbientSoundData
Link copied to clipboard
open fun setAmbientSoundData(ambientSounds: ArrayList<String>)
setBehaviour
Link copied to clipboard
open fun setBehaviour(level: NPCData.Behaviour)
Sets Taterzen's NPCData.Behaviour.
setChargingCrossbow
Link copied to clipboard
open fun setChargingCrossbow(charging: Boolean)
setCooldownMessage
Link copied to clipboard
open fun setCooldownMessage(message: String)
Sets the cooldown message.
setCustomName
Link copied to clipboard
open fun setCustomName(name: Component)
Sets the custom name
setDeathSoundData
Link copied to clipboard
open fun setDeathSoundData(deathSounds: ArrayList<String>)
setEquipmentEditor
Link copied to clipboard
open fun setEquipmentEditor(@Nullable player: @Nullable Player)
Sets player as equipment editor.
setFollowType
Link copied to clipboard
open fun setFollowType(followType: NPCData.FollowTypes)
Sets the target type to follow.
setFollowUuid
Link copied to clipboard
open fun setFollowUuid(@Nullable followUuid: @Nullable UUID)
Sets the target uuid to follow.
setHurtSoundData
Link copied to clipboard
open fun setHurtSoundData(hurtSounds: ArrayList<String>)
setLeashable
Link copied to clipboard
open fun setLeashable(leashable: Boolean)
Sets whether Taterzen can be leashed.
setLeashedTo
Link copied to clipboard
open fun setLeashedTo(entityIn: Entity, sendAttachNotification: Boolean)
setLocked
Link copied to clipboard
open fun setLocked(uuid: UUID)
Sets taterzen to be locked by provided uuid.
open fun setLocked(owner: Entity)
Sets taterzen to be locked by provided owner's uuid.
setMessageDelay
Link copied to clipboard
open fun setMessageDelay(index: Int, delay: Int)
Sets message delay for specified message.
setMinCommandInteractionTime
Link copied to clipboard
open fun setMinCommandInteractionTime(time: Long)
Sets the minimum time between command usage.
setMovement
Link copied to clipboard
open fun setMovement(movement: NPCData.Movement)
Sets movement type and initialises the goals.
setPerformAttackJumps
Link copied to clipboard
open fun setPerformAttackJumps(jumpWhileAttacking: Boolean)
Sets whether Taterzen can perform jumps when in proximity of target that it is attacking.
setPermissionLevel
Link copied to clipboard
open fun setPermissionLevel(newPermissionLevel: Int)
setPose
Link copied to clipboard
open fun setPose(pose: Pose)
Sets the npc pose.
setPushable
Link copied to clipboard
open fun setPushable(pushable: Boolean)
Sets the pushable flag
setRespawnPos
Link copied to clipboard
open fun setRespawnPos(@Nullable respawnPos: @Nullable Vec3)
Sets the respawn position for taterzen.
setShiftKeyDown
Link copied to clipboard
open fun setShiftKeyDown(sneaking: Boolean)
Handles name visibility on sneaking
setSkinFromTag
Link copied to clipboard
open fun setSkinFromTag(tag: CompoundTag)
Sets the Taterzen skin from tag
setSkinLayers
Link copied to clipboard
open fun setSkinLayers(skinLayers: Byte)
Sets which skin layers should be shown to clients
shootCrossbowProjectile
Link copied to clipboard
open fun shootCrossbowProjectile(target: LivingEntity, crossbow: ItemStack, projectile: Projectile, multiShotSpray: Float)
shouldDropExperience
Link copied to clipboard
open fun shouldDropExperience(): Boolean
skipAttackInteraction
Link copied to clipboard
open fun skipAttackInteraction(attacker: Entity): Boolean
Handles received hits.
startRiding
Link copied to clipboard
open fun startRiding(entity: Entity): Boolean
Tries to make taterzen to ride provided entity.
tick
Link copied to clipboard
open fun tick()
Ticks the Taterzen and sends appropriate messages to players in radius of 2 blocks.
writeSkinToTag
Link copied to clipboard
open fun writeSkinToTag(profile: GameProfile): CompoundTag
Writes skin to tag

Inherited functions

absMoveTo
Link copied to clipboard
open fun absMoveTo(d: Double, e: Double, f: Double, g: Float, h: Float)
acceptsFailure
Link copied to clipboard
open fun acceptsFailure(): Boolean
acceptsSuccess
Link copied to clipboard
open fun acceptsSuccess(): Boolean
addDeltaMovement
Link copied to clipboard
open fun addDeltaMovement(vec3: Vec3)
addEffect
Link copied to clipboard
fun addEffect(mobEffectInstance: MobEffectInstance): Boolean
addTag
Link copied to clipboard
open fun addTag(string: String): Boolean
alwaysAccepts
Link copied to clipboard
open fun alwaysAccepts(): Boolean
animateHurt
Link copied to clipboard
open fun animateHurt(f: Float)
areAllEffectsAmbient
Link copied to clipboard
open fun areAllEffectsAmbient(collection: Collection<MobEffectInstance>): Boolean
ate
Link copied to clipboard
open fun ate()
attackable
Link copied to clipboard
open fun attackable(): Boolean
awardKillScore
Link copied to clipboard
open fun awardKillScore(entity: Entity, i: Int, damageSource: DamageSource)
baseTick
Link copied to clipboard
open fun baseTick()
blockPosition
Link copied to clipboard
open fun blockPosition(): BlockPos
broadcastBreakEvent
Link copied to clipboard
open fun broadcastBreakEvent(equipmentSlot: EquipmentSlot)
broadcastToPlayer
Link copied to clipboard
open fun broadcastToPlayer(serverPlayer: ServerPlayer): Boolean
calculateEntityAnimation
Link copied to clipboard
open fun calculateEntityAnimation(bl: Boolean)
canAttackType
Link copied to clipboard
open fun canAttackType(entityType: EntityType<out Any>): Boolean
canBeAffected
Link copied to clipboard
open fun canBeAffected(mobEffectInstance: MobEffectInstance): Boolean
canBeCollidedWith
Link copied to clipboard
open fun canBeCollidedWith(): Boolean
canBeHitByProjectile
Link copied to clipboard
open fun canBeHitByProjectile(): Boolean
canBeSeenAsEnemy
Link copied to clipboard
open fun canBeSeenAsEnemy(): Boolean
canBeSeenByAnyone
Link copied to clipboard
open fun canBeSeenByAnyone(): Boolean
canBreatheUnderwater
Link copied to clipboard
open fun canBreatheUnderwater(): Boolean
canChangeDimensions
Link copied to clipboard
open fun canChangeDimensions(): Boolean
canCollideWith
Link copied to clipboard
open fun canCollideWith(entity: Entity): Boolean
canDisableShield
Link copied to clipboard
open fun canDisableShield(): Boolean
canFreeze
Link copied to clipboard
open fun canFreeze(): Boolean
canHoldItem
Link copied to clipboard
open fun canHoldItem(itemStack: ItemStack): Boolean
canReplaceEqualItem
Link copied to clipboard
open fun canReplaceEqualItem(itemStack: ItemStack, itemStack2: ItemStack): Boolean
canSpawnSoulSpeedParticle
Link copied to clipboard
open fun canSpawnSoulSpeedParticle(): Boolean
canSpawnSprintParticle
Link copied to clipboard
open fun canSpawnSprintParticle(): Boolean
canSprint
Link copied to clipboard
open fun canSprint(): Boolean
canStandOnFluid
Link copied to clipboard
open fun canStandOnFluid(fluidState: FluidState): Boolean
canTakeItem
Link copied to clipboard
open fun canTakeItem(itemStack: ItemStack): Boolean
changeDimension
Link copied to clipboard
open fun changeDimension(serverLevel: ServerLevel): Entity
checkBelowWorld
Link copied to clipboard
open fun checkBelowWorld()
checkDespawn
Link copied to clipboard
open fun checkDespawn()
checkMobSpawnRules
Link copied to clipboard
open fun checkMobSpawnRules(entityType: EntityType<out Mob>, levelAccessor: LevelAccessor, mobSpawnType: MobSpawnType, blockPos: BlockPos, randomSource: RandomSource): Boolean
checkSlowFallDistance
Link copied to clipboard
open fun checkSlowFallDistance()
checkSpawnObstruction
Link copied to clipboard
open fun checkSpawnObstruction(levelReader: LevelReader): Boolean
checkSpawnRules
Link copied to clipboard
open fun checkSpawnRules(levelAccessor: LevelAccessor, mobSpawnType: MobSpawnType): Boolean
chunkPosition
Link copied to clipboard
open fun chunkPosition(): ChunkPos
clearFire
Link copied to clipboard
open fun clearFire()
clearRestriction
Link copied to clipboard
open fun clearRestriction()
clearSleepingPos
Link copied to clipboard
open fun clearSleepingPos()
closerThan
Link copied to clipboard
open fun closerThan(entity: Entity, d: Double): Boolean
collideBoundingBox
Link copied to clipboard
open fun collideBoundingBox(entity: Entity, vec3: Vec3, aABB: AABB, level: Level, list: List<VoxelShape>): Vec3
convertTo
Link copied to clipboard
open fun <T : Mob?> convertTo(entityType: EntityType<T>, bl: Boolean): T
copyPosition
Link copied to clipboard
open fun copyPosition(entity: Entity)
createCommandSourceStack
Link copied to clipboard
open fun createCommandSourceStack(): CommandSourceStack
createLivingAttributes
Link copied to clipboard
open fun createLivingAttributes(): AttributeSupplier.Builder
createMobAttributes
Link copied to clipboard
open fun createMobAttributes(): AttributeSupplier.Builder
damageSources
Link copied to clipboard
open fun damageSources(): DamageSources
dampensVibrations
Link copied to clipboard
open fun dampensVibrations(): Boolean
discard
Link copied to clipboard
fun discard()
dismountsUnderwater
Link copied to clipboard
open fun dismountsUnderwater(): Boolean
dismountTo
Link copied to clipboard
open fun dismountTo(d: Double, e: Double, f: Double)
displayFireAnimation
Link copied to clipboard
open fun displayFireAnimation(): Boolean
distanceTo
Link copied to clipboard
open fun distanceTo(entity: Entity): Float
distanceToSqr
Link copied to clipboard
open fun distanceToSqr(d: Double, e: Double, f: Double): Double
doEnchantDamageEffects
Link copied to clipboard
open fun doEnchantDamageEffects(livingEntity: LivingEntity, entity: Entity)
dropLeash
Link copied to clipboard
open fun dropLeash(bl: Boolean, bl2: Boolean)
eat
Link copied to clipboard
open fun eat(level: Level, itemStack: ItemStack): ItemStack
ejectPassengers
Link copied to clipboard
open fun ejectPassengers()
equals
Link copied to clipboard
open fun equals(object: Any): Boolean
equipItemIfPossible
Link copied to clipboard
open fun equipItemIfPossible(itemStack: ItemStack): ItemStack
equipmentHasChanged
Link copied to clipboard
open fun equipmentHasChanged(itemStack: ItemStack, itemStack2: ItemStack): Boolean
extinguishFire
Link copied to clipboard
open fun extinguishFire()
fillCrashReportCategory
Link copied to clipboard
open fun fillCrashReportCategory(crashReportCategory: CrashReportCategory)
finalizeSpawn
Link copied to clipboard
open fun finalizeSpawn(serverLevelAccessor: ServerLevelAccessor, difficultyInstance: DifficultyInstance, mobSpawnType: MobSpawnType, spawnGroupData: SpawnGroupData, compoundTag: CompoundTag): SpawnGroupData
fireImmune
Link copied to clipboard
open fun fireImmune(): Boolean
forceAddEffect
Link copied to clipboard
open fun forceAddEffect(mobEffectInstance: MobEffectInstance, entity: Entity)
gameEvent
Link copied to clipboard
open fun gameEvent(gameEvent: GameEvent, entity: Entity)
getAbsorptionAmount
Link copied to clipboard
open fun getAbsorptionAmount(): Float
getActiveEffects
Link copied to clipboard
open fun getActiveEffects(): Collection<MobEffectInstance>
getActiveEffectsMap
Link copied to clipboard
open fun getActiveEffectsMap(): Map<MobEffect, MobEffectInstance>
getAirSupply
Link copied to clipboard
open fun getAirSupply(): Int
getAllSlots
Link copied to clipboard
open fun getAllSlots(): Iterable<ItemStack>
getAmbientSoundInterval
Link copied to clipboard
open fun getAmbientSoundInterval(): Int
getArmorCoverPercentage
Link copied to clipboard
open fun getArmorCoverPercentage(): Float
getArmorSlots
Link copied to clipboard
open fun getArmorSlots(): Iterable<ItemStack>
getArmorValue
Link copied to clipboard
open fun getArmorValue(): Int
getArrowCount
Link copied to clipboard
fun getArrowCount(): Int
getAttackAnim
Link copied to clipboard
open fun getAttackAnim(f: Float): Float
getAttribute
Link copied to clipboard
open fun getAttribute(attribute: Attribute): AttributeInstance
getAttributeBaseValue
Link copied to clipboard
open fun getAttributeBaseValue(holder: Holder<Attribute>): Double
getAttributes
Link copied to clipboard
open fun getAttributes(): AttributeMap
getAttributeValue
Link copied to clipboard
open fun getAttributeValue(holder: Holder<Attribute>): Double
getBbHeight
Link copied to clipboard
fun getBbHeight(): Float
getBbWidth
Link copied to clipboard
fun getBbWidth(): Float
getBedOrientation
Link copied to clipboard
open fun getBedOrientation(): Direction
getBlockExplosionResistance
Link copied to clipboard
open fun getBlockExplosionResistance(explosion: Explosion, blockGetter: BlockGetter, blockPos: BlockPos, blockState: BlockState, fluidState: FluidState, f: Float): Float
getBlockStateOn
Link copied to clipboard
open fun getBlockStateOn(): BlockState
getBlockX
Link copied to clipboard
fun getBlockX(): Int
getBlockY
Link copied to clipboard
fun getBlockY(): Int
getBlockZ
Link copied to clipboard
fun getBlockZ(): Int
getBoundingBox
Link copied to clipboard
fun getBoundingBox(): AABB
getBoundingBoxForCulling
Link copied to clipboard
open fun getBoundingBoxForCulling(): AABB
getBrain
Link copied to clipboard
open fun getBrain(): Brain<out Any>
getCombatTracker
Link copied to clipboard
open fun getCombatTracker(): CombatTracker
getCommandSenderWorld
Link copied to clipboard
open fun getCommandSenderWorld(): Level
getControlledVehicle
Link copied to clipboard
open fun getControlledVehicle(): Entity
getControllingPassenger
Link copied to clipboard
open fun getControllingPassenger(): LivingEntity
getCustomName
Link copied to clipboard
open fun getCustomName(): Component
getDeltaMovement
Link copied to clipboard
open fun getDeltaMovement(): Vec3
getDimensionChangingDelay
Link copied to clipboard
open fun getDimensionChangingDelay(): Int
getDimensions
Link copied to clipboard
open fun getDimensions(pose: Pose): EntityDimensions
getDirection
Link copied to clipboard
open fun getDirection(): Direction
getDismountLocationForPassenger
Link copied to clipboard
open fun getDismountLocationForPassenger(livingEntity: LivingEntity): Vec3
getDismountPoses
Link copied to clipboard
open fun getDismountPoses(): ImmutableList<Pose>
getDisplayName
Link copied to clipboard
open fun getDisplayName(): Component
getEatingSound
Link copied to clipboard
open fun getEatingSound(itemStack: ItemStack): SoundEvent
getEffect
Link copied to clipboard
open fun getEffect(mobEffect: MobEffect): MobEffectInstance
getEquipmentForSlot
Link copied to clipboard
open fun getEquipmentForSlot(equipmentSlot: EquipmentSlot, i: Int): Item
getEquipmentSlotForItem
Link copied to clipboard
open fun getEquipmentSlotForItem(itemStack: ItemStack): EquipmentSlot
getExperienceReward
Link copied to clipboard
open fun getExperienceReward(): Int
getEyePosition
Link copied to clipboard
fun getEyePosition(): Vec3
getEyeY
Link copied to clipboard
open fun getEyeY(): Double
getFallFlyingTicks
Link copied to clipboard
open fun getFallFlyingTicks(): Int
getFallSounds
Link copied to clipboard
open fun getFallSounds(): LivingEntity.Fallsounds
getFeetBlockState
Link copied to clipboard
open fun getFeetBlockState(): BlockState
getFirstPassenger
Link copied to clipboard
open fun getFirstPassenger(): Entity
getFluidFallingAdjustedMovement
Link copied to clipboard
open fun getFluidFallingAdjustedMovement(d: Double, bl: Boolean, vec3: Vec3): Vec3
getFluidHeight
Link copied to clipboard
open fun getFluidHeight(tagKey: TagKey<Fluid>): Double
getFluidJumpThreshold
Link copied to clipboard
open fun getFluidJumpThreshold(): Double
getForward
Link copied to clipboard
open fun getForward(): Vec3
getHandHoldingItemAngle
Link copied to clipboard
open fun getHandHoldingItemAngle(item: Item): Vec3
getHandSlots
Link copied to clipboard
open fun getHandSlots(): Iterable<ItemStack>
getHeadRotSpeed
Link copied to clipboard
open fun getHeadRotSpeed(): Int
getHealth
Link copied to clipboard
open fun getHealth(): Float
getHurtDir
Link copied to clipboard
open fun getHurtDir(): Float
getId
Link copied to clipboard
open fun getId(): Int
getIndirectPassengers
Link copied to clipboard
open fun getIndirectPassengers(): Iterable<Entity>
getItemBySlot
Link copied to clipboard
open fun getItemBySlot(equipmentSlot: EquipmentSlot): ItemStack
getItemInHand
Link copied to clipboard
open fun getItemInHand(interactionHand: InteractionHand): ItemStack
getJumpBoostPower
Link copied to clipboard
open fun getJumpBoostPower(): Float
getJumpControl
Link copied to clipboard
open fun getJumpControl(): JumpControl
getKillCredit
Link copied to clipboard
open fun getKillCredit(): LivingEntity
getLastAttacker
Link copied to clipboard
open fun getLastAttacker(): LivingEntity
getLastClimbablePos
Link copied to clipboard
open fun getLastClimbablePos(): Optional<BlockPos>
getLastDamageSource
Link copied to clipboard
open fun getLastDamageSource(): DamageSource
getLastHurtByMob
Link copied to clipboard
open fun getLastHurtByMob(): LivingEntity
getLastHurtByMobTimestamp
Link copied to clipboard
open fun getLastHurtByMobTimestamp(): Int
getLastHurtMob
Link copied to clipboard
open fun getLastHurtMob(): LivingEntity
getLastHurtMobTimestamp
Link copied to clipboard
open fun getLastHurtMobTimestamp(): Int
getLeashHolder
Link copied to clipboard
open fun getLeashHolder(): Entity
getLeashOffset
Link copied to clipboard
open fun getLeashOffset(f: Float): Vec3
getLightLevelDependentMagicValue
Link copied to clipboard
open fun getLightLevelDependentMagicValue(): Float
getLightProbePosition
Link copied to clipboard
open fun getLightProbePosition(f: Float): Vec3
getLocalBoundsForPose
Link copied to clipboard
open fun getLocalBoundsForPose(pose: Pose): AABB
getLookAngle
Link copied to clipboard
open fun getLookAngle(): Vec3
getLookControl
Link copied to clipboard
open fun getLookControl(): LookControl
getLootTable
Link copied to clipboard
fun getLootTable(): ResourceLocation
getLootTableSeed
Link copied to clipboard
open fun getLootTableSeed(): Long
getMainArm
Link copied to clipboard
open fun getMainArm(): HumanoidArm
getMainHandItem
Link copied to clipboard
open fun getMainHandItem(): ItemStack
getMaxAirSupply
Link copied to clipboard
open fun getMaxAirSupply(): Int
getMaxFallDistance
Link copied to clipboard
open fun getMaxFallDistance(): Int
getMaxHeadXRot
Link copied to clipboard
open fun getMaxHeadXRot(): Int
getMaxHeadYRot
Link copied to clipboard
open fun getMaxHeadYRot(): Int
getMaxHealth
Link copied to clipboard
fun getMaxHealth(): Float
getMaxSpawnClusterSize
Link copied to clipboard
open fun getMaxSpawnClusterSize(): Int
getMeleeAttackRangeSqr
Link copied to clipboard
open fun getMeleeAttackRangeSqr(livingEntity: LivingEntity): Double
getMobType
Link copied to clipboard
open fun getMobType(): MobType
getMotionDirection
Link copied to clipboard
open fun getMotionDirection(): Direction
getMoveControl
Link copied to clipboard
open fun getMoveControl(): MoveControl
getMyRidingOffset
Link copied to clipboard
open fun getMyRidingOffset(): Double
getName
Link copied to clipboard
open fun getName(): Component
getNameTagOffsetY
Link copied to clipboard
open fun getNameTagOffsetY(): Float
getNavigation
Link copied to clipboard
open fun getNavigation(): PathNavigation
getNoActionTime
Link copied to clipboard
open fun getNoActionTime(): Int
getOffhandItem
Link copied to clipboard
open fun getOffhandItem(): ItemStack
getOnPos
Link copied to clipboard
open fun getOnPos(): BlockPos
getOnPosLegacy
Link copied to clipboard
open fun getOnPosLegacy(): BlockPos
getPassengers
Link copied to clipboard
fun getPassengers(): List<Entity>
getPassengersAndSelf
Link copied to clipboard
open fun getPassengersAndSelf(): Stream<Entity>
abstract fun getPassengersAndSelf(): Stream<out EntityAccess>
getPassengersRidingOffset
Link copied to clipboard
open fun getPassengersRidingOffset(): Double
getPathfindingMalus
Link copied to clipboard
open fun getPathfindingMalus(blockPathTypes: BlockPathTypes): Float
open fun getPerceivedTargetDistanceSquareForMeleeAttack(livingEntity: LivingEntity): Double
getPercentFrozen
Link copied to clipboard
open fun getPercentFrozen(): Float
getPickRadius
Link copied to clipboard
open fun getPickRadius(): Float
getPickResult
Link copied to clipboard
open fun getPickResult(): ItemStack
getPistonPushReaction
Link copied to clipboard
open fun getPistonPushReaction(): PushReaction
getPortalCooldown
Link copied to clipboard
open fun getPortalCooldown(): Int
getPortalWaitTime
Link copied to clipboard
open fun getPortalWaitTime(): Int
getPose
Link copied to clipboard
open fun getPose(): Pose
getPosition
Link copied to clipboard
fun getPosition(f: Float): Vec3
getPositionCodec
Link copied to clipboard
open fun getPositionCodec(): VecDeltaCodec
getProjectile
Link copied to clipboard
open fun getProjectile(itemStack: ItemStack): ItemStack
getProjectileShotVector
Link copied to clipboard
open fun getProjectileShotVector(livingEntity: LivingEntity, vec3: Vec3, f: Float): Vector3f
getRandom
Link copied to clipboard
open fun getRandom(): RandomSource
getRandomX
Link copied to clipboard
open fun getRandomX(d: Double): Double
getRandomY
Link copied to clipboard
open fun getRandomY(): Double
getRandomZ
Link copied to clipboard
open fun getRandomZ(d: Double): Double
getRemainingFireTicks
Link copied to clipboard
open fun getRemainingFireTicks(): Int
getRemovalReason
Link copied to clipboard
open fun getRemovalReason(): Entity.RemovalReason
getRestrictCenter
Link copied to clipboard
open fun getRestrictCenter(): BlockPos
getRestrictRadius
Link copied to clipboard
open fun getRestrictRadius(): Float
getRootVehicle
Link copied to clipboard
open fun getRootVehicle(): Entity
getRopeHoldPosition
Link copied to clipboard
open fun getRopeHoldPosition(f: Float): Vec3
getRotationVector
Link copied to clipboard
open fun getRotationVector(): Vec2
getScale
Link copied to clipboard
open fun getScale(): Float
getScoreboardName
Link copied to clipboard
open fun getScoreboardName(): String
getSelfAndPassengers
Link copied to clipboard
open fun getSelfAndPassengers(): Stream<Entity>
abstract fun getSelfAndPassengers(): Stream<out EntityAccess>
getSensing
Link copied to clipboard
open fun getSensing(): Sensing
getServer
Link copied to clipboard
open fun getServer(): MinecraftServer
getSleepingPos
Link copied to clipboard
open fun getSleepingPos(): Optional<BlockPos>
getSlot
Link copied to clipboard
open fun getSlot(i: Int): SlotAccess
getSoundSource
Link copied to clipboard
open fun getSoundSource(): SoundSource
getSpeed
Link copied to clipboard
open fun getSpeed(): Float
getStingerCount
Link copied to clipboard
fun getStingerCount(): Int
getStringUUID
Link copied to clipboard
open fun getStringUUID(): String
getSwimAmount
Link copied to clipboard
open fun getSwimAmount(f: Float): Float
getTags
Link copied to clipboard
open fun getTags(): Set<String>
getTarget
Link copied to clipboard
open fun getTarget(): LivingEntity
getTeam
Link copied to clipboard
open fun getTeam(): Team
getTeamColor
Link copied to clipboard
open fun getTeamColor(): Int
getTicksFrozen
Link copied to clipboard
open fun getTicksFrozen(): Int
getTicksRequiredToFreeze
Link copied to clipboard
open fun getTicksRequiredToFreeze(): Int
getTicksUsingItem
Link copied to clipboard
open fun getTicksUsingItem(): Int
getType
Link copied to clipboard
open fun getType(): EntityType<out Any>
getUpVector
Link copied to clipboard
fun getUpVector(f: Float): Vec3
getUsedItemHand
Link copied to clipboard
open fun getUsedItemHand(): InteractionHand
getUseItem
Link copied to clipboard
open fun getUseItem(): ItemStack
getUseItemRemainingTicks
Link copied to clipboard
open fun getUseItemRemainingTicks(): Int
getUUID
Link copied to clipboard
open fun getUUID(): UUID
getVehicle
Link copied to clipboard
open fun getVehicle(): Entity
getViewScale
Link copied to clipboard
open fun getViewScale(): Double
getViewVector
Link copied to clipboard
fun getViewVector(f: Float): Vec3
getViewXRot
Link copied to clipboard
open fun getViewXRot(f: Float): Float
getViewYRot
Link copied to clipboard
open fun getViewYRot(f: Float): Float
getVisibilityPercent
Link copied to clipboard
open fun getVisibilityPercent(entity: Entity): Double
getVisualRotationYInDegrees
Link copied to clipboard
open fun getVisualRotationYInDegrees(): Float
getVoicePitch
Link copied to clipboard
open fun getVoicePitch(): Float
getWalkTargetValue
Link copied to clipboard
open fun getWalkTargetValue(blockPos: BlockPos): Float
getX
Link copied to clipboard
fun getX(): Double
getXRot
Link copied to clipboard
open fun getXRot(): Float
getY
Link copied to clipboard
fun getY(): Double
getYHeadRot
Link copied to clipboard
open fun getYHeadRot(): Float
getYRot
Link copied to clipboard
open fun getYRot(): Float
getZ
Link copied to clipboard
fun getZ(): Double
handleDamageEvent
Link copied to clipboard
open fun handleDamageEvent(damageSource: DamageSource)
handleEntityEvent
Link copied to clipboard
open fun handleEntityEvent(b: Byte)
handleInsidePortal
Link copied to clipboard
open fun handleInsidePortal(blockPos: BlockPos)
open fun handleRelativeFrictionAndCalculateMovement(vec3: Vec3, f: Float): Vec3
hasControllingPassenger
Link copied to clipboard
fun hasControllingPassenger(): Boolean
hasCustomName
Link copied to clipboard
open fun hasCustomName(): Boolean
hasEffect
Link copied to clipboard
open fun hasEffect(mobEffect: MobEffect): Boolean
hasExactlyOnePlayerPassenger
Link copied to clipboard
open fun hasExactlyOnePlayerPassenger(): Boolean
hasGlowingTag
Link copied to clipboard
fun hasGlowingTag(): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
hasIndirectPassenger
Link copied to clipboard
open fun hasIndirectPassenger(entity: Entity): Boolean
hasItemInSlot
Link copied to clipboard
open fun hasItemInSlot(equipmentSlot: EquipmentSlot): Boolean
hasLineOfSight
Link copied to clipboard
open fun hasLineOfSight(entity: Entity): Boolean
hasPassenger
Link copied to clipboard
open fun hasPassenger(entity: Entity): Boolean
hasPermissions
Link copied to clipboard
open fun hasPermissions(i: Int): Boolean
hasPose
Link copied to clipboard
open fun hasPose(pose: Pose): Boolean
hasRestriction
Link copied to clipboard
open fun hasRestriction(): Boolean
heal
Link copied to clipboard
open fun heal(f: Float)
hurt
Link copied to clipboard
open fun hurt(damageSource: DamageSource, f: Float): Boolean
hurtArmor
Link copied to clipboard
open fun hurtArmor(damageSource: DamageSource, f: Float)
hurtCurrentlyUsedShield
Link copied to clipboard
open fun hurtCurrentlyUsedShield(f: Float)
hurtHelmet
Link copied to clipboard
open fun hurtHelmet(damageSource: DamageSource, f: Float)
ignoreExplosion
Link copied to clipboard
open fun ignoreExplosion(): Boolean
indicateDamage
Link copied to clipboard
open fun indicateDamage(d: Double, e: Double)
interact
Link copied to clipboard
fun interact(player: Player, interactionHand: InteractionHand): InteractionResult
interactAt
Link copied to clipboard
open fun interactAt(player: Player, vec3: Vec3, interactionHand: InteractionHand): InteractionResult
is
Link copied to clipboard
open fun is(entity: Entity): Boolean
isAffectedByPotions
Link copied to clipboard
open fun isAffectedByPotions(): Boolean
isAggressive
Link copied to clipboard
open fun isAggressive(): Boolean
isAlive
Link copied to clipboard
open fun isAlive(): Boolean
isAlliedTo
Link copied to clipboard
open fun isAlliedTo(entity: Entity): Boolean
isAlwaysTicking
Link copied to clipboard
open fun isAlwaysTicking(): Boolean
isAttackable
Link copied to clipboard
open fun isAttackable(): Boolean
isAutoSpinAttack
Link copied to clipboard
open fun isAutoSpinAttack(): Boolean
isBaby
Link copied to clipboard
open fun isBaby(): Boolean
isBlocking
Link copied to clipboard
open fun isBlocking(): Boolean
isColliding
Link copied to clipboard
open fun isColliding(blockPos: BlockPos, blockState: BlockState): Boolean
isControlledByLocalInstance
Link copied to clipboard
open fun isControlledByLocalInstance(): Boolean
isCrouching
Link copied to clipboard
open fun isCrouching(): Boolean
isCurrentlyGlowing
Link copied to clipboard
open fun isCurrentlyGlowing(): Boolean
isCustomNameVisible
Link copied to clipboard
open fun isCustomNameVisible(): Boolean
isDamageSourceBlocked
Link copied to clipboard
open fun isDamageSourceBlocked(damageSource: DamageSource): Boolean
isDeadOrDying
Link copied to clipboard
open fun isDeadOrDying(): Boolean
isDescending
Link copied to clipboard
open fun isDescending(): Boolean
isDiscrete
Link copied to clipboard
open fun isDiscrete(): Boolean
isEffectiveAi
Link copied to clipboard
open fun isEffectiveAi(): Boolean
isEyeInFluid
Link copied to clipboard
open fun isEyeInFluid(tagKey: TagKey<Fluid>): Boolean
isFallFlying
Link copied to clipboard
open fun isFallFlying(): Boolean
isFree
Link copied to clipboard
open fun isFree(d: Double, e: Double, f: Double): Boolean
isFreezing
Link copied to clipboard
open fun isFreezing(): Boolean
isFullyFrozen
Link copied to clipboard
open fun isFullyFrozen(): Boolean
isHolding
Link copied to clipboard
open fun isHolding(item: Item): Boolean
isIgnoringBlockTriggers
Link copied to clipboard
open fun isIgnoringBlockTriggers(): Boolean
isInLava
Link copied to clipboard
open fun isInLava(): Boolean
isInvertedHealAndHarm
Link copied to clipboard
open fun isInvertedHealAndHarm(): Boolean
isInvisible
Link copied to clipboard
open fun isInvisible(): Boolean
isInvisibleTo
Link copied to clipboard
open fun isInvisibleTo(player: Player): Boolean
isInvulnerable
Link copied to clipboard
open fun isInvulnerable(): Boolean
isInWall
Link copied to clipboard
open fun isInWall(): Boolean
isInWater
Link copied to clipboard
open fun isInWater(): Boolean
isInWaterOrBubble
Link copied to clipboard
open fun isInWaterOrBubble(): Boolean
isInWaterOrRain
Link copied to clipboard
open fun isInWaterOrRain(): Boolean
isInWaterRainOrBubble
Link copied to clipboard
open fun isInWaterRainOrBubble(): Boolean
isLeashed
Link copied to clipboard
open fun isLeashed(): Boolean
isLeftHanded
Link copied to clipboard
open fun isLeftHanded(): Boolean
isMaxGroupSizeReached
Link copied to clipboard
open fun isMaxGroupSizeReached(i: Int): Boolean
isNoAi
Link copied to clipboard
open fun isNoAi(): Boolean
isNoGravity
Link copied to clipboard
open fun isNoGravity(): Boolean
isOnFire
Link copied to clipboard
open fun isOnFire(): Boolean
isOnPortalCooldown
Link copied to clipboard
open fun isOnPortalCooldown(): Boolean
isOnRails
Link copied to clipboard
open fun isOnRails(): Boolean
isPassenger
Link copied to clipboard
open fun isPassenger(): Boolean
isPassengerOfSameVehicle
Link copied to clipboard
open fun isPassengerOfSameVehicle(entity: Entity): Boolean
isPathFinding
Link copied to clipboard
open fun isPathFinding(): Boolean
isPersistenceRequired
Link copied to clipboard
open fun isPersistenceRequired(): Boolean
isPickable
Link copied to clipboard
open fun isPickable(): Boolean
isPushable
Link copied to clipboard
open fun isPushable(): Boolean
isPushedByFluid
Link copied to clipboard
open fun isPushedByFluid(): Boolean
isRemoved
Link copied to clipboard
fun isRemoved(): Boolean
isSensitiveToWater
Link copied to clipboard
open fun isSensitiveToWater(): Boolean
isShiftKeyDown
Link copied to clipboard
open fun isShiftKeyDown(): Boolean
isSilent
Link copied to clipboard
open fun isSilent(): Boolean
isSleeping
Link copied to clipboard
open fun isSleeping(): Boolean
isSpectator
Link copied to clipboard
open fun isSpectator(): Boolean
isSprinting
Link copied to clipboard
open fun isSprinting(): Boolean
isSteppingCarefully
Link copied to clipboard
open fun isSteppingCarefully(): Boolean
isSupportedBy
Link copied to clipboard
open fun isSupportedBy(blockPos: BlockPos): Boolean
isSuppressingBounce
Link copied to clipboard
open fun isSuppressingBounce(): Boolean
isSuppressingSlidingDownLadder
Link copied to clipboard
open fun isSuppressingSlidingDownLadder(): Boolean
isSwimming
Link copied to clipboard
open fun isSwimming(): Boolean
isUnderWater
Link copied to clipboard
open fun isUnderWater(): Boolean
isUsingItem
Link copied to clipboard
open fun isUsingItem(): Boolean
isVehicle
Link copied to clipboard
open fun isVehicle(): Boolean
isVisuallyCrawling
Link copied to clipboard
open fun isVisuallyCrawling(): Boolean
isVisuallySwimming
Link copied to clipboard
open fun isVisuallySwimming(): Boolean
isWithinMeleeAttackRange
Link copied to clipboard
open fun isWithinMeleeAttackRange(livingEntity: LivingEntity): Boolean
isWithinRestriction
Link copied to clipboard
open fun isWithinRestriction(): Boolean
kill
Link copied to clipboard
open fun kill()
killedEntity
Link copied to clipboard
open fun killedEntity(serverLevel: ServerLevel, livingEntity: LivingEntity): Boolean
knockback
Link copied to clipboard
open fun knockback(d: Double, e: Double, f: Double)
lavaHurt
Link copied to clipboard
open fun lavaHurt()
lerpHeadTo
Link copied to clipboard
open fun lerpHeadTo(f: Float, i: Int)
lerpMotion
Link copied to clipboard
open fun lerpMotion(d: Double, e: Double, f: Double)
lerpTo
Link copied to clipboard
open fun lerpTo(d: Double, e: Double, f: Double, g: Float, h: Float, i: Int, bl: Boolean)
level
Link copied to clipboard
open fun level(): Level
load
Link copied to clipboard
open fun load(compoundTag: CompoundTag)
lookAt
Link copied to clipboard
open fun lookAt(entity: Entity, f: Float, g: Float)
makeStuckInBlock
Link copied to clipboard
open fun makeStuckInBlock(blockState: BlockState, vec3: Vec3)
maxUpStep
Link copied to clipboard
open fun maxUpStep(): Float
mayInteract
Link copied to clipboard
open fun mayInteract(level: Level, blockPos: BlockPos): Boolean
mirror
Link copied to clipboard
open fun mirror(mirror: Mirror): Float
move
Link copied to clipboard
open fun move(moverType: MoverType, vec3: Vec3)
moveRelative
Link copied to clipboard
open fun moveRelative(f: Float, vec3: Vec3)
moveTo
Link copied to clipboard
open fun moveTo(vec3: Vec3)
onAboveBubbleCol
Link copied to clipboard
open fun onAboveBubbleCol(bl: Boolean)
onClientRemoval
Link copied to clipboard
open fun onClientRemoval()
onClimbable
Link copied to clipboard
open fun onClimbable(): Boolean
onEnterCombat
Link copied to clipboard
open fun onEnterCombat()
onEquipItem
Link copied to clipboard
open fun onEquipItem(equipmentSlot: EquipmentSlot, itemStack: ItemStack, itemStack2: ItemStack)
onGround
Link copied to clipboard
open fun onGround(): Boolean
onInsideBubbleColumn
Link copied to clipboard
open fun onInsideBubbleColumn(bl: Boolean)
onItemPickup
Link copied to clipboard
open fun onItemPickup(itemEntity: ItemEntity)
onLeaveCombat
Link copied to clipboard
open fun onLeaveCombat()
onlyOpCanSetNbt
Link copied to clipboard
open fun onlyOpCanSetNbt(): Boolean
onPassengerTurned
Link copied to clipboard
open fun onPassengerTurned(entity: Entity)
onPathfindingDone
Link copied to clipboard
open fun onPathfindingDone()
onPathfindingStart
Link copied to clipboard
open fun onPathfindingStart()
onSyncedDataUpdated
Link copied to clipboard
open fun onSyncedDataUpdated(entityDataAccessor: EntityDataAccessor<out Any>)
performCrossbowAttack
Link copied to clipboard
open fun performCrossbowAttack(livingEntity: LivingEntity, f: Float)
pick
Link copied to clipboard
open fun pick(d: Double, f: Float, bl: Boolean): HitResult
playAmbientSound
Link copied to clipboard
open fun playAmbientSound()
playerTouch
Link copied to clipboard
open fun playerTouch(player: Player)
playSound
Link copied to clipboard
open fun playSound(soundEvent: SoundEvent, f: Float, g: Float)
position
Link copied to clipboard
open fun position(): Vec3
positionRider
Link copied to clipboard
fun positionRider(entity: Entity)
randomTeleport
Link copied to clipboard
open fun randomTeleport(d: Double, e: Double, f: Double, bl: Boolean): Boolean
recreateFromPacket
Link copied to clipboard
open fun recreateFromPacket(clientboundAddEntityPacket: ClientboundAddEntityPacket)
refreshDimensions
Link copied to clipboard
open fun refreshDimensions()
releaseUsingItem
Link copied to clipboard
open fun releaseUsingItem()
removeAllEffects
Link copied to clipboard
open fun removeAllEffects(): Boolean
removeAllGoals
Link copied to clipboard
open fun removeAllGoals(predicate: Predicate<Goal>)
removeEffect
Link copied to clipboard
open fun removeEffect(mobEffect: MobEffect): Boolean
removeEffectNoUpdate
Link copied to clipboard
open fun removeEffectNoUpdate(mobEffect: MobEffect): MobEffectInstance
removeFreeWill
Link copied to clipboard
open fun removeFreeWill()
removeTag
Link copied to clipboard
open fun removeTag(string: String): Boolean
removeVehicle
Link copied to clipboard
open fun removeVehicle()
removeWhenFarAway
Link copied to clipboard
open fun removeWhenFarAway(d: Double): Boolean
requiresCustomPersistence
Link copied to clipboard
open fun requiresCustomPersistence(): Boolean
resetFallDistance
Link copied to clipboard
open fun resetFallDistance()
open fun resetForwardDirectionOfRelativePortalPosition(vec3: Vec3): Vec3
restoreFrom
Link copied to clipboard
open fun restoreFrom(entity: Entity)
restrictTo
Link copied to clipboard
open fun restrictTo(blockPos: BlockPos, i: Int)
rideTick
Link copied to clipboard
open fun rideTick()
rotate
Link copied to clipboard
open fun rotate(rotation: Rotation): Float
save
Link copied to clipboard
open fun save(compoundTag: CompoundTag): Boolean
saveAsPassenger
Link copied to clipboard
open fun saveAsPassenger(compoundTag: CompoundTag): Boolean
saveWithoutId
Link copied to clipboard
open fun saveWithoutId(compoundTag: CompoundTag): CompoundTag
sendEffectToPassengers
Link copied to clipboard
open fun sendEffectToPassengers(mobEffectInstance: MobEffectInstance)
sendSystemMessage
Link copied to clipboard
open fun sendSystemMessage(component: Component)
setAbsorptionAmount
Link copied to clipboard
open fun setAbsorptionAmount(f: Float)
setAggressive
Link copied to clipboard
open fun setAggressive(bl: Boolean)
setAirSupply
Link copied to clipboard
open fun setAirSupply(i: Int)
setArrowCount
Link copied to clipboard
fun setArrowCount(i: Int)
setBaby
Link copied to clipboard
open fun setBaby(bl: Boolean)
setBoundingBox
Link copied to clipboard
fun setBoundingBox(aABB: AABB)
setCanPickUpLoot
Link copied to clipboard
open fun setCanPickUpLoot(bl: Boolean)
setCustomNameVisible
Link copied to clipboard
open fun setCustomNameVisible(bl: Boolean)
setDelayedLeashHolderId
Link copied to clipboard
open fun setDelayedLeashHolderId(i: Int)
setDeltaMovement
Link copied to clipboard
open fun setDeltaMovement(vec3: Vec3)
setDiscardFriction
Link copied to clipboard
open fun setDiscardFriction(bl: Boolean)
setDropChance
Link copied to clipboard
open fun setDropChance(equipmentSlot: EquipmentSlot, f: Float)
setGlowingTag
Link copied to clipboard
fun setGlowingTag(bl: Boolean)
setGuaranteedDrop
Link copied to clipboard
open fun setGuaranteedDrop(equipmentSlot: EquipmentSlot)
setHealth
Link copied to clipboard
open fun setHealth(f: Float)
setId
Link copied to clipboard
open fun setId(i: Int)
setInvisible
Link copied to clipboard
open fun setInvisible(bl: Boolean)
setInvulnerable
Link copied to clipboard
open fun setInvulnerable(bl: Boolean)
setIsInPowderSnow
Link copied to clipboard
open fun setIsInPowderSnow(bl: Boolean)
setItemInHand
Link copied to clipboard
open fun setItemInHand(interactionHand: InteractionHand, itemStack: ItemStack)
setItemSlot
Link copied to clipboard
open fun setItemSlot(equipmentSlot: EquipmentSlot, itemStack: ItemStack)
setJumping
Link copied to clipboard
open fun setJumping(bl: Boolean)
setLastHurtByMob
Link copied to clipboard
open fun setLastHurtByMob(livingEntity: LivingEntity)
setLastHurtByPlayer
Link copied to clipboard
open fun setLastHurtByPlayer(player: Player)
setLastHurtMob
Link copied to clipboard
open fun setLastHurtMob(entity: Entity)
setLeftHanded
Link copied to clipboard
open fun setLeftHanded(bl: Boolean)
setLevelCallback
Link copied to clipboard
open fun setLevelCallback(entityInLevelCallback: EntityInLevelCallback)
setMaxUpStep
Link copied to clipboard
open fun setMaxUpStep(f: Float)
setNoActionTime
Link copied to clipboard
open fun setNoActionTime(i: Int)
setNoAi
Link copied to clipboard
open fun setNoAi(bl: Boolean)
setNoGravity
Link copied to clipboard
open fun setNoGravity(bl: Boolean)
setOldPosAndRot
Link copied to clipboard
fun setOldPosAndRot()
setOnGround
Link copied to clipboard
open fun setOnGround(bl: Boolean)
setOnGroundWithKnownMovement
Link copied to clipboard
open fun setOnGroundWithKnownMovement(bl: Boolean, vec3: Vec3)
setPathfindingMalus
Link copied to clipboard
open fun setPathfindingMalus(blockPathTypes: BlockPathTypes, f: Float)
setPersistenceRequired
Link copied to clipboard
open fun setPersistenceRequired()
setPortalCooldown
Link copied to clipboard
open fun setPortalCooldown()
setPos
Link copied to clipboard
fun setPos(vec3: Vec3)
setPosRaw
Link copied to clipboard
fun setPosRaw(d: Double, e: Double, f: Double)
setRecordPlayingNearby
Link copied to clipboard
open fun setRecordPlayingNearby(blockPos: BlockPos, bl: Boolean)
setRemainingFireTicks
Link copied to clipboard
open fun setRemainingFireTicks(i: Int)
setRemoved
Link copied to clipboard
fun setRemoved(removalReason: Entity.RemovalReason)
setSecondsOnFire
Link copied to clipboard
open fun setSecondsOnFire(i: Int)
setSharedFlagOnFire
Link copied to clipboard
open fun setSharedFlagOnFire(bl: Boolean)
setSilent
Link copied to clipboard
open fun setSilent(bl: Boolean)
setSleepingPos
Link copied to clipboard
open fun setSleepingPos(blockPos: BlockPos)
setSpeed
Link copied to clipboard
open fun setSpeed(f: Float)
setSprinting
Link copied to clipboard
open fun setSprinting(bl: Boolean)
setStingerCount
Link copied to clipboard
fun setStingerCount(i: Int)
setSwimming
Link copied to clipboard
open fun setSwimming(bl: Boolean)
setTarget
Link copied to clipboard
open fun setTarget(livingEntity: LivingEntity)
setTicksFrozen
Link copied to clipboard
open fun setTicksFrozen(i: Int)
setUUID
Link copied to clipboard
open fun setUUID(uUID: UUID)
setViewScale
Link copied to clipboard
open fun setViewScale(d: Double)
setXRot
Link copied to clipboard
open fun setXRot(f: Float)
setXxa
Link copied to clipboard
open fun setXxa(f: Float)
setYBodyRot
Link copied to clipboard
open fun setYBodyRot(f: Float)
setYHeadRot
Link copied to clipboard
open fun setYHeadRot(f: Float)
setYRot
Link copied to clipboard
open fun setYRot(f: Float)
setYya
Link copied to clipboard
open fun setYya(f: Float)
setZza
Link copied to clipboard
open fun setZza(f: Float)
shouldBeSaved
Link copied to clipboard
open fun shouldBeSaved(): Boolean
shouldBlockExplode
Link copied to clipboard
open fun shouldBlockExplode(explosion: Explosion, blockGetter: BlockGetter, blockPos: BlockPos, blockState: BlockState, f: Float): Boolean
shouldDiscardFriction
Link copied to clipboard
open fun shouldDiscardFriction(): Boolean
shouldInformAdmins
Link copied to clipboard
open fun shouldInformAdmins(): Boolean
shouldRender
Link copied to clipboard
open fun shouldRender(d: Double, e: Double, f: Double): Boolean
shouldRenderAtSqrDistance
Link copied to clipboard
open fun shouldRenderAtSqrDistance(d: Double): Boolean
shouldShowName
Link copied to clipboard
open fun shouldShowName(): Boolean
showVehicleHealth
Link copied to clipboard
open fun showVehicleHealth(): Boolean
skipDropExperience
Link copied to clipboard
open fun skipDropExperience()
spawnAnim
Link copied to clipboard
open fun spawnAnim()
spawnAtLocation
Link copied to clipboard
open fun spawnAtLocation(itemLike: ItemLike): ItemEntity
startRiding
Link copied to clipboard
open fun startRiding(entity: Entity, bl: Boolean): Boolean
startSeenByPlayer
Link copied to clipboard
open fun startSeenByPlayer(serverPlayer: ServerPlayer)
startSleeping
Link copied to clipboard
open fun startSleeping(blockPos: BlockPos)
startUsingItem
Link copied to clipboard
open fun startUsingItem(interactionHand: InteractionHand)
stopRiding
Link copied to clipboard
open fun stopRiding()
stopSeenByPlayer
Link copied to clipboard
open fun stopSeenByPlayer(serverPlayer: ServerPlayer)
stopSleeping
Link copied to clipboard
open fun stopSleeping()
stopUsingItem
Link copied to clipboard
open fun stopUsingItem()
swing
Link copied to clipboard
open fun swing(interactionHand: InteractionHand)
syncPacketPositionCodec
Link copied to clipboard
open fun syncPacketPositionCodec(d: Double, e: Double, f: Double)
take
Link copied to clipboard
open fun take(entity: Entity, i: Int)
teleportRelative
Link copied to clipboard
open fun teleportRelative(d: Double, e: Double, f: Double)
teleportTo
Link copied to clipboard
open fun teleportTo(d: Double, e: Double, f: Double)
open fun teleportTo(serverLevel: ServerLevel, d: Double, e: Double, f: Double, set: Set<RelativeMovement>, g: Float, h: Float): Boolean
teleportToWithTicket
Link copied to clipboard
fun teleportToWithTicket(d: Double, e: Double, f: Double)
thunderHit
Link copied to clipboard
open fun thunderHit(serverLevel: ServerLevel, lightningBolt: LightningBolt)
toString
Link copied to clipboard
open fun toString(): String
touchingUnloadedChunk
Link copied to clipboard
open fun touchingUnloadedChunk(): Boolean
trackingPosition
Link copied to clipboard
open fun trackingPosition(): Vec3
travel
Link copied to clipboard
open fun travel(vec3: Vec3)
turn
Link copied to clipboard
open fun turn(d: Double, e: Double)
unRide
Link copied to clipboard
fun unRide()
updateDynamicGameEventListener
Link copied to clipboard
open fun updateDynamicGameEventListener(biConsumer: BiConsumer<DynamicGameEventListener<out Any>, ServerLevel>)
updateFluidHeightAndDoFluidPushing
Link copied to clipboard
open fun updateFluidHeightAndDoFluidPushing(tagKey: TagKey<Fluid>, d: Double): Boolean
updateSwimming
Link copied to clipboard
open fun updateSwimming()
wantsToPickUp
Link copied to clipboard
open fun wantsToPickUp(itemStack: ItemStack): Boolean
wasExperienceConsumed
Link copied to clipboard
open fun wasExperienceConsumed(): Boolean