Class ExpandEntity
java.lang.Object
com.blamejared.crafttweaker.natives.entity.ExpandEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanAdds a tag to the entity, returning false if the entity has over 1024static net.minecraft.core.BlockPosblockPosition(net.minecraft.world.entity.Entity internal) Gets thepositionof the entity.static booleancanBeCollidedWith(net.minecraft.world.entity.Entity internal) Checks if the entity can be collided with.static booleancanCollideWith(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other) Checks if the entity can collide with the given entity.static booleancanFreeze(net.minecraft.world.entity.Entity internal) Checks if the entity can freeze.static voidclearFire(net.minecraft.world.entity.Entity internal) Clears the fire of the entity.static booleancloserThan(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other, double distance) Checks if the entity is closer than the given distance to another entity.static booleandampensVibrations(net.minecraft.world.entity.Entity internal) Checks if the entity dampens vibrations, such asItemEntitys who's item is in the dampens_vibrations item tag.static voiddiscard(net.minecraft.world.entity.Entity internal) Discards the entity.static booleandismountsUnderwater(net.minecraft.world.entity.Entity internal) Checks if the entity dismounts underwater.static floatdistanceTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Gets the distance to the given entity.static doubledistanceToSqr(net.minecraft.world.entity.Entity internal, double x, double y, double z) Gets the squared distance to the given position.static doubledistanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Gets the squared distance to the given entity.static doubledistanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec) Gets the squared distance to the given vector.static voidejectPassengers(net.minecraft.world.entity.Entity internal) Ejects the passengers of the entity.static booleanfireImmune(net.minecraft.world.entity.Entity internal) Checks if the entity is fire immune.static intgetAirSupply(net.minecraft.world.entity.Entity internal) Gets the current air supply of the entity.static floatgetBbHeight(net.minecraft.world.entity.Entity internal) Gets the height of the bounding box of the entity.static floatgetBbWidth(net.minecraft.world.entity.Entity internal) Gets the width of the bounding box of the entity.static intgetBlockX(net.minecraft.world.entity.Entity internal) Gets the x coordinate of the entity.static intgetBlockY(net.minecraft.world.entity.Entity internal) Gets the y coordinate of the entity.static intgetBlockZ(net.minecraft.world.entity.Entity internal) Gets the z coordinate of the entity.static net.minecraft.world.phys.AABBgetBoundingBoxForCulling(net.minecraft.world.entity.Entity internal) Gets the bounding box for culling of the entity.static net.minecraft.world.level.LevelgetCommandSenderWorld(net.minecraft.world.entity.Entity internal) Gets theLevelused when sending commands as this entity.static net.minecraft.world.entity.EntitygetControllingPassenger(net.minecraft.world.entity.Entity internal) Gets the controlling passenger of the entity.static MapDatagetCustomData(net.minecraft.world.entity.Entity internal) Gets the custom NBT data for this Entity.static net.minecraft.network.chat.ComponentgetCustomName(net.minecraft.world.entity.Entity internal) Gets the custom name of the entity.static MapDatagetData(net.minecraft.world.entity.Entity internal) Gets the NBT data of this Entity.static net.minecraft.world.phys.Vec3getDeltaMovement(net.minecraft.world.entity.Entity internal) Gets the delta movement of the entity.static intgetDimensionChangingDelay(net.minecraft.world.entity.Entity internal) Gets the dimension changing delay of the entity.static net.minecraft.core.DirectiongetDirection(net.minecraft.world.entity.Entity internal) Gets the direction of the entity.static net.minecraft.network.chat.ComponentgetDisplayName(net.minecraft.world.entity.Entity internal) Gets the display name of the entity.static floatgetEyeHeight(net.minecraft.world.entity.Entity internal) Gets the eye height of the entity.static net.minecraft.world.phys.Vec3getEyePosition(net.minecraft.world.entity.Entity internal) Gets the eye position of the entity.static net.minecraft.world.phys.Vec3getEyePosition(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the eye position of the entity.static doublegetEyeY(net.minecraft.world.entity.Entity internal) Gets the y coordinate of the entity's eyes.static net.minecraft.world.entity.EntitygetFirstPassenger(net.minecraft.world.entity.Entity internal) Gets the first passenger of the entity.static doublegetFluidJumpThreshold(net.minecraft.world.entity.Entity internal) Gets the fluid jump threshold of the entity.static net.minecraft.world.phys.Vec3getForward(net.minecraft.world.entity.Entity internal) Gets the forward vector of the entity.static net.minecraft.world.level.block.state.BlockStategetInBlockState(net.minecraft.world.entity.Entity internal) Gets theBlockStatethat this entity is currently inside.static net.minecraft.world.level.LevelgetLevel(net.minecraft.world.entity.Entity internal) Gets theLevelof the entity.static net.minecraft.world.phys.Vec3getLookAngle(net.minecraft.world.entity.Entity internal) Gets the look angle of the entity.static intgetMaxAirSupply(net.minecraft.world.entity.Entity internal) Gets the maximum air supply of the entity.static intgetMaxFallDistance(net.minecraft.world.entity.Entity internal) Gets the maximum fall distance of the entity.static net.minecraft.core.DirectiongetMotionDirection(net.minecraft.world.entity.Entity internal) Gets the motion direction of the entity.static net.minecraft.network.chat.ComponentgetName(net.minecraft.world.entity.Entity internal) Gets the name of the entity.static net.minecraft.core.BlockPosgetOnPos(net.minecraft.world.entity.Entity internal) Gets the position of the entity on the ground.static List<net.minecraft.world.entity.Entity> getPassengers(net.minecraft.world.entity.Entity internal) Gets the passengers of the entity.static floatgetPercentFrozen(net.minecraft.world.entity.Entity internal) Gets the percent the entity is frozen.static net.minecraft.world.level.material.PushReactiongetPistonPushReaction(net.minecraft.world.entity.Entity internal) Gets the piston push reaction of the entity.static net.minecraft.world.phys.Vec3getPosition(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the position of the entity.static net.minecraft.resources.ResourceLocationgetRegistryName(net.minecraft.world.entity.Entity internal) Gets the registry name of the entity.static intgetRemainingFireTicks(net.minecraft.world.entity.Entity internal) Gets the remaining fire ticks of the entity.static net.minecraft.world.entity.EntitygetRootVehicle(net.minecraft.world.entity.Entity internal) Gets the root vehicle of the entity.static net.minecraft.sounds.SoundSourcegetSoundSource(net.minecraft.world.entity.Entity internal) Gets theSoundSourceof the entity.static StringgetStringUUID(net.minecraft.world.entity.Entity internal) Gets the UUID of the entity as a string.getTags(net.minecraft.world.entity.Entity internal) Gets the tags of the entity.static intgetTeamColor(net.minecraft.world.entity.Entity internal) Gets the team color of the entity.static intgetTicksFrozen(net.minecraft.world.entity.Entity internal) Gets the number of ticks the entity has been frozen.static intgetTicksRequiredToFreeze(net.minecraft.world.entity.Entity internal) Gets the number of ticks required to freeze the entity.static net.minecraft.world.entity.EntityType<net.minecraft.world.entity.Entity> getType(net.minecraft.world.entity.Entity internal) Gets theEntityTypeof the entity.static net.minecraft.world.phys.Vec3getUpVector(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the up vector of the entity.static net.minecraft.world.entity.EntitygetVehicle(net.minecraft.world.entity.Entity internal) Gets the vehicle of the entity.static net.minecraft.world.phys.Vec3getViewVector(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the view vector of the entity.static doublegetX(net.minecraft.world.entity.Entity internal) Gets the x coordinate of the entity.static doublegetX(net.minecraft.world.entity.Entity internal, double scale) Gets the x coordinate of the entity with the given scale.static doublegetY(net.minecraft.world.entity.Entity internal) Gets the y coordinate of the entity.static doublegetY(net.minecraft.world.entity.Entity internal, double scale) Gets the y coordinate of the entity with the given scale.static doublegetZ(net.minecraft.world.entity.Entity internal) Gets the z coordinate of the entity.static doublegetZ(net.minecraft.world.entity.Entity internal, double scale) Gets the z coordinate of the entity with the given scale.static booleanhasCustomName(net.minecraft.world.entity.Entity internal) Checks if the entity has a custom name.static booleanhasExactlyOnePlayerPassenger(net.minecraft.world.entity.Entity internal) Checks if the entity has exactly one player passenger.static booleanhasGlowingTag(net.minecraft.world.entity.Entity internal) Checks if the entity is currently glowing.static booleanhasIndirectPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Checks if the entity has an indirect passenger.static booleanhasPassenger(net.minecraft.world.entity.Entity internal, Predicate<net.minecraft.world.entity.Entity> predicate) Checks if the entity has a passenger that matches the given predicate.static booleanhasPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Checks if the entity has a passenger.static booleanhurt(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source, float amount) Hurts the entity with the givenDamageSourceand amount.static booleanisAlive(net.minecraft.world.entity.Entity internal) Checks if the entity is alive.static booleanisAttackable(net.minecraft.world.entity.Entity internal) Checks if the entity is attackable.static booleanisColliding(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) Checks if this entity is colliding with the givenBlockStateat the givenBlockPos.static booleanisCrouching(net.minecraft.world.entity.Entity internal) Checks if the entity is crouching.static booleanisCurrentlyGlowing(net.minecraft.world.entity.Entity internal) Checks if the entity is currently glowing.static booleanisCustomNameVisible(net.minecraft.world.entity.Entity internal) Checks if the custom name of the entity is visible.static booleanisDescending(net.minecraft.world.entity.Entity internal) Checks if the entity is descending.static booleanisDiscrete(net.minecraft.world.entity.Entity internal) Checks if the entity is being discrete.static booleanisFree(net.minecraft.world.entity.Entity internal, double x, double y, double z) Checks if the offset position from the entity's current position has a collision with a block or a liquid.static booleanisFullyFrozen(net.minecraft.world.entity.Entity internal) Checks if the entity is fully frozen.static booleanisInLava(net.minecraft.world.entity.Entity internal) Checks if the entity is in lava.static booleanisInvisible(net.minecraft.world.entity.Entity internal) Checks if the entity is invisible.static booleanisInvisibleTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.player.Player player) Checks if the entity is invisible to the givenPlayer.static booleanisInvulnerable(net.minecraft.world.entity.Entity internal) Checks if the entity is invulnerable.static booleanisInvulnerableTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source) Checks if the entity is invulnerable to the givenDamageSource.static booleanisInWall(net.minecraft.world.entity.Entity internal) Checks if the entity is in a wall.static booleanisInWater(net.minecraft.world.entity.Entity internal) Checks if the entity is in water.static booleanisInWaterOrBubble(net.minecraft.world.entity.Entity internal) Checks if the entity is in water or a bubble column.static booleanisInWaterOrRain(net.minecraft.world.entity.Entity internal) Checks if the entity is in water or rain.static booleanisInWaterRainOrBubble(net.minecraft.world.entity.Entity internal) Checks if the entity is in water or rain or a bubble column.static booleanisNoGravity(net.minecraft.world.entity.Entity internal) Checks if the entity has no gravity.static booleanisOnFire(net.minecraft.world.entity.Entity internal) Checks if the entity is on fire.static booleanisOnPortalCooldown(net.minecraft.world.entity.Entity internal) Checks if the entity is on portal cooldown.static booleanisPassenger(net.minecraft.world.entity.Entity internal) Checks if the entity is a passenger.static booleanisPassengerOfSameVehicle(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Checks if the entity is a passenger of the same vehicle.static booleanisPickable(net.minecraft.world.entity.Entity internal) Checks if the entity is pickable.static booleanisPushable(net.minecraft.world.entity.Entity internal) Checks if the entity is pushable.static booleanisPushedByFluid(net.minecraft.world.entity.Entity internal) Checks if the entity is pushed by fluid.static booleanisRemoved(net.minecraft.world.entity.Entity internal) Checks if the entity has been removed.static booleanisShiftKeyDown(net.minecraft.world.entity.Entity internal) Checks if the shift key is down.static booleanisSilent(net.minecraft.world.entity.Entity internal) Checks if the entity is silent, meaning it won't play any sounds.static booleanisSpectator(net.minecraft.world.entity.Entity internal) Checks if the entity is a spectator.static booleanisSprinting(net.minecraft.world.entity.Entity internal) Checks if the entity is sprinting.static booleanisSteppingCarefully(net.minecraft.world.entity.Entity internal) Checks if the entity is stepping carefully.static booleanisSuppressingBounce(net.minecraft.world.entity.Entity internal) Checks if the entity is suppressing bounce.static booleanisSwimming(net.minecraft.world.entity.Entity internal) Checks if the entity is swimming.static booleanisUnderWater(net.minecraft.world.entity.Entity internal) Checks if the entity is underwater.static booleanisVehicle(net.minecraft.world.entity.Entity internal) Checks if the entity is a vehicle.static booleanisVisuallyCrawling(net.minecraft.world.entity.Entity internal) Checks if the entity is visually crawling.static booleanisVisuallySwimming(net.minecraft.world.entity.Entity internal) Checks if the entity is visually swimming.static voidkill(net.minecraft.world.entity.Entity internal) Kills the entity.static voidlavaHurt(net.minecraft.world.entity.Entity internal) Causes the entity to take damage from lava.static voidmoveRelative(net.minecraft.world.entity.Entity internal, float amount, net.minecraft.world.phys.Vec3 relative) Moves the entity relative to its current position.static voidmoveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z) Moves the entity to the given position.static voidmoveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z, float yaw, float pitch) Moves the entity to the given position.static voidmoveTo(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, float yaw, float pitch) Moves the entity to the given position.static voidmoveTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec) Moves the entity to the given position.static booleanonGround(net.minecraft.world.entity.Entity internal) Checks if the entity is on the ground.static voidplaySound(net.minecraft.world.entity.Entity internal, net.minecraft.sounds.SoundEvent sound, float volume, float pitch) Plays a sound at the entity's location.static net.minecraft.world.phys.Vec3position(net.minecraft.world.entity.Entity internal) Gets the position of the entity.static voidpositionRider(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Positions the rider of the entity.static booleanRemoves a tag from the entity.static voidremoveVehicle(net.minecraft.world.entity.Entity internal) Removes the vehicle of the entity.static voidsetAirSupply(net.minecraft.world.entity.Entity internal, int air) Sets the air supply of the entity.static voidsetCustomName(net.minecraft.world.entity.Entity internal, net.minecraft.network.chat.Component name) Sets the custom name of the entity.static voidsetCustomNameVisible(net.minecraft.world.entity.Entity internal, boolean visible) Sets the custom name visible state of the entity.static voidsetDeltaMovement(net.minecraft.world.entity.Entity internal, double xDelta, double yDelta, double zDelta) Sets the delta movement of the entity.static voidsetDeltaMovement(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 deltaMovement) Sets the delta movement of the entity.static voidsetGlowingTag(net.minecraft.world.entity.Entity internal, boolean glowing) Makes the entity glow.static voidsetInvisible(net.minecraft.world.entity.Entity internal, boolean invisible) Sets the invisible state of the entity.static voidsetInvulnerable(net.minecraft.world.entity.Entity internal, boolean invulnerable) Sets the invulnerable state of the entity.static voidsetIsInPowderSnow(net.minecraft.world.entity.Entity internal, boolean inPowderSnow) Sets whether the entity is in powder snow.static voidsetNoGravity(net.minecraft.world.entity.Entity internal, boolean noGravity) Sets if the entity has no gravity.static voidsetOldPosAndRot(net.minecraft.world.entity.Entity internal) Sets the old position and rotation of the entity.static voidsetOnGround(net.minecraft.world.entity.Entity internal, boolean onGround) Sets if the entity is on the ground.static voidsetPortalCooldown(net.minecraft.world.entity.Entity internal) Sets the portal cooldown of the entity.static voidsetPos(net.minecraft.world.entity.Entity internal, double x, double y, double z) Sets the position of the entity.static voidsetPos(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 position) Sets the position of the entity.static voidsetPosRaw(net.minecraft.world.entity.Entity internal, double x, double y, double z) Sets the position of the entity to the given coordinates.static voidsetRemainingFireTicks(net.minecraft.world.entity.Entity internal, int ticks) Sets the remaining fire ticks of the entity.static voidsetShiftKeyDown(net.minecraft.world.entity.Entity internal, boolean keyDown) Sets the shift key down state of the entity.static voidsetSilent(net.minecraft.world.entity.Entity internal, boolean silent) Sets if the entity is silent.static voidsetSprinting(net.minecraft.world.entity.Entity internal, boolean sprinting) Sets the sprinting state of the entity.static voidsetSwimming(net.minecraft.world.entity.Entity internal, boolean swimming) Sets the swimming state of the entity.static voidsetTicksFrozen(net.minecraft.world.entity.Entity internal, int ticks) Sets the number of ticks the entity has been frozen.static booleanshouldShowName(net.minecraft.world.entity.Entity internal) Checks if the entity should show its name.static booleanshowVehicleHealth(net.minecraft.world.entity.Entity internal) Checks if the entity should show vehicle health.static booleanstartRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Starts riding the given entity.static booleanstartRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity, boolean force) Starts riding the given entity.static voidstopRiding(net.minecraft.world.entity.Entity internal) Stops riding the entity.static voidteleportTo(net.minecraft.world.entity.Entity internal, double x, double y, double z) Teleports the entity to the given position.static voidturn(net.minecraft.world.entity.Entity internal, double yaw, double pitch) Turns the entity.static voidunRide(net.minecraft.world.entity.Entity internal) Removes any passengers and stops riding the current entity.static voidupdateCustomData(net.minecraft.world.entity.Entity internal, MapData data) Updates the custom NBT data for this Entity.static voidupdateCustomEntityTag(net.minecraft.world.entity.Entity internal, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, MapData data) static voidupdateData(net.minecraft.world.entity.Entity internal, MapData data) Updates the NBT data of this Entity.
-
Constructor Details
-
ExpandEntity
public ExpandEntity()
-
-
Method Details
-
updateCustomEntityTag
public static void updateCustomEntityTag(net.minecraft.world.entity.Entity internal, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, MapData data) -
isColliding
public static boolean isColliding(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) Checks if this entity is colliding with the givenBlockStateat the givenBlockPos.- Parameters:
pos- The position of the block to check.state- The state of the block to check.- Returns:
- true if the entity is colliding with the block.
-
getLevel
public static net.minecraft.world.level.Level getLevel(net.minecraft.world.entity.Entity internal) Gets theLevelof the entity.- Returns:
- The
Levelof the entity.
-
getTeamColor
public static int getTeamColor(net.minecraft.world.entity.Entity internal) Gets the team color of the entity.- Returns:
- The team color of the entity.
-
isSpectator
public static boolean isSpectator(net.minecraft.world.entity.Entity internal) Checks if the entity is a spectator.- Returns:
- true if the entity is a spectator.
-
unRide
public static void unRide(net.minecraft.world.entity.Entity internal) Removes any passengers and stops riding the current entity. -
getType
public static net.minecraft.world.entity.EntityType<net.minecraft.world.entity.Entity> getType(net.minecraft.world.entity.Entity internal) Gets theEntityTypeof the entity.- Returns:
- The
EntityTypeof the entity.
-
getTags
Gets the tags of the entity. These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.- Returns:
- The tags of the entity.
-
addTag
Adds a tag to the entity, returning false if the entity has over 1024- Parameters:
tagName- The name of the tag to add.- Returns:
- true if the tag was added.
-
removeTag
Removes a tag from the entity.- Parameters:
tagName- The name of the tag to remove.- Returns:
- true if the tag was removed.
-
kill
public static void kill(net.minecraft.world.entity.Entity internal) Kills the entity. -
discard
public static void discard(net.minecraft.world.entity.Entity internal) Discards the entity. -
closerThan
public static boolean closerThan(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other, double distance) Checks if the entity is closer than the given distance to another entity.- Parameters:
other- The other entity to check the distance to.distance- The distance to check.- Returns:
- true if the entity is closer than the given distance to the other entity.
-
setPos
public static void setPos(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 position) Sets the position of the entity.- Parameters:
position- The position to set the entity to.
-
setPos
public static void setPos(net.minecraft.world.entity.Entity internal, double x, double y, double z) Sets the position of the entity.- Parameters:
x- The x position to set the entity to.y- The y position to set the entity to.z- The z position to set the entity to.
-
turn
public static void turn(net.minecraft.world.entity.Entity internal, double yaw, double pitch) Turns the entity.- Parameters:
yaw- The yaw to turn the entity to.pitch- The pitch to turn the entity to.
-
setPortalCooldown
public static void setPortalCooldown(net.minecraft.world.entity.Entity internal) Sets the portal cooldown of the entity. -
isOnPortalCooldown
public static boolean isOnPortalCooldown(net.minecraft.world.entity.Entity internal) Checks if the entity is on portal cooldown.- Returns:
- true if the entity is on portal cooldown.
-
lavaHurt
public static void lavaHurt(net.minecraft.world.entity.Entity internal) Causes the entity to take damage from lava. -
setRemainingFireTicks
public static void setRemainingFireTicks(net.minecraft.world.entity.Entity internal, int ticks) Sets the remaining fire ticks of the entity.- Parameters:
ticks- The number of ticks to set the remaining fire ticks to.
-
getRemainingFireTicks
public static int getRemainingFireTicks(net.minecraft.world.entity.Entity internal) Gets the remaining fire ticks of the entity.- Returns:
- The remaining fire ticks of the entity.
-
clearFire
public static void clearFire(net.minecraft.world.entity.Entity internal) Clears the fire of the entity. -
isFree
public static boolean isFree(net.minecraft.world.entity.Entity internal, double x, double y, double z) Checks if the offset position from the entity's current position has a collision with a block or a liquid.- Parameters:
x- The x position to check.y- The y position to check.z- The z position to check.- Returns:
- true if the entity is free to move in the given position.
-
setOnGround
public static void setOnGround(net.minecraft.world.entity.Entity internal, boolean onGround) Sets if the entity is on the ground.- Parameters:
onGround- The on ground state to set the entity to.
-
onGround
public static boolean onGround(net.minecraft.world.entity.Entity internal) Checks if the entity is on the ground.- Returns:
- true if the entity is on the ground.
-
getOnPos
public static net.minecraft.core.BlockPos getOnPos(net.minecraft.world.entity.Entity internal) Gets the position of the entity on the ground.- Returns:
- The position of the entity on the ground.
-
playSound
public static void playSound(net.minecraft.world.entity.Entity internal, net.minecraft.sounds.SoundEvent sound, float volume, float pitch) Plays a sound at the entity's location.- Parameters:
sound- The sound to play.volume- The volume of the sound.pitch- The pitch of the sound.
-
isSilent
public static boolean isSilent(net.minecraft.world.entity.Entity internal) Checks if the entity is silent, meaning it won't play any sounds.- Returns:
- true if the entity is silent.
-
setSilent
public static void setSilent(net.minecraft.world.entity.Entity internal, boolean silent) Sets if the entity is silent.- Parameters:
silent- The silent state to set the entity to.
-
isNoGravity
public static boolean isNoGravity(net.minecraft.world.entity.Entity internal) Checks if the entity has no gravity.- Returns:
- true if the entity has no gravity.
-
setNoGravity
public static void setNoGravity(net.minecraft.world.entity.Entity internal, boolean noGravity) Sets if the entity has no gravity.- Parameters:
noGravity- The no gravity state to set the entity to.
-
dampensVibrations
public static boolean dampensVibrations(net.minecraft.world.entity.Entity internal) Checks if the entity dampens vibrations, such asItemEntitys who's item is in the dampens_vibrations item tag.- Returns:
- true if the entity dampens vibrations.
-
fireImmune
public static boolean fireImmune(net.minecraft.world.entity.Entity internal) Checks if the entity is fire immune.- Returns:
- true if the entity is fire immune.
-
isInWater
public static boolean isInWater(net.minecraft.world.entity.Entity internal) Checks if the entity is in water.- Returns:
- true if the entity is in water.
-
isInWaterOrRain
public static boolean isInWaterOrRain(net.minecraft.world.entity.Entity internal) Checks if the entity is in water or rain.- Returns:
- true if the entity is in water or rain.
-
isInWaterRainOrBubble
public static boolean isInWaterRainOrBubble(net.minecraft.world.entity.Entity internal) Checks if the entity is in water or rain or a bubble column.- Returns:
- true if the entity is in water or rain or a bubble column.
-
isInWaterOrBubble
public static boolean isInWaterOrBubble(net.minecraft.world.entity.Entity internal) Checks if the entity is in water or a bubble column.- Returns:
- true if the entity is in water or a bubble column.
-
isUnderWater
public static boolean isUnderWater(net.minecraft.world.entity.Entity internal) Checks if the entity is underwater.- Returns:
- true if the entity is underwater.
-
isInLava
public static boolean isInLava(net.minecraft.world.entity.Entity internal) Checks if the entity is in lava.- Returns:
- true if the entity is in lava.
-
moveRelative
public static void moveRelative(net.minecraft.world.entity.Entity internal, float amount, net.minecraft.world.phys.Vec3 relative) Moves the entity relative to its current position.- Parameters:
amount- The amount to move the entity by.relative- The relative position to move the entity by.
-
moveTo
public static void moveTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec) Moves the entity to the given position.- Parameters:
vec- The position to move the entity to.
-
moveTo
public static void moveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z) Moves the entity to the given position.- Parameters:
x- The x position to move the entity to.y- The y position to move the entity to.z- The z position to move the entity to.
-
moveTo
public static void moveTo(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, float yaw, float pitch) Moves the entity to the given position.- Parameters:
pos- The position to move the entity to.yaw- The yaw to move the entity to.pitch- The pitch to move the entity to.
-
moveTo
public static void moveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z, float yaw, float pitch) Moves the entity to the given position.- Parameters:
x- The x position to move the entity to.y- The y position to move the entity to.z- The z position to move the entity to.yaw- The yaw to move the entity to.pitch- The pitch to move the entity to.
-
setOldPosAndRot
public static void setOldPosAndRot(net.minecraft.world.entity.Entity internal) Sets the old position and rotation of the entity. -
distanceTo
public static float distanceTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Gets the distance to the given entity.- Parameters:
entity- The entity to get the distance to.- Returns:
- The distance to the given entity.
-
distanceToSqr
public static double distanceToSqr(net.minecraft.world.entity.Entity internal, double x, double y, double z) Gets the squared distance to the given position.- Parameters:
x- The x position to get the squared distance to.y- The y position to get the squared distance to.z- The z position to get the squared distance to.- Returns:
- The squared distance to the given position.
-
distanceToSqr
public static double distanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Gets the squared distance to the given entity.- Parameters:
entity- The entity to get the squared distance to.- Returns:
- The squared distance to the given entity.
-
distanceToSqr
public static double distanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec) Gets the squared distance to the given vector.- Parameters:
vec- The vector to get the squared distance to.- Returns:
- The squared distance to the given vector.
-
hurt
public static boolean hurt(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source, float amount) Hurts the entity with the givenDamageSourceand amount.- Parameters:
source- TheDamageSourceto hurt the entity with.amount- The amount of damage to deal.- Returns:
- true if the entity was hurt.
-
getViewVector
public static net.minecraft.world.phys.Vec3 getViewVector(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the view vector of the entity.- Parameters:
partialTicks- The partial ticks to get the view vector for.- Returns:
- The view vector of the entity.
-
getUpVector
public static net.minecraft.world.phys.Vec3 getUpVector(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the up vector of the entity.- Parameters:
partialTicks- The partial ticks to get the up vector for.- Returns:
- The up vector of the entity.
-
getEyePosition
public static net.minecraft.world.phys.Vec3 getEyePosition(net.minecraft.world.entity.Entity internal) Gets the eye position of the entity.- Returns:
- The eye position of the entity.
-
getEyePosition
public static net.minecraft.world.phys.Vec3 getEyePosition(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the eye position of the entity.- Parameters:
partialTicks- The partial ticks to get the eye position for.- Returns:
- The eye position of the entity.
-
getPosition
public static net.minecraft.world.phys.Vec3 getPosition(net.minecraft.world.entity.Entity internal, float partialTicks) Gets the position of the entity.- Parameters:
partialTicks- The partial ticks to get the position for.- Returns:
- The position of the entity.
-
isPickable
public static boolean isPickable(net.minecraft.world.entity.Entity internal) Checks if the entity is pickable.- Returns:
- true if the entity is pickable.
-
isPushable
public static boolean isPushable(net.minecraft.world.entity.Entity internal) Checks if the entity is pushable.- Returns:
- true if the entity is pushable.
-
isAlive
public static boolean isAlive(net.minecraft.world.entity.Entity internal) Checks if the entity is alive.- Returns:
- true if the entity is alive.
-
isInWall
public static boolean isInWall(net.minecraft.world.entity.Entity internal) Checks if the entity is in a wall.- Returns:
- true if the entity is in a wall.
-
canCollideWith
public static boolean canCollideWith(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other) Checks if the entity can collide with the given entity.- Parameters:
other- The entity to check if the entity can collide with.- Returns:
- true if the entity can collide with the given entity.
-
canBeCollidedWith
public static boolean canBeCollidedWith(net.minecraft.world.entity.Entity internal) Checks if the entity can be collided with.- Returns:
- true if the entity can be collided with.
-
positionRider
public static void positionRider(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Positions the rider of the entity.- Parameters:
entity- The entity to position the rider of.
-
startRiding
public static boolean startRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Starts riding the given entity.- Parameters:
entity- The entity to start riding.- Returns:
- true if the entity started riding.
-
showVehicleHealth
public static boolean showVehicleHealth(net.minecraft.world.entity.Entity internal) Checks if the entity should show vehicle health.- Returns:
- true if the entity should show vehicle health.
-
startRiding
public static boolean startRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity, boolean force) Starts riding the given entity.- Parameters:
entity- The entity to start riding.force- true if the entity should be forced to start riding.- Returns:
- true if the entity started riding.
-
ejectPassengers
public static void ejectPassengers(net.minecraft.world.entity.Entity internal) Ejects the passengers of the entity. -
removeVehicle
public static void removeVehicle(net.minecraft.world.entity.Entity internal) Removes the vehicle of the entity. -
stopRiding
public static void stopRiding(net.minecraft.world.entity.Entity internal) Stops riding the entity. -
getLookAngle
public static net.minecraft.world.phys.Vec3 getLookAngle(net.minecraft.world.entity.Entity internal) Gets the look angle of the entity.- Returns:
- The look angle of the entity.
-
getForward
public static net.minecraft.world.phys.Vec3 getForward(net.minecraft.world.entity.Entity internal) Gets the forward vector of the entity.- Returns:
- The forward vector of the entity.
-
getDimensionChangingDelay
public static int getDimensionChangingDelay(net.minecraft.world.entity.Entity internal) Gets the dimension changing delay of the entity.- Returns:
- The dimension changing delay of the entity.
-
isOnFire
public static boolean isOnFire(net.minecraft.world.entity.Entity internal) Checks if the entity is on fire.- Returns:
- true if the entity is on fire.
-
isPassenger
public static boolean isPassenger(net.minecraft.world.entity.Entity internal) Checks if the entity is a passenger.- Returns:
- true if the entity is a passenger.
-
isVehicle
public static boolean isVehicle(net.minecraft.world.entity.Entity internal) Checks if the entity is a vehicle.- Returns:
- true if the entity is a vehicle.
-
dismountsUnderwater
public static boolean dismountsUnderwater(net.minecraft.world.entity.Entity internal) Checks if the entity dismounts underwater.- Returns:
- true if the entity dismounts underwater.
-
setShiftKeyDown
public static void setShiftKeyDown(net.minecraft.world.entity.Entity internal, boolean keyDown) Sets the shift key down state of the entity.- Parameters:
keyDown- true if the shift key is down.
-
isShiftKeyDown
public static boolean isShiftKeyDown(net.minecraft.world.entity.Entity internal) Checks if the shift key is down.- Returns:
- true if the shift key is down.
-
isSteppingCarefully
public static boolean isSteppingCarefully(net.minecraft.world.entity.Entity internal) Checks if the entity is stepping carefully.- Returns:
- true if the entity is stepping carefully.
-
isSuppressingBounce
public static boolean isSuppressingBounce(net.minecraft.world.entity.Entity internal) Checks if the entity is suppressing bounce.- Returns:
- true if the entity is suppressing bounce.
-
isDiscrete
public static boolean isDiscrete(net.minecraft.world.entity.Entity internal) Checks if the entity is being discrete.- Returns:
- true if the entity is being discrete.
-
isDescending
public static boolean isDescending(net.minecraft.world.entity.Entity internal) Checks if the entity is descending.- Returns:
- true if the entity is descending.
-
isCrouching
public static boolean isCrouching(net.minecraft.world.entity.Entity internal) Checks if the entity is crouching.- Returns:
- true if the entity is crouching.
-
isSprinting
public static boolean isSprinting(net.minecraft.world.entity.Entity internal) Checks if the entity is sprinting.- Returns:
- true if the entity is sprinting.
-
setSprinting
public static void setSprinting(net.minecraft.world.entity.Entity internal, boolean sprinting) Sets the sprinting state of the entity.- Parameters:
sprinting- true if the entity should be sprinting.
-
isSwimming
public static boolean isSwimming(net.minecraft.world.entity.Entity internal) Checks if the entity is swimming.- Returns:
- true if the entity is swimming.
-
isVisuallySwimming
public static boolean isVisuallySwimming(net.minecraft.world.entity.Entity internal) Checks if the entity is visually swimming.- Returns:
- true if the entity is visually swimming.
-
isVisuallyCrawling
public static boolean isVisuallyCrawling(net.minecraft.world.entity.Entity internal) Checks if the entity is visually crawling.- Returns:
- true if the entity is visually crawling.
-
setSwimming
public static void setSwimming(net.minecraft.world.entity.Entity internal, boolean swimming) Sets the swimming state of the entity.- Parameters:
swimming- true if the entity should be swimming.
-
hasGlowingTag
public static boolean hasGlowingTag(net.minecraft.world.entity.Entity internal) Checks if the entity is currently glowing.- Returns:
- true if the entity is currently glowing.
-
setGlowingTag
public static void setGlowingTag(net.minecraft.world.entity.Entity internal, boolean glowing) Makes the entity glow.- Parameters:
glowing- true if the entity should be glowing.
-
isCurrentlyGlowing
public static boolean isCurrentlyGlowing(net.minecraft.world.entity.Entity internal) Checks if the entity is currently glowing.- Returns:
- true if the entity is currently glowing.
-
isInvisible
public static boolean isInvisible(net.minecraft.world.entity.Entity internal) Checks if the entity is invisible.- Returns:
- true if the entity is invisible.
-
isInvisibleTo
public static boolean isInvisibleTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.player.Player player) Checks if the entity is invisible to the givenPlayer.- Parameters:
player- The player to check.- Returns:
- true if the entity is invisible to the player.
-
setInvisible
public static void setInvisible(net.minecraft.world.entity.Entity internal, boolean invisible) Sets the invisible state of the entity.- Parameters:
invisible- true if the entity should be invisible.
-
getMaxAirSupply
public static int getMaxAirSupply(net.minecraft.world.entity.Entity internal) Gets the maximum air supply of the entity.- Returns:
- The maximum air supply of the entity.
-
getAirSupply
public static int getAirSupply(net.minecraft.world.entity.Entity internal) Gets the current air supply of the entity.- Returns:
- The current air supply of the entity.
-
setAirSupply
public static void setAirSupply(net.minecraft.world.entity.Entity internal, int air) Sets the air supply of the entity.- Parameters:
air- The new air supply of the entity.
-
getTicksFrozen
public static int getTicksFrozen(net.minecraft.world.entity.Entity internal) Gets the number of ticks the entity has been frozen.- Returns:
- The number of ticks the entity has been frozen.
-
setTicksFrozen
public static void setTicksFrozen(net.minecraft.world.entity.Entity internal, int ticks) Sets the number of ticks the entity has been frozen.- Parameters:
ticks- The new number of ticks the entity has been frozen.
-
getPercentFrozen
public static float getPercentFrozen(net.minecraft.world.entity.Entity internal) Gets the percent the entity is frozen.- Returns:
- The percent the entity is frozen.
-
isFullyFrozen
public static boolean isFullyFrozen(net.minecraft.world.entity.Entity internal) Checks if the entity is fully frozen.- Returns:
- true if the entity is fully frozen.
-
getTicksRequiredToFreeze
public static int getTicksRequiredToFreeze(net.minecraft.world.entity.Entity internal) Gets the number of ticks required to freeze the entity.- Returns:
- The number of ticks required to freeze the entity.
-
getName
public static net.minecraft.network.chat.Component getName(net.minecraft.world.entity.Entity internal) Gets the name of the entity.- Returns:
- The name of the entity.
-
isAttackable
public static boolean isAttackable(net.minecraft.world.entity.Entity internal) Checks if the entity is attackable.- Returns:
- true if the entity is attackable.
-
isInvulnerableTo
public static boolean isInvulnerableTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source) Checks if the entity is invulnerable to the givenDamageSource.- Parameters:
source- The damage source to check.- Returns:
- true if the entity is invulnerable to the damage source.
-
isInvulnerable
public static boolean isInvulnerable(net.minecraft.world.entity.Entity internal) Checks if the entity is invulnerable.- Returns:
- true if the entity is invulnerable.
-
setInvulnerable
public static void setInvulnerable(net.minecraft.world.entity.Entity internal, boolean invulnerable) Sets the invulnerable state of the entity.- Parameters:
invulnerable- true if the entity should be invulnerable.
-
getMaxFallDistance
public static int getMaxFallDistance(net.minecraft.world.entity.Entity internal) Gets the maximum fall distance of the entity.- Returns:
- The maximum fall distance of the entity.
-
getStringUUID
Gets the UUID of the entity as a string.- Returns:
- The UUID of the entity as a string.
-
isPushedByFluid
public static boolean isPushedByFluid(net.minecraft.world.entity.Entity internal) Checks if the entity is pushed by fluid.- Returns:
- true if the entity is pushed by fluid.
-
getDisplayName
public static net.minecraft.network.chat.Component getDisplayName(net.minecraft.world.entity.Entity internal) Gets the display name of the entity.- Returns:
- The display name of the entity.
-
setCustomName
public static void setCustomName(net.minecraft.world.entity.Entity internal, net.minecraft.network.chat.Component name) Sets the custom name of the entity.- Parameters:
name- The new custom name of the entity.
-
getCustomName
public static net.minecraft.network.chat.Component getCustomName(net.minecraft.world.entity.Entity internal) Gets the custom name of the entity.- Returns:
- The custom name of the entity.
-
hasCustomName
public static boolean hasCustomName(net.minecraft.world.entity.Entity internal) Checks if the entity has a custom name.- Returns:
- true if the entity has a custom name.
-
setCustomNameVisible
public static void setCustomNameVisible(net.minecraft.world.entity.Entity internal, boolean visible) Sets the custom name visible state of the entity.- Parameters:
visible- true if the custom name should be visible.
-
isCustomNameVisible
public static boolean isCustomNameVisible(net.minecraft.world.entity.Entity internal) Checks if the custom name of the entity is visible.- Returns:
- true if the custom name is visible.
-
teleportTo
public static void teleportTo(net.minecraft.world.entity.Entity internal, double x, double y, double z) Teleports the entity to the given position.- Parameters:
x- The x coordinate to teleport to.y- The y coordinate to teleport to.z- The z coordinate to teleport to.
-
shouldShowName
public static boolean shouldShowName(net.minecraft.world.entity.Entity internal) Checks if the entity should show its name.- Returns:
- true if the entity should show its name.
-
getDirection
public static net.minecraft.core.Direction getDirection(net.minecraft.world.entity.Entity internal) Gets the direction of the entity.- Returns:
- The direction of the entity.
-
getMotionDirection
public static net.minecraft.core.Direction getMotionDirection(net.minecraft.world.entity.Entity internal) Gets the motion direction of the entity.- Returns:
- The motion direction of the entity.
-
getBoundingBoxForCulling
public static net.minecraft.world.phys.AABB getBoundingBoxForCulling(net.minecraft.world.entity.Entity internal) Gets the bounding box for culling of the entity.- Returns:
- The bounding box for culling of the entity.
-
getEyeHeight
public static float getEyeHeight(net.minecraft.world.entity.Entity internal) Gets the eye height of the entity.- Returns:
- The eye height of the entity.
-
getCommandSenderWorld
public static net.minecraft.world.level.Level getCommandSenderWorld(net.minecraft.world.entity.Entity internal) Gets theLevelused when sending commands as this entity.- Returns:
- The
Levelused when sending commands as this entity.
-
getControllingPassenger
public static net.minecraft.world.entity.Entity getControllingPassenger(net.minecraft.world.entity.Entity internal) Gets the controlling passenger of the entity.- Returns:
- The controlling passenger of the entity.
-
getPassengers
public static List<net.minecraft.world.entity.Entity> getPassengers(net.minecraft.world.entity.Entity internal) Gets the passengers of the entity.- Returns:
- The passengers of the entity.
-
getFirstPassenger
public static net.minecraft.world.entity.Entity getFirstPassenger(net.minecraft.world.entity.Entity internal) Gets the first passenger of the entity.- Returns:
- The first passenger of the entity.
-
hasPassenger
public static boolean hasPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Checks if the entity has a passenger.- Parameters:
entity- The entity to check.- Returns:
- true if the entity has the given passenger.
-
hasPassenger
public static boolean hasPassenger(net.minecraft.world.entity.Entity internal, Predicate<net.minecraft.world.entity.Entity> predicate) Checks if the entity has a passenger that matches the given predicate.- Parameters:
predicate- The predicate to check.- Returns:
- true if the entity has a passenger that matches the predicate.
-
hasExactlyOnePlayerPassenger
public static boolean hasExactlyOnePlayerPassenger(net.minecraft.world.entity.Entity internal) Checks if the entity has exactly one player passenger.- Returns:
- true if the entity has exactly one player passenger.
-
getRootVehicle
public static net.minecraft.world.entity.Entity getRootVehicle(net.minecraft.world.entity.Entity internal) Gets the root vehicle of the entity.- Returns:
- The root vehicle of the entity.
-
isPassengerOfSameVehicle
public static boolean isPassengerOfSameVehicle(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Checks if the entity is a passenger of the same vehicle.- Parameters:
entity- The entity to check.- Returns:
- true if the entity is a passenger of the same vehicle.
-
hasIndirectPassenger
public static boolean hasIndirectPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity) Checks if the entity has an indirect passenger.- Parameters:
entity- The entity to check.- Returns:
- true if the entity has an indirect passenger.
-
getVehicle
public static net.minecraft.world.entity.Entity getVehicle(net.minecraft.world.entity.Entity internal) Gets the vehicle of the entity.- Returns:
- The vehicle of the entity.
-
getPistonPushReaction
public static net.minecraft.world.level.material.PushReaction getPistonPushReaction(net.minecraft.world.entity.Entity internal) Gets the piston push reaction of the entity.- Returns:
- The piston push reaction of the entity.
-
getSoundSource
public static net.minecraft.sounds.SoundSource getSoundSource(net.minecraft.world.entity.Entity internal) Gets theSoundSourceof the entity.- Returns:
- The sound source of the entity.
-
getFluidJumpThreshold
public static double getFluidJumpThreshold(net.minecraft.world.entity.Entity internal) Gets the fluid jump threshold of the entity.- Returns:
- The fluid jump threshold of the entity.
-
getBbWidth
public static float getBbWidth(net.minecraft.world.entity.Entity internal) Gets the width of the bounding box of the entity.- Returns:
- The width of the bounding box of the entity.
-
getBbHeight
public static float getBbHeight(net.minecraft.world.entity.Entity internal) Gets the height of the bounding box of the entity.- Returns:
- The height of the bounding box of the entity.
-
position
public static net.minecraft.world.phys.Vec3 position(net.minecraft.world.entity.Entity internal) Gets the position of the entity.- Returns:
- The position of the entity.
-
blockPosition
public static net.minecraft.core.BlockPos blockPosition(net.minecraft.world.entity.Entity internal) Gets thepositionof the entity.- Returns:
- The block position of the entity.
-
getInBlockState
public static net.minecraft.world.level.block.state.BlockState getInBlockState(net.minecraft.world.entity.Entity internal) Gets theBlockStatethat this entity is currently inside.- Returns:
- The block state that this entity is currently inside
-
getBlockX
public static int getBlockX(net.minecraft.world.entity.Entity internal) Gets the x coordinate of the entity.- Returns:
- The x coordinate of the entity.
-
getX
public static double getX(net.minecraft.world.entity.Entity internal) Gets the x coordinate of the entity.- Returns:
- The x coordinate of the entity.
-
getX
public static double getX(net.minecraft.world.entity.Entity internal, double scale) Gets the x coordinate of the entity with the given scale.- Parameters:
scale- The scale to get the x coordinate of the entity.- Returns:
- The x coordinate of the entity.
-
getBlockY
public static int getBlockY(net.minecraft.world.entity.Entity internal) Gets the y coordinate of the entity.- Returns:
- The y coordinate of the entity.
-
getY
public static double getY(net.minecraft.world.entity.Entity internal) Gets the y coordinate of the entity.- Returns:
- The y coordinate of the entity.
-
getY
public static double getY(net.minecraft.world.entity.Entity internal, double scale) Gets the y coordinate of the entity with the given scale.- Parameters:
scale- The scale to get the y coordinate of the entity.- Returns:
- The y coordinate of the entity.
-
getEyeY
public static double getEyeY(net.minecraft.world.entity.Entity internal) Gets the y coordinate of the entity's eyes.- Returns:
- The y coordinate of the entity's eyes.
-
getBlockZ
public static int getBlockZ(net.minecraft.world.entity.Entity internal) Gets the z coordinate of the entity.- Returns:
- The z coordinate of the entity.
-
getZ
public static double getZ(net.minecraft.world.entity.Entity internal) Gets the z coordinate of the entity.- Returns:
- The z coordinate of the entity.
-
getZ
public static double getZ(net.minecraft.world.entity.Entity internal, double scale) Gets the z coordinate of the entity with the given scale.- Parameters:
scale- The scale to get the z coordinate of the entity.- Returns:
- The z coordinate of the entity.
-
setPosRaw
public static void setPosRaw(net.minecraft.world.entity.Entity internal, double x, double y, double z) Sets the position of the entity to the given coordinates.- Parameters:
x- The x coordinate to set the position to.y- The y coordinate to set the position to.z- The z coordinate to set the position to.
-
setIsInPowderSnow
public static void setIsInPowderSnow(net.minecraft.world.entity.Entity internal, boolean inPowderSnow) Sets whether the entity is in powder snow.- Parameters:
inPowderSnow- Whether the entity is in powder snow.
-
canFreeze
public static boolean canFreeze(net.minecraft.world.entity.Entity internal) Checks if the entity can freeze.- Returns:
- Whether the entity can freeze.
-
isRemoved
public static boolean isRemoved(net.minecraft.world.entity.Entity internal) Checks if the entity has been removed.- Returns:
- Whether the entity has been removed.
-
getData
Gets the NBT data of this Entity.- Returns:
- The NBT data of this Entity.
-
updateData
Updates the NBT data of this Entity.- Parameters:
data- The new Data for this Entity- DocParam:
- data {key: "value"}
-
getCustomData
Gets the custom NBT data for this Entity.- Returns:
- The custom data for this Entity.
-
updateCustomData
Updates the custom NBT data for this Entity.- Parameters:
data- The custom data to store.- DocParam:
- data {custom: "data"}
-
getDeltaMovement
public static net.minecraft.world.phys.Vec3 getDeltaMovement(net.minecraft.world.entity.Entity internal) Gets the delta movement of the entity.- Returns:
- The delta movement of the entity.
-
setDeltaMovement
public static void setDeltaMovement(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 deltaMovement) Sets the delta movement of the entity.- Parameters:
deltaMovement- The delta movement to set.
-
setDeltaMovement
public static void setDeltaMovement(net.minecraft.world.entity.Entity internal, double xDelta, double yDelta, double zDelta) Sets the delta movement of the entity.- Parameters:
xDelta- The x delta movement to set.yDelta- The y delta movement to set.zDelta- The z delta movement to set.
-
getRegistryName
public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.entity.Entity internal) Gets the registry name of the entity.- Returns:
- The registry name of the entity.
-