MCPlayerEntity
Link to mcplayerentity
This class was added by a mod with mod-id crafttweaker
. So you need to have this mod installed if you want to use this feature.
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
ZenScript Copycrafttweaker.api.entity.player.MCPlayerEntity
Methods
Link to methods
addExhaustion
Link to addexhaustion
increases exhaustion level by supplied amount
ZenScript CopymyMCPlayerEntity.addExhaustion(exhaustion as float);
Parameter | Type | Description |
---|---|---|
Parameter exhaustion | Type float | Description No description provided |
addExperienceLevel
Link to addexperiencelevel
Add experience levels to this player.
ZenScript CopymyMCPlayerEntity.addExperienceLevel(levels as int);
Parameter | Type | Description |
---|---|---|
Parameter levels | Type int | Description No description provided |
addItemStackToInventory
Link to additemstacktoinventory
Returns boolean
ZenScript CopymyMCPlayerEntity.addItemStackToInventory(p_191521_1_ as crafttweaker.api.item.IItemStack);
Parameter | Type | Description |
---|---|---|
Parameter p_191521_1_ | Type crafttweaker.api.item.IItemStack | Description No description provided |
addMovementStat
Link to addmovementstat
Adds a value to a movement statistic field - like run, walk, swin or climb.
ZenScript CopymyMCPlayerEntity.addMovementStat(p_71000_1_ as double, p_71000_3_ as double, p_71000_5_ as double);
Parameter | Type | Description |
---|---|---|
Parameter p_71000_1_ | Type double | Description No description provided |
Parameter p_71000_3_ | Type double | Description No description provided |
Parameter p_71000_5_ | Type double | Description No description provided |
addPotionEffect
Link to addpotioneffect
Returns boolean
ZenScript CopymyMCPlayerEntity.addPotionEffect(effectInstanceIn as crafttweaker.api.potion.MCPotionEffectInstance);
Parameter | Type | Description |
---|---|---|
Parameter effectInstanceIn | Type crafttweaker.api.potion.MCPotionEffectInstance | Description No description provided |
addScore
Link to addscore
Add to player's score
ZenScript CopymyMCPlayerEntity.addScore(scoreIn as int);
Parameter | Type | Description |
---|---|---|
Parameter scoreIn | Type int | Description No description provided |
addTag
Link to addtag
Returns boolean
ZenScript CopymyMCPlayerEntity.addTag(tag as String);
Parameter | Type | Description |
---|---|---|
Parameter tag | Type String | Description No description provided |
addVelocity
Link to addvelocity
Adds to the current velocity of the entity, and sets to true.
ZenScript CopymyMCPlayerEntity.addVelocity(x as double, y as double, z as double);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
allowLogging
Link to allowlogging
Returns boolean
ZenScript CopymyMCPlayerEntity.allowLogging();
attackable
Link to attackable
Returns boolean
ZenScript CopymyMCPlayerEntity.attackable();
attemptTeleport
Link to attemptteleport
Returns boolean
ZenScript CopymyMCPlayerEntity.attemptTeleport(p_213373_1_ as double, p_213373_3_ as double, p_213373_5_ as double, p_213373_7_ as boolean);
Parameter | Type | Description |
---|---|---|
Parameter p_213373_1_ | Type double | Description No description provided |
Parameter p_213373_3_ | Type double | Description No description provided |
Parameter p_213373_5_ | Type double | Description No description provided |
Parameter p_213373_7_ | Type boolean | Description No description provided |
baseTick
Link to basetick
Gets called every tick from main Entity class
ZenScript CopymyMCPlayerEntity.baseTick();
canAttackPlayer
Link to canattackplayer
Returns boolean
ZenScript CopymyMCPlayerEntity.canAttackPlayer(other as crafttweaker.api.entity.player.MCPlayerEntity);
Parameter | Type | Description |
---|---|---|
Parameter other | Type crafttweaker.api.entity.player.MCPlayerEntity | Description No description provided |
canBeAttackedWithItem
Link to canbeattackedwithitem
Returns true if it's possible to attack this entity with an item.
Returns boolean
ZenScript CopymyMCPlayerEntity.canBeAttackedWithItem();
canBeCollidedWith
Link to canbecollidedwith
Returns true if other Entities should be prevented from moving through this Entity.
Returns boolean
ZenScript CopymyMCPlayerEntity.canBeCollidedWith();
canBeHitWithPotion
Link to canbehitwithpotion
Returns false if the entity is an armor stand. Returns true for all other entity living bases.
Returns boolean
ZenScript CopymyMCPlayerEntity.canBeHitWithPotion();
canBePushed
Link to canbepushed
Returns true if this entity should push and be pushed by other entities when colliding.
Returns boolean
ZenScript CopymyMCPlayerEntity.canBePushed();
canBeRiddenInWater
Link to canberiddeninwater
Returns boolean
ZenScript CopymyMCPlayerEntity.canBeRiddenInWater();
canBreatheUnderwater
Link to canbreatheunderwater
Returns boolean
ZenScript CopymyMCPlayerEntity.canBreatheUnderwater();
canEat
Link to caneat
Returns boolean
ZenScript CopymyMCPlayerEntity.canEat(ignoreHunger as boolean);
Parameter | Type | Description |
---|---|---|
Parameter ignoreHunger | Type boolean | Description No description provided |
canHarvestBlock
Link to canharvestblock
Returns boolean
ZenScript CopymyMCPlayerEntity.canHarvestBlock(state as crafttweaker.api.block.MCBlockState);
Parameter | Type | Description |
---|---|---|
Parameter state | Type crafttweaker.api.block.MCBlockState | Description No description provided |
canPassengerSteer
Link to canpassengersteer
Returns boolean
ZenScript CopymyMCPlayerEntity.canPassengerSteer();
canPlayerEdit
Link to canplayeredit
Returns whether this player can modify the block at a certain location with the given stack.
The position being queried is {@code pos.offset(facing.getOpposite()))}. Returns: Whether this player may modify the queried location in the current world
@see ItemStack#canPlaceOn(Block) @see ItemStack#canEditBlocks() @see PlayerCapabilities#allowEdit
Returns boolean
ZenScript CopymyMCPlayerEntity.canPlayerEdit(pos as crafttweaker.api.util.BlockPos, facing as crafttweaker.api.util.Direction, stack as crafttweaker.api.item.IItemStack);
Parameter | Type | Description |
---|---|---|
Parameter pos | Type crafttweaker.api.util.BlockPos | Description No description provided |
Parameter facing | Type crafttweaker.api.util.Direction | Description No description provided |
Parameter stack | Type crafttweaker.api.item.IItemStack | Description No description provided |
canRenderOnFire
Link to canrenderonfire
Return whether this entity should be rendered as on fire.
Returns boolean
ZenScript CopymyMCPlayerEntity.canRenderOnFire();
canRiderInteract
Link to canriderinteract
Returns boolean
ZenScript CopymyMCPlayerEntity.canRiderInteract();
canSwim
Link to canswim
Returns boolean
ZenScript CopymyMCPlayerEntity.canSwim();
canTrample
Link to cantrample
Returns boolean
ZenScript CopymyMCPlayerEntity.canTrample(state as crafttweaker.api.block.MCBlockState, pos as crafttweaker.api.util.BlockPos, fallDistance as float);
Parameter | Type | Description |
---|---|---|
Parameter state | Type crafttweaker.api.block.MCBlockState | Description No description provided |
Parameter pos | Type crafttweaker.api.util.BlockPos | Description No description provided |
Parameter fallDistance | Type float | Description No description provided |
canUpdate
Link to canupdate
Returns boolean
ZenScript CopymyMCPlayerEntity.canUpdate();
ZenScript CopymyMCPlayerEntity.canUpdate(value as boolean);
Parameter | Type | Description |
---|---|---|
Parameter value | Type boolean | Description No description provided |
canUseCommandBlock
Link to canusecommandblock
Returns boolean
ZenScript CopymyMCPlayerEntity.canUseCommandBlock();
clearActivePotions
Link to clearactivepotions
Returns boolean
ZenScript CopymyMCPlayerEntity.clearActivePotions();
clearBedPosition
Link to clearbedposition
ZenScript CopymyMCPlayerEntity.clearBedPosition();
closeScreen
Link to closescreen
set current crafting inventory back to the 2x2 square
ZenScript CopymyMCPlayerEntity.closeScreen();
curePotionEffects
Link to curepotioneffects
Returns boolean
ZenScript CopymyMCPlayerEntity.curePotionEffects(curativeItem as crafttweaker.api.item.IItemStack);
Parameter | Type | Description |
---|---|---|
Parameter curativeItem | Type crafttweaker.api.item.IItemStack | Description No description provided |
detach
Link to detach
ZenScript CopymyMCPlayerEntity.detach();
disableShield
Link to disableshield
ZenScript CopymyMCPlayerEntity.disableShield(p_190777_1_ as boolean);
Parameter | Type | Description |
---|---|---|
Parameter p_190777_1_ | Type boolean | Description No description provided |
doesEntityNotTriggerPressurePlate
Link to doesentitynottriggerpressureplate
Return whether this entity should NOT trigger a pressure plate or a tripwire.
Returns boolean
ZenScript CopymyMCPlayerEntity.doesEntityNotTriggerPressurePlate();
equals
Link to equals
Returns boolean
ZenScript CopymyMCPlayerEntity.equals(p_equals_1_ as Object);
Parameter | Type | Description |
---|---|---|
Parameter p_equals_1_ | Type Object | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter distance | Type float | Description No description provided |
Parameter damageMultiplier | Type float | Description No description provided |
findAmmo
Link to findammo
Returns crafttweaker.api.item.IItemStack
ZenScript CopymyMCPlayerEntity.findAmmo(shootable as crafttweaker.api.item.IItemStack);
Parameter | Type | Description |
---|---|---|
Parameter shootable | Type crafttweaker.api.item.IItemStack | Description No description provided |
func_213300_bk
Link to func_213300_bk
Returns boolean
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);
Parameter | Type | Description |
---|---|---|
Parameter p_213312_1_ | Type double | Description No description provided |
Parameter p_213312_3_ | Type double | Description No description provided |
Parameter p_213312_5_ | Type double | Description No description provided |
func_213314_bj
Link to func_213314_bj
Returns boolean
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
Returns boolean
ZenScript CopymyMCPlayerEntity.func_213365_e(itemstackIn as crafttweaker.api.item.IItemStack);
Parameter | Type | Description |
---|---|---|
Parameter itemstackIn | Type crafttweaker.api.item.IItemStack | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter potionIn | Type crafttweaker.api.potion.MCPotionEffect | Description 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
Returns int
ZenScript CopymyMCPlayerEntity.getAir();
getAlwaysRenderNameTagForRender
Link to getalwaysrendernametagforrender
Returns boolean
ZenScript CopymyMCPlayerEntity.getAlwaysRenderNameTagForRender();
getArrowCountInEntity
Link to getarrowcountinentity
Returns 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
Returns int
ZenScript CopymyMCPlayerEntity.getBrightnessForRender();
getCachedUniqueIdString
Link to getcacheduniqueidstring
Returns String
ZenScript CopymyMCPlayerEntity.getCachedUniqueIdString();
getClassification
Link to getclassification
Returns crafttweaker.api.entity.MCEntityClassification
ZenScript CopymyMCPlayerEntity.getClassification(forSpawnCount as boolean);
Parameter | Type | Description |
---|---|---|
Parameter forSpawnCount | Type boolean | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter adjustTicks | Type float | Description No description provided |
getDigSpeed
Link to getdigspeed
Returns float
ZenScript CopymyMCPlayerEntity.getDigSpeed(state as crafttweaker.api.block.MCBlockState);
Parameter | Type | Description |
---|---|---|
Parameter state | Type crafttweaker.api.block.MCBlockState | Description No description provided |
Returns float
ZenScript CopymyMCPlayerEntity.getDigSpeed(arg0 as crafttweaker.api.block.MCBlockState, arg1 as crafttweaker.api.util.BlockPos);
Parameter | Type | Description |
---|---|---|
Parameter arg0 | Type crafttweaker.api.block.MCBlockState | Description No description provided |
Parameter arg1 | Type crafttweaker.api.util.BlockPos | Description No description provided |
getDistanceSq
Link to getdistancesq
Returns double
ZenScript CopymyMCPlayerEntity.getDistanceSq(x as double, y as double, z as double);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
getEntityId
Link to getentityid
Returns int
ZenScript CopymyMCPlayerEntity.getEntityId();
getEntityString
Link to getentitystring
Returns String
ZenScript CopymyMCPlayerEntity.getEntityString();
getEyeHeight
Link to geteyeheight
Returns float
ZenScript CopymyMCPlayerEntity.getEyeHeight();
getFireTimer
Link to getfiretimer
Returns 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
Returns int
ZenScript CopymyMCPlayerEntity.getIdleTime();
getItemInUseCount
Link to getiteminusecount
Returns int
ZenScript CopymyMCPlayerEntity.getItemInUseCount();
getItemInUseMaxCount
Link to getiteminusemaxcount
Returns int
ZenScript CopymyMCPlayerEntity.getItemInUseMaxCount();
getLastAttackedEntityTime
Link to getlastattackedentitytime
Returns int
ZenScript CopymyMCPlayerEntity.getLastAttackedEntityTime();
getLuck
Link to getluck
Returns float
ZenScript CopymyMCPlayerEntity.getLuck();
getMaxAir
Link to getmaxair
Returns int
ZenScript CopymyMCPlayerEntity.getMaxAir();
getMaxFallHeight
Link to getmaxfallheight
The maximum height from where the entity is alowed to jump (used in pathfinder)
Returns 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.
Returns 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);
Parameter | Type | Description |
---|---|---|
Parameter partialTicks | Type float | Description No description provided |
getPortalCooldown
Link to getportalcooldown
Return the amount of cooldown before this entity can use a portal again.
Returns 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
Returns int
ZenScript CopymyMCPlayerEntity.getRevengeTimer();
getRotationYawHead
Link to getrotationyawhead
Returns float
ZenScript CopymyMCPlayerEntity.getRotationYawHead();
getScore
Link to getscore
Returns int
ZenScript CopymyMCPlayerEntity.getScore();
getScoreboardName
Link to getscoreboardname
Returns a String to use as this entity's name in the scoreboard/entity selector systems
Returns String
ZenScript CopymyMCPlayerEntity.getScoreboardName();
getSleepTimer
Link to getsleeptimer
Returns 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);
Parameter | Type | Description |
---|---|---|
Parameter partialTicks | Type float | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter partialTickTime | Type float | Description 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
Returns int
ZenScript CopymyMCPlayerEntity.getTicksElytraFlying();
getTotalArmorValue
Link to gettotalarmorvalue
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
Returns int
ZenScript CopymyMCPlayerEntity.getTotalArmorValue();
getWidth
Link to getwidth
Returns float
ZenScript CopymyMCPlayerEntity.getWidth();
getXPSeed
Link to getxpseed
Returns 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);
Parameter | Type | Description |
---|---|---|
Parameter partialTicks | Type float | Description No description provided |
giveExperiencePoints
Link to giveexperiencepoints
ZenScript CopymyMCPlayerEntity.giveExperiencePoints(p_195068_1_ as int);
Parameter | Type | Description |
---|---|---|
Parameter p_195068_1_ | Type int | Description No description provided |
handleStatusUpdate
Link to handlestatusupdate
ZenScript CopymyMCPlayerEntity.handleStatusUpdate(id as byte);
Parameter | Type | Description |
---|---|---|
Parameter id | Type byte | Description 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
Returns boolean
ZenScript CopymyMCPlayerEntity.handleWaterMovement();
hasCustomName
Link to hascustomname
Returns boolean
ZenScript CopymyMCPlayerEntity.hasCustomName();
hasNoGravity
Link to hasnogravity
Returns boolean
ZenScript CopymyMCPlayerEntity.hasNoGravity();
hasPermissionLevel
Link to haspermissionlevel
Returns boolean
ZenScript CopymyMCPlayerEntity.hasPermissionLevel(p_211513_1_ as int);
Parameter | Type | Description |
---|---|---|
Parameter p_211513_1_ | Type int | Description No description provided |
hasReducedDebug
Link to hasreduceddebug
Whether the "reducedDebugInfo" option is active for this player.
Returns boolean
ZenScript CopymyMCPlayerEntity.hasReducedDebug();
hashCode
Link to hashcode
Returns int
ZenScript CopymyMCPlayerEntity.hashCode();
heal
Link to heal
Heal living entity (param: amount of half-hearts)
ZenScript CopymyMCPlayerEntity.heal(healAmount as float);
Parameter | Type | Description |
---|---|---|
Parameter healAmount | Type float | Description 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
Returns boolean
ZenScript CopymyMCPlayerEntity.ignoreItemEntityData();
isActiveItemStackBlocking
Link to isactiveitemstackblocking
Returns boolean
ZenScript CopymyMCPlayerEntity.isActiveItemStackBlocking();
isAddedToWorld
Link to isaddedtoworld
Returns boolean
ZenScript CopymyMCPlayerEntity.isAddedToWorld();
isAlive
Link to isalive
Returns true if the entity has not been .
Returns boolean
ZenScript CopymyMCPlayerEntity.isAlive();
isAllowEdit
Link to isallowedit
Returns boolean
ZenScript CopymyMCPlayerEntity.isAllowEdit();
isBeingRidden
Link to isbeingridden
If at least 1 entity is riding this one
Returns boolean
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.
Returns boolean
ZenScript CopymyMCPlayerEntity.isBurning();
isChild
Link to ischild
If Animal, checks if the age timer is negative
Returns boolean
ZenScript CopymyMCPlayerEntity.isChild();
isCreative
Link to iscreative
Returns boolean
ZenScript CopymyMCPlayerEntity.isCreative();
isCustomNameVisible
Link to iscustomnamevisible
Returns boolean
ZenScript CopymyMCPlayerEntity.isCustomNameVisible();
isElytraFlying
Link to iselytraflying
Returns boolean
ZenScript CopymyMCPlayerEntity.isElytraFlying();
isEntityInsideOpaqueBlock
Link to isentityinsideopaqueblock
Checks if this entity is inside of an opaque block
Returns boolean
ZenScript CopymyMCPlayerEntity.isEntityInsideOpaqueBlock();
isEntityUndead
Link to isentityundead
Returns true if this entity is undead.
Returns boolean
ZenScript CopymyMCPlayerEntity.isEntityUndead();
isGlowing
Link to isglowing
Returns boolean
ZenScript CopymyMCPlayerEntity.isGlowing();
isHandActive
Link to ishandactive
Returns boolean
ZenScript CopymyMCPlayerEntity.isHandActive();
isImmuneToExplosions
Link to isimmunetoexplosions
Returns boolean
ZenScript CopymyMCPlayerEntity.isImmuneToExplosions();
isImmuneToFire
Link to isimmunetofire
Returns boolean
ZenScript CopymyMCPlayerEntity.isImmuneToFire();
isInLava
Link to isinlava
Returns boolean
ZenScript CopymyMCPlayerEntity.isInLava();
isInRangeToRender3d
Link to isinrangetorender3d
Returns boolean
ZenScript CopymyMCPlayerEntity.isInRangeToRender3d(x as double, y as double, z as double);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
isInRangeToRenderDist
Link to isinrangetorenderdist
Checks if the entity is in range to render.
Returns boolean
ZenScript CopymyMCPlayerEntity.isInRangeToRenderDist(distance as double);
Parameter | Type | Description |
---|---|---|
Parameter distance | Type double | Description 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)
Returns boolean
ZenScript CopymyMCPlayerEntity.isInWater();
isInWaterOrBubbleColumn
Link to isinwaterorbubblecolumn
Returns boolean
ZenScript CopymyMCPlayerEntity.isInWaterOrBubbleColumn();
isInWaterRainOrBubbleColumn
Link to isinwaterrainorbubblecolumn
Returns boolean
ZenScript CopymyMCPlayerEntity.isInWaterRainOrBubbleColumn();
isInvisible
Link to isinvisible
Returns boolean
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.
Returns boolean
ZenScript CopymyMCPlayerEntity.isInvisibleToPlayer(player as crafttweaker.api.entity.player.MCPlayerEntity);
Parameter | Type | Description |
---|---|---|
Parameter player | Type crafttweaker.api.entity.player.MCPlayerEntity | Description No description provided |
isInvulnerable
Link to isinvulnerable
Returns boolean
ZenScript CopymyMCPlayerEntity.isInvulnerable();
isLiving
Link to isliving
Returns boolean
ZenScript CopymyMCPlayerEntity.isLiving();
isNonBoss
Link to isnonboss
Returns false if this Entity is a boss, true otherwise.
Returns boolean
ZenScript CopymyMCPlayerEntity.isNonBoss();
isOffsetPositionInLiquid
Link to isoffsetpositioninliquid
Checks if the offset position from the entity's current position is inside of a liquid.
Returns boolean
ZenScript CopymyMCPlayerEntity.isOffsetPositionInLiquid(x as double, y as double, z as double);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description 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)
Returns boolean
ZenScript CopymyMCPlayerEntity.isOnLadder();
isOnePlayerRiding
Link to isoneplayerriding
Returns boolean
ZenScript CopymyMCPlayerEntity.isOnePlayerRiding();
isPassenger
Link to ispassenger
Returns boolean
ZenScript CopymyMCPlayerEntity.isPassenger();
isPlayerFullyAsleep
Link to isplayerfullyasleep
Returns whether or not the player is asleep and the screen has fully faded.
Returns boolean
ZenScript CopymyMCPlayerEntity.isPlayerFullyAsleep();
isPotionActive
Link to ispotionactive
Returns boolean
ZenScript CopymyMCPlayerEntity.isPotionActive(potionIn as crafttweaker.api.potion.MCPotionEffect);
Parameter | Type | Description |
---|---|---|
Parameter potionIn | Type crafttweaker.api.potion.MCPotionEffect | Description No description provided |
isPotionApplicable
Link to ispotionapplicable
Returns boolean
ZenScript CopymyMCPlayerEntity.isPotionApplicable(potioneffectIn as crafttweaker.api.potion.MCPotionEffectInstance);
Parameter | Type | Description |
---|---|---|
Parameter potioneffectIn | Type crafttweaker.api.potion.MCPotionEffectInstance | Description No description provided |
isPushedByWater
Link to ispushedbywater
Returns boolean
ZenScript CopymyMCPlayerEntity.isPushedByWater();
isServerWorld
Link to isserverworld
Returns whether the entity is in a server world
Returns boolean
ZenScript CopymyMCPlayerEntity.isServerWorld();
isSilent
Link to issilent
Returns: True if this entity will not play sounds
Returns boolean
ZenScript CopymyMCPlayerEntity.isSilent();
isSleeping
Link to issleeping
Returns whether player is sleeping or not
Returns boolean
ZenScript CopymyMCPlayerEntity.isSleeping();
isSneaking
Link to issneaking
Returns if this entity is sneaking.
Returns boolean
ZenScript CopymyMCPlayerEntity.isSneaking();
isSpawnForced
Link to isspawnforced
Returns boolean
ZenScript CopymyMCPlayerEntity.isSpawnForced();
isSpectator
Link to isspectator
Returns true if the player is in spectator mode.
Returns boolean
ZenScript CopymyMCPlayerEntity.isSpectator();
isSpinAttacking
Link to isspinattacking
Returns boolean
ZenScript CopymyMCPlayerEntity.isSpinAttacking();
isSprinting
Link to issprinting
Get if the Entity is sprinting.
Returns boolean
ZenScript CopymyMCPlayerEntity.isSprinting();
isSwimming
Link to isswimming
Returns boolean
ZenScript CopymyMCPlayerEntity.isSwimming();
isUser
Link to isuser
returns true if this is an EntityPlayerSP, or the logged in player.
Returns boolean
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).
Returns boolean
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);
Parameter | Type | Description |
---|---|---|
Parameter pos | Type crafttweaker.api.util.BlockPos | Description No description provided |
Parameter rotationYawIn | Type float | Description No description provided |
Parameter rotationPitchIn | Type float | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter entityIn | Type crafttweaker.api.entity.player.MCPlayerEntity | Description No description provided |
onEnchant
Link to onenchant
ZenScript CopymyMCPlayerEntity.onEnchant(enchantedItem as crafttweaker.api.item.IItemStack, cost as int);
Parameter | Type | Description |
---|---|---|
Parameter enchantedItem | Type crafttweaker.api.item.IItemStack | Description No description provided |
Parameter cost | Type int | Description No description provided |
onEnterBubbleColumn
Link to onenterbubblecolumn
ZenScript CopymyMCPlayerEntity.onEnterBubbleColumn(downwards as boolean);
Parameter | Type | Description |
---|---|---|
Parameter downwards | Type boolean | Description No description provided |
onEnterBubbleColumnWithAirAbove
Link to onenterbubblecolumnwithairabove
ZenScript CopymyMCPlayerEntity.onEnterBubbleColumnWithAirAbove(downwards as boolean);
Parameter | Type | Description |
---|---|---|
Parameter downwards | Type boolean | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter keepData | Type boolean | Description No description provided |
removeActivePotionEffect
Link to removeactivepotioneffect
Returns crafttweaker.api.potion.MCPotionEffectInstance
ZenScript CopymyMCPlayerEntity.removeActivePotionEffect(arg0 as crafttweaker.api.potion.MCPotionEffect);
Parameter | Type | Description |
---|---|---|
Parameter arg0 | Type crafttweaker.api.potion.MCPotionEffect | Description No description provided |
removePassengers
Link to removepassengers
Dismounts all entities riding this entity from this entity.
ZenScript CopymyMCPlayerEntity.removePassengers();
removePotionEffect
Link to removepotioneffect
Returns boolean
ZenScript CopymyMCPlayerEntity.removePotionEffect(effectIn as crafttweaker.api.potion.MCPotionEffect);
Parameter | Type | Description |
---|---|---|
Parameter effectIn | Type crafttweaker.api.potion.MCPotionEffect | Description No description provided |
removeTag
Link to removetag
Returns boolean
ZenScript CopymyMCPlayerEntity.removeTag(tag as String);
Parameter | Type | Description |
---|---|---|
Parameter tag | Type String | Description No description provided |
replaceItemInInventory
Link to replaceitemininventory
Returns boolean
ZenScript CopymyMCPlayerEntity.replaceItemInInventory(inventorySlot as int, itemStackIn as crafttweaker.api.item.IItemStack);
Parameter | Type | Description |
---|---|---|
Parameter inventorySlot | Type int | Description No description provided |
Parameter itemStackIn | Type crafttweaker.api.item.IItemStack | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter yaw | Type double | Description No description provided |
Parameter pitch | Type double | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter speedIn | Type float | Description No description provided |
setAbsorptionAmount
Link to setabsorptionamount
ZenScript CopymyMCPlayerEntity.setAbsorptionAmount(amount as float);
Parameter | Type | Description |
---|---|---|
Parameter amount | Type float | Description No description provided |
setAir
Link to setair
ZenScript CopymyMCPlayerEntity.setAir(air as int);
Parameter | Type | Description |
---|---|---|
Parameter air | Type int | Description No description provided |
setArrowCountInEntity
Link to setarrowcountinentity
ZenScript CopymyMCPlayerEntity.setArrowCountInEntity(count as int);
Parameter | Type | Description |
---|---|---|
Parameter count | Type int | Description No description provided |
setBedPosition
Link to setbedposition
ZenScript CopymyMCPlayerEntity.setBedPosition(p_213369_1_ as crafttweaker.api.util.BlockPos);
Parameter | Type | Description |
---|---|---|
Parameter p_213369_1_ | Type crafttweaker.api.util.BlockPos | Description No description provided |
setCustomNameVisible
Link to setcustomnamevisible
ZenScript CopymyMCPlayerEntity.setCustomNameVisible(alwaysRenderNameTag as boolean);
Parameter | Type | Description |
---|---|---|
Parameter alwaysRenderNameTag | Type boolean | Description No description provided |
setEntityId
Link to setentityid
ZenScript CopymyMCPlayerEntity.setEntityId(id as int);
Parameter | Type | Description |
---|---|---|
Parameter id | Type int | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter seconds | Type int | Description No description provided |
setFireTimer
Link to setfiretimer
ZenScript CopymyMCPlayerEntity.setFireTimer(p_223308_1_ as int);
Parameter | Type | Description |
---|---|---|
Parameter p_223308_1_ | Type int | Description No description provided |
setGlowing
Link to setglowing
ZenScript CopymyMCPlayerEntity.setGlowing(glowingIn as boolean);
Parameter | Type | Description |
---|---|---|
Parameter glowingIn | Type boolean | Description No description provided |
setHeadRotation
Link to setheadrotation
ZenScript CopymyMCPlayerEntity.setHeadRotation(yaw as float, pitch as int);
Parameter | Type | Description |
---|---|---|
Parameter yaw | Type float | Description No description provided |
Parameter pitch | Type int | Description No description provided |
setHealth
Link to sethealth
ZenScript CopymyMCPlayerEntity.setHealth(health as float);
Parameter | Type | Description |
---|---|---|
Parameter health | Type float | Description No description provided |
setIdleTime
Link to setidletime
ZenScript CopymyMCPlayerEntity.setIdleTime(idleTimeIn as int);
Parameter | Type | Description |
---|---|---|
Parameter idleTimeIn | Type int | Description No description provided |
setInLava
Link to setinlava
ZenScript CopymyMCPlayerEntity.setInLava();
setInvisible
Link to setinvisible
ZenScript CopymyMCPlayerEntity.setInvisible(invisible as boolean);
Parameter | Type | Description |
---|---|---|
Parameter invisible | Type boolean | Description No description provided |
setInvulnerable
Link to setinvulnerable
Sets whether this Entity is invulnerable.
ZenScript CopymyMCPlayerEntity.setInvulnerable(isInvulnerable as boolean);
Parameter | Type | Description |
---|---|---|
Parameter isInvulnerable | Type boolean | Description No description provided |
setJumping
Link to setjumping
ZenScript CopymyMCPlayerEntity.setJumping(jumping as boolean);
Parameter | Type | Description |
---|---|---|
Parameter jumping | Type boolean | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
Parameter yaw | Type float | Description No description provided |
Parameter pitch | Type float | Description No description provided |
setMotion
Link to setmotion
ZenScript CopymyMCPlayerEntity.setMotion(x as double, y as double, z as double);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
setNoGravity
Link to setnogravity
ZenScript CopymyMCPlayerEntity.setNoGravity(noGravity as boolean);
Parameter | Type | Description |
---|---|---|
Parameter noGravity | Type boolean | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter pos | Type crafttweaker.api.util.BlockPos | Description No description provided |
Parameter isPartying | Type boolean | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter pos | Type crafttweaker.api.util.BlockPos | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
Parameter yaw | Type float | Description No description provided |
Parameter pitch | Type float | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
Parameter yaw | Type float | Description No description provided |
Parameter pitch | Type float | Description No description provided |
Parameter posRotationIncrements | Type int | Description No description provided |
Parameter teleport | Type boolean | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
setPositionNonDirty
Link to setpositionnondirty
Returns boolean
ZenScript CopymyMCPlayerEntity.setPositionNonDirty();
setReducedDebug
Link to setreduceddebug
ZenScript CopymyMCPlayerEntity.setReducedDebug(reducedDebug as boolean);
Parameter | Type | Description |
---|---|---|
Parameter reducedDebug | Type boolean | Description No description provided |
setRenderYawOffset
Link to setrenderyawoffset
Set the render yaw offset
ZenScript CopymyMCPlayerEntity.setRenderYawOffset(offset as float);
Parameter | Type | Description |
---|---|---|
Parameter offset | Type float | Description No description provided |
setRotationYawHead
Link to setrotationyawhead
Sets the head's yaw rotation of the entity.
ZenScript CopymyMCPlayerEntity.setRotationYawHead(rotation as float);
Parameter | Type | Description |
---|---|---|
Parameter rotation | Type float | Description No description provided |
setScore
Link to setscore
Set player's score
ZenScript CopymyMCPlayerEntity.setScore(scoreIn as int);
Parameter | Type | Description |
---|---|---|
Parameter scoreIn | Type int | Description No description provided |
setSilent
Link to setsilent
When set to true the entity will not play sounds.
ZenScript CopymyMCPlayerEntity.setSilent(isSilent as boolean);
Parameter | Type | Description |
---|---|---|
Parameter isSilent | Type boolean | Description No description provided |
setSneaking
Link to setsneaking
Sets the sneaking flag.
ZenScript CopymyMCPlayerEntity.setSneaking(sneaking as boolean);
Parameter | Type | Description |
---|---|---|
Parameter sneaking | Type boolean | Description No description provided |
setSpawnPoint
Link to setspawnpoint
ZenScript CopymyMCPlayerEntity.setSpawnPoint(pos as crafttweaker.api.util.BlockPos, forced as boolean);
Parameter | Type | Description |
---|---|---|
Parameter pos | Type crafttweaker.api.util.BlockPos | Description No description provided |
Parameter forced | Type boolean | Description No description provided |
setSprinting
Link to setsprinting
Set sprinting switch for Entity.
ZenScript CopymyMCPlayerEntity.setSprinting(sprinting as boolean);
Parameter | Type | Description |
---|---|---|
Parameter sprinting | Type boolean | Description No description provided |
setSwimming
Link to setswimming
ZenScript CopymyMCPlayerEntity.setSwimming(p_204711_1_ as boolean);
Parameter | Type | Description |
---|---|---|
Parameter p_204711_1_ | Type boolean | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
shouldHeal
Link to shouldheal
Checks if the player's health is not full and not zero.
Returns boolean
ZenScript CopymyMCPlayerEntity.shouldHeal();
shouldReceiveErrors
Link to shouldreceiveerrors
Returns boolean
ZenScript CopymyMCPlayerEntity.shouldReceiveErrors();
shouldReceiveFeedback
Link to shouldreceivefeedback
Returns boolean
ZenScript CopymyMCPlayerEntity.shouldReceiveFeedback();
shouldRenderSneaking
Link to shouldrendersneaking
Returns boolean
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.
Returns boolean
ZenScript CopymyMCPlayerEntity.shouldRiderFaceForward(player as crafttweaker.api.entity.player.MCPlayerEntity);
Parameter | Type | Description |
---|---|---|
Parameter player | Type crafttweaker.api.entity.player.MCPlayerEntity | Description The player who is riding the entity. |
shouldRiderSit
Link to shouldridersit
Returns boolean
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);
Parameter | Type | Description |
---|---|---|
Parameter p_213342_1_ | Type crafttweaker.api.util.BlockPos | Description No description provided |
startSpinAttack
Link to startspinattack
ZenScript CopymyMCPlayerEntity.startSpinAttack(p_204803_1_ as int);
Parameter | Type | Description |
---|---|---|
Parameter p_204803_1_ | Type int | Description 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);
Parameter | Type | Description |
---|---|---|
Parameter p_223102_1_ | Type double | Description No description provided |
Parameter p_223102_3_ | Type double | Description No description provided |
Parameter p_223102_5_ | Type double | Description No description provided |
tick
Link to tick
Called to update the entity's position/logic.
ZenScript CopymyMCPlayerEntity.tick();
toString
Link to tostring
Returns 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);
Parameter | Type | Description |
---|---|---|
Parameter immediately | Type boolean | Description No description provided |
Parameter updateWorldFlag | Type boolean | Description No description provided |
Parameter setSpawn | Type boolean | Description 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.
Returns int
ZenScript CopymyMCPlayerEntity.xpBarCap();