FishingHook
Importing the class
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;
Extends
FishingHook extends Projectile
.
Implements
FishingHook
implements the following interfaces:
Nameable
,EntityAccess
,CommandSource
,IAttachmentHolder
Undocumented Interfaces
TraceableEntity
,SyncedDataHolder
,ScoreHolder
,IEntityExtension
,INBTSerializable<CompoundTag>
Members
// FishingHook.acceptsFailure as boolmyFishingHook.acceptsFailure
Return Type:
bool
Returns: True if the commands from this source should return failure messages, false otherwise.
// FishingHook.acceptsFailure() as bool;myFishingHook.acceptsFailure();
Return Type:
bool
// FishingHook.acceptsSuccess as boolmyFishingHook.acceptsSuccess
Return Type:
bool
Returns: True if the commands from this source should return successful messages, false otherwise.
// FishingHook.acceptsSuccess() as bool;myFishingHook.acceptsSuccess();
Return Type:
bool
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
// FishingHook.airSupply as intmyFishingHook.airSupply
Return Type:
int
Returns: The current air supply of the entity.
// FishingHook.airSupply() as int;myFishingHook.airSupply();
Return Type:
int
// FishingHook.alwaysAccepts as boolmyFishingHook.alwaysAccepts
Return Type:
bool
Returns: True if the command source always accepts, false otherwise.
// FishingHook.alwaysAccepts() as bool;myFishingHook.alwaysAccepts();
Return Type:
bool
// FishingHook.bbHeight as floatmyFishingHook.bbHeight
Return Type:
float
Returns: The height of the bounding box of the entity.
// FishingHook.bbHeight() as float;myFishingHook.bbHeight();
Return Type:
float
// FishingHook.bbWidth as floatmyFishingHook.bbWidth
Return Type:
float
Returns: The width of the bounding box of the entity.
// FishingHook.bbWidth() as float;myFishingHook.bbWidth();
Return Type:
float
// FishingHook.blockX as intmyFishingHook.blockX
Return Type:
int
Returns: The x coordinate of the entity.
// FishingHook.blockX() as int;myFishingHook.blockX();
Return Type:
int
// FishingHook.blockY as intmyFishingHook.blockY
Return Type:
int
Returns: The y coordinate of the entity.
// FishingHook.blockY() as int;myFishingHook.blockY();
Return Type:
int
// FishingHook.blockZ as intmyFishingHook.blockZ
Return Type:
int
Returns: The z coordinate of the entity.
// FishingHook.blockZ() as int;myFishingHook.blockZ();
Return Type:
int
// FishingHook.canBeCollidedWith as boolmyFishingHook.canBeCollidedWith
Return Type:
bool
Returns: true if the entity can be collided with.
// FishingHook.canBeCollidedWith() as bool;myFishingHook.canBeCollidedWith();
Return Type:
bool
Returns: true if the entity can collide with the given entity.
myFishingHook.canCollideWith(myEntity);
Return Type:
bool
// FishingHook.canFreeze as boolmyFishingHook.canFreeze
Return Type:
bool
Returns: Whether the entity can freeze.
// FishingHook.canFreeze() as bool;myFishingHook.canFreeze();
Return Type:
bool
// FishingHook.clearFire();myFishingHook.clearFire();
Returns: true if the entity is closer than the given distance to the other entity.
myFishingHook.closerThan(myEntity, myDouble);
Parameters:
Return Type:
bool
net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag.// FishingHook.dampensVibrations as boolmyFishingHook.dampensVibrations
Return Type:
bool
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
// FishingHook.dimensionChangingDelay as intmyFishingHook.dimensionChangingDelay
Return Type:
int
Returns: The dimension changing delay of the entity.
// FishingHook.dimensionChangingDelay() as int;myFishingHook.dimensionChangingDelay();
Return Type:
int
// FishingHook.discard();myFishingHook.discard();
// FishingHook.dismountsUnderwater as boolmyFishingHook.dismountsUnderwater
Return Type:
bool
Returns: true if the entity dismounts underwater.
// FishingHook.dismountsUnderwater() as bool;myFishingHook.dismountsUnderwater();
Return Type:
bool
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
Returns: The squared distance to the given entity.
myFishingHook.distanceToSqr(myEntity);
Return Type:
double
// FishingHook.ejectPassengers();myFishingHook.ejectPassengers();
// FishingHook.eyeHeight as floatmyFishingHook.eyeHeight
Return Type:
float
Returns: The eye height of the entity.
// FishingHook.eyeHeight() as float;myFishingHook.eyeHeight();
Return Type:
float
// FishingHook.eyeY as doublemyFishingHook.eyeY
Return Type:
double
Returns: The y coordinate of the entity's eyes.
// FishingHook.eyeY() as double;myFishingHook.eyeY();
Return Type:
double
// FishingHook.fireImmune as boolmyFishingHook.fireImmune
Return Type:
bool
Returns: true if the entity is fire immune.
// FishingHook.fireImmune() as bool;myFishingHook.fireImmune();
Return Type:
bool
// FishingHook.fireTicks as intmyFishingHook.fireTicks
Return Type:
int
// FishingHook.fireTicks = (ticks as int);myFishingHook.fireTicks = myInt;
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. // FishingHook.fireTicks(ticks as int);myFishingHook.fireTicks(myInt);
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. Returns: The remaining fire ticks of the entity.
// FishingHook.fireTicks() as int;myFishingHook.fireTicks();
Return Type:
int
// FishingHook.fluidJumpThreshold as doublemyFishingHook.fluidJumpThreshold
Return Type:
double
Returns: The fluid jump threshold of the entity.
// FishingHook.fluidJumpThreshold() as double;myFishingHook.fluidJumpThreshold();
Return Type:
double
myFishingHook.getAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
T
myFishingHook.getAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
T
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
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
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
myFishingHook.hasAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
bool
myFishingHook.hasAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
bool
// FishingHook.hasCustomName as boolmyFishingHook.hasCustomName
Return Type:
bool
// FishingHook.hasCustomName as boolmyFishingHook.hasCustomName
Return Type:
bool
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
// FishingHook.hasExactlyOnePlayerPassenger as boolmyFishingHook.hasExactlyOnePlayerPassenger
Return Type:
bool
Returns: true if the entity has exactly one player passenger.
// FishingHook.hasExactlyOnePlayerPassenger() as bool;myFishingHook.hasExactlyOnePlayerPassenger();
Return Type:
bool
// FishingHook.hasGlowingTag as boolmyFishingHook.hasGlowingTag
Return Type:
bool
Returns: true if the entity is currently glowing.
// FishingHook.hasGlowingTag() as bool;myFishingHook.hasGlowingTag();
Return Type:
bool
Returns: true if the entity has a passenger that matches the predicate.
myFishingHook.hasPassenger(myPredicate);
Parameters:
Return Type:
bool
DamageSource
and amount.Returns: true if the entity was hurt.
myFishingHook.hurt(myDamageSource, myFloat);
Parameters:
amount: float
Type: float
- The amount of damage to deal.
Return Type:
bool
// FishingHook.id as intmyFishingHook.id
Return Type:
int
Returns: The ID of the entity.
// FishingHook.id() as int;myFishingHook.id();
Return Type:
int
BlockState
that this entity is currently inside.// FishingHook.inBlockState as BlockStatemyFishingHook.inBlockState
Return Type:
BlockState
BlockState
that this entity is currently inside.Returns: The block state that this entity is currently inside
myFishingHook.inBlockState();
Return Type:
BlockState
// FishingHook.isAlive as boolmyFishingHook.isAlive
Return Type:
bool
Returns: true if the entity is alive.
// FishingHook.isAlive() as bool;myFishingHook.isAlive();
Return Type:
bool
// FishingHook.isAlwaysTicking as boolmyFishingHook.isAlwaysTicking
Return Type:
bool
Returns: true if the entity is always ticking.
// FishingHook.isAlwaysTicking() as bool;myFishingHook.isAlwaysTicking();
Return Type:
bool
// FishingHook.isAttackable as boolmyFishingHook.isAttackable
Return Type:
bool
Returns: true if the entity is attackable.
// FishingHook.isAttackable() as bool;myFishingHook.isAttackable();
Return Type:
bool
BlockState
at the given BlockPos
.Returns: true if the entity is colliding with the block.
myFishingHook.isColliding(myBlockPos, myBlockState);
Parameters:
Return Type:
bool
// FishingHook.isCrouching as boolmyFishingHook.isCrouching
Return Type:
bool
Returns: true if the entity is crouching.
// FishingHook.isCrouching() as bool;myFishingHook.isCrouching();
Return Type:
bool
// FishingHook.isCurrentlyGlowing as boolmyFishingHook.isCurrentlyGlowing
Return Type:
bool
Returns: true if the entity is currently glowing.
// FishingHook.isCurrentlyGlowing() as bool;myFishingHook.isCurrentlyGlowing();
Return Type:
bool
// FishingHook.isCustomNameVisible as boolmyFishingHook.isCustomNameVisible
Return Type:
bool
Returns: true if the custom name is visible.
// FishingHook.isCustomNameVisible() as bool;myFishingHook.isCustomNameVisible();
Return Type:
bool
// FishingHook.isDescending as boolmyFishingHook.isDescending
Return Type:
bool
Returns: true if the entity is descending.
// FishingHook.isDescending() as bool;myFishingHook.isDescending();
Return Type:
bool
// FishingHook.isDiscrete as boolmyFishingHook.isDiscrete
Return Type:
bool
Returns: true if the entity is being discrete.
// FishingHook.isDiscrete() as bool;myFishingHook.isDiscrete();
Return Type:
bool
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
// FishingHook.isFullyFrozen as boolmyFishingHook.isFullyFrozen
Return Type:
bool
Returns: true if the entity is fully frozen.
// FishingHook.isFullyFrozen() as bool;myFishingHook.isFullyFrozen();
Return Type:
bool
// FishingHook.isInLava as boolmyFishingHook.isInLava
Return Type:
bool
Returns: true if the entity is in lava.
// FishingHook.isInLava() as bool;myFishingHook.isInLava();
Return Type:
bool
// FishingHook.isInvisible as boolmyFishingHook.isInvisible
Return Type:
bool
Returns: true if the entity is invisible.
// FishingHook.isInvisible() as bool;myFishingHook.isInvisible();
Return Type:
bool
// FishingHook.isInvulnerable as boolmyFishingHook.isInvulnerable
Return Type:
bool
Returns: true if the entity is invulnerable.
// FishingHook.isInvulnerable() as bool;myFishingHook.isInvulnerable();
Return Type:
bool
DamageSource
.Returns: true if the entity is invulnerable to the damage source.
myFishingHook.isInvulnerableTo(myDamageSource);
Parameters:
Return Type:
bool
// FishingHook.isInWall as boolmyFishingHook.isInWall
Return Type:
bool
Returns: true if the entity is in a wall.
// FishingHook.isInWall() as bool;myFishingHook.isInWall();
Return Type:
bool
// FishingHook.isInWater as boolmyFishingHook.isInWater
Return Type:
bool
Returns: true if the entity is in water.
// FishingHook.isInWater() as bool;myFishingHook.isInWater();
Return Type:
bool
// FishingHook.isInWaterOrBubble as boolmyFishingHook.isInWaterOrBubble
Return Type:
bool
Returns: true if the entity is in water or a bubble column.
// FishingHook.isInWaterOrBubble() as bool;myFishingHook.isInWaterOrBubble();
Return Type:
bool
// FishingHook.isInWaterOrRain as boolmyFishingHook.isInWaterOrRain
Return Type:
bool
Returns: true if the entity is in water or rain.
// FishingHook.isInWaterOrRain() as bool;myFishingHook.isInWaterOrRain();
Return Type:
bool
// FishingHook.isInWaterRainOrBubble as boolmyFishingHook.isInWaterRainOrBubble
Return Type:
bool
Returns: true if the entity is in water or rain or a bubble column.
// FishingHook.isInWaterRainOrBubble() as bool;myFishingHook.isInWaterRainOrBubble();
Return Type:
bool
// FishingHook.isNoGravity as boolmyFishingHook.isNoGravity
Return Type:
bool
Returns: true if the entity has no gravity.
// FishingHook.isNoGravity() as bool;myFishingHook.isNoGravity();
Return Type:
bool
// FishingHook.isOnFire as boolmyFishingHook.isOnFire
Return Type:
bool
Returns: true if the entity is on fire.
// FishingHook.isOnFire() as bool;myFishingHook.isOnFire();
Return Type:
bool
// FishingHook.isOnPortalCooldown as boolmyFishingHook.isOnPortalCooldown
Return Type:
bool
Returns: true if the entity is on portal cooldown.
// FishingHook.isOnPortalCooldown() as bool;myFishingHook.isOnPortalCooldown();
Return Type:
bool
// FishingHook.isPassenger as boolmyFishingHook.isPassenger
Return Type:
bool
Returns: true if the entity is a passenger.
// FishingHook.isPassenger() as bool;myFishingHook.isPassenger();
Return Type:
bool
Returns: true if the entity is a passenger of the same vehicle.
myFishingHook.isPassengerOfSameVehicle(myEntity);
Return Type:
bool
// FishingHook.isPickable as boolmyFishingHook.isPickable
Return Type:
bool
Returns: true if the entity is pickable.
// FishingHook.isPickable() as bool;myFishingHook.isPickable();
Return Type:
bool
// FishingHook.isPushable as boolmyFishingHook.isPushable
Return Type:
bool
Returns: true if the entity is pushable.
// FishingHook.isPushable() as bool;myFishingHook.isPushable();
Return Type:
bool
// FishingHook.isPushedByFluid as boolmyFishingHook.isPushedByFluid
Return Type:
bool
Returns: true if the entity is pushed by fluid.
// FishingHook.isPushedByFluid() as bool;myFishingHook.isPushedByFluid();
Return Type:
bool
// FishingHook.isRemoved as boolmyFishingHook.isRemoved
Return Type:
bool
Returns: Whether the entity has been removed.
// FishingHook.isRemoved() as bool;myFishingHook.isRemoved();
Return Type:
bool
// FishingHook.isShiftKeyDown as boolmyFishingHook.isShiftKeyDown
Return Type:
bool
Returns: true if the shift key is down.
// FishingHook.isShiftKeyDown() as bool;myFishingHook.isShiftKeyDown();
Return Type:
bool
// FishingHook.isSilent as boolmyFishingHook.isSilent
Return Type:
bool
Returns: true if the entity is silent.
// FishingHook.isSilent() as bool;myFishingHook.isSilent();
Return Type:
bool
// FishingHook.isSpectator as boolmyFishingHook.isSpectator
Return Type:
bool
Returns: true if the entity is a spectator.
// FishingHook.isSpectator() as bool;myFishingHook.isSpectator();
Return Type:
bool
// FishingHook.isSprinting as boolmyFishingHook.isSprinting
Return Type:
bool
Returns: true if the entity is sprinting.
// FishingHook.isSprinting() as bool;myFishingHook.isSprinting();
Return Type:
bool
// FishingHook.isSteppingCarefully as boolmyFishingHook.isSteppingCarefully
Return Type:
bool
Returns: true if the entity is stepping carefully.
// FishingHook.isSteppingCarefully() as bool;myFishingHook.isSteppingCarefully();
Return Type:
bool
// FishingHook.isSuppressingBounce as boolmyFishingHook.isSuppressingBounce
Return Type:
bool
Returns: true if the entity is suppressing bounce.
// FishingHook.isSuppressingBounce() as bool;myFishingHook.isSuppressingBounce();
Return Type:
bool
// FishingHook.isSwimming as boolmyFishingHook.isSwimming
Return Type:
bool
Returns: true if the entity is swimming.
// FishingHook.isSwimming() as bool;myFishingHook.isSwimming();
Return Type:
bool
// FishingHook.isUnderWater as boolmyFishingHook.isUnderWater
Return Type:
bool
Returns: true if the entity is underwater.
// FishingHook.isUnderWater() as bool;myFishingHook.isUnderWater();
Return Type:
bool
// FishingHook.isVehicle as boolmyFishingHook.isVehicle
Return Type:
bool
Returns: true if the entity is a vehicle.
// FishingHook.isVehicle() as bool;myFishingHook.isVehicle();
Return Type:
bool
// FishingHook.isVisuallyCrawling as boolmyFishingHook.isVisuallyCrawling
Return Type:
bool
Returns: true if the entity is visually crawling.
// FishingHook.isVisuallyCrawling() as bool;myFishingHook.isVisuallyCrawling();
Return Type:
bool
// FishingHook.isVisuallySwimming as boolmyFishingHook.isVisuallySwimming
Return Type:
bool
Returns: true if the entity is visually swimming.
// FishingHook.isVisuallySwimming() as bool;myFishingHook.isVisuallySwimming();
Return Type:
bool
// FishingHook.kill();myFishingHook.kill();
// FishingHook.lavaHurt();myFishingHook.lavaHurt();
// FishingHook.maxAirSupply as intmyFishingHook.maxAirSupply
Return Type:
int
Returns: The maximum air supply of the entity.
// FishingHook.maxAirSupply() as int;myFishingHook.maxAirSupply();
Return Type:
int
// FishingHook.maxFallDistance as intmyFishingHook.maxFallDistance
Return Type:
int
Returns: The maximum fall distance of the entity.
// FishingHook.maxFallDistance() as int;myFishingHook.maxFallDistance();
Return Type:
int
myFishingHook.moveRelative(myFloat, myVec3);
// 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. myFishingHook.moveTo(myBlockPos, myFloat, myFloat);
// 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. // FishingHook.onGround as boolmyFishingHook.onGround
Return Type:
bool
// FishingHook.percentFrozen as floatmyFishingHook.percentFrozen
Return Type:
float
Returns: The percent the entity is frozen.
// FishingHook.percentFrozen() as float;myFishingHook.percentFrozen();
Return Type:
float
// FishingHook.pistonPushReaction as PushReactionmyFishingHook.pistonPushReaction
Return Type:
PushReaction
Returns: The piston push reaction of the entity.
myFishingHook.pistonPushReaction();
Return Type:
PushReaction
myFishingHook.playSound(mySoundEvent, myFloat, myFloat);
Parameters:
volume: float
Type: float
- The volume of the sound. pitch: float
Type: float
- The pitch of the sound. // FishingHook.registryName as ResourceLocationmyFishingHook.registryName
Return Type:
ResourceLocation
Returns: The registry name of the entity.
myFishingHook.registryName();
Return Type:
ResourceLocation
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
// FishingHook.removeVehicle();myFishingHook.removeVehicle();
// FishingHook.setAirSupply(air as int);myFishingHook.setAirSupply(myInt);
Parameters:
air: int
Type: int
- The new air supply of the entity. myFishingHook.setAttachmentData<T>(myAttachmentType, myT);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
data: T
Type: T
Return Type:
T?
myFishingHook.setAttachmentData<T>(mySupplier, myT);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
data: T
Type: T
Return Type:
T?
// FishingHook.setCustomNameVisible(visible as bool);myFishingHook.setCustomNameVisible(myBool);
Parameters:
visible: bool
Type: bool
- true if the custom name should be visible. // 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. // FishingHook.setGlowingTag(glowing as bool);myFishingHook.setGlowingTag(myBool);
Parameters:
glowing: bool
Type: bool
- true if the entity should be glowing. // FishingHook.setInvisible(invisible as bool);myFishingHook.setInvisible(myBool);
Parameters:
invisible: bool
Type: bool
- true if the entity should be invisible. // FishingHook.setInvulnerable(invulnerable as bool);myFishingHook.setInvulnerable(myBool);
Parameters:
invulnerable: bool
Type: bool
- true if the entity should be invulnerable. // FishingHook.setIsInPowderSnow(inPowderSnow as bool);myFishingHook.setIsInPowderSnow(myBool);
Parameters:
inPowderSnow: bool
Type: bool
- Whether the entity is in powder snow. // FishingHook.setNoGravity(noGravity as bool);myFishingHook.setNoGravity(myBool);
Parameters:
noGravity: bool
Type: bool
- The no gravity state to set the entity to. // FishingHook.setOldPosAndRot();myFishingHook.setOldPosAndRot();
// FishingHook.setOnGround(onGround as bool);myFishingHook.setOnGround(myBool);
Parameters:
onGround: bool
Type: bool
- The on ground state to set the entity to. // FishingHook.setPortalCooldown();myFishingHook.setPortalCooldown();
// 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. // 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. myFishingHook.setRemoved(myRemovalReason);
Parameters:
// FishingHook.setShiftKeyDown(keyDown as bool);myFishingHook.setShiftKeyDown(myBool);
Parameters:
keyDown: bool
Type: bool
- true if the shift key is down. // FishingHook.setSilent(silent as bool);myFishingHook.setSilent(myBool);
Parameters:
silent: bool
Type: bool
- The silent state to set the entity to. // FishingHook.setSprinting(sprinting as bool);myFishingHook.setSprinting(myBool);
Parameters:
sprinting: bool
Type: bool
- true if the entity should be sprinting. // FishingHook.setSwimming(swimming as bool);myFishingHook.setSwimming(myBool);
Parameters:
swimming: bool
Type: bool
- true if the entity should be swimming. // FishingHook.setTicksFrozen(ticks as int);myFishingHook.setTicksFrozen(myInt);
Parameters:
ticks: int
Type: int
- The new number of ticks the entity has been frozen. // FishingHook.shouldBeSaved as boolmyFishingHook.shouldBeSaved
Return Type:
bool
Returns: true if the entity should be saved.
// FishingHook.shouldBeSaved() as bool;myFishingHook.shouldBeSaved();
Return Type:
bool
// FishingHook.shouldInformAdmins as boolmyFishingHook.shouldInformAdmins
Return Type:
bool
Returns: True if the commands from this source should inform admins, false otherwise.
// FishingHook.shouldInformAdmins() as bool;myFishingHook.shouldInformAdmins();
Return Type:
bool
// FishingHook.shouldShowName as boolmyFishingHook.shouldShowName
Return Type:
bool
Returns: true if the entity should show its name.
// FishingHook.shouldShowName() as bool;myFishingHook.shouldShowName();
Return Type:
bool
// FishingHook.showVehicleHealth as boolmyFishingHook.showVehicleHealth
Return Type:
bool
Returns: true if the entity should show vehicle health.
// FishingHook.showVehicleHealth() as bool;myFishingHook.showVehicleHealth();
Return Type:
bool
SoundSource
of the entity.// FishingHook.soundSource as SoundSourcemyFishingHook.soundSource
Return Type:
SoundSource
SoundSource
of the entity.Returns: The sound source of the entity.
myFishingHook.soundSource();
Return Type:
SoundSource
Returns: true if the entity started riding.
myFishingHook.startRiding(myEntity, myBool);
Parameters:
Return Type:
bool
// FishingHook.stopRiding();myFishingHook.stopRiding();
// FishingHook.stringUUID as stringmyFishingHook.stringUUID
Return Type:
string
Returns: The UUID of the entity as a string.
// FishingHook.stringUUID() as string;myFishingHook.stringUUID();
Return Type:
string
These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
// FishingHook.tags as Set<string>myFishingHook.tags
Return Type:
Set<string>
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>;myFishingHook.tags();
Return Type:
Set<string>
// FishingHook.teamColor as intmyFishingHook.teamColor
Return Type:
int
Returns: The team color of the entity.
// FishingHook.teamColor() as int;myFishingHook.teamColor();
Return Type:
int
// 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. // FishingHook.ticksFrozen as intmyFishingHook.ticksFrozen
Return Type:
int
Returns: The number of ticks the entity has been frozen.
// FishingHook.ticksFrozen() as int;myFishingHook.ticksFrozen();
Return Type:
int
// FishingHook.ticksRequiredToFreeze as intmyFishingHook.ticksRequiredToFreeze
Return Type:
int
Returns: The number of ticks required to freeze the entity.
// FishingHook.ticksRequiredToFreeze() as int;myFishingHook.ticksRequiredToFreeze();
Return Type:
int
// 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. EntityType
of the entity.Returns: The EntityType
of the entity.
myFishingHook.type();
Return Type:
EntityType<Entity>
// FishingHook.unRide();myFishingHook.unRide();
// FishingHook.uuid as UUIDmyFishingHook.uuid
Return Type:
UUID
Returns: The UUID of the entity.
// FishingHook.uuid() as UUID;myFishingHook.uuid();
Return Type:
UUID
// FishingHook.x as doublemyFishingHook.x
Return Type:
double
Returns: The x coordinate of the entity.
// FishingHook.x() as double;myFishingHook.x();
Return Type:
double
// FishingHook.y as doublemyFishingHook.y
Return Type:
double
Returns: The y coordinate of the entity.
// FishingHook.y() as double;myFishingHook.y();
Return Type:
double
// FishingHook.z as doublemyFishingHook.z
Return Type:
double
Returns: The z coordinate of the entity.
// FishingHook.z() as double;myFishingHook.z();
Return Type:
double