If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.entity.type.projectile . FishingHook;
FishingHook extends Projectile
.
FishingHook
implements the following interfaces:
Nameable
,EntityAccess
,CommandSource
,IAttachmentHolder
Undocumented Interfaces TraceableEntity
, SyncedDataHolder
, ScoreHolder
, IEntityExtension
, INBTSerializable <CompoundTag >
Checks if the commands from this source should return failure messages // FishingHook.acceptsFailure as bool
myFishingHook . acceptsFailure
Return Type:
bool
Checks if the commands from this source should return failure messages Returns : True if the commands from this source should return failure messages, false otherwise.
// FishingHook.acceptsFailure() as bool;
myFishingHook . acceptsFailure();
Return Type:
bool
Checks if the commands from this source should return successful messages // FishingHook.acceptsSuccess as bool
myFishingHook . acceptsSuccess
Return Type:
bool
Checks if the commands from this source should return successful messages Returns : True if the commands from this source should return successful messages, false otherwise.
// FishingHook.acceptsSuccess() as bool;
myFishingHook . acceptsSuccess();
Return Type:
bool
Adds a tag to the entity, returning false if the entity has over 1024 Returns : true if the tag was added.
// FishingHook.addTag(tagName as string) as bool;
myFishingHook . addTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to add.
Return Type:
bool
Gets the current air supply of the entity. // FishingHook.airSupply as int
Return Type:
int
Gets the current air supply of the entity. Returns : The current air supply of the entity.
// FishingHook.airSupply() as int;
myFishingHook . airSupply();
Return Type:
int
Checks if the command source always accepts. // FishingHook.alwaysAccepts as bool
myFishingHook . alwaysAccepts
Return Type:
bool
Checks if the command source always accepts. Returns : True if the command source always accepts, false otherwise.
// FishingHook.alwaysAccepts() as bool;
myFishingHook . alwaysAccepts();
Return Type:
bool
Gets the height of the bounding box of the entity. // FishingHook.bbHeight as float
Return Type:
float
Gets the height of the bounding box of the entity. Returns : The height of the bounding box of the entity.
// FishingHook.bbHeight() as float;
myFishingHook . bbHeight();
Return Type:
float
Gets the width of the bounding box of the entity. // FishingHook.bbWidth as float
Return Type:
float
Gets the width of the bounding box of the entity. Returns : The width of the bounding box of the entity.
// FishingHook.bbWidth() as float;
Return Type:
float
Gets the BlockPos
of the entity. myFishingHook . blockPosiion
Return Type:
BlockPos
Gets the BlockPos
of the entity. Returns : The BlockPos
of the entity.
// FishingHook.blockPosiion() as BlockPos ; myFishingHook . blockPosiion();
Return Type:
BlockPos
Gets the position
of the entity. // FishingHook.blockPosition as BlockPos myFishingHook . blockPosition
Return Type:
BlockPos
Gets the position
of the entity. Returns : The block position of the entity.
// FishingHook.blockPosition() as BlockPos ; myFishingHook . blockPosition();
Return Type:
BlockPos
Gets the x coordinate of the entity. // FishingHook.blockX as int
Return Type:
int
Gets the x coordinate of the entity. Returns : The x coordinate of the entity.
// FishingHook.blockX() as int;
Return Type:
int
Gets the y coordinate of the entity. // FishingHook.blockY as int
Return Type:
int
Gets the y coordinate of the entity. Returns : The y coordinate of the entity.
// FishingHook.blockY() as int;
Return Type:
int
Gets the z coordinate of the entity. // FishingHook.blockZ as int
Return Type:
int
Gets the z coordinate of the entity. Returns : The z coordinate of the entity.
// FishingHook.blockZ() as int;
Return Type:
int
Gets the bounding box of the entity. // FishingHook.boundingBox as AABB myFishingHook . boundingBox
Return Type:
AABB
Gets the bounding box of the entity. Returns : The bounding box of the entity.
// FishingHook.boundingBox() as AABB ; myFishingHook . boundingBox();
Return Type:
AABB
Gets the bounding box for culling of the entity. // FishingHook.boundingBoxForCulling as AABB myFishingHook . boundingBoxForCulling
Return Type:
AABB
Gets the bounding box for culling of the entity. Returns : The bounding box for culling of the entity.
// FishingHook.boundingBoxForCulling() as AABB ; myFishingHook . boundingBoxForCulling();
Return Type:
AABB
Checks if the entity can be collided with. // FishingHook.canBeCollidedWith as bool
myFishingHook . canBeCollidedWith
Return Type:
bool
Checks if the entity can be collided with. Returns : true if the entity can be collided with.
// FishingHook.canBeCollidedWith() as bool;
myFishingHook . canBeCollidedWith();
Return Type:
bool
Checks if the entity can collide with the given entity. Returns : true if the entity can collide with the given entity.
// FishingHook.canCollideWith(other as Entity ) as bool; myFishingHook . canCollideWith(myEntity);
Parameters:
other: Entity
Type: Entity
- The entity to check if the entity can collide with.
Return Type:
bool
Checks if the entity can freeze. // FishingHook.canFreeze as bool
Return Type:
bool
Checks if the entity can freeze. Returns : Whether the entity can freeze.
// FishingHook.canFreeze() as bool;
myFishingHook . canFreeze();
Return Type:
bool
Clears the fire of the entity. // FishingHook.clearFire();
myFishingHook . clearFire();
Checks if the entity is closer than the given distance to another entity. Returns : true if the entity is closer than the given distance to the other entity.
// FishingHook.closerThan(other as Entity , distance as double) as bool; myFishingHook . closerThan(myEntity, myDouble);
Parameters:
other: Entity
Type: Entity
- The other entity to check the distance to. distance: double
Type: double
- The distance to check.
Return Type:
bool
Gets the Level
used when sending commands as this entity. // FishingHook.commandSenderWorld as Level myFishingHook . commandSenderWorld
Return Type:
Level
Gets the Level
used when sending commands as this entity. Returns : The Level
used when sending commands as this entity.
// FishingHook.commandSenderWorld() as Level ; myFishingHook . commandSenderWorld();
Return Type:
Level
Gets the controlling passenger of the entity. // FishingHook.controllingPassenger as Entity myFishingHook . controllingPassenger
Return Type:
Entity
Gets the controlling passenger of the entity. Returns : The controlling passenger of the entity.
// FishingHook.controllingPassenger() as Entity ; myFishingHook . controllingPassenger();
Return Type:
Entity
Gets the custom NBT data for this Entity. // FishingHook.customData as MapData
Return Type:
MapData
Gets the custom NBT data for this Entity. Returns : The custom data for this Entity.
// FishingHook.customData() as MapData ; myFishingHook . customData();
Return Type:
MapData
Gets the custom name of the entity.
Return Type:
Component
Gets the custom name of the entity. Returns : The custom name of the entity.
myFishingHook . customName();
Return Type:
Component
myFishingHook . customName();
Return Type:
Component
Checks if the entity dampens vibrations, such as net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag. // FishingHook.dampensVibrations as bool
myFishingHook . dampensVibrations
Return Type:
bool
Checks if the entity dampens vibrations, such as net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag. Returns : true if the entity dampens vibrations.
// FishingHook.dampensVibrations() as bool;
myFishingHook . dampensVibrations();
Return Type:
bool
Gets the NBT data of this Entity.
Return Type:
MapData
Gets the NBT data of this Entity. Returns : The NBT data of this Entity.
Return Type:
MapData
Gets the delta movement of the entity. // FishingHook.deltaMovement as Vec3 myFishingHook . deltaMovement
Return Type:
Vec3
Sets the delta movement of the entity. // FishingHook.deltaMovement = (deltaMovement as Vec3 ); myFishingHook . deltaMovement = myVec3;
Parameters:
deltaMovement: Vec3
Type: Vec3
- The delta movement to set. Gets the delta movement of the entity. Returns : The delta movement of the entity.
// FishingHook.deltaMovement() as Vec3 ; myFishingHook . deltaMovement();
Return Type:
Vec3
Sets the delta movement of the entity. // FishingHook.deltaMovement(deltaMovement as Vec3 ); myFishingHook . deltaMovement(myVec3);
Parameters:
deltaMovement: Vec3
Type: Vec3
- The delta movement to set. Gets the dimension changing delay of the entity. // FishingHook.dimensionChangingDelay as int
myFishingHook . dimensionChangingDelay
Return Type:
int
Gets the dimension changing delay of the entity. Returns : The dimension changing delay of the entity.
// FishingHook.dimensionChangingDelay() as int;
myFishingHook . dimensionChangingDelay();
Return Type:
int
Gets the direction of the entity.
Return Type:
Direction
Gets the direction of the entity. Returns : The direction of the entity.
myFishingHook . direction();
Return Type:
Direction
Discards the entity. // FishingHook.discard();
Checks if the entity dismounts underwater. // FishingHook.dismountsUnderwater as bool
myFishingHook . dismountsUnderwater
Return Type:
bool
Checks if the entity dismounts underwater. Returns : true if the entity dismounts underwater.
// FishingHook.dismountsUnderwater() as bool;
myFishingHook . dismountsUnderwater();
Return Type:
bool
Gets the display name of the entity. myFishingHook . displayName
Return Type:
Component
myFishingHook . displayName
Return Type:
Component
Gets the display name of the entity. Returns : The display name of the entity.
myFishingHook . displayName();
Return Type:
Component
myFishingHook . displayName();
Return Type:
Component
Gets the distance to the given entity. Returns : The distance to the given entity.
// FishingHook.distanceTo(entity as Entity ) as float; myFishingHook . distanceTo(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to get the distance to.
Return Type:
float
Gets the squared distance to the given position. Returns : The squared distance to the given position.
// FishingHook.distanceToSqr(x as double, y as double, z as double) as double;
myFishingHook . distanceToSqr(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to get the squared distance to.
y: double
Type: double
- The y position to get the squared distance to.
z: double
Type: double
- The z position to get the squared distance to.
Return Type:
double
Gets the squared distance to the given entity. Returns : The squared distance to the given entity.
// FishingHook.distanceToSqr(entity as Entity ) as double; myFishingHook . distanceToSqr(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to get the squared distance to.
Return Type:
double
Gets the squared distance to the given vector. Returns : The squared distance to the given vector.
// FishingHook.distanceToSqr(vec as Vec3 ) as double; myFishingHook . distanceToSqr(myVec3);
Parameters:
vec: Vec3
Type: Vec3
- The vector to get the squared distance to.
Return Type:
double
Gets the effect source of the projectile. // FishingHook.effectSource as Entity myFishingHook . effectSource
Return Type:
Entity
Gets the effect source of the projectile. Returns : The effect source of the projectile.
// FishingHook.effectSource() as Entity ; myFishingHook . effectSource();
Return Type:
Entity
Ejects the passengers of the entity. // FishingHook.ejectPassengers();
myFishingHook . ejectPassengers();
Gets the eye height of the entity. // FishingHook.eyeHeight as float
Return Type:
float
Gets the eye height of the entity. Returns : The eye height of the entity.
// FishingHook.eyeHeight() as float;
myFishingHook . eyeHeight();
Return Type:
float
Gets the eye position of the entity. // FishingHook.eyePosition as Vec3 myFishingHook . eyePosition
Return Type:
Vec3
Gets the eye position of the entity. Returns : The eye position of the entity.
// FishingHook.eyePosition() as Vec3 ; myFishingHook . eyePosition();
Return Type:
Vec3
Gets the y coordinate of the entity's eyes. // FishingHook.eyeY as double
Return Type:
double
Gets the y coordinate of the entity's eyes. Returns : The y coordinate of the entity's eyes.
// FishingHook.eyeY() as double;
Return Type:
double
Checks if the entity is fire immune. // FishingHook.fireImmune as bool
Return Type:
bool
Checks if the entity is fire immune. Returns : true if the entity is fire immune.
// FishingHook.fireImmune() as bool;
myFishingHook . fireImmune();
Return Type:
bool
Gets the remaining fire ticks of the entity. // FishingHook.fireTicks as int
Return Type:
int
Sets the remaining fire ticks of the entity. // FishingHook.fireTicks = (ticks as int);
myFishingHook . fireTicks = myInt;
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to.
Sets the remaining fire ticks of the entity. // FishingHook.fireTicks(ticks as int);
myFishingHook . fireTicks(myInt);
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to.
Gets the remaining fire ticks of the entity. Returns : The remaining fire ticks of the entity.
// FishingHook.fireTicks() as int;
myFishingHook . fireTicks();
Return Type:
int
Gets the first passenger of the entity. // FishingHook.firstPassenger as Entity myFishingHook . firstPassenger
Return Type:
Entity
Gets the first passenger of the entity. Returns : The first passenger of the entity.
// FishingHook.firstPassenger() as Entity ; myFishingHook . firstPassenger();
Return Type:
Entity
Gets the fluid jump threshold of the entity. // FishingHook.fluidJumpThreshold as double
myFishingHook . fluidJumpThreshold
Return Type:
double
Gets the fluid jump threshold of the entity. Returns : The fluid jump threshold of the entity.
// FishingHook.fluidJumpThreshold() as double;
myFishingHook . fluidJumpThreshold();
Return Type:
double
Gets the forward vector of the entity. // FishingHook.forward as Vec3
Return Type:
Vec3
Gets the forward vector of the entity. Returns : The forward vector of the entity.
// FishingHook.forward() as Vec3 ;
Return Type:
Vec3
myFishingHook . getAttachmentData < T>(myAttachmentType);
Return Type:
T
// FishingHook.getAttachmentData<T>(type as Supplier< AttachmentType <T>>) as T; myFishingHook . getAttachmentData < T>(mySupplier);
Return Type:
T
Gets the eye position of the entity. Returns : The eye position of the entity.
// FishingHook.getEyePosition(partialTicks as float) as Vec3 ; myFishingHook . getEyePosition(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the eye position for.
Return Type:
Vec3
Gets the position of the entity. Returns : The position of the entity.
// FishingHook.getPosition(partialTicks as float) as Vec3 ; myFishingHook . getPosition(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the position for.
Return Type:
Vec3
Gets the up vector of the entity. Returns : The up vector of the entity.
// FishingHook.getUpVector(partialTicks as float) as Vec3 ; myFishingHook . getUpVector(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the up vector for.
Return Type:
Vec3
Gets the view vector of the entity. Returns : The view vector of the entity.
// FishingHook.getViewVector(partialTicks as float) as Vec3 ; myFishingHook . getViewVector(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the view vector for.
Return Type:
Vec3
Gets the x coordinate of the entity with the given scale. Returns : The x coordinate of the entity.
// FishingHook.getX(scale as double) as double;
myFishingHook . getX(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the x coordinate of the entity.
Return Type:
double
Gets the y coordinate of the entity with the given scale. Returns : The y coordinate of the entity.
// FishingHook.getY(scale as double) as double;
myFishingHook . getY(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the y coordinate of the entity.
Return Type:
double
Gets the z coordinate of the entity with the given scale. Returns : The z coordinate of the entity.
// FishingHook.getZ(scale as double) as double;
myFishingHook . getZ(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the z coordinate of the entity.
Return Type:
double
// FishingHook.hasAttachmentData<T>(type as AttachmentType <T>) as bool; myFishingHook . hasAttachmentData < T>(myAttachmentType);
Return Type:
bool
// FishingHook.hasAttachmentData<T>(type as Supplier< AttachmentType <T>>) as bool; myFishingHook . hasAttachmentData < T>(mySupplier);
Return Type:
bool
Checks if the entity has a custom name. // FishingHook.hasCustomName as bool
myFishingHook . hasCustomName
Return Type:
bool
// FishingHook.hasCustomName as bool
myFishingHook . hasCustomName
Return Type:
bool
Checks if the entity has a custom name. Returns : true if the entity has a custom name.
// FishingHook.hasCustomName() as bool;
myFishingHook . hasCustomName();
Return Type:
bool
// FishingHook.hasCustomName() as bool;
myFishingHook . hasCustomName();
Return Type:
bool
Checks if the entity has exactly one player passenger. // FishingHook.hasExactlyOnePlayerPassenger as bool
myFishingHook . hasExactlyOnePlayerPassenger
Return Type:
bool
Checks if the entity has exactly one player passenger. Returns : true if the entity has exactly one player passenger.
// FishingHook.hasExactlyOnePlayerPassenger() as bool;
myFishingHook . hasExactlyOnePlayerPassenger();
Return Type:
bool
Checks if the entity is currently glowing. // FishingHook.hasGlowingTag as bool
myFishingHook . hasGlowingTag
Return Type:
bool
Checks if the entity is currently glowing. Returns : true if the entity is currently glowing.
// FishingHook.hasGlowingTag() as bool;
myFishingHook . hasGlowingTag();
Return Type:
bool
Checks if the entity has an indirect passenger. Returns : true if the entity has an indirect passenger.
// FishingHook.hasIndirectPassenger(entity as Entity ) as bool; myFishingHook . hasIndirectPassenger(myEntity);
Return Type:
bool
Checks if the entity has a passenger. Returns : true if the entity has the given passenger.
// FishingHook.hasPassenger(entity as Entity ) as bool; myFishingHook . hasPassenger(myEntity);
Return Type:
bool
Checks if the entity has a passenger that matches the given predicate. Returns : true if the entity has a passenger that matches the predicate.
// FishingHook.hasPassenger(predicate as function(t as Entity ) as bool) as bool; myFishingHook . hasPassenger(myPredicate);
Parameters:
predicate: function(t as Entity ) as bool
Type: function(t as Entity ) as bool
- The predicate to check.
Return Type:
bool
Hurts the entity with the given DamageSource
and amount. Returns : true if the entity was hurt.
// FishingHook.hurt(source as DamageSource , amount as float) as bool; myFishingHook . hurt(myDamageSource, myFloat);
Parameters:
amount: float
Type: float
- The amount of damage to deal.
Return Type:
bool
Gets the ID of the entity.
Return Type:
int
Gets the ID of the entity. Returns : The ID of the entity.
// FishingHook.id() as int;
Return Type:
int
Gets the BlockState
that this entity is currently inside. myFishingHook . inBlockState
Return Type:
BlockState
Gets the BlockState
that this entity is currently inside. Returns : The block state that this entity is currently inside
myFishingHook . inBlockState();
Return Type:
BlockState
Checks if the entity is alive. // FishingHook.isAlive as bool
Return Type:
bool
Checks if the entity is alive. Returns : true if the entity is alive.
// FishingHook.isAlive() as bool;
Return Type:
bool
Checks if the entity is always ticking. // FishingHook.isAlwaysTicking as bool
myFishingHook . isAlwaysTicking
Return Type:
bool
Checks if the entity is always ticking. Returns : true if the entity is always ticking.
// FishingHook.isAlwaysTicking() as bool;
myFishingHook . isAlwaysTicking();
Return Type:
bool
Checks if the entity is attackable. // FishingHook.isAttackable as bool
myFishingHook . isAttackable
Return Type:
bool
Checks if the entity is attackable. Returns : true if the entity is attackable.
// FishingHook.isAttackable() as bool;
myFishingHook . isAttackable();
Return Type:
bool
Checks if this entity is colliding with the given BlockState
at the given BlockPos
. Returns : true if the entity is colliding with the block.
myFishingHook . isColliding(myBlockPos, myBlockState);
Return Type:
bool
Checks if the entity is crouching. // FishingHook.isCrouching as bool
myFishingHook . isCrouching
Return Type:
bool
Checks if the entity is crouching. Returns : true if the entity is crouching.
// FishingHook.isCrouching() as bool;
myFishingHook . isCrouching();
Return Type:
bool
Checks if the entity is currently glowing. // FishingHook.isCurrentlyGlowing as bool
myFishingHook . isCurrentlyGlowing
Return Type:
bool
Checks if the entity is currently glowing. Returns : true if the entity is currently glowing.
// FishingHook.isCurrentlyGlowing() as bool;
myFishingHook . isCurrentlyGlowing();
Return Type:
bool
Checks if the custom name of the entity is visible. // FishingHook.isCustomNameVisible as bool
myFishingHook . isCustomNameVisible
Return Type:
bool
Checks if the custom name of the entity is visible. Returns : true if the custom name is visible.
// FishingHook.isCustomNameVisible() as bool;
myFishingHook . isCustomNameVisible();
Return Type:
bool
Checks if the entity is descending. // FishingHook.isDescending as bool
myFishingHook . isDescending
Return Type:
bool
Checks if the entity is descending. Returns : true if the entity is descending.
// FishingHook.isDescending() as bool;
myFishingHook . isDescending();
Return Type:
bool
Checks if the entity is being discrete. // FishingHook.isDiscrete as bool
Return Type:
bool
Checks if the entity is being discrete. Returns : true if the entity is being discrete.
// FishingHook.isDiscrete() as bool;
myFishingHook . isDiscrete();
Return Type:
bool
Checks if the offset position from the entity's current position has a collision with a block or a liquid. Returns : true if the entity is free to move in the given position.
// FishingHook.isFree(x as double, y as double, z as double) as bool;
myFishingHook . isFree(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to check.
y: double
Type: double
- The y position to check.
z: double
Type: double
- The z position to check.
Return Type:
bool
Checks if the entity is fully frozen. // FishingHook.isFullyFrozen as bool
myFishingHook . isFullyFrozen
Return Type:
bool
Checks if the entity is fully frozen. Returns : true if the entity is fully frozen.
// FishingHook.isFullyFrozen() as bool;
myFishingHook . isFullyFrozen();
Return Type:
bool
Checks if the entity is in lava. // FishingHook.isInLava as bool
Return Type:
bool
Checks if the entity is in lava. Returns : true if the entity is in lava.
// FishingHook.isInLava() as bool;
myFishingHook . isInLava();
Return Type:
bool
Checks if the entity is invisible. // FishingHook.isInvisible as bool
myFishingHook . isInvisible
Return Type:
bool
Checks if the entity is invisible. Returns : true if the entity is invisible.
// FishingHook.isInvisible() as bool;
myFishingHook . isInvisible();
Return Type:
bool
Checks if the entity is invisible to the given Player
. Returns : true if the entity is invisible to the player.
// FishingHook.isInvisibleTo(player as Player ) as bool; myFishingHook . isInvisibleTo(myPlayer);
Return Type:
bool
Checks if the entity is invulnerable. // FishingHook.isInvulnerable as bool
myFishingHook . isInvulnerable
Return Type:
bool
Checks if the entity is invulnerable. Returns : true if the entity is invulnerable.
// FishingHook.isInvulnerable() as bool;
myFishingHook . isInvulnerable();
Return Type:
bool
Checks if the entity is invulnerable to the given DamageSource
. Returns : true if the entity is invulnerable to the damage source.
// FishingHook.isInvulnerableTo(source as DamageSource ) as bool; myFishingHook . isInvulnerableTo(myDamageSource);
Return Type:
bool
Checks if the entity is in a wall. // FishingHook.isInWall as bool
Return Type:
bool
Checks if the entity is in a wall. Returns : true if the entity is in a wall.
// FishingHook.isInWall() as bool;
myFishingHook . isInWall();
Return Type:
bool
Checks if the entity is in water. // FishingHook.isInWater as bool
Return Type:
bool
Checks if the entity is in water. Returns : true if the entity is in water.
// FishingHook.isInWater() as bool;
myFishingHook . isInWater();
Return Type:
bool
Checks if the entity is in water or a bubble column. // FishingHook.isInWaterOrBubble as bool
myFishingHook . isInWaterOrBubble
Return Type:
bool
Checks if the entity is in water or a bubble column. Returns : true if the entity is in water or a bubble column.
// FishingHook.isInWaterOrBubble() as bool;
myFishingHook . isInWaterOrBubble();
Return Type:
bool
Checks if the entity is in water or rain. // FishingHook.isInWaterOrRain as bool
myFishingHook . isInWaterOrRain
Return Type:
bool
Checks if the entity is in water or rain. Returns : true if the entity is in water or rain.
// FishingHook.isInWaterOrRain() as bool;
myFishingHook . isInWaterOrRain();
Return Type:
bool
Checks if the entity is in water or rain or a bubble column. // FishingHook.isInWaterRainOrBubble as bool
myFishingHook . isInWaterRainOrBubble
Return Type:
bool
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.
// FishingHook.isInWaterRainOrBubble() as bool;
myFishingHook . isInWaterRainOrBubble();
Return Type:
bool
Checks if the entity has no gravity. // FishingHook.isNoGravity as bool
myFishingHook . isNoGravity
Return Type:
bool
Checks if the entity has no gravity. Returns : true if the entity has no gravity.
// FishingHook.isNoGravity() as bool;
myFishingHook . isNoGravity();
Return Type:
bool
Checks if the entity is on fire. // FishingHook.isOnFire as bool
Return Type:
bool
Checks if the entity is on fire. Returns : true if the entity is on fire.
// FishingHook.isOnFire() as bool;
myFishingHook . isOnFire();
Return Type:
bool
Checks if the entity is on portal cooldown. // FishingHook.isOnPortalCooldown as bool
myFishingHook . isOnPortalCooldown
Return Type:
bool
Checks if the entity is on portal cooldown. Returns : true if the entity is on portal cooldown.
// FishingHook.isOnPortalCooldown() as bool;
myFishingHook . isOnPortalCooldown();
Return Type:
bool
Checks if the entity is a passenger. // FishingHook.isPassenger as bool
myFishingHook . isPassenger
Return Type:
bool
Checks if the entity is a passenger. Returns : true if the entity is a passenger.
// FishingHook.isPassenger() as bool;
myFishingHook . isPassenger();
Return Type:
bool
Checks if the entity is a passenger of the same vehicle. Returns : true if the entity is a passenger of the same vehicle.
// FishingHook.isPassengerOfSameVehicle(entity as Entity ) as bool; myFishingHook . isPassengerOfSameVehicle(myEntity);
Return Type:
bool
Checks if the entity is pickable. // FishingHook.isPickable as bool
Return Type:
bool
Checks if the entity is pickable. Returns : true if the entity is pickable.
// FishingHook.isPickable() as bool;
myFishingHook . isPickable();
Return Type:
bool
Checks if the entity is pushable. // FishingHook.isPushable as bool
Return Type:
bool
Checks if the entity is pushable. Returns : true if the entity is pushable.
// FishingHook.isPushable() as bool;
myFishingHook . isPushable();
Return Type:
bool
Checks if the entity is pushed by fluid. // FishingHook.isPushedByFluid as bool
myFishingHook . isPushedByFluid
Return Type:
bool
Checks if the entity is pushed by fluid. Returns : true if the entity is pushed by fluid.
// FishingHook.isPushedByFluid() as bool;
myFishingHook . isPushedByFluid();
Return Type:
bool
Checks if the entity has been removed. // FishingHook.isRemoved as bool
Return Type:
bool
Checks if the entity has been removed. Returns : Whether the entity has been removed.
// FishingHook.isRemoved() as bool;
myFishingHook . isRemoved();
Return Type:
bool
Checks if the shift key is down. // FishingHook.isShiftKeyDown as bool
myFishingHook . isShiftKeyDown
Return Type:
bool
Checks if the shift key is down. Returns : true if the shift key is down.
// FishingHook.isShiftKeyDown() as bool;
myFishingHook . isShiftKeyDown();
Return Type:
bool
Checks if the entity is silent, meaning it won't play any sounds. // FishingHook.isSilent as bool
Return Type:
bool
Checks if the entity is silent, meaning it won't play any sounds. Returns : true if the entity is silent.
// FishingHook.isSilent() as bool;
myFishingHook . isSilent();
Return Type:
bool
Checks if the entity is a spectator. // FishingHook.isSpectator as bool
myFishingHook . isSpectator
Return Type:
bool
Checks if the entity is a spectator. Returns : true if the entity is a spectator.
// FishingHook.isSpectator() as bool;
myFishingHook . isSpectator();
Return Type:
bool
Checks if the entity is sprinting. // FishingHook.isSprinting as bool
myFishingHook . isSprinting
Return Type:
bool
Checks if the entity is sprinting. Returns : true if the entity is sprinting.
// FishingHook.isSprinting() as bool;
myFishingHook . isSprinting();
Return Type:
bool
Checks if the entity is stepping carefully. // FishingHook.isSteppingCarefully as bool
myFishingHook . isSteppingCarefully
Return Type:
bool
Checks if the entity is stepping carefully. Returns : true if the entity is stepping carefully.
// FishingHook.isSteppingCarefully() as bool;
myFishingHook . isSteppingCarefully();
Return Type:
bool
Checks if the entity is suppressing bounce. // FishingHook.isSuppressingBounce as bool
myFishingHook . isSuppressingBounce
Return Type:
bool
Checks if the entity is suppressing bounce. Returns : true if the entity is suppressing bounce.
// FishingHook.isSuppressingBounce() as bool;
myFishingHook . isSuppressingBounce();
Return Type:
bool
Checks if the entity is swimming. // FishingHook.isSwimming as bool
Return Type:
bool
Checks if the entity is swimming. Returns : true if the entity is swimming.
// FishingHook.isSwimming() as bool;
myFishingHook . isSwimming();
Return Type:
bool
Checks if the entity is underwater. // FishingHook.isUnderWater as bool
myFishingHook . isUnderWater
Return Type:
bool
Checks if the entity is underwater. Returns : true if the entity is underwater.
// FishingHook.isUnderWater() as bool;
myFishingHook . isUnderWater();
Return Type:
bool
Checks if the entity is a vehicle. // FishingHook.isVehicle as bool
Return Type:
bool
Checks if the entity is a vehicle. Returns : true if the entity is a vehicle.
// FishingHook.isVehicle() as bool;
myFishingHook . isVehicle();
Return Type:
bool
Checks if the entity is visually crawling. // FishingHook.isVisuallyCrawling as bool
myFishingHook . isVisuallyCrawling
Return Type:
bool
Checks if the entity is visually crawling. Returns : true if the entity is visually crawling.
// FishingHook.isVisuallyCrawling() as bool;
myFishingHook . isVisuallyCrawling();
Return Type:
bool
Checks if the entity is visually swimming. // FishingHook.isVisuallySwimming as bool
myFishingHook . isVisuallySwimming
Return Type:
bool
Checks if the entity is visually swimming. Returns : true if the entity is visually swimming.
// FishingHook.isVisuallySwimming() as bool;
myFishingHook . isVisuallySwimming();
Return Type:
bool
Causes the entity to take damage from lava. // FishingHook.lavaHurt();
myFishingHook . lavaHurt();
Gets the Level
of the entity. // FishingHook.level as Level
Return Type:
Level
Gets the look angle of the entity. // FishingHook.lookAngle as Vec3
Return Type:
Vec3
Gets the look angle of the entity. Returns : The look angle of the entity.
// FishingHook.lookAngle() as Vec3 ; myFishingHook . lookAngle();
Return Type:
Vec3
Gets the maximum air supply of the entity. // FishingHook.maxAirSupply as int
myFishingHook . maxAirSupply
Return Type:
int
Gets the maximum air supply of the entity. Returns : The maximum air supply of the entity.
// FishingHook.maxAirSupply() as int;
myFishingHook . maxAirSupply();
Return Type:
int
Gets the maximum fall distance of the entity. // FishingHook.maxFallDistance as int
myFishingHook . maxFallDistance
Return Type:
int
Gets the maximum fall distance of the entity. Returns : The maximum fall distance of the entity.
// FishingHook.maxFallDistance() as int;
myFishingHook . maxFallDistance();
Return Type:
int
Gets the motion direction of the entity. myFishingHook . motionDirection
Return Type:
Direction
Gets the motion direction of the entity. Returns : The motion direction of the entity.
// FishingHook.motionDirection() as Direction ; myFishingHook . motionDirection();
Return Type:
Direction
Moves the entity relative to its current position. // FishingHook.moveRelative(amount as float, relative as Vec3 ); myFishingHook . moveRelative(myFloat, myVec3);
Parameters:
amount: float
Type: float
- The amount to move the entity by.
relative: Vec3
Type: Vec3
- The relative position to move the entity by. Moves the entity to the given position. // FishingHook.moveTo(vec as Vec3 ); myFishingHook . moveTo(myVec3);
Parameters:
vec: Vec3
Type: Vec3
- The position to move the entity to. Moves the entity to the given position. // FishingHook.moveTo(x as double, y as double, z as double);
myFishingHook . moveTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to move the entity to.
y: double
Type: double
- The y position to move the entity to.
z: double
Type: double
- The z position to move the entity to.
Moves the entity to the given position. // FishingHook.moveTo(pos as BlockPos , yaw as float, pitch as float); myFishingHook . moveTo(myBlockPos, myFloat, myFloat);
Parameters:
yaw: float
Type: float
- The yaw to move the entity to.
pitch: float
Type: float
- The pitch to move the entity to.
Moves the entity to the given position. // FishingHook.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);
myFishingHook . moveTo(myDouble, myDouble, myDouble, myFloat, myFloat);
Parameters:
x: double
Type: double
- The x position to move the entity to.
y: double
Type: double
- The y position to move the entity to.
z: double
Type: double
- The z position to move the entity to.
yaw: float
Type: float
- The yaw to move the entity to.
pitch: float
Type: float
- The pitch to move the entity to.
Gets the name of the entity.
Return Type:
Component
Gets the name of the entity. Returns : The name of the entity.
Return Type:
Component
Checks if the entity is on the ground. // FishingHook.onGround as bool
Return Type:
bool
Gets the position of the entity on the ground.
Return Type:
BlockPos
Gets the position of the entity on the ground. Returns : The position of the entity on the ground.
Return Type:
BlockPos
Gets the owner of the projectile. // FishingHook.owner as Entity
Return Type:
Entity
Sets the owner of the projectile. // FishingHook.owner = (entity as Entity ); myFishingHook . owner = myEntity;
Parameters:
entity: Entity
Type: Entity
- The entity to set as the owner. Sets the owner of the projectile. // FishingHook.owner(entity as Entity ); myFishingHook . owner(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to set as the owner. Gets the owner of the projectile. Returns : The owner of the projectile.
// FishingHook.owner() as Entity ;
Return Type:
Entity
Gets the passengers of the entity. // FishingHook.passengers as List< Entity >
Return Type:
List <Entity >
Gets the passengers of the entity. Returns : The passengers of the entity.
// FishingHook.passengers() as List< Entity >; myFishingHook . passengers();
Return Type:
List <Entity >
Gets the percent the entity is frozen. // FishingHook.percentFrozen as float
myFishingHook . percentFrozen
Return Type:
float
Gets the percent the entity is frozen. Returns : The percent the entity is frozen.
// FishingHook.percentFrozen() as float;
myFishingHook . percentFrozen();
Return Type:
float
Gets the piston push reaction of the entity. myFishingHook . pistonPushReaction
Return Type:
PushReaction
Gets the piston push reaction of the entity. Returns : The piston push reaction of the entity.
myFishingHook . pistonPushReaction();
Return Type:
PushReaction
Plays a sound at the entity's location. // FishingHook.playSound(sound as SoundEvent , volume as float, pitch as float); myFishingHook . playSound(mySoundEvent, myFloat, myFloat);
Parameters:
volume: float
Type: float
- The volume of the sound.
pitch: float
Type: float
- The pitch of the sound.
Gets the position of the entity. // FishingHook.position as Vec3
Return Type:
Vec3
Gets the position of the entity. Returns : The position of the entity.
// FishingHook.position() as Vec3 ; myFishingHook . position();
Return Type:
Vec3
Positions the rider of the entity. // FishingHook.positionRider(entity as Entity ); myFishingHook . positionRider(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to position the rider of. Gets the registry name of the entity. myFishingHook . registryName
Return Type:
ResourceLocation
Gets the registry name of the entity. Returns : The registry name of the entity.
myFishingHook . registryName();
Return Type:
ResourceLocation
Removes a tag from the entity. Returns : true if the tag was removed.
// FishingHook.removeTag(tagName as string) as bool;
myFishingHook . removeTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to remove.
Return Type:
bool
Removes the vehicle of the entity. // FishingHook.removeVehicle();
myFishingHook . removeVehicle();
Gets the root vehicle of the entity. // FishingHook.rootVehicle as Entity myFishingHook . rootVehicle
Return Type:
Entity
Gets the root vehicle of the entity. Returns : The root vehicle of the entity.
// FishingHook.rootVehicle() as Entity ; myFishingHook . rootVehicle();
Return Type:
Entity
Sends a message to the command source. // FishingHook.sendMessage(component as Component ); myFishingHook . sendMessage(myComponent);
Sets the air supply of the entity. // FishingHook.setAirSupply(air as int);
myFishingHook . setAirSupply(myInt);
Parameters:
air: int
Type: int
- The new air supply of the entity.
// FishingHook.setAttachmentData<T>(type as AttachmentType <T>, data as T) as T?; myFishingHook . setAttachmentData < T>(myAttachmentType, myT);
Return Type:
T ?
// FishingHook.setAttachmentData<T>(type as Supplier< AttachmentType <T>>, data as T) as T?; myFishingHook . setAttachmentData < T>(mySupplier, myT);
Return Type:
T ?
Sets the custom name of the entity. // FishingHook.setCustomName(name as Component ); myFishingHook . setCustomName(myComponent);
Sets the custom name visible state of the entity. // FishingHook.setCustomNameVisible(visible as bool);
myFishingHook . setCustomNameVisible(myBool);
Parameters:
visible: bool
Type: bool
- true if the custom name should be visible.
Sets the delta movement of the entity. // FishingHook.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double);
myFishingHook . setDeltaMovement(myDouble, myDouble, myDouble);
Parameters:
xDelta: double
Type: double
- The x delta movement to set.
yDelta: double
Type: double
- The y delta movement to set.
zDelta: double
Type: double
- The z delta movement to set.
Makes the entity glow. // FishingHook.setGlowingTag(glowing as bool);
myFishingHook . setGlowingTag(myBool);
Parameters:
glowing: bool
Type: bool
- true if the entity should be glowing.
Sets the invisible state of the entity. // FishingHook.setInvisible(invisible as bool);
myFishingHook . setInvisible(myBool);
Parameters:
invisible: bool
Type: bool
- true if the entity should be invisible.
Sets the invulnerable state of the entity. // FishingHook.setInvulnerable(invulnerable as bool);
myFishingHook . setInvulnerable(myBool);
Parameters:
invulnerable: bool
Type: bool
- true if the entity should be invulnerable.
Sets whether the entity is in powder snow. // FishingHook.setIsInPowderSnow(inPowderSnow as bool);
myFishingHook . setIsInPowderSnow(myBool);
Parameters:
inPowderSnow: bool
Type: bool
- Whether the entity is in powder snow.
Sets if the entity has no gravity. // FishingHook.setNoGravity(noGravity as bool);
myFishingHook . setNoGravity(myBool);
Parameters:
noGravity: bool
Type: bool
- The no gravity state to set the entity to.
Sets the old position and rotation of the entity. // FishingHook.setOldPosAndRot();
myFishingHook . setOldPosAndRot();
Sets if the entity is on the ground. // FishingHook.setOnGround(onGround as bool);
myFishingHook . setOnGround(myBool);
Parameters:
onGround: bool
Type: bool
- The on ground state to set the entity to.
Sets the portal cooldown of the entity. // FishingHook.setPortalCooldown();
myFishingHook . setPortalCooldown();
Sets the position of the entity. // FishingHook.setPos(position as Vec3 ); myFishingHook . setPos(myVec3);
Parameters:
position: Vec3
Type: Vec3
- The position to set the entity to. Sets the position of the entity. // FishingHook.setPos(x as double, y as double, z as double);
myFishingHook . setPos(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to set the entity to.
y: double
Type: double
- The y position to set the entity to.
z: double
Type: double
- The z position to set the entity to.
Sets the position of the entity to the given coordinates. // FishingHook.setPosRaw(x as double, y as double, z as double);
myFishingHook . setPosRaw(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to set the position to.
y: double
Type: double
- The y coordinate to set the position to.
z: double
Type: double
- The z coordinate to set the position to.
Removes this entity with the given removal reason . myFishingHook . setRemoved(myRemovalReason);
Sets the shift key down state of the entity. // FishingHook.setShiftKeyDown(keyDown as bool);
myFishingHook . setShiftKeyDown(myBool);
Parameters:
keyDown: bool
Type: bool
- true if the shift key is down.
Sets if the entity is silent. // FishingHook.setSilent(silent as bool);
myFishingHook . setSilent(myBool);
Parameters:
silent: bool
Type: bool
- The silent state to set the entity to.
Sets the sprinting state of the entity. // FishingHook.setSprinting(sprinting as bool);
myFishingHook . setSprinting(myBool);
Parameters:
sprinting: bool
Type: bool
- true if the entity should be sprinting.
Sets the swimming state of the entity. // FishingHook.setSwimming(swimming as bool);
myFishingHook . setSwimming(myBool);
Parameters:
swimming: bool
Type: bool
- true if the entity should be swimming.
Sets the number of ticks the entity has been frozen. // FishingHook.setTicksFrozen(ticks as int);
myFishingHook . setTicksFrozen(myInt);
Parameters:
ticks: int
Type: int
- The new number of ticks the entity has been frozen.
Checks if the entity should be saved. // FishingHook.shouldBeSaved as bool
myFishingHook . shouldBeSaved
Return Type:
bool
Checks if the entity should be saved. Returns : true if the entity should be saved.
// FishingHook.shouldBeSaved() as bool;
myFishingHook . shouldBeSaved();
Return Type:
bool
Checks if the commands from this source should inform admins. // FishingHook.shouldInformAdmins as bool
myFishingHook . shouldInformAdmins
Return Type:
bool
Checks if the commands from this source should inform admins. Returns : True if the commands from this source should inform admins, false otherwise.
// FishingHook.shouldInformAdmins() as bool;
myFishingHook . shouldInformAdmins();
Return Type:
bool
Checks if the entity should show its name. // FishingHook.shouldShowName as bool
myFishingHook . shouldShowName
Return Type:
bool
Checks if the entity should show its name. Returns : true if the entity should show its name.
// FishingHook.shouldShowName() as bool;
myFishingHook . shouldShowName();
Return Type:
bool
Checks if the entity should show vehicle health. // FishingHook.showVehicleHealth as bool
myFishingHook . showVehicleHealth
Return Type:
bool
Checks if the entity should show vehicle health. Returns : true if the entity should show vehicle health.
// FishingHook.showVehicleHealth() as bool;
myFishingHook . showVehicleHealth();
Return Type:
bool
Gets the SoundSource
of the entity. Returns : The sound source of the entity.
myFishingHook . soundSource();
Return Type:
SoundSource
Starts riding the given entity. Returns : true if the entity started riding.
// FishingHook.startRiding(entity as Entity ) as bool; myFishingHook . startRiding(myEntity);
Return Type:
bool
Starts riding the given entity. Returns : true if the entity started riding.
// FishingHook.startRiding(entity as Entity , force as bool) as bool; myFishingHook . startRiding(myEntity, myBool);
Parameters:
force: bool
Type: bool
- true if the entity should be forced to start riding.
Return Type:
bool
Stops riding the entity. // FishingHook.stopRiding();
myFishingHook . stopRiding();
Gets the UUID of the entity as a string. // FishingHook.stringUUID as string
Return Type:
string
Gets the UUID of the entity as a string. Returns : The UUID of the entity as a string.
// FishingHook.stringUUID() as string;
myFishingHook . stringUUID();
Return Type:
string
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. // FishingHook.tags as Set<string>
Return Type:
Set <string >
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.
// FishingHook.tags() as Set<string>;
Return Type:
Set <string >
Gets the team color of the entity. // FishingHook.teamColor as int
Return Type:
int
Gets the team color of the entity. Returns : The team color of the entity.
// FishingHook.teamColor() as int;
myFishingHook . teamColor();
Return Type:
int
Teleports the entity to the given position. // FishingHook.teleportTo(x as double, y as double, z as double);
myFishingHook . teleportTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to teleport to.
y: double
Type: double
- The y coordinate to teleport to.
z: double
Type: double
- The z coordinate to teleport to.
Gets the number of ticks the entity has been frozen. // FishingHook.ticksFrozen as int
myFishingHook . ticksFrozen
Return Type:
int
Gets the number of ticks the entity has been frozen. Returns : The number of ticks the entity has been frozen.
// FishingHook.ticksFrozen() as int;
myFishingHook . ticksFrozen();
Return Type:
int
Gets the number of ticks required to freeze the entity. // FishingHook.ticksRequiredToFreeze as int
myFishingHook . ticksRequiredToFreeze
Return Type:
int
Gets the number of ticks required to freeze the entity. Returns : The number of ticks required to freeze the entity.
// FishingHook.ticksRequiredToFreeze() as int;
myFishingHook . ticksRequiredToFreeze();
Return Type:
int
Turns the entity. // FishingHook.turn(yaw as double, pitch as double);
myFishingHook . turn(myDouble, myDouble);
Parameters:
yaw: double
Type: double
- The yaw to turn the entity to.
pitch: double
Type: double
- The pitch to turn the entity to.
Removes any passengers and stops riding the current entity.
Updates the custom NBT data for this Entity. // FishingHook.updateCustomData(data as MapData ); myFishingHook . updateCustomData({custom: "data" });
myFishingHook . updateCustomEntityTag(myLevel, myPlayer, myMapData);
Updates the NBT data of this Entity. // FishingHook.updateData(data as MapData ); myFishingHook . updateData({key: "value" });
Gets the UUID of the entity. // FishingHook.uuid as UUID
Return Type:
UUID
Gets the UUID of the entity. Returns : The UUID of the entity.
// FishingHook.uuid() as UUID;
Return Type:
UUID
Gets the vehicle of the entity. // FishingHook.vehicle as Entity
Return Type:
Entity
Gets the vehicle of the entity. Returns : The vehicle of the entity.
// FishingHook.vehicle() as Entity ;
Return Type:
Entity
Gets the x coordinate of the entity. // FishingHook.x as double
Return Type:
double
Gets the x coordinate of the entity. Returns : The x coordinate of the entity.
// FishingHook.x() as double;
Return Type:
double
Gets the y coordinate of the entity. // FishingHook.y as double
Return Type:
double
Gets the y coordinate of the entity. Returns : The y coordinate of the entity.
// FishingHook.y() as double;
Return Type:
double
Gets the z coordinate of the entity. // FishingHook.z as double
Return Type:
double
Gets the z coordinate of the entity. Returns : The z coordinate of the entity.
// FishingHook.z() as double;
Return Type:
double