MCPlayerEntity #MC玩家实体
Link to mcplayerentity-mc玩家实体
这个类由mod-id为crafttweaker
的模组添加. 因此,如果要使用此功能,则需要安装此mod。
导入类
Link to 导入类
如果遇到任何问题(例如强制转换数组),则可能需要导入软件包,因此,最好的方式就是导入包支持。
ZenScript Copycrafttweaker.api.entity.player.MCPlayerEntity
使用方式
Link to 使用方式
addExhaustion #增加饥饿值
Link to addexhaustion-增加饥饿值
通过所提供的数值增加饥饿值
ZenScript CopymyMCPlayerEntity.addExhaustion(exhaustion as float);
参数 | 类型 | 描述 |
---|---|---|
参数 exhaustion | 类型 float | 描述 No description provided |
addExperienceLevel #提升经验等级
Link to addexperiencelevel-提升经验等级
提升此玩家的经验等级
ZenScript CopymyMCPlayerEntity.addExperienceLevel(levels as int);
参数 | 类型 | 描述 |
---|---|---|
参数 levels | 类型 int | 描述 No description provided |
addItemStackToInventory #在背包中添加物品堆叠
Link to additemstacktoinventory-在背包中添加物品堆叠
返回为布尔值
ZenScript CopymyMCPlayerEntity.addItemStackToInventory(p_191521_1_ as crafttweaker.api.item.IItemStack);
参数 | 类型 | 描述 |
---|---|---|
参数 p_191521_1_ | 类型 crafttweaker.api.item.IItemStack | 描述 No description provided |
addMovementStat #添加移动统计
Link to addmovementstat-添加移动统计
为移动统计添加一个值——如跑步、步行、游泳或攀登。
ZenScript CopymyMCPlayerEntity.addMovementStat(p_71000_1_ as double, p_71000_3_ as double, p_71000_5_ as double);
参数 | 类型 | 描述 |
---|---|---|
参数 p_71000_1_ | 类型 double | 描述 No description provided |
参数 p_71000_3_ | 类型 double | 描述 No description provided |
参数 p_71000_5_ | 类型 double | 描述 No description provided |
addPotionEffect #添加药水效果
Link to addpotioneffect-添加药水效果
返回为布尔值
ZenScript CopymyMCPlayerEntity.addPotionEffect(effectInstanceIn as crafttweaker.api.potion.MCPotionEffectInstance);
参数 | 类型 | 描述 |
---|---|---|
参数 effectInstanceIn #效果实例 | 类型 crafttweaker.api.potion.MCPotionEffectInstance | 描述 No description provided |
addScore #添加分数
Link to addscore-添加分数
添加到玩家分数
ZenScript CopymyMCPlayerEntity.addScore(scoreIn as int);
参数 | 类型 | 描述 |
---|---|---|
参数 scoreIn | 类型 int | 描述 No description provided |
addTag #添加tag
Link to addtag-添加tag
返回为布尔值
ZenScript CopymyMCPlayerEntity.addTag(tag as String);
参数 | 类型 | 描述 |
---|---|---|
参数 tag #标签 | 类型 字符串[string] | 描述 No description provided |
addVelocity #增加速度
Link to addvelocity-增加速度
为实体的当前速度添加一个值,并设置为true
ZenScript CopymyMCPlayerEntity.addVelocity(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
allowLogging #允许记录日志
Link to allowlogging-允许记录日志
返回为布尔值
ZenScript CopymyMCPlayerEntity.allowLogging();
attackable #可攻击的
Link to attackable-可攻击的
返回为布尔值
ZenScript CopymyMCPlayerEntity.attackable();
attemptTeleport #是否尝试传送
Link to attemptteleport-是否尝试传送
返回为布尔值
ZenScript CopymyMCPlayerEntity.attemptTeleport(p_213373_1_ as double, p_213373_3_ as double, p_213373_5_ as double, p_213373_7_ as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 p_213373_1_ | 类型 double | 描述 No description provided |
参数 p_213373_3_ | 类型 double | 描述 No description provided |
参数 p_213373_5_ | 类型 double | 描述 No description provided |
参数 p_213373_7_ | 类型 布尔值 | 描述 No description provided |
baseTick #基础游戏刻
Link to basetick-基础游戏刻
Gets called every tick from main Entity class #从主要实体类获取所有游戏刻
ZenScript CopymyMCPlayerEntity.baseTick();
canAttackPlayer #可以攻击玩家
Link to canattackplayer-可以攻击玩家
返回为布尔值
ZenScript CopymyMCPlayerEntity.canAttackPlayer(other as crafttweaker.api.entity.player.MCPlayerEntity);
参数 | 类型 | 描述 |
---|---|---|
参数 other | 类型 crafttweaker.api.entity.player.MCPlayerEntity | 描述 No description provided |
canBeAttackedWithItem #可以被物体攻击
Link to canbeattackedwithitem-可以被物体攻击
如果可能用物品攻击该实体,则返回true
返回为布尔值
ZenScript CopymyMCPlayerEntity.canBeAttackedWithItem();
canBeCollidedWith #具有碰撞箱
Link to canbecollidedwith-具有碰撞箱
如果此实体可以阻止其他实体的移动,则反为真
返回为布尔值
ZenScript CopymyMCPlayerEntity.canBeCollidedWith();
canBeHitWithPotion #可以被药水瓶击中
Link to canbehitwithpotion-可以被药水瓶击中
如果实体为盔甲架,则返回false 如果是其他实体生物则返回为true
返回为布尔值
ZenScript CopymyMCPlayerEntity.canBeHitWithPotion();
canBePushed #可以被推动
Link to canbepushed-可以被推动
如果该实体在与其他实体碰撞时可以被推动,则返回值true
返回为布尔值
ZenScript CopymyMCPlayerEntity.canBePushed();
canBeRiddenInWater #可以潜水
Link to canberiddeninwater-可以潜水
返回为布尔值
ZenScript CopymyMCPlayerEntity.canBeRiddenInWater();
canBreatheUnderwater #可以水下呼吸
Link to canbreatheunderwater-可以水下呼吸
返回为布尔值
ZenScript CopymyMCPlayerEntity.canBreatheUnderwater();
canEat #可以进食
Link to caneat-可以进食
返回为布尔值
ZenScript CopymyMCPlayerEntity.canEat(ignoreHunger as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 ignoreHunger | 类型 布尔值 | 描述 No description provided |
canHarvestBlock #可以破坏方块
Link to canharvestblock-可以破坏方块
返回为布尔值
ZenScript CopymyMCPlayerEntity.canHarvestBlock(state as crafttweaker.api.block.MCBlockState);
参数 | 类型 | 描述 |
---|---|---|
参数 state | 类型 crafttweaker.api.block.MCBlockState | 描述 No description provided |
canPassengerSteer #可以乘坐
Link to canpassengersteer-可以乘坐
返回为布尔值
ZenScript CopymyMCPlayerEntity.canPassengerSteer();
canPlayerEdit #可以由玩家编辑
Link to canplayeredit-可以由玩家编辑
返回此玩家是否可以在某个地点使用给定的堆栈修改方块。
查询位置是 {@code pos.offset(facing.getOpposite()}。 返回:此玩家是否可以修改当前世界中查询的位置
@see ItemStack#canPlaceOn(Block) @see ItemStack#canEditBlocks() @see PlayerCapabilities#allowededge
返回为布尔值
ZenScript CopymyMCPlayerEntity.canPlayerEdit(pos as crafttweaker.api.util.BlockPos, facing as crafttweaker.api.util.Direction, stack as crafttweaker.api.item.IItemStack);
参数 | 类型 | 描述 |
---|---|---|
参数 点 | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
参数 方向 | 类型 crafttweaker.api.util.Direction | 描述 No description provided |
参数 堆叠 | 类型 crafttweaker.api.item.IItemStack | 描述 No description provided |
canRenderOnFire #是否能被渲染为着火
Link to canrenderonfire-是否能被渲染为着火
返回该实体能否被渲染为着火
返回为布尔值
ZenScript CopymyMCPlayerEntity.canRenderOnFire();
canRiderInteract #是否可以互动
Link to canriderinteract-是否可以互动
返回为布尔值
ZenScript CopymyMCPlayerEntity.canRiderInteract();
canSwim #是否可以游泳
Link to canswim-是否可以游泳
返回为布尔值
ZenScript CopymyMCPlayerEntity.canSwim();
canTrample #是否能被踩踏
Link to cantrample-是否能被踩踏
返回为布尔值
ZenScript CopymyMCPlayerEntity.canTrample(state as crafttweaker.api.block.MCBlockState, pos as crafttweaker.api.util.BlockPos, fallDistance as float);
参数 | 类型 | 描述 |
---|---|---|
参数 state | 类型 crafttweaker.api.block.MCBlockState | 描述 No description provided |
参数 点 | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
参数 下落距离 | 类型 float | 描述 No description provided |
canUpdate #是否能被更新
Link to canupdate-是否能被更新
返回为布尔值
ZenScript CopymyMCPlayerEntity.canUpdate();
ZenScript CopymyMCPlayerEntity.canUpdate(值为布尔型);
参数 | 类型 | 描述 |
---|---|---|
参数 value | 类型 布尔值 | 描述 No description provided |
canUseCommandBlock #是否可以使用命令方块
Link to canusecommandblock-是否可以使用命令方块
返回为布尔值
ZenScript CopymyMCPlayerEntity.canUseCommandBlock();
clearActivePotions #清除药水效果
Link to clearactivepotions-清除药水效果
返回为布尔值
ZenScript CopymyMCPlayerEntity.clearActivePotions();
clearBedPosition #清除床的位置
Link to clearbedposition-清除床的位置
ZenScript CopymyMCPlayerEntity.clearBedPosition();
closeScreen #关闭屏幕
Link to closescreen-关闭屏幕
把当前合成栏设置回2x2个格子
ZenScript CopymyMCPlayerEntity.closeScreen();
curePotionEffects #清除药水效果
Link to curepotioneffects-清除药水效果
返回为布尔值
ZenScript CopymyMCPlayerEntity.curePotionEffects(治疗的效果为 crafttweaker.api.item.IItemStack);
参数 | 类型 | 描述 |
---|---|---|
参数 治疗的效果 | 类型 crafttweaker.api.item.IItemStack | 描述 No description provided |
detach #分离
Link to detach-分离
ZenScript CopymyMCPlayerEntity.detach();
disableShield #禁用盾
Link to disableshield-禁用盾
ZenScript CopymyMCPlayerEntity.disableShield(p_190777_1_ 为布尔值);
参数 | 类型 | 描述 |
---|---|---|
参数 p_190777_1_ | 类型 布尔值 | 描述 No description provided |
doesEntityNotTriggerPressurePlate #实体是否会触发压力板
Link to doesentitynottriggerpressureplate-实体是否会触发压力板
返回此实体是否会触发压力板或绊线。
返回为布尔值
ZenScript CopymyMCPlayerEntity.doesEntityNotTriggerPressurePlate();
equals #等于
Link to equals-等于
返回为布尔值
ZenScript CopymyMCPlayerEntity.equals(p_equals_1_ as Object);
参数 | 类型 | 描述 |
---|---|---|
参数 p_equals_1_ | 类型 Object | 描述 No description provided |
extinguish
Link to extinguish
Removes fire from entity.
ZenScript CopymyMCPlayerEntity.extinguish();
fall
Link to fall
ZenScript CopymyMCPlayerEntity.fall(distance as float, damageMultiplier as float);
参数 | 类型 | 描述 |
---|---|---|
参数 distance | 类型 float | 描述 No description provided |
参数 damageMultiplier | 类型 float | 描述 No description provided |
findAmmo
Link to findammo
Returns crafttweaker.api.item.IItemStack
ZenScript CopymyMCPlayerEntity.findAmmo(shootable as crafttweaker.api.item.IItemStack);
参数 | 类型 | 描述 |
---|---|---|
参数 shootable | 类型 crafttweaker.api.item.IItemStack | 描述 No description provided |
func_213300_bk
Link to func_213300_bk
返回为布尔值
ZenScript CopymyMCPlayerEntity.func_213300_bk();
func_213312_b
Link to func_213312_b
ZenScript CopymyMCPlayerEntity.func_213312_b(p_213312_1_ as double, p_213312_3_ as double, p_213312_5_ as double);
参数 | 类型 | 描述 |
---|---|---|
参数 p_213312_1_ | 类型 double | 描述 No description provided |
参数 p_213312_3_ | 类型 double | 描述 No description provided |
参数 p_213312_5_ | 类型 double | 描述 No description provided |
func_213314_bj
Link to func_213314_bj
返回为布尔值
ZenScript CopymyMCPlayerEntity.func_213314_bj();
func_213343_cS
Link to func_213343_cs
Returns float
ZenScript CopymyMCPlayerEntity.func_213343_cS();
func_213365_e
Link to func_213365_e
返回为布尔值
ZenScript CopymyMCPlayerEntity.func_213365_e(itemstackIn as crafttweaker.api.item.IItemStack);
参数 | 类型 | 描述 |
---|---|---|
参数 itemstackIn | 类型 crafttweaker.api.item.IItemStack | 描述 No description provided |
getAIMoveSpeed
Link to getaimovespeed
the movespeed used for the new AI system
Returns float
ZenScript CopymyMCPlayerEntity.getAIMoveSpeed();
getAbsorptionAmount
Link to getabsorptionamount
Returns the amount of health added by the Absorption effect.
Returns float
ZenScript CopymyMCPlayerEntity.getAbsorptionAmount();
getActiveItemStack
Link to getactiveitemstack
Returns crafttweaker.api.item.IItemStack
ZenScript CopymyMCPlayerEntity.getActiveItemStack();
getActivePotionEffect
Link to getactivepotioneffect
returns the PotionEffect for the supplied Potion if it is active, null otherwise.
Returns crafttweaker.api.potion.MCPotionEffectInstance
ZenScript CopymyMCPlayerEntity.getActivePotionEffect(potionIn as crafttweaker.api.potion.MCPotionEffect);
参数 | 类型 | 描述 |
---|---|---|
参数 potionIn | 类型 crafttweaker.api.potion.MCPotionEffect | 描述 No description provided |
getActivePotionEffects
Link to getactivepotioneffects
Returns Collection<crafttweaker.api.potion.MCPotionEffectInstance>
ZenScript CopymyMCPlayerEntity.getActivePotionEffects();
getAdjustedHorizontalFacing
Link to getadjustedhorizontalfacing
Gets the horizontal facing direction of this Entity, adjusted to take specially-treated entity types into account.
Returns crafttweaker.api.util.Direction
ZenScript CopymyMCPlayerEntity.getAdjustedHorizontalFacing();
getAir
Link to getair
返回为int值
ZenScript CopymyMCPlayerEntity.getAir();
getAlwaysRenderNameTagForRender
Link to getalwaysrendernametagforrender
返回为布尔值
ZenScript CopymyMCPlayerEntity.getAlwaysRenderNameTagForRender();
getArrowCountInEntity
Link to getarrowcountinentity
返回为int值
ZenScript CopymyMCPlayerEntity.getArrowCountInEntity();
getBedDirection
Link to getbeddirection
gets the Direction for the camera if this entity is sleeping
Returns crafttweaker.api.util.Direction
ZenScript CopymyMCPlayerEntity.getBedDirection();
getBedLocation
Link to getbedlocation
Returns crafttweaker.api.util.BlockPos
ZenScript CopymyMCPlayerEntity.getBedLocation();
getBlockState
Link to getblockstate
返回值 crafttweaker.api.block.MCBlockState
ZenScript CopymyMCPlayerEntity.getBlockState();
getBrightness
Link to getbrightness
Gets how bright this entity is.
Returns float
ZenScript CopymyMCPlayerEntity.getBrightness();
getBrightnessForRender
Link to getbrightnessforrender
返回为int值
ZenScript CopymyMCPlayerEntity.getBrightnessForRender();
getCachedUniqueIdString
Link to getcacheduniqueidstring
返回字符串[String]
ZenScript CopymyMCPlayerEntity.getCachedUniqueIdString();
getClassification
Link to getclassification
Returns crafttweaker.api.entity.MCEntityClassification
ZenScript CopymyMCPlayerEntity.getClassification(forSpawnCount as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 forSpawnCount | 类型 布尔值 | 描述 No description provided |
getCollisionBorderSize
Link to getcollisionbordersize
Returns float
ZenScript CopymyMCPlayerEntity.getCollisionBorderSize();
getCooldownPeriod
Link to getcooldownperiod
Returns float
ZenScript CopymyMCPlayerEntity.getCooldownPeriod();
getCooledAttackStrength
Link to getcooledattackstrength
Returns the percentage of attack power available based on the cooldown (zero to one).
Returns float
ZenScript CopymyMCPlayerEntity.getCooledAttackStrength(adjustTicks as float);
参数 | 类型 | 描述 |
---|---|---|
参数 adjustTicks | 类型 float | 描述 No description provided |
getDigSpeed
Link to getdigspeed
Returns float
ZenScript CopymyMCPlayerEntity.getDigSpeed(state as crafttweaker.api.block.MCBlockState);
参数 | 类型 | 描述 |
---|---|---|
参数 state | 类型 crafttweaker.api.block.MCBlockState | 描述 No description provided |
Returns float
ZenScript CopymyMCPlayerEntity.getDigSpeed(arg0 as crafttweaker.api.block.MCBlockState, arg1 as crafttweaker.api.util.BlockPos);
参数 | 类型 | 描述 |
---|---|---|
参数 arg0 | 类型 crafttweaker.api.block.MCBlockState | 描述 No description provided |
参数 arg1 | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
getDistanceSq
Link to getdistancesq
Returns double
ZenScript CopymyMCPlayerEntity.getDistanceSq(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
getEntityId
Link to getentityid
返回为int值
ZenScript CopymyMCPlayerEntity.getEntityId();
getEntityString
Link to getentitystring
返回字符串[String]
ZenScript CopymyMCPlayerEntity.getEntityString();
getEyeHeight
Link to geteyeheight
Returns float
ZenScript CopymyMCPlayerEntity.getEyeHeight();
getFireTimer
Link to getfiretimer
返回为int值
ZenScript CopymyMCPlayerEntity.getFireTimer();
getHealth
Link to gethealth
Returns float
ZenScript CopymyMCPlayerEntity.getHealth();
getHeight
Link to getheight
Returns float
ZenScript CopymyMCPlayerEntity.getHeight();
getHeldItemMainhand
Link to gethelditemmainhand
Returns crafttweaker.api.item.IItemStack
ZenScript CopymyMCPlayerEntity.getHeldItemMainhand();
getHeldItemOffhand
Link to gethelditemoffhand
Returns crafttweaker.api.item.IItemStack
ZenScript CopymyMCPlayerEntity.getHeldItemOffhand();
getHorizontalFacing
Link to gethorizontalfacing
Gets the horizontal facing direction of this Entity.
Returns crafttweaker.api.util.Direction
ZenScript CopymyMCPlayerEntity.getHorizontalFacing();
getIdleTime
Link to getidletime
返回为int值
ZenScript CopymyMCPlayerEntity.getIdleTime();
getItemInUseCount
Link to getiteminusecount
返回为int值
ZenScript CopymyMCPlayerEntity.getItemInUseCount();
getItemInUseMaxCount
Link to getiteminusemaxcount
返回为int值
ZenScript CopymyMCPlayerEntity.getItemInUseMaxCount();
getLastAttackedEntityTime
Link to getlastattackedentitytime
返回为int值
ZenScript CopymyMCPlayerEntity.getLastAttackedEntityTime();
getLuck
Link to getluck
Returns float
ZenScript CopymyMCPlayerEntity.getLuck();
getMaxAir
Link to getmaxair
返回为int值
ZenScript CopymyMCPlayerEntity.getMaxAir();
getMaxFallHeight
Link to getmaxfallheight
The maximum height from where the entity is alowed to jump (used in pathfinder)
返回为int值
ZenScript CopymyMCPlayerEntity.getMaxFallHeight();
getMaxHealth
Link to getmaxhealth
Returns float
ZenScript CopymyMCPlayerEntity.getMaxHealth();
getMaxInPortalTime
Link to getmaxinportaltime
Return the amount of time this entity should stay in a portal before being transported.
返回为int值
ZenScript CopymyMCPlayerEntity.getMaxInPortalTime();
getMountedYOffset
Link to getmountedyoffset
Returns the Y offset from the entity's position for any entity riding this one.
Returns double
ZenScript CopymyMCPlayerEntity.getMountedYOffset();
getPitch
Link to getpitch
Gets the current pitch of the entity.
Returns float
ZenScript CopymyMCPlayerEntity.getPitch(partialTicks as float);
参数 | 类型 | 描述 |
---|---|---|
参数 partialTicks | 类型 float | 描述 No description provided |
getPortalCooldown
Link to getportalcooldown
Return the amount of cooldown before this entity can use a portal again.
返回为int值
ZenScript CopymyMCPlayerEntity.getPortalCooldown();
getPosition
Link to getposition
Get the position in the world. {@code null} is not allowed! If you are not an entity in the world, return the coordinates 0, 0, 0
Returns crafttweaker.api.util.BlockPos
ZenScript CopymyMCPlayerEntity.getPosition();
getRenderScale
Link to getrenderscale
Returns float
ZenScript CopymyMCPlayerEntity.getRenderScale();
getRevengeTimer
Link to getrevengetimer
返回为int值
ZenScript CopymyMCPlayerEntity.getRevengeTimer();
getRotationYawHead
Link to getrotationyawhead
Returns float
ZenScript CopymyMCPlayerEntity.getRotationYawHead();
getScore
Link to getscore
返回为int值
ZenScript CopymyMCPlayerEntity.getScore();
getScoreboardName
Link to getscoreboardname
Returns a String to use as this entity's name in the scoreboard/entity selector systems
返回字符串[String]
ZenScript CopymyMCPlayerEntity.getScoreboardName();
getSleepTimer
Link to getsleeptimer
返回为int值
ZenScript CopymyMCPlayerEntity.getSleepTimer();
getSubmergedHeight
Link to getsubmergedheight
Returns double
ZenScript CopymyMCPlayerEntity.getSubmergedHeight();
getSwimAnimation
Link to getswimanimation
Returns float
ZenScript CopymyMCPlayerEntity.getSwimAnimation(partialTicks as float);
参数 | 类型 | 描述 |
---|---|---|
参数 partialTicks | 类型 float | 描述 No description provided |
getSwingProgress
Link to getswingprogress
Gets the progression of the swing animation, ranges from 0.0 to 1.0.
Returns float
ZenScript CopymyMCPlayerEntity.getSwingProgress(partialTickTime as float);
参数 | 类型 | 描述 |
---|---|---|
参数 partialTickTime | 类型 float | 描述 No description provided |
getTags
Link to gettags
Returns Set
ZenScript CopymyMCPlayerEntity.getTags();
getTeleportDirection
Link to getteleportdirection
Returns crafttweaker.api.util.Direction
ZenScript CopymyMCPlayerEntity.getTeleportDirection();
getTicksElytraFlying
Link to gettickselytraflying
返回为int值
ZenScript CopymyMCPlayerEntity.getTicksElytraFlying();
getTotalArmorValue
Link to gettotalarmorvalue
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
返回为int值
ZenScript CopymyMCPlayerEntity.getTotalArmorValue();
getWidth
Link to getwidth
Returns float
ZenScript CopymyMCPlayerEntity.getWidth();
getXPSeed
Link to getxpseed
返回为int值
ZenScript CopymyMCPlayerEntity.getXPSeed();
getYOffset
Link to getyoffset
Returns the Y Offset of this entity.
Returns double
ZenScript CopymyMCPlayerEntity.getYOffset();
getYaw
Link to getyaw
Gets the current yaw of the entity
Returns float
ZenScript CopymyMCPlayerEntity.getYaw(partialTicks as float);
参数 | 类型 | 描述 |
---|---|---|
参数 partialTicks | 类型 float | 描述 No description provided |
giveExperiencePoints
Link to giveexperiencepoints
ZenScript CopymyMCPlayerEntity.giveExperiencePoints(p_195068_1_ as int);
参数 | 类型 | 描述 |
---|---|---|
参数 p_195068_1_ | 类型 int | 描述 No description provided |
handleStatusUpdate
Link to handlestatusupdate
ZenScript CopymyMCPlayerEntity.handleStatusUpdate(id as byte);
参数 | 类型 | 描述 |
---|---|---|
参数 id | 类型 byte | 描述 No description provided |
handleWaterMovement
Link to handlewatermovement
Returns if this entity is in water and will end up adding the waters velocity to the entity
返回为布尔值
ZenScript CopymyMCPlayerEntity.handleWaterMovement();
hasCustomName
Link to hascustomname
返回为布尔值
ZenScript CopymyMCPlayerEntity.hasCustomName();
hasNoGravity
Link to hasnogravity
返回为布尔值
ZenScript CopymyMCPlayerEntity.hasNoGravity();
hasPermissionLevel
Link to haspermissionlevel
返回为布尔值
ZenScript CopymyMCPlayerEntity.hasPermissionLevel(p_211513_1_ as int);
参数 | 类型 | 描述 |
---|---|---|
参数 p_211513_1_ | 类型 int | 描述 No description provided |
hasReducedDebug
Link to hasreduceddebug
Whether the "reducedDebugInfo" option is active for this player.
返回为布尔值
ZenScript CopymyMCPlayerEntity.hasReducedDebug();
hashCode
Link to hashcode
返回为int值
ZenScript CopymyMCPlayerEntity.hashCode();
heal
Link to heal
Heal living entity (param: amount of half-hearts)
ZenScript CopymyMCPlayerEntity.heal(healAmount as float);
参数 | 类型 | 描述 |
---|---|---|
参数 healAmount | 类型 float | 描述 No description provided |
ignoreItemEntityData
Link to ignoreitementitydata
Checks if players can use this entity to access operator (permission level 2) commands either directly or indirectly, such as give or setblock. A similar method exists for entities at {@link net.minecraft.tileentity.TileEntity#onlyOpsCanSetNbt()}.
For example, {@link net.minecraft.entity.item.EntityMinecartCommandBlock#ignoreItemEntityData() command block minecarts} and {@link net.minecraft.entity.item.EntityMinecartMobSpawner#ignoreItemEntityData() mob spawner minecarts} (spawning command block minecarts or drops) are considered accessible.
Returns:true if this entity offers ways for unauthorized players to use restricted commands
返回为布尔值
ZenScript CopymyMCPlayerEntity.ignoreItemEntityData();
isActiveItemStackBlocking
Link to isactiveitemstackblocking
返回为布尔值
ZenScript CopymyMCPlayerEntity.isActiveItemStackBlocking();
isAddedToWorld
Link to isaddedtoworld
返回为布尔值
ZenScript CopymyMCPlayerEntity.isAddedToWorld();
isAlive
Link to isalive
Returns true if the entity has not been .
返回为布尔值
ZenScript CopymyMCPlayerEntity.isAlive();
isAllowEdit
Link to isallowedit
返回为布尔值
ZenScript CopymyMCPlayerEntity.isAllowEdit();
isBeingRidden
Link to isbeingridden
If at least 1 entity is riding this one
返回为布尔值
ZenScript CopymyMCPlayerEntity.isBeingRidden();
isBurning
Link to isburning
Returns true if the entity is on fire. Used by render to add the fire effect on rendering.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isBurning();
isChild
Link to ischild
If Animal, checks if the age timer is negative
返回为布尔值
ZenScript CopymyMCPlayerEntity.isChild();
isCreative
Link to iscreative
返回为布尔值
ZenScript CopymyMCPlayerEntity.isCreative();
isCustomNameVisible
Link to iscustomnamevisible
返回为布尔值
ZenScript CopymyMCPlayerEntity.isCustomNameVisible();
isElytraFlying
Link to iselytraflying
返回为布尔值
ZenScript CopymyMCPlayerEntity.isElytraFlying();
isEntityInsideOpaqueBlock
Link to isentityinsideopaqueblock
Checks if this entity is inside of an opaque block
返回为布尔值
ZenScript CopymyMCPlayerEntity.isEntityInsideOpaqueBlock();
isEntityUndead
Link to isentityundead
Returns true if this entity is undead.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isEntityUndead();
isGlowing
Link to isglowing
返回为布尔值
ZenScript CopymyMCPlayerEntity.isGlowing();
isHandActive
Link to ishandactive
返回为布尔值
ZenScript CopymyMCPlayerEntity.isHandActive();
isImmuneToExplosions
Link to isimmunetoexplosions
返回为布尔值
ZenScript CopymyMCPlayerEntity.isImmuneToExplosions();
isImmuneToFire
Link to isimmunetofire
返回为布尔值
ZenScript CopymyMCPlayerEntity.isImmuneToFire();
isInLava
Link to isinlava
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInLava();
isInRangeToRender3d
Link to isinrangetorender3d
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInRangeToRender3d(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
isInRangeToRenderDist
Link to isinrangetorenderdist
Checks if the entity is in range to render.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInRangeToRenderDist(distance as double);
参数 | 类型 | 描述 |
---|---|---|
参数 distance | 类型 double | 描述 No description provided |
isInWater
Link to isinwater
Checks if this entity is inside water (if inWater field is true as a result of handleWaterMovement() returning true)
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInWater();
isInWaterOrBubbleColumn
Link to isinwaterorbubblecolumn
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInWaterOrBubbleColumn();
isInWaterRainOrBubbleColumn
Link to isinwaterrainorbubblecolumn
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInWaterRainOrBubbleColumn();
isInvisible
Link to isinvisible
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInvisible();
isInvisibleToPlayer
Link to isinvisibletoplayer
Only used by renderer in EntityLivingBase subclasses. Determines if an entity is visible or not to a specific player, if the entity is normally invisible. For EntityLivingBase subclasses, returning false when invisible will render the entity semi-transparent.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInvisibleToPlayer(player as crafttweaker.api.entity.player.MCPlayerEntity);
参数 | 类型 | 描述 |
---|---|---|
参数 player | 类型 crafttweaker.api.entity.player.MCPlayerEntity | 描述 No description provided |
isInvulnerable
Link to isinvulnerable
返回为布尔值
ZenScript CopymyMCPlayerEntity.isInvulnerable();
isLiving
Link to isliving
返回为布尔值
ZenScript CopymyMCPlayerEntity.isLiving();
isNonBoss
Link to isnonboss
Returns false if this Entity is a boss, true otherwise.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isNonBoss();
isOffsetPositionInLiquid
Link to isoffsetpositioninliquid
Checks if the offset position from the entity's current position is inside of a liquid.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isOffsetPositionInLiquid(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
isOnLadder
Link to isonladder
Returns true if this entity should move as if it were on a ladder (either because it's actually on a ladder, or for AI reasons)
返回为布尔值
ZenScript CopymyMCPlayerEntity.isOnLadder();
isOnePlayerRiding
Link to isoneplayerriding
返回为布尔值
ZenScript CopymyMCPlayerEntity.isOnePlayerRiding();
isPassenger
Link to ispassenger
返回为布尔值
ZenScript CopymyMCPlayerEntity.isPassenger();
isPlayerFullyAsleep
Link to isplayerfullyasleep
Returns whether or not the player is asleep and the screen has fully faded.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isPlayerFullyAsleep();
isPotionActive
Link to ispotionactive
返回为布尔值
ZenScript CopymyMCPlayerEntity.isPotionActive(potionIn as crafttweaker.api.potion.MCPotionEffect);
参数 | 类型 | 描述 |
---|---|---|
参数 potionIn | 类型 crafttweaker.api.potion.MCPotionEffect | 描述 No description provided |
isPotionApplicable
Link to ispotionapplicable
返回为布尔值
ZenScript CopymyMCPlayerEntity.isPotionApplicable(potioneffectIn as crafttweaker.api.potion.MCPotionEffectInstance);
参数 | 类型 | 描述 |
---|---|---|
参数 potioneffectIn | 类型 crafttweaker.api.potion.MCPotionEffectInstance | 描述 No description provided |
isPushedByWater
Link to ispushedbywater
返回为布尔值
ZenScript CopymyMCPlayerEntity.isPushedByWater();
isServerWorld
Link to isserverworld
Returns whether the entity is in a server world
返回为布尔值
ZenScript CopymyMCPlayerEntity.isServerWorld();
isSilent
Link to issilent
Returns: True if this entity will not play sounds
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSilent();
isSleeping
Link to issleeping
Returns whether player is sleeping or not
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSleeping();
isSneaking
Link to issneaking
Returns if this entity is sneaking.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSneaking();
isSpawnForced
Link to isspawnforced
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSpawnForced();
isSpectator
Link to isspectator
Returns true if the player is in spectator mode.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSpectator();
isSpinAttacking
Link to isspinattacking
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSpinAttacking();
isSprinting
Link to issprinting
Get if the Entity is sprinting.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSprinting();
isSwimming
Link to isswimming
返回为布尔值
ZenScript CopymyMCPlayerEntity.isSwimming();
isUser
Link to isuser
returns true if this is an EntityPlayerSP, or the logged in player.
返回为布尔值
ZenScript CopymyMCPlayerEntity.isUser();
isWet
Link to iswet
Checks if this entity is either in water or on an open air block in rain (used in wolves).
返回为布尔值
ZenScript CopymyMCPlayerEntity.isWet();
jump
Link to jump
Causes this entity to do an upwards motion (jumping).
ZenScript CopymyMCPlayerEntity.jump();
livingTick
Link to livingtick
Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.
ZenScript CopymyMCPlayerEntity.livingTick();
moveToBlockPosAndAngles
Link to movetoblockposandangles
ZenScript CopymyMCPlayerEntity.moveToBlockPosAndAngles(pos as crafttweaker.api.util.BlockPos, rotationYawIn as float, rotationPitchIn as float);
参数 | 类型 | 描述 |
---|---|---|
参数 点 | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
参数 rotationYawIn | 类型 float | 描述 No description provided |
参数 rotationPitchIn | 类型 float | 描述 No description provided |
onAddedToWorld
Link to onaddedtoworld
ZenScript CopymyMCPlayerEntity.onAddedToWorld();
onCollideWithPlayer
Link to oncollidewithplayer
Called by a player entity when they collide with an entity
ZenScript CopymyMCPlayerEntity.onCollideWithPlayer(entityIn as crafttweaker.api.entity.player.MCPlayerEntity);
参数 | 类型 | 描述 |
---|---|---|
参数 entityIn | 类型 crafttweaker.api.entity.player.MCPlayerEntity | 描述 No description provided |
onEnchant
Link to onenchant
ZenScript CopymyMCPlayerEntity.onEnchant(enchantedItem as crafttweaker.api.item.IItemStack, cost as int);
参数 | 类型 | 描述 |
---|---|---|
参数 enchantedItem | 类型 crafttweaker.api.item.IItemStack | 描述 No description provided |
参数 cost | 类型 int | 描述 No description provided |
onEnterBubbleColumn
Link to onenterbubblecolumn
ZenScript CopymyMCPlayerEntity.onEnterBubbleColumn(downwards as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 downwards | 类型 布尔值 | 描述 No description provided |
onEnterBubbleColumnWithAirAbove
Link to onenterbubblecolumnwithairabove
ZenScript CopymyMCPlayerEntity.onEnterBubbleColumnWithAirAbove(downwards as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 downwards | 类型 布尔值 | 描述 No description provided |
onKillCommand
Link to onkillcommand
Called by the /kill command.
ZenScript CopymyMCPlayerEntity.onKillCommand();
onRemovedFromWorld
Link to onremovedfromworld
ZenScript CopymyMCPlayerEntity.onRemovedFromWorld();
performHurtAnimation
Link to performhurtanimation
Setups the entity to do the hurt animation. Only used by packets in multiplayer.
ZenScript CopymyMCPlayerEntity.performHurtAnimation();
preparePlayerToSpawn
Link to prepareplayertospawn
Keeps moving the entity up so it isn't colliding with blocks and other requirements for this entity to be spawned (only actually used on players though its also on Entity)
ZenScript CopymyMCPlayerEntity.preparePlayerToSpawn();
recalculateSize
Link to recalculatesize
ZenScript CopymyMCPlayerEntity.recalculateSize();
remove #移除
Link to remove-移除
ZenScript CopymyMCPlayerEntity.remove();
ZenScript CopymyMCPlayerEntity.remove(keepData as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 keepData | 类型 布尔值 | 描述 No description provided |
removeActivePotionEffect
Link to removeactivepotioneffect
Returns crafttweaker.api.potion.MCPotionEffectInstance
ZenScript CopymyMCPlayerEntity.removeActivePotionEffect(arg0 as crafttweaker.api.potion.MCPotionEffect);
参数 | 类型 | 描述 |
---|---|---|
参数 arg0 | 类型 crafttweaker.api.potion.MCPotionEffect | 描述 No description provided |
removePassengers
Link to removepassengers
Dismounts all entities riding this entity from this entity.
ZenScript CopymyMCPlayerEntity.removePassengers();
removePotionEffect
Link to removepotioneffect
返回为布尔值
ZenScript CopymyMCPlayerEntity.removePotionEffect(effectIn as crafttweaker.api.potion.MCPotionEffect);
参数 | 类型 | 描述 |
---|---|---|
参数 effectIn | 类型 crafttweaker.api.potion.MCPotionEffect | 描述 No description provided |
removeTag
Link to removetag
返回为布尔值
ZenScript CopymyMCPlayerEntity.removeTag(tag as String);
参数 | 类型 | 描述 |
---|---|---|
参数 tag #标签 | 类型 字符串[string] | 描述 No description provided |
replaceItemInInventory
Link to replaceitemininventory
返回为布尔值
ZenScript CopymyMCPlayerEntity.replaceItemInInventory(inventorySlot as int, itemStackIn as crafttweaker.api.item.IItemStack);
参数 | 类型 | 描述 |
---|---|---|
参数 inventorySlot | 类型 int | 描述 No description provided |
参数 itemStackIn | 类型 crafttweaker.api.item.IItemStack | 描述 No description provided |
resetActiveHand
Link to resetactivehand
ZenScript CopymyMCPlayerEntity.resetActiveHand();
resetCooldown
Link to resetcooldown
ZenScript CopymyMCPlayerEntity.resetCooldown();
resetPositionToBB
Link to resetpositiontobb
Resets the entity's position to the center (planar) and bottom (vertical) points of its bounding box.
ZenScript CopymyMCPlayerEntity.resetPositionToBB();
respawnPlayer
Link to respawnplayer
ZenScript CopymyMCPlayerEntity.respawnPlayer();
revive
Link to revive
ZenScript CopymyMCPlayerEntity.revive();
rotateTowards
Link to rotatetowards
ZenScript CopymyMCPlayerEntity.rotateTowards(yaw as double, pitch as double);
参数 | 类型 | 描述 |
---|---|---|
参数 yaw | 类型 double | 描述 No description provided |
参数 pitch | 类型 double | 描述 No description provided |
sendEndCombat
Link to sendendcombat
Sends an END_COMBAT packet to the client
ZenScript CopymyMCPlayerEntity.sendEndCombat();
sendEnterCombat
Link to sendentercombat
Sends an ENTER_COMBAT packet to the client
ZenScript CopymyMCPlayerEntity.sendEnterCombat();
sendPlayerAbilities
Link to sendplayerabilities
Sends the player's abilities to the server (if there is one).
ZenScript CopymyMCPlayerEntity.sendPlayerAbilities();
setAIMoveSpeed
Link to setaimovespeed
set the movespeed used for the new AI system
ZenScript CopymyMCPlayerEntity.setAIMoveSpeed(speedIn as float);
参数 | 类型 | 描述 |
---|---|---|
参数 speedIn | 类型 float | 描述 No description provided |
setAbsorptionAmount
Link to setabsorptionamount
ZenScript CopymyMCPlayerEntity.setAbsorptionAmount(amount as float);
参数 | 类型 | 描述 |
---|---|---|
参数 amount | 类型 float | 描述 No description provided |
setAir
Link to setair
ZenScript CopymyMCPlayerEntity.setAir(air as int);
参数 | 类型 | 描述 |
---|---|---|
参数 air | 类型 int | 描述 No description provided |
setArrowCountInEntity
Link to setarrowcountinentity
ZenScript CopymyMCPlayerEntity.setArrowCountInEntity(count as int);
参数 | 类型 | 描述 |
---|---|---|
参数 count | 类型 int | 描述 No description provided |
setBedPosition
Link to setbedposition
ZenScript CopymyMCPlayerEntity.setBedPosition(p_213369_1_ as crafttweaker.api.util.BlockPos);
参数 | 类型 | 描述 |
---|---|---|
参数 p_213369_1_ | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
setCustomNameVisible
Link to setcustomnamevisible
ZenScript CopymyMCPlayerEntity.setCustomNameVisible(alwaysRenderNameTag as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 alwaysRenderNameTag | 类型 布尔值 | 描述 No description provided |
setEntityId
Link to setentityid
ZenScript CopymyMCPlayerEntity.setEntityId(id as int);
参数 | 类型 | 描述 |
---|---|---|
参数 id | 类型 int | 描述 No description provided |
setFire
Link to setfire
Sets entity to burn for x amount of seconds, cannot lower amount of existing fire.
ZenScript CopymyMCPlayerEntity.setFire(seconds as int);
参数 | 类型 | 描述 |
---|---|---|
参数 seconds | 类型 int | 描述 No description provided |
setFireTimer
Link to setfiretimer
ZenScript CopymyMCPlayerEntity.setFireTimer(p_223308_1_ as int);
参数 | 类型 | 描述 |
---|---|---|
参数 p_223308_1_ | 类型 int | 描述 No description provided |
setGlowing
Link to setglowing
ZenScript CopymyMCPlayerEntity.setGlowing(glowingIn as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 glowingIn | 类型 布尔值 | 描述 No description provided |
setHeadRotation
Link to setheadrotation
ZenScript CopymyMCPlayerEntity.setHeadRotation(yaw as float, pitch as int);
参数 | 类型 | 描述 |
---|---|---|
参数 yaw | 类型 float | 描述 No description provided |
参数 pitch | 类型 int | 描述 No description provided |
setHealth
Link to sethealth
ZenScript CopymyMCPlayerEntity.setHealth(health as float);
参数 | 类型 | 描述 |
---|---|---|
参数 health | 类型 float | 描述 No description provided |
setIdleTime
Link to setidletime
ZenScript CopymyMCPlayerEntity.setIdleTime(idleTimeIn as int);
参数 | 类型 | 描述 |
---|---|---|
参数 idleTimeIn | 类型 int | 描述 No description provided |
setInLava
Link to setinlava
ZenScript CopymyMCPlayerEntity.setInLava();
setInvisible
Link to setinvisible
ZenScript CopymyMCPlayerEntity.setInvisible(invisible as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 invisible | 类型 布尔值 | 描述 No description provided |
setInvulnerable
Link to setinvulnerable
Sets whether this Entity is invulnerable.
ZenScript CopymyMCPlayerEntity.setInvulnerable(isInvulnerable as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 isInvulnerable | 类型 布尔值 | 描述 No description provided |
setJumping
Link to setjumping
ZenScript CopymyMCPlayerEntity.setJumping(jumping as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 jumping | 类型 布尔值 | 描述 No description provided |
setLocationAndAngles
Link to setlocationandangles
Sets the location and Yaw/Pitch of an entity in the world
ZenScript CopymyMCPlayerEntity.setLocationAndAngles(x as double, y as double, z as double, yaw as float, pitch as float);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
参数 yaw | 类型 float | 描述 No description provided |
参数 pitch | 类型 float | 描述 No description provided |
setMotion
Link to setmotion
ZenScript CopymyMCPlayerEntity.setMotion(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
setNoGravity
Link to setnogravity
ZenScript CopymyMCPlayerEntity.setNoGravity(noGravity as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 noGravity | 类型 布尔值 | 描述 No description provided |
setPartying
Link to setpartying
Called when a record starts or stops playing. Used to make parrots start or stop partying.
ZenScript CopymyMCPlayerEntity.setPartying(pos as crafttweaker.api.util.BlockPos, isPartying as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 点 | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
参数 isPartying | 类型 布尔值 | 描述 No description provided |
setPortal
Link to setportal
Marks the entity as being inside a portal, activating teleportation logic in onEntityUpdate() in the following tick(s).
ZenScript CopymyMCPlayerEntity.setPortal(pos as crafttweaker.api.util.BlockPos);
参数 | 类型 | 描述 |
---|---|---|
参数 点 | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
setPosition
Link to setposition
Sets the x,y,z of the entity from the given parameters. Also seems to set up a bounding box.
ZenScript CopymyMCPlayerEntity.setPosition(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
setPositionAndRotation
Link to setpositionandrotation
Sets position and rotation, clamping and wrapping params to valid values. Used by network code.
ZenScript CopymyMCPlayerEntity.setPositionAndRotation(x as double, y as double, z as double, yaw as float, pitch as float);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
参数 yaw | 类型 float | 描述 No description provided |
参数 pitch | 类型 float | 描述 No description provided |
setPositionAndRotationDirect
Link to setpositionandrotationdirect
Sets a target for the client to interpolate towards over the next few ticks
ZenScript CopymyMCPlayerEntity.setPositionAndRotationDirect(x as double, y as double, z as double, yaw as float, pitch as float, posRotationIncrements as int, teleport as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
参数 yaw | 类型 float | 描述 No description provided |
参数 pitch | 类型 float | 描述 No description provided |
参数 posRotationIncrements | 类型 int | 描述 No description provided |
参数 teleport | 类型 布尔值 | 描述 No description provided |
setPositionAndUpdate
Link to setpositionandupdate
Sets the position of the entity and updates the 'last' variables
ZenScript CopymyMCPlayerEntity.setPositionAndUpdate(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
setPositionNonDirty
Link to setpositionnondirty
返回为布尔值
ZenScript CopymyMCPlayerEntity.setPositionNonDirty();
setReducedDebug
Link to setreduceddebug
ZenScript CopymyMCPlayerEntity.setReducedDebug(reducedDebug as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 reducedDebug | 类型 布尔值 | 描述 No description provided |
setRenderYawOffset
Link to setrenderyawoffset
Set the render yaw offset
ZenScript CopymyMCPlayerEntity.setRenderYawOffset(offset as float);
参数 | 类型 | 描述 |
---|---|---|
参数 offset | 类型 float | 描述 No description provided |
setRotationYawHead
Link to setrotationyawhead
Sets the head's yaw rotation of the entity.
ZenScript CopymyMCPlayerEntity.setRotationYawHead(rotation as float);
参数 | 类型 | 描述 |
---|---|---|
参数 rotation | 类型 float | 描述 No description provided |
setScore
Link to setscore
Set player's score
ZenScript CopymyMCPlayerEntity.setScore(scoreIn as int);
参数 | 类型 | 描述 |
---|---|---|
参数 scoreIn | 类型 int | 描述 No description provided |
setSilent
Link to setsilent
When set to true the entity will not play sounds.
ZenScript CopymyMCPlayerEntity.setSilent(isSilent as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 isSilent | 类型 布尔值 | 描述 No description provided |
setSneaking
Link to setsneaking
Sets the sneaking flag.
ZenScript CopymyMCPlayerEntity.setSneaking(sneaking as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 sneaking | 类型 布尔值 | 描述 No description provided |
setSpawnPoint
Link to setspawnpoint
ZenScript CopymyMCPlayerEntity.setSpawnPoint(pos as crafttweaker.api.util.BlockPos, forced as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 点 | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
参数 forced | 类型 布尔值 | 描述 No description provided |
setSprinting
Link to setsprinting
Set sprinting switch for Entity.
ZenScript CopymyMCPlayerEntity.setSprinting(sprinting as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 sprinting | 类型 布尔值 | 描述 No description provided |
setSwimming
Link to setswimming
ZenScript CopymyMCPlayerEntity.setSwimming(p_204711_1_ as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 p_204711_1_ | 类型 布尔值 | 描述 No description provided |
setVelocity
Link to setvelocity
Updates the entity motion clientside, called by packets from the server
ZenScript CopymyMCPlayerEntity.setVelocity(x as double, y as double, z as double);
参数 | 类型 | 描述 |
---|---|---|
参数 x | 类型 double | 描述 No description provided |
参数 y | 类型 double | 描述 No description provided |
参数 z | 类型 double | 描述 No description provided |
shouldHeal
Link to shouldheal
Checks if the player's health is not full and not zero.
返回为布尔值
ZenScript CopymyMCPlayerEntity.shouldHeal();
shouldReceiveErrors
Link to shouldreceiveerrors
返回为布尔值
ZenScript CopymyMCPlayerEntity.shouldReceiveErrors();
shouldReceiveFeedback
Link to shouldreceivefeedback
返回为布尔值
ZenScript CopymyMCPlayerEntity.shouldReceiveFeedback();
shouldRenderSneaking
Link to shouldrendersneaking
返回为布尔值
ZenScript CopymyMCPlayerEntity.shouldRenderSneaking();
shouldRiderFaceForward
Link to shouldriderfaceforward
Returns true if the entity's rider (EntityPlayer) should face forward when mounted. currently only used in vanilla code by pigs.
返回为布尔值
ZenScript CopymyMCPlayerEntity.shouldRiderFaceForward(player as crafttweaker.api.entity.player.MCPlayerEntity);
参数 | 类型 | 描述 |
---|---|---|
参数 player | 类型 crafttweaker.api.entity.player.MCPlayerEntity | 描述 The player who is riding the entity. |
shouldRiderSit
Link to shouldridersit
返回为布尔值
ZenScript CopymyMCPlayerEntity.shouldRiderSit();
spawnRunningParticles
Link to spawnrunningparticles
Attempts to create sprinting particles if the entity is sprinting and not in water.
ZenScript CopymyMCPlayerEntity.spawnRunningParticles();
spawnSweepParticles
Link to spawnsweepparticles
ZenScript CopymyMCPlayerEntity.spawnSweepParticles();
startSleeping
Link to startsleeping
ZenScript CopymyMCPlayerEntity.startSleeping(p_213342_1_ as crafttweaker.api.util.BlockPos);
参数 | 类型 | 描述 |
---|---|---|
参数 p_213342_1_ | 类型 crafttweaker.api.util.BlockPos | 描述 No description provided |
startSpinAttack
Link to startspinattack
ZenScript CopymyMCPlayerEntity.startSpinAttack(p_204803_1_ as int);
参数 | 类型 | 描述 |
---|---|---|
参数 p_204803_1_ | 类型 int | 描述 No description provided |
stopActiveHand
Link to stopactivehand
ZenScript CopymyMCPlayerEntity.stopActiveHand();
stopRiding
Link to stopriding
Dismounts this entity from the entity it is riding.
ZenScript CopymyMCPlayerEntity.stopRiding();
teleportKeepLoaded
Link to teleportkeeploaded
ZenScript CopymyMCPlayerEntity.teleportKeepLoaded(p_223102_1_ as double, p_223102_3_ as double, p_223102_5_ as double);
参数 | 类型 | 描述 |
---|---|---|
参数 p_223102_1_ | 类型 double | 描述 No description provided |
参数 p_223102_3_ | 类型 double | 描述 No description provided |
参数 p_223102_5_ | 类型 double | 描述 No description provided |
tick
Link to tick
Called to update the entity's position/logic.
ZenScript CopymyMCPlayerEntity.tick();
toString
Link to tostring
返回字符串[String]
ZenScript CopymyMCPlayerEntity.toString();
updateRidden
Link to updateridden
Handles updating while riding another entity
ZenScript CopymyMCPlayerEntity.updateRidden();
updateSwimming
Link to updateswimming
ZenScript CopymyMCPlayerEntity.updateSwimming();
wakeUp
Link to wakeup
ZenScript CopymyMCPlayerEntity.wakeUp();
wakeUpPlayer
Link to wakeupplayer
Wake up the player if they're sleeping.
ZenScript CopymyMCPlayerEntity.wakeUpPlayer(immediately as boolean, updateWorldFlag as boolean, setSpawn as boolean);
参数 | 类型 | 描述 |
---|---|---|
参数 immediately | 类型 布尔值 | 描述 No description provided |
参数 updateWorldFlag | 类型 布尔值 | 描述 No description provided |
参数 setSpawn | 类型 布尔值 | 描述 No description provided |
xpBarCap
Link to xpbarcap
This method returns the cap amount of experience that the experience bar can hold. With each level, the experience cap on the player's experience bar is raised by 10.
返回为int值
ZenScript CopymyMCPlayerEntity.xpBarCap();