MCPlayerEntity

Этот класс был добавлен модом с mod-id crafttweaker. Так что если вы хотите использовать эту функцию, вам нужно установить этот мод.

Импорт класса

Вам может потребоваться импортировать пакет, если вы столкнетесь с какими-либо проблемами (например, с заливкой массива), так что лучше быть в безопасности, чем извиняться и добавлять импорт.

crafttweaker.api.entity.player.MCPlayerEntity

Methods

addExhaustion

increases exhaustion level by supplied amount

myMCPlayerEntity.addExhaustion(exhaustion as float);
ПараметрТипDescription
exhaustionfloatОписание отсутствует

addExperienceLevel

Add experience levels to this player.

myMCPlayerEntity.addExperienceLevel(levels as int);
ПараметрТипDescription
levelsintОписание отсутствует

addItemStackToInventory

Возвращает boolean

myMCPlayerEntity.addItemStackToInventory(p_191521_1_ as crafttweaker.api.item.IItemStack);
ПараметрТипDescription
p191521_1crafttweaker.api.item.IItemStackОписание отсутствует

addMovementStat

Adds a value to a movement statistic field - like run, walk, swin or climb.

myMCPlayerEntity.addMovementStat(p_71000_1_ as double, p_71000_3_ as double, p_71000_5_ as double);
ПараметрТипDescription
p71000_1doubleОписание отсутствует
p71000_3doubleОписание отсутствует
p71000_5doubleОписание отсутствует

addPotionEffect

Возвращает boolean

myMCPlayerEntity.addPotionEffect(effectInstanceIn as crafttweaker.api.potion.MCPotionEffectInstance);
ПараметрТипDescription
effectInstanceIncrafttweaker.api.potion.MCPotionEffectInstanceОписание отсутствует

addScore

Add to player's score

myMCPlayerEntity.addScore(scoreIn as int);
ПараметрТипDescription
scoreInintОписание отсутствует

addTag

Возвращает boolean

myMCPlayerEntity.addTag(tag as String);
ПараметрТипDescription
tagStringОписание отсутствует

addVelocity

Adds to the current velocity of the entity, and sets to true.

myMCPlayerEntity.addVelocity(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

allowLogging

Возвращает boolean

myMCPlayerEntity.allowLogging();

attackable

Возвращает boolean

myMCPlayerEntity.attackable();

attemptTeleport

Возвращает boolean

myMCPlayerEntity.attemptTeleport(p_213373_1_ as double, p_213373_3_ as double, p_213373_5_ as double, p_213373_7_ as boolean);
ПараметрТипDescription
p213373_1doubleОписание отсутствует
p213373_3doubleОписание отсутствует
p213373_5doubleОписание отсутствует
p213373_7booleanОписание отсутствует

baseTick

Gets called every tick from main Entity class

myMCPlayerEntity.baseTick();

canAttackPlayer

Возвращает boolean

myMCPlayerEntity.canAttackPlayer(other as crafttweaker.api.entity.player.MCPlayerEntity);
ПараметрТипDescription
othercrafttweaker.api.entity.player.MCPlayerEntityОписание отсутствует

canBeAttackedWithItem

Returns true if it's possible to attack this entity with an item.

Возвращает boolean

myMCPlayerEntity.canBeAttackedWithItem();

canBeCollidedWith

Returns true if other Entities should be prevented from moving through this Entity.

Возвращает boolean

myMCPlayerEntity.canBeCollidedWith();

canBeHitWithPotion

Returns false if the entity is an armor stand. Returns true for all other entity living bases.

Возвращает boolean

myMCPlayerEntity.canBeHitWithPotion();

canBePushed

Returns true if this entity should push and be pushed by other entities when colliding.

Возвращает boolean

myMCPlayerEntity.canBePushed();

canBeRiddenInWater

Возвращает boolean

myMCPlayerEntity.canBeRiddenInWater();

canBreatheUnderwater

Возвращает boolean

myMCPlayerEntity.canBreatheUnderwater();

canEat

Возвращает boolean

myMCPlayerEntity.canEat(ignoreHunger as boolean);
ПараметрТипDescription
ignoreHungerbooleanОписание отсутствует

canHarvestBlock

Возвращает boolean

myMCPlayerEntity.canHarvestBlock(state as crafttweaker.api.block.MCBlockState);
ПараметрТипDescription
statecrafttweaker.api.block.MCBlockStateОписание отсутствует

canPassengerSteer

Возвращает boolean

myMCPlayerEntity.canPassengerSteer();

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

Возвращает boolean

myMCPlayerEntity.canPlayerEdit(pos as crafttweaker.api.util.BlockPos, facing as crafttweaker.api.util.Direction, stack as crafttweaker.api.item.IItemStack);
ПараметрТипDescription
poscrafttweaker.api.util.BlockPosОписание отсутствует
facingcrafttweaker.api.util.DirectionОписание отсутствует
stackcrafttweaker.api.item.IItemStackОписание отсутствует

canRenderOnFire

Return whether this entity should be rendered as on fire.

Возвращает boolean

myMCPlayerEntity.canRenderOnFire();

canRiderInteract

Возвращает boolean

myMCPlayerEntity.canRiderInteract();

canSwim

Возвращает boolean

myMCPlayerEntity.canSwim();

canTrample

Возвращает boolean

myMCPlayerEntity.canTrample(state as crafttweaker.api.block.MCBlockState, pos as crafttweaker.api.util.BlockPos, fallDistance as float);
ПараметрТипDescription
statecrafttweaker.api.block.MCBlockStateОписание отсутствует
poscrafttweaker.api.util.BlockPosОписание отсутствует
fallDistancefloatОписание отсутствует

canUpdate

Возвращает boolean

myMCPlayerEntity.canUpdate();
myMCPlayerEntity.canUpdate(value as boolean);
ПараметрТипDescription
valuebooleanОписание отсутствует

canUseCommandBlock

Возвращает boolean

myMCPlayerEntity.canUseCommandBlock();

clearActivePotions

Возвращает boolean

myMCPlayerEntity.clearActivePotions();

clearBedPosition

myMCPlayerEntity.clearBedPosition();

closeScreen

set current crafting inventory back to the 2x2 square

myMCPlayerEntity.closeScreen();

curePotionEffects

Возвращает boolean

myMCPlayerEntity.curePotionEffects(curativeItem as crafttweaker.api.item.IItemStack);
ПараметрТипDescription
curativeItemcrafttweaker.api.item.IItemStackОписание отсутствует

detach

myMCPlayerEntity.detach();

disableShield

myMCPlayerEntity.disableShield(p_190777_1_ as boolean);
ПараметрТипDescription
p190777_1booleanОписание отсутствует

doesEntityNotTriggerPressurePlate

Return whether this entity should NOT trigger a pressure plate or a tripwire.

Возвращает boolean

myMCPlayerEntity.doesEntityNotTriggerPressurePlate();

equals

Возвращает boolean

myMCPlayerEntity.equals(p_equals_1_ as Object);
ПараметрТипDescription
pequals_1ObjectОписание отсутствует

extinguish

Removes fire from entity.

myMCPlayerEntity.extinguish();

fall

myMCPlayerEntity.fall(distance as float, damageMultiplier as float);
ПараметрТипDescription
distancefloatОписание отсутствует
damageMultiplierfloatОписание отсутствует

findAmmo

Returns crafttweaker.api.item.IItemStack

myMCPlayerEntity.findAmmo(shootable as crafttweaker.api.item.IItemStack);
ПараметрТипDescription
shootablecrafttweaker.api.item.IItemStackОписание отсутствует

func_213300_bk

Возвращает boolean

myMCPlayerEntity.func_213300_bk();

func_213312_b

myMCPlayerEntity.func_213312_b(p_213312_1_ as double, p_213312_3_ as double, p_213312_5_ as double);
ПараметрТипDescription
p213312_1doubleОписание отсутствует
p213312_3doubleОписание отсутствует
p213312_5doubleОписание отсутствует

func_213314_bj

Возвращает boolean

myMCPlayerEntity.func_213314_bj();

func_213343_cS

Returns float

myMCPlayerEntity.func_213343_cS();

func_213365_e

Возвращает boolean

myMCPlayerEntity.func_213365_e(itemstackIn as crafttweaker.api.item.IItemStack);
ПараметрТипDescription
itemstackIncrafttweaker.api.item.IItemStackОписание отсутствует

getAIMoveSpeed

the movespeed used for the new AI system

Returns float

myMCPlayerEntity.getAIMoveSpeed();

getAbsorptionAmount

Returns the amount of health added by the Absorption effect.

Returns float

myMCPlayerEntity.getAbsorptionAmount();

getActiveItemStack

Returns crafttweaker.api.item.IItemStack

myMCPlayerEntity.getActiveItemStack();

getActivePotionEffect

returns the PotionEffect for the supplied Potion if it is active, null otherwise.

Returns crafttweaker.api.potion.MCPotionEffectInstance

myMCPlayerEntity.getActivePotionEffect(potionIn as crafttweaker.api.potion.MCPotionEffect);
ПараметрТипDescription
potionIncrafttweaker.api.potion.MCPotionEffectОписание отсутствует

getActivePotionEffects

Returns Collection<crafttweaker.api.potion.MCPotionEffectInstance>

myMCPlayerEntity.getActivePotionEffects();

getAdjustedHorizontalFacing

Gets the horizontal facing direction of this Entity, adjusted to take specially-treated entity types into account.

Returns crafttweaker.api.util.Direction

myMCPlayerEntity.getAdjustedHorizontalFacing();

getAir

Возвращает int

myMCPlayerEntity.getAir();

getAlwaysRenderNameTagForRender

Возвращает boolean

myMCPlayerEntity.getAlwaysRenderNameTagForRender();

getArrowCountInEntity

Возвращает int

myMCPlayerEntity.getArrowCountInEntity();

getBedDirection

gets the Direction for the camera if this entity is sleeping

Returns crafttweaker.api.util.Direction

myMCPlayerEntity.getBedDirection();

getBedLocation

Returns crafttweaker.api.util.BlockPos

myMCPlayerEntity.getBedLocation();

getBlockState

Возвращает crafttweaker.api.block.MCBlockState

myMCPlayerEntity.getBlockState();

getBrightness

Gets how bright this entity is.

Returns float

myMCPlayerEntity.getBrightness();

getBrightnessForRender

Возвращает int

myMCPlayerEntity.getBrightnessForRender();

getCachedUniqueIdString

Returns String

myMCPlayerEntity.getCachedUniqueIdString();

getClassification

Returns crafttweaker.api.entity.MCEntityClassification

myMCPlayerEntity.getClassification(forSpawnCount as boolean);
ПараметрТипDescription
forSpawnCountbooleanОписание отсутствует

getCollisionBorderSize

Returns float

myMCPlayerEntity.getCollisionBorderSize();

getCooldownPeriod

Returns float

myMCPlayerEntity.getCooldownPeriod();

getCooledAttackStrength

Returns the percentage of attack power available based on the cooldown (zero to one).

Returns float

myMCPlayerEntity.getCooledAttackStrength(adjustTicks as float);
ПараметрТипDescription
adjustTicksfloatОписание отсутствует

getDigSpeed

Returns float

myMCPlayerEntity.getDigSpeed(state as crafttweaker.api.block.MCBlockState);
ПараметрТипDescription
statecrafttweaker.api.block.MCBlockStateОписание отсутствует

Returns float

myMCPlayerEntity.getDigSpeed(arg0 as crafttweaker.api.block.MCBlockState, arg1 as crafttweaker.api.util.BlockPos);
ПараметрТипDescription
arg0crafttweaker.api.block.MCBlockStateОписание отсутствует
arg1crafttweaker.api.util.BlockPosОписание отсутствует

getDistanceSq

Returns double

myMCPlayerEntity.getDistanceSq(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

getEntityId

Возвращает int

myMCPlayerEntity.getEntityId();

getEntityString

Returns String

myMCPlayerEntity.getEntityString();

getEyeHeight

Returns float

myMCPlayerEntity.getEyeHeight();

getFireTimer

Возвращает int

myMCPlayerEntity.getFireTimer();

getHealth

Returns float

myMCPlayerEntity.getHealth();

getHeight

Returns float

myMCPlayerEntity.getHeight();

getHeldItemMainhand

Returns crafttweaker.api.item.IItemStack

myMCPlayerEntity.getHeldItemMainhand();

getHeldItemOffhand

Returns crafttweaker.api.item.IItemStack

myMCPlayerEntity.getHeldItemOffhand();

getHorizontalFacing

Gets the horizontal facing direction of this Entity.

Returns crafttweaker.api.util.Direction

myMCPlayerEntity.getHorizontalFacing();

getIdleTime

Возвращает int

myMCPlayerEntity.getIdleTime();

getItemInUseCount

Возвращает int

myMCPlayerEntity.getItemInUseCount();

getItemInUseMaxCount

Возвращает int

myMCPlayerEntity.getItemInUseMaxCount();

getLastAttackedEntityTime

Возвращает int

myMCPlayerEntity.getLastAttackedEntityTime();

getLuck

Returns float

myMCPlayerEntity.getLuck();

getMaxAir

Возвращает int

myMCPlayerEntity.getMaxAir();

getMaxFallHeight

The maximum height from where the entity is alowed to jump (used in pathfinder)

Возвращает int

myMCPlayerEntity.getMaxFallHeight();

getMaxHealth

Returns float

myMCPlayerEntity.getMaxHealth();

getMaxInPortalTime

Return the amount of time this entity should stay in a portal before being transported.

Возвращает int

myMCPlayerEntity.getMaxInPortalTime();

getMountedYOffset

Returns the Y offset from the entity's position for any entity riding this one.

Returns double

myMCPlayerEntity.getMountedYOffset();

getPitch

Gets the current pitch of the entity.

Returns float

myMCPlayerEntity.getPitch(partialTicks as float);
ПараметрТипDescription
partialTicksfloatОписание отсутствует

getPortalCooldown

Return the amount of cooldown before this entity can use a portal again.

Возвращает int

myMCPlayerEntity.getPortalCooldown();

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

myMCPlayerEntity.getPosition();

getRenderScale

Returns float

myMCPlayerEntity.getRenderScale();

getRevengeTimer

Возвращает int

myMCPlayerEntity.getRevengeTimer();

getRotationYawHead

Returns float

myMCPlayerEntity.getRotationYawHead();

getScore

Возвращает int

myMCPlayerEntity.getScore();

getScoreboardName

Returns a String to use as this entity's name in the scoreboard/entity selector systems

Returns String

myMCPlayerEntity.getScoreboardName();

getSleepTimer

Возвращает int

myMCPlayerEntity.getSleepTimer();

getSubmergedHeight

Returns double

myMCPlayerEntity.getSubmergedHeight();

getSwimAnimation

Returns float

myMCPlayerEntity.getSwimAnimation(partialTicks as float);
ПараметрТипDescription
partialTicksfloatОписание отсутствует

getSwingProgress

Gets the progression of the swing animation, ranges from 0.0 to 1.0.

Returns float

myMCPlayerEntity.getSwingProgress(partialTickTime as float);
ПараметрТипDescription
partialTickTimefloatОписание отсутствует

getTags

Returns Set

myMCPlayerEntity.getTags();

getTeleportDirection

Returns crafttweaker.api.util.Direction

myMCPlayerEntity.getTeleportDirection();

getTicksElytraFlying

Возвращает int

myMCPlayerEntity.getTicksElytraFlying();

getTotalArmorValue

Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue

Возвращает int

myMCPlayerEntity.getTotalArmorValue();

getWidth

Returns float

myMCPlayerEntity.getWidth();

getXPSeed

Возвращает int

myMCPlayerEntity.getXPSeed();

getYOffset

Returns the Y Offset of this entity.

Returns double

myMCPlayerEntity.getYOffset();

getYaw

Gets the current yaw of the entity

Returns float

myMCPlayerEntity.getYaw(partialTicks as float);
ПараметрТипDescription
partialTicksfloatОписание отсутствует

giveExperiencePoints

myMCPlayerEntity.giveExperiencePoints(p_195068_1_ as int);
ПараметрТипDescription
p195068_1intОписание отсутствует

handleStatusUpdate

myMCPlayerEntity.handleStatusUpdate(id as byte);
ПараметрТипDescription
idbyteОписание отсутствует

handleWaterMovement

Returns if this entity is in water and will end up adding the waters velocity to the entity

Возвращает boolean

myMCPlayerEntity.handleWaterMovement();

hasCustomName

Возвращает boolean

myMCPlayerEntity.hasCustomName();

hasNoGravity

Возвращает boolean

myMCPlayerEntity.hasNoGravity();

hasPermissionLevel

Возвращает boolean

myMCPlayerEntity.hasPermissionLevel(p_211513_1_ as int);
ПараметрТипDescription
p211513_1intОписание отсутствует

hasReducedDebug

Whether the "reducedDebugInfo" option is active for this player.

Возвращает boolean

myMCPlayerEntity.hasReducedDebug();

hashCode

Возвращает int

myMCPlayerEntity.hashCode();

heal

Heal living entity (param: amount of half-hearts)

myMCPlayerEntity.heal(healAmount as float);
ПараметрТипDescription
healAmountfloatОписание отсутствует

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

Возвращает boolean

myMCPlayerEntity.ignoreItemEntityData();

isActiveItemStackBlocking

Возвращает boolean

myMCPlayerEntity.isActiveItemStackBlocking();

isAddedToWorld

Возвращает boolean

myMCPlayerEntity.isAddedToWorld();

isAlive

Returns true if the entity has not been .

Возвращает boolean

myMCPlayerEntity.isAlive();

isAllowEdit

Возвращает boolean

myMCPlayerEntity.isAllowEdit();

isBeingRidden

If at least 1 entity is riding this one

Возвращает boolean

myMCPlayerEntity.isBeingRidden();

isBurning

Returns true if the entity is on fire. Used by render to add the fire effect on rendering.

Возвращает boolean

myMCPlayerEntity.isBurning();

isChild

If Animal, checks if the age timer is negative

Возвращает boolean

myMCPlayerEntity.isChild();

isCreative

Возвращает boolean

myMCPlayerEntity.isCreative();

isCustomNameVisible

Возвращает boolean

myMCPlayerEntity.isCustomNameVisible();

isElytraFlying

Возвращает boolean

myMCPlayerEntity.isElytraFlying();

isEntityInsideOpaqueBlock

Checks if this entity is inside of an opaque block

Возвращает boolean

myMCPlayerEntity.isEntityInsideOpaqueBlock();

isEntityUndead

Returns true if this entity is undead.

Возвращает boolean

myMCPlayerEntity.isEntityUndead();

isGlowing

Возвращает boolean

myMCPlayerEntity.isGlowing();

isHandActive

Возвращает boolean

myMCPlayerEntity.isHandActive();

isImmuneToExplosions

Возвращает boolean

myMCPlayerEntity.isImmuneToExplosions();

isImmuneToFire

Возвращает boolean

myMCPlayerEntity.isImmuneToFire();

isInLava

Возвращает boolean

myMCPlayerEntity.isInLava();

isInRangeToRender3d

Возвращает boolean

myMCPlayerEntity.isInRangeToRender3d(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

isInRangeToRenderDist

Checks if the entity is in range to render.

Возвращает boolean

myMCPlayerEntity.isInRangeToRenderDist(distance as double);
ПараметрТипDescription
distancedoubleОписание отсутствует

isInWater

Checks if this entity is inside water (if inWater field is true as a result of handleWaterMovement() returning true)

Возвращает boolean

myMCPlayerEntity.isInWater();

isInWaterOrBubbleColumn

Возвращает boolean

myMCPlayerEntity.isInWaterOrBubbleColumn();

isInWaterRainOrBubbleColumn

Возвращает boolean

myMCPlayerEntity.isInWaterRainOrBubbleColumn();

isInvisible

Возвращает boolean

myMCPlayerEntity.isInvisible();

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.

Возвращает boolean

myMCPlayerEntity.isInvisibleToPlayer(player as crafttweaker.api.entity.player.MCPlayerEntity);
ПараметрТипDescription
playercrafttweaker.api.entity.player.MCPlayerEntityОписание отсутствует

isInvulnerable

Возвращает boolean

myMCPlayerEntity.isInvulnerable();

isLiving

Возвращает boolean

myMCPlayerEntity.isLiving();

isNonBoss

Returns false if this Entity is a boss, true otherwise.

Возвращает boolean

myMCPlayerEntity.isNonBoss();

isOffsetPositionInLiquid

Checks if the offset position from the entity's current position is inside of a liquid.

Возвращает boolean

myMCPlayerEntity.isOffsetPositionInLiquid(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

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)

Возвращает boolean

myMCPlayerEntity.isOnLadder();

isOnePlayerRiding

Возвращает boolean

myMCPlayerEntity.isOnePlayerRiding();

isPassenger

Возвращает boolean

myMCPlayerEntity.isPassenger();

isPlayerFullyAsleep

Returns whether or not the player is asleep and the screen has fully faded.

Возвращает boolean

myMCPlayerEntity.isPlayerFullyAsleep();

isPotionActive

Возвращает boolean

myMCPlayerEntity.isPotionActive(potionIn as crafttweaker.api.potion.MCPotionEffect);
ПараметрТипDescription
potionIncrafttweaker.api.potion.MCPotionEffectОписание отсутствует

isPotionApplicable

Возвращает boolean

myMCPlayerEntity.isPotionApplicable(potioneffectIn as crafttweaker.api.potion.MCPotionEffectInstance);
ПараметрТипDescription
potioneffectIncrafttweaker.api.potion.MCPotionEffectInstanceОписание отсутствует

isPushedByWater

Возвращает boolean

myMCPlayerEntity.isPushedByWater();

isServerWorld

Returns whether the entity is in a server world

Возвращает boolean

myMCPlayerEntity.isServerWorld();

isSilent

Returns: True if this entity will not play sounds

Возвращает boolean

myMCPlayerEntity.isSilent();

isSleeping

Returns whether player is sleeping or not

Возвращает boolean

myMCPlayerEntity.isSleeping();

isSneaking

Returns if this entity is sneaking.

Возвращает boolean

myMCPlayerEntity.isSneaking();

isSpawnForced

Возвращает boolean

myMCPlayerEntity.isSpawnForced();

isSpectator

Returns true if the player is in spectator mode.

Возвращает boolean

myMCPlayerEntity.isSpectator();

isSpinAttacking

Возвращает boolean

myMCPlayerEntity.isSpinAttacking();

isSprinting

Get if the Entity is sprinting.

Возвращает boolean

myMCPlayerEntity.isSprinting();

isSwimming

Возвращает boolean

myMCPlayerEntity.isSwimming();

isUser

returns true if this is an EntityPlayerSP, or the logged in player.

Возвращает boolean

myMCPlayerEntity.isUser();

isWet

Checks if this entity is either in water or on an open air block in rain (used in wolves).

Возвращает boolean

myMCPlayerEntity.isWet();

jump

Causes this entity to do an upwards motion (jumping).

myMCPlayerEntity.jump();

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.

myMCPlayerEntity.livingTick();

moveToBlockPosAndAngles

myMCPlayerEntity.moveToBlockPosAndAngles(pos as crafttweaker.api.util.BlockPos, rotationYawIn as float, rotationPitchIn as float);
ПараметрТипDescription
poscrafttweaker.api.util.BlockPosОписание отсутствует
rotationYawInfloatОписание отсутствует
rotationPitchInfloatОписание отсутствует

onAddedToWorld

myMCPlayerEntity.onAddedToWorld();

onCollideWithPlayer

Called by a player entity when they collide with an entity

myMCPlayerEntity.onCollideWithPlayer(entityIn as crafttweaker.api.entity.player.MCPlayerEntity);
ПараметрТипDescription
entityIncrafttweaker.api.entity.player.MCPlayerEntityОписание отсутствует

onEnchant

myMCPlayerEntity.onEnchant(enchantedItem as crafttweaker.api.item.IItemStack, cost as int);
ПараметрТипDescription
enchantedItemcrafttweaker.api.item.IItemStackОписание отсутствует
costintОписание отсутствует

onEnterBubbleColumn

myMCPlayerEntity.onEnterBubbleColumn(downwards as boolean);
ПараметрТипDescription
downwardsbooleanОписание отсутствует

onEnterBubbleColumnWithAirAbove

myMCPlayerEntity.onEnterBubbleColumnWithAirAbove(downwards as boolean);
ПараметрТипDescription
downwardsbooleanОписание отсутствует

onKillCommand

Called by the /kill command.

myMCPlayerEntity.onKillCommand();

onRemovedFromWorld

myMCPlayerEntity.onRemovedFromWorld();

performHurtAnimation

Setups the entity to do the hurt animation. Only used by packets in multiplayer.

myMCPlayerEntity.performHurtAnimation();

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)

myMCPlayerEntity.preparePlayerToSpawn();

recalculateSize

myMCPlayerEntity.recalculateSize();

remove

myMCPlayerEntity.remove();
myMCPlayerEntity.remove(keepData as boolean);
ПараметрТипDescription
keepDatabooleanОписание отсутствует

removeActivePotionEffect

Returns crafttweaker.api.potion.MCPotionEffectInstance

myMCPlayerEntity.removeActivePotionEffect(arg0 as crafttweaker.api.potion.MCPotionEffect);
ПараметрТипDescription
arg0crafttweaker.api.potion.MCPotionEffectОписание отсутствует

removePassengers

Dismounts all entities riding this entity from this entity.

myMCPlayerEntity.removePassengers();

removePotionEffect

Возвращает boolean

myMCPlayerEntity.removePotionEffect(effectIn as crafttweaker.api.potion.MCPotionEffect);
ПараметрТипDescription
effectIncrafttweaker.api.potion.MCPotionEffectОписание отсутствует

removeTag

Возвращает boolean

myMCPlayerEntity.removeTag(tag as String);
ПараметрТипDescription
tagStringОписание отсутствует

replaceItemInInventory

Возвращает boolean

myMCPlayerEntity.replaceItemInInventory(inventorySlot as int, itemStackIn as crafttweaker.api.item.IItemStack);
ПараметрТипDescription
inventorySlotintОписание отсутствует
itemStackIncrafttweaker.api.item.IItemStackОписание отсутствует

resetActiveHand

myMCPlayerEntity.resetActiveHand();

resetCooldown

myMCPlayerEntity.resetCooldown();

resetPositionToBB

Resets the entity's position to the center (planar) and bottom (vertical) points of its bounding box.

myMCPlayerEntity.resetPositionToBB();

respawnPlayer

myMCPlayerEntity.respawnPlayer();

revive

myMCPlayerEntity.revive();

rotateTowards

myMCPlayerEntity.rotateTowards(yaw as double, pitch as double);
ПараметрТипDescription
yawdoubleОписание отсутствует
pitchdoubleОписание отсутствует

sendEndCombat

Sends an END_COMBAT packet to the client

myMCPlayerEntity.sendEndCombat();

sendEnterCombat

Sends an ENTER_COMBAT packet to the client

myMCPlayerEntity.sendEnterCombat();

sendPlayerAbilities

Sends the player's abilities to the server (if there is one).

myMCPlayerEntity.sendPlayerAbilities();

setAIMoveSpeed

set the movespeed used for the new AI system

myMCPlayerEntity.setAIMoveSpeed(speedIn as float);
ПараметрТипDescription
speedInfloatОписание отсутствует

setAbsorptionAmount

myMCPlayerEntity.setAbsorptionAmount(amount as float);
ПараметрТипDescription
amountfloatОписание отсутствует

setAir

myMCPlayerEntity.setAir(air as int);
ПараметрТипDescription
airintОписание отсутствует

setArrowCountInEntity

myMCPlayerEntity.setArrowCountInEntity(count as int);
ПараметрТипDescription
countintОписание отсутствует

setBedPosition

myMCPlayerEntity.setBedPosition(p_213369_1_ as crafttweaker.api.util.BlockPos);
ПараметрТипDescription
p213369_1crafttweaker.api.util.BlockPosОписание отсутствует

setCustomNameVisible

myMCPlayerEntity.setCustomNameVisible(alwaysRenderNameTag as boolean);
ПараметрТипDescription
alwaysRenderNameTagbooleanОписание отсутствует

setEntityId

myMCPlayerEntity.setEntityId(id as int);
ПараметрТипDescription
idintОписание отсутствует

setFire

Sets entity to burn for x amount of seconds, cannot lower amount of existing fire.

myMCPlayerEntity.setFire(seconds as int);
ПараметрТипDescription
secondsintОписание отсутствует

setFireTimer

myMCPlayerEntity.setFireTimer(p_223308_1_ as int);
ПараметрТипDescription
p223308_1intОписание отсутствует

setGlowing

myMCPlayerEntity.setGlowing(glowingIn as boolean);
ПараметрТипDescription
glowingInbooleanОписание отсутствует

setHeadRotation

myMCPlayerEntity.setHeadRotation(yaw as float, pitch as int);
ПараметрТипDescription
yawfloatОписание отсутствует
pitchintОписание отсутствует

setHealth

myMCPlayerEntity.setHealth(health as float);
ПараметрТипDescription
healthfloatОписание отсутствует

setIdleTime

myMCPlayerEntity.setIdleTime(idleTimeIn as int);
ПараметрТипDescription
idleTimeInintОписание отсутствует

setInLava

myMCPlayerEntity.setInLava();

setInvisible

myMCPlayerEntity.setInvisible(invisible as boolean);
ПараметрТипDescription
invisiblebooleanОписание отсутствует

setInvulnerable

Sets whether this Entity is invulnerable.

myMCPlayerEntity.setInvulnerable(isInvulnerable as boolean);
ПараметрТипDescription
isInvulnerablebooleanОписание отсутствует

setJumping

myMCPlayerEntity.setJumping(jumping as boolean);
ПараметрТипDescription
jumpingbooleanОписание отсутствует

setLocationAndAngles

Sets the location and Yaw/Pitch of an entity in the world

myMCPlayerEntity.setLocationAndAngles(x as double, y as double, z as double, yaw as float, pitch as float);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует
yawfloatОписание отсутствует
pitchfloatОписание отсутствует

setMotion

myMCPlayerEntity.setMotion(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

setNoGravity

myMCPlayerEntity.setNoGravity(noGravity as boolean);
ПараметрТипDescription
noGravitybooleanОписание отсутствует

setPartying

Called when a record starts or stops playing. Used to make parrots start or stop partying.

myMCPlayerEntity.setPartying(pos as crafttweaker.api.util.BlockPos, isPartying as boolean);
ПараметрТипDescription
poscrafttweaker.api.util.BlockPosОписание отсутствует
isPartyingbooleanОписание отсутствует

setPortal

Marks the entity as being inside a portal, activating teleportation logic in onEntityUpdate() in the following tick(s).

myMCPlayerEntity.setPortal(pos as crafttweaker.api.util.BlockPos);
ПараметрТипDescription
poscrafttweaker.api.util.BlockPosОписание отсутствует

setPosition

Sets the x,y,z of the entity from the given parameters. Also seems to set up a bounding box.

myMCPlayerEntity.setPosition(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

setPositionAndRotation

Sets position and rotation, clamping and wrapping params to valid values. Used by network code.

myMCPlayerEntity.setPositionAndRotation(x as double, y as double, z as double, yaw as float, pitch as float);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует
yawfloatОписание отсутствует
pitchfloatОписание отсутствует

setPositionAndRotationDirect

Sets a target for the client to interpolate towards over the next few ticks

myMCPlayerEntity.setPositionAndRotationDirect(x as double, y as double, z as double, yaw as float, pitch as float, posRotationIncrements as int, teleport as boolean);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует
yawfloatОписание отсутствует
pitchfloatОписание отсутствует
posRotationIncrementsintОписание отсутствует
teleportbooleanОписание отсутствует

setPositionAndUpdate

Sets the position of the entity and updates the 'last' variables

myMCPlayerEntity.setPositionAndUpdate(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

setPositionNonDirty

Возвращает boolean

myMCPlayerEntity.setPositionNonDirty();

setReducedDebug

myMCPlayerEntity.setReducedDebug(reducedDebug as boolean);
ПараметрТипDescription
reducedDebugbooleanОписание отсутствует

setRenderYawOffset

Set the render yaw offset

myMCPlayerEntity.setRenderYawOffset(offset as float);
ПараметрТипDescription
offsetfloatОписание отсутствует

setRotationYawHead

Sets the head's yaw rotation of the entity.

myMCPlayerEntity.setRotationYawHead(rotation as float);
ПараметрТипDescription
rotationfloatОписание отсутствует

setScore

Set player's score

myMCPlayerEntity.setScore(scoreIn as int);
ПараметрТипDescription
scoreInintОписание отсутствует

setSilent

When set to true the entity will not play sounds.

myMCPlayerEntity.setSilent(isSilent as boolean);
ПараметрТипDescription
isSilentbooleanОписание отсутствует

setSneaking

Sets the sneaking flag.

myMCPlayerEntity.setSneaking(sneaking as boolean);
ПараметрТипDescription
sneakingbooleanОписание отсутствует

setSpawnPoint

myMCPlayerEntity.setSpawnPoint(pos as crafttweaker.api.util.BlockPos, forced as boolean);
ПараметрТипDescription
poscrafttweaker.api.util.BlockPosОписание отсутствует
forcedbooleanОписание отсутствует

setSprinting

Set sprinting switch for Entity.

myMCPlayerEntity.setSprinting(sprinting as boolean);
ПараметрТипDescription
sprintingbooleanОписание отсутствует

setSwimming

myMCPlayerEntity.setSwimming(p_204711_1_ as boolean);
ПараметрТипDescription
p204711_1booleanОписание отсутствует

setVelocity

Updates the entity motion clientside, called by packets from the server

myMCPlayerEntity.setVelocity(x as double, y as double, z as double);
ПараметрТипDescription
xdoubleОписание отсутствует
ydoubleОписание отсутствует
zdoubleОписание отсутствует

shouldHeal

Checks if the player's health is not full and not zero.

Возвращает boolean

myMCPlayerEntity.shouldHeal();

shouldReceiveErrors

Возвращает boolean

myMCPlayerEntity.shouldReceiveErrors();

shouldReceiveFeedback

Возвращает boolean

myMCPlayerEntity.shouldReceiveFeedback();

shouldRenderSneaking

Возвращает boolean

myMCPlayerEntity.shouldRenderSneaking();

shouldRiderFaceForward

Returns true if the entity's rider (EntityPlayer) should face forward when mounted. currently only used in vanilla code by pigs.

Возвращает boolean

myMCPlayerEntity.shouldRiderFaceForward(player as crafttweaker.api.entity.player.MCPlayerEntity);
ПараметрТипDescription
playercrafttweaker.api.entity.player.MCPlayerEntityThe player who is riding the entity.

shouldRiderSit

Возвращает boolean

myMCPlayerEntity.shouldRiderSit();

spawnRunningParticles

Attempts to create sprinting particles if the entity is sprinting and not in water.

myMCPlayerEntity.spawnRunningParticles();

spawnSweepParticles

myMCPlayerEntity.spawnSweepParticles();

startSleeping

myMCPlayerEntity.startSleeping(p_213342_1_ as crafttweaker.api.util.BlockPos);
ПараметрТипDescription
p213342_1crafttweaker.api.util.BlockPosОписание отсутствует

startSpinAttack

myMCPlayerEntity.startSpinAttack(p_204803_1_ as int);
ПараметрТипDescription
p204803_1intОписание отсутствует

stopActiveHand

myMCPlayerEntity.stopActiveHand();

stopRiding

Dismounts this entity from the entity it is riding.

myMCPlayerEntity.stopRiding();

teleportKeepLoaded

myMCPlayerEntity.teleportKeepLoaded(p_223102_1_ as double, p_223102_3_ as double, p_223102_5_ as double);
ПараметрТипDescription
p223102_1doubleОписание отсутствует
p223102_3doubleОписание отсутствует
p223102_5doubleОписание отсутствует

tick

Called to update the entity's position/logic.

myMCPlayerEntity.tick();

toString

Returns String

myMCPlayerEntity.toString();

updateRidden

Handles updating while riding another entity

myMCPlayerEntity.updateRidden();

updateSwimming

myMCPlayerEntity.updateSwimming();

wakeUp

myMCPlayerEntity.wakeUp();

wakeUpPlayer

Wake up the player if they're sleeping.

myMCPlayerEntity.wakeUpPlayer(immediately as boolean, updateWorldFlag as boolean, setSpawn as boolean);
ПараметрТипDescription
immediatelybooleanОписание отсутствует
updateWorldFlagbooleanОписание отсутствует
setSpawnbooleanОписание отсутствует

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

myMCPlayerEntity.xpBarCap();