Projectile
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.Projectile;
Extends
Projectile extends Entity
.
Implements
Projectile
implements the following interfaces:
Nameable
,EntityAccess
,CommandSource
,IAttachmentHolder
Undocumented Interfaces
TraceableEntity
,ScoreHolder
,IEntityExtension
,INBTSerializable<CompoundTag>
Members
// Projectile.acceptsFailure as boolmyProjectile.acceptsFailure
Return Type:
bool
// Projectile.acceptsFailure() as bool;myProjectile.acceptsFailure();
Return Type:
bool
// Projectile.acceptsSuccess as boolmyProjectile.acceptsSuccess
Return Type:
bool
// Projectile.acceptsSuccess() as bool;myProjectile.acceptsSuccess();
Return Type:
bool
// Projectile.addTag(tagName as string) as bool;myProjectile.addTag(myString);
Parameters:
tagName: string
Type: string
Return Type:
bool
// Projectile.airSupply as intmyProjectile.airSupply
Return Type:
int
// Projectile.airSupply() as int;myProjectile.airSupply();
Return Type:
int
// Projectile.alwaysAccepts as boolmyProjectile.alwaysAccepts
Return Type:
bool
// Projectile.alwaysAccepts() as bool;myProjectile.alwaysAccepts();
Return Type:
bool
// Projectile.bbHeight as floatmyProjectile.bbHeight
Return Type:
float
// Projectile.bbHeight() as float;myProjectile.bbHeight();
Return Type:
float
// Projectile.bbWidth as floatmyProjectile.bbWidth
Return Type:
float
// Projectile.bbWidth() as float;myProjectile.bbWidth();
Return Type:
float
// Projectile.blockX as intmyProjectile.blockX
Return Type:
int
// Projectile.blockX() as int;myProjectile.blockX();
Return Type:
int
// Projectile.blockY as intmyProjectile.blockY
Return Type:
int
// Projectile.blockY() as int;myProjectile.blockY();
Return Type:
int
// Projectile.blockZ as intmyProjectile.blockZ
Return Type:
int
// Projectile.blockZ() as int;myProjectile.blockZ();
Return Type:
int
// Projectile.canBeCollidedWith as boolmyProjectile.canBeCollidedWith
Return Type:
bool
// Projectile.canBeCollidedWith() as bool;myProjectile.canBeCollidedWith();
Return Type:
bool
// Projectile.canFreeze as boolmyProjectile.canFreeze
Return Type:
bool
// Projectile.canFreeze() as bool;myProjectile.canFreeze();
Return Type:
bool
// Projectile.clearFire();myProjectile.clearFire();
// Projectile.dampensVibrations as boolmyProjectile.dampensVibrations
Return Type:
bool
// Projectile.dampensVibrations() as bool;myProjectile.dampensVibrations();
Return Type:
bool
// Projectile.dimensionChangingDelay as intmyProjectile.dimensionChangingDelay
Return Type:
int
// Projectile.dimensionChangingDelay() as int;myProjectile.dimensionChangingDelay();
Return Type:
int
// Projectile.discard();myProjectile.discard();
// Projectile.dismountsUnderwater as boolmyProjectile.dismountsUnderwater
Return Type:
bool
// Projectile.distanceToSqr(x as double, y as double, z as double) as double;myProjectile.distanceToSqr(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
Return Type:
double
// Projectile.ejectPassengers();myProjectile.ejectPassengers();
// Projectile.eyeHeight as floatmyProjectile.eyeHeight
Return Type:
float
// Projectile.eyeHeight() as float;myProjectile.eyeHeight();
Return Type:
float
// Projectile.eyeY as doublemyProjectile.eyeY
Return Type:
double
// Projectile.eyeY() as double;myProjectile.eyeY();
Return Type:
double
// Projectile.feetBlockState as BlockStatemyProjectile.feetBlockState
Return Type:
BlockState
// Projectile.fireImmune as boolmyProjectile.fireImmune
Return Type:
bool
// Projectile.fireImmune() as bool;myProjectile.fireImmune();
Return Type:
bool
// Projectile.fluidJumpThreshold as doublemyProjectile.fluidJumpThreshold
Return Type:
double
// Projectile.fluidJumpThreshold() as double;myProjectile.fluidJumpThreshold();
Return Type:
double
myProjectile.getAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
T
myProjectile.getAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
T
// Projectile.getX(scale as double) as double;myProjectile.getX(myDouble);
Parameters:
scale: double
Type: double
Return Type:
double
// Projectile.getY(scale as double) as double;myProjectile.getY(myDouble);
Parameters:
scale: double
Type: double
Return Type:
double
// Projectile.getZ(scale as double) as double;myProjectile.getZ(myDouble);
Parameters:
scale: double
Type: double
Return Type:
double
myProjectile.hasAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
bool
myProjectile.hasAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
bool
// Projectile.hasCustomName as boolmyProjectile.hasCustomName
Return Type:
bool
// Projectile.hasCustomName as boolmyProjectile.hasCustomName
Return Type:
bool
// Projectile.hasCustomName() as bool;myProjectile.hasCustomName();
Return Type:
bool
// Projectile.hasCustomName() as bool;myProjectile.hasCustomName();
Return Type:
bool
// Projectile.hasExactlyOnePlayerPassenger as boolmyProjectile.hasExactlyOnePlayerPassenger
Return Type:
bool
// Projectile.hasExactlyOnePlayerPassenger() as bool;myProjectile.hasExactlyOnePlayerPassenger();
Return Type:
bool
// Projectile.hasGlowingTag as boolmyProjectile.hasGlowingTag
Return Type:
bool
// Projectile.hasGlowingTag() as bool;myProjectile.hasGlowingTag();
Return Type:
bool
myProjectile.hurt(myDamageSource, myFloat);
Parameters:
source: DamageSource
Type: DamageSource
amount: float
Type: float
Return Type:
bool
// Projectile.id as intmyProjectile.id
Return Type:
int
// Projectile.id() as int;myProjectile.id();
Return Type:
int
// Projectile.isAlive as boolmyProjectile.isAlive
Return Type:
bool
// Projectile.isAlive() as bool;myProjectile.isAlive();
Return Type:
bool
// Projectile.isAlwaysTicking as boolmyProjectile.isAlwaysTicking
Return Type:
bool
// Projectile.isAlwaysTicking() as bool;myProjectile.isAlwaysTicking();
Return Type:
bool
// Projectile.isAttackable as boolmyProjectile.isAttackable
Return Type:
bool
// Projectile.isAttackable() as bool;myProjectile.isAttackable();
Return Type:
bool
myProjectile.isColliding(myBlockPos, myBlockState);
Parameters:
state: BlockState
Type: BlockState
Return Type:
bool
// Projectile.isCrouching as boolmyProjectile.isCrouching
Return Type:
bool
// Projectile.isCrouching() as bool;myProjectile.isCrouching();
Return Type:
bool
// Projectile.isCurrentlyGlowing as boolmyProjectile.isCurrentlyGlowing
Return Type:
bool
// Projectile.isCurrentlyGlowing() as bool;myProjectile.isCurrentlyGlowing();
Return Type:
bool
// Projectile.isCustomNameVisible as boolmyProjectile.isCustomNameVisible
Return Type:
bool
// Projectile.isCustomNameVisible() as bool;myProjectile.isCustomNameVisible();
Return Type:
bool
// Projectile.isDescending as boolmyProjectile.isDescending
Return Type:
bool
// Projectile.isDescending() as bool;myProjectile.isDescending();
Return Type:
bool
// Projectile.isDiscrete as boolmyProjectile.isDiscrete
Return Type:
bool
// Projectile.isDiscrete() as bool;myProjectile.isDiscrete();
Return Type:
bool
// Projectile.isFree(x as double, y as double, z as double) as bool;myProjectile.isFree(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
Return Type:
bool
// Projectile.isFullyFrozen as boolmyProjectile.isFullyFrozen
Return Type:
bool
// Projectile.isFullyFrozen() as bool;myProjectile.isFullyFrozen();
Return Type:
bool
// Projectile.isInLava as boolmyProjectile.isInLava
Return Type:
bool
// Projectile.isInLava() as bool;myProjectile.isInLava();
Return Type:
bool
// Projectile.isInvisible as boolmyProjectile.isInvisible
Return Type:
bool
// Projectile.isInvisible() as bool;myProjectile.isInvisible();
Return Type:
bool
// Projectile.isInvulnerable as boolmyProjectile.isInvulnerable
Return Type:
bool
// Projectile.isInvulnerable() as bool;myProjectile.isInvulnerable();
Return Type:
bool
myProjectile.isInvulnerableTo(myDamageSource);
Parameters:
source: DamageSource
Type: DamageSource
Return Type:
bool
// Projectile.isInWall as boolmyProjectile.isInWall
Return Type:
bool
// Projectile.isInWall() as bool;myProjectile.isInWall();
Return Type:
bool
// Projectile.isInWater as boolmyProjectile.isInWater
Return Type:
bool
// Projectile.isInWater() as bool;myProjectile.isInWater();
Return Type:
bool
// Projectile.isInWaterOrBubble as boolmyProjectile.isInWaterOrBubble
Return Type:
bool
// Projectile.isInWaterOrBubble() as bool;myProjectile.isInWaterOrBubble();
Return Type:
bool
// Projectile.isInWaterOrRain as boolmyProjectile.isInWaterOrRain
Return Type:
bool
// Projectile.isInWaterOrRain() as bool;myProjectile.isInWaterOrRain();
Return Type:
bool
// Projectile.isInWaterRainOrBubble as boolmyProjectile.isInWaterRainOrBubble
Return Type:
bool
// Projectile.isInWaterRainOrBubble() as bool;myProjectile.isInWaterRainOrBubble();
Return Type:
bool
// Projectile.isNoGravity as boolmyProjectile.isNoGravity
Return Type:
bool
// Projectile.isNoGravity() as bool;myProjectile.isNoGravity();
Return Type:
bool
// Projectile.isOnFire as boolmyProjectile.isOnFire
Return Type:
bool
// Projectile.isOnFire() as bool;myProjectile.isOnFire();
Return Type:
bool
// Projectile.isOnPortalCooldown as boolmyProjectile.isOnPortalCooldown
Return Type:
bool
// Projectile.isOnPortalCooldown() as bool;myProjectile.isOnPortalCooldown();
Return Type:
bool
// Projectile.isPassenger as boolmyProjectile.isPassenger
Return Type:
bool
// Projectile.isPassenger() as bool;myProjectile.isPassenger();
Return Type:
bool
// Projectile.isPickable as boolmyProjectile.isPickable
Return Type:
bool
// Projectile.isPickable() as bool;myProjectile.isPickable();
Return Type:
bool
// Projectile.isPushable as boolmyProjectile.isPushable
Return Type:
bool
// Projectile.isPushable() as bool;myProjectile.isPushable();
Return Type:
bool
// Projectile.isPushedByFluid as boolmyProjectile.isPushedByFluid
Return Type:
bool
// Projectile.isPushedByFluid() as bool;myProjectile.isPushedByFluid();
Return Type:
bool
// Projectile.isRemoved as boolmyProjectile.isRemoved
Return Type:
bool
// Projectile.isRemoved() as bool;myProjectile.isRemoved();
Return Type:
bool
// Projectile.isShiftKeyDown as boolmyProjectile.isShiftKeyDown
Return Type:
bool
// Projectile.isShiftKeyDown() as bool;myProjectile.isShiftKeyDown();
Return Type:
bool
// Projectile.isSilent as boolmyProjectile.isSilent
Return Type:
bool
// Projectile.isSilent() as bool;myProjectile.isSilent();
Return Type:
bool
// Projectile.isSpectator as boolmyProjectile.isSpectator
Return Type:
bool
// Projectile.isSpectator() as bool;myProjectile.isSpectator();
Return Type:
bool
// Projectile.isSprinting as boolmyProjectile.isSprinting
Return Type:
bool
// Projectile.isSprinting() as bool;myProjectile.isSprinting();
Return Type:
bool
// Projectile.isSteppingCarefully as boolmyProjectile.isSteppingCarefully
Return Type:
bool
// Projectile.isSteppingCarefully() as bool;myProjectile.isSteppingCarefully();
Return Type:
bool
// Projectile.isSuppressingBounce as boolmyProjectile.isSuppressingBounce
Return Type:
bool
// Projectile.isSuppressingBounce() as bool;myProjectile.isSuppressingBounce();
Return Type:
bool
// Projectile.isSwimming as boolmyProjectile.isSwimming
Return Type:
bool
// Projectile.isSwimming() as bool;myProjectile.isSwimming();
Return Type:
bool
// Projectile.isUnderWater as boolmyProjectile.isUnderWater
Return Type:
bool
// Projectile.isUnderWater() as bool;myProjectile.isUnderWater();
Return Type:
bool
// Projectile.isVehicle as boolmyProjectile.isVehicle
Return Type:
bool
// Projectile.isVehicle() as bool;myProjectile.isVehicle();
Return Type:
bool
// Projectile.isVisuallyCrawling as boolmyProjectile.isVisuallyCrawling
Return Type:
bool
// Projectile.isVisuallyCrawling() as bool;myProjectile.isVisuallyCrawling();
Return Type:
bool
// Projectile.isVisuallySwimming as boolmyProjectile.isVisuallySwimming
Return Type:
bool
// Projectile.isVisuallySwimming() as bool;myProjectile.isVisuallySwimming();
Return Type:
bool
// Projectile.kill();myProjectile.kill();
// Projectile.lavaHurt();myProjectile.lavaHurt();
// Projectile.maxAirSupply as intmyProjectile.maxAirSupply
Return Type:
int
// Projectile.maxAirSupply() as int;myProjectile.maxAirSupply();
Return Type:
int
// Projectile.maxFallDistance as intmyProjectile.maxFallDistance
Return Type:
int
// Projectile.maxFallDistance() as int;myProjectile.maxFallDistance();
Return Type:
int
// Projectile.moveTo(x as double, y as double, z as double);myProjectile.moveTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
// Projectile.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);myProjectile.moveTo(myDouble, myDouble, myDouble, myFloat, myFloat);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
yaw: float
Type: float
pitch: float
Type: float
// Projectile.onGround as boolmyProjectile.onGround
Return Type:
bool
// Projectile.percentFrozen as floatmyProjectile.percentFrozen
Return Type:
float
// Projectile.percentFrozen() as float;myProjectile.percentFrozen();
Return Type:
float
// Projectile.pistonPushReaction as PushReactionmyProjectile.pistonPushReaction
Return Type:
PushReaction
myProjectile.playSound(mySoundEvent, myFloat, myFloat);
Parameters:
// Projectile.portalWaitTime as intmyProjectile.portalWaitTime
Return Type:
int
// Projectile.portalWaitTime() as int;myProjectile.portalWaitTime();
Return Type:
int
// Projectile.registryName as ResourceLocationmyProjectile.registryName
Return Type:
ResourceLocation
// Projectile.remainingFireTicks as intmyProjectile.remainingFireTicks
Return Type:
int
// Projectile.remainingFireTicks() as int;myProjectile.remainingFireTicks();
Return Type:
int
// Projectile.removeTag(tagName as string) as bool;myProjectile.removeTag(myString);
Parameters:
tagName: string
Type: string
Return Type:
bool
// Projectile.removeVehicle();myProjectile.removeVehicle();
// Projectile.setAirSupply(air as int);myProjectile.setAirSupply(myInt);
Parameters:
air: int
Type: int
myProjectile.setAttachmentData<T>(myAttachmentType, myT);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
data: T
Type: T
Return Type:
T?
myProjectile.setAttachmentData<T>(mySupplier, myT);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
data: T
Type: T
Return Type:
T?
// Projectile.setCustomNameVisible(visible as bool);myProjectile.setCustomNameVisible(myBool);
Parameters:
visible: bool
Type: bool
// Projectile.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double);myProjectile.setDeltaMovement(myDouble, myDouble, myDouble);
Parameters:
xDelta: double
Type: double
yDelta: double
Type: double
zDelta: double
Type: double
// Projectile.setGlowingTag(glowing as bool);myProjectile.setGlowingTag(myBool);
Parameters:
glowing: bool
Type: bool
// Projectile.setInvisible(invisible as bool);myProjectile.setInvisible(myBool);
Parameters:
invisible: bool
Type: bool
// Projectile.setInvulnerable(invulnerable as bool);myProjectile.setInvulnerable(myBool);
Parameters:
invulnerable: bool
Type: bool
// Projectile.setIsInPowderSnow(inPowderSnow as bool);myProjectile.setIsInPowderSnow(myBool);
Parameters:
inPowderSnow: bool
Type: bool
myProjectile.setItemSlot(myEquipmentSlot, myItemStack);
Parameters:
slot: EquipmentSlot
Type: EquipmentSlot
// Projectile.setNoGravity(noGravity as bool);myProjectile.setNoGravity(myBool);
Parameters:
noGravity: bool
Type: bool
// Projectile.setOldPosAndRot();myProjectile.setOldPosAndRot();
// Projectile.setOnGround(onGround as bool);myProjectile.setOnGround(myBool);
Parameters:
onGround: bool
Type: bool
// Projectile.setPortalCooldown();myProjectile.setPortalCooldown();
// Projectile.setPos(x as double, y as double, z as double);myProjectile.setPos(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
// Projectile.setPosRaw(x as double, y as double, z as double);myProjectile.setPosRaw(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
// Projectile.setRemainingFireTicks(ticks as int);myProjectile.setRemainingFireTicks(myInt);
Parameters:
ticks: int
Type: int
myProjectile.setRemoved(myRemovalReason);
Parameters:
var1: RemovalReason
Type: RemovalReason
// Projectile.setSecondsOnFire(seconds as int);myProjectile.setSecondsOnFire(myInt);
Parameters:
seconds: int
Type: int
// Projectile.setShiftKeyDown(keyDown as bool);myProjectile.setShiftKeyDown(myBool);
Parameters:
keyDown: bool
Type: bool
// Projectile.setSilent(silent as bool);myProjectile.setSilent(myBool);
Parameters:
silent: bool
Type: bool
// Projectile.setSprinting(sprinting as bool);myProjectile.setSprinting(myBool);
Parameters:
sprinting: bool
Type: bool
// Projectile.setSwimming(swimming as bool);myProjectile.setSwimming(myBool);
Parameters:
swimming: bool
Type: bool
// Projectile.setTicksFrozen(ticks as int);myProjectile.setTicksFrozen(myInt);
Parameters:
ticks: int
Type: int
// Projectile.shouldBeSaved as boolmyProjectile.shouldBeSaved
Return Type:
bool
// Projectile.shouldBeSaved() as bool;myProjectile.shouldBeSaved();
Return Type:
bool
// Projectile.shouldInformAdmins as boolmyProjectile.shouldInformAdmins
Return Type:
bool
// Projectile.shouldInformAdmins() as bool;myProjectile.shouldInformAdmins();
Return Type:
bool
// Projectile.shouldShowName as boolmyProjectile.shouldShowName
Return Type:
bool
// Projectile.shouldShowName() as bool;myProjectile.shouldShowName();
Return Type:
bool
// Projectile.showVehicleHealth as boolmyProjectile.showVehicleHealth
Return Type:
bool
// Projectile.showVehicleHealth() as bool;myProjectile.showVehicleHealth();
Return Type:
bool
// Projectile.soundSource as SoundSourcemyProjectile.soundSource
Return Type:
SoundSource
// Projectile.stopRiding();myProjectile.stopRiding();
// Projectile.stringUUID as stringmyProjectile.stringUUID
Return Type:
string
// Projectile.stringUUID() as string;myProjectile.stringUUID();
Return Type:
string
// Projectile.tags as Set<string>myProjectile.tags
Return Type:
Set<string>
// Projectile.tags() as Set<string>;myProjectile.tags();
Return Type:
Set<string>
// Projectile.teamColor as intmyProjectile.teamColor
Return Type:
int
// Projectile.teamColor() as int;myProjectile.teamColor();
Return Type:
int
// Projectile.teleportTo(x as double, y as double, z as double);myProjectile.teleportTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
// Projectile.ticksFrozen as intmyProjectile.ticksFrozen
Return Type:
int
// Projectile.ticksFrozen() as int;myProjectile.ticksFrozen();
Return Type:
int
// Projectile.ticksRequiredToFreeze as intmyProjectile.ticksRequiredToFreeze
Return Type:
int
// Projectile.ticksRequiredToFreeze() as int;myProjectile.ticksRequiredToFreeze();
Return Type:
int
// Projectile.turn(yaw as double, pitch as double);myProjectile.turn(myDouble, myDouble);
Parameters:
yaw: double
Type: double
pitch: double
Type: double
myProjectile.type
Return Type:
EntityType<Entity>
// Projectile.unRide();myProjectile.unRide();
// Projectile.uuid as UUIDmyProjectile.uuid
Return Type:
UUID
// Projectile.uuid() as UUID;myProjectile.uuid();
Return Type:
UUID
// Projectile.x as doublemyProjectile.x
Return Type:
double
// Projectile.x() as double;myProjectile.x();
Return Type:
double
// Projectile.y as doublemyProjectile.y
Return Type:
double
// Projectile.y() as double;myProjectile.y();
Return Type:
double
// Projectile.z as doublemyProjectile.z
Return Type:
double
// Projectile.z() as double;myProjectile.z();
Return Type:
double