mirror of https://github.com/FabricMC/yarn.git
66 lines
2.5 KiB
Plaintext
66 lines
2.5 KiB
Plaintext
CLASS net/minecraft/class_1676 net/minecraft/entity/projectile/ProjectileEntity
|
|
FIELD field_22478 ownerUuid Ljava/util/UUID;
|
|
FIELD field_23740 leftOwner Z
|
|
FIELD field_28646 shot Z
|
|
FIELD field_33399 owner Lnet/minecraft/class_1297;
|
|
METHOD method_24919 setVelocity (Lnet/minecraft/class_1297;FFFFF)V
|
|
COMMENT Sets velocity and updates rotation accordingly.
|
|
ARG 1 shooter
|
|
COMMENT the entity who shot this projectile; used to add the shooter's velocity
|
|
COMMENT to this projectile
|
|
ARG 2 pitch
|
|
COMMENT the pitch
|
|
ARG 3 yaw
|
|
COMMENT the yaw
|
|
ARG 4 roll
|
|
COMMENT the roll
|
|
ARG 5 speed
|
|
COMMENT the speed
|
|
ARG 6 divergence
|
|
COMMENT the fuzziness added to the direction; player usages have 1.0 and other
|
|
COMMENT mobs/tools have higher values; some mobs have difficulty-adjusted
|
|
COMMENT values
|
|
METHOD method_24920 onBlockHit (Lnet/minecraft/class_3965;)V
|
|
ARG 1 blockHitResult
|
|
METHOD method_26958 canHit (Lnet/minecraft/class_1297;)Z
|
|
ARG 1 entity
|
|
METHOD method_26959 (Lnet/minecraft/class_1297;)Z
|
|
ARG 0 entity
|
|
METHOD method_26960 updateRotation (FF)F
|
|
ARG 0 prevRot
|
|
ARG 1 newRot
|
|
METHOD method_26961 shouldLeaveOwner ()Z
|
|
METHOD method_26962 updateRotation ()V
|
|
METHOD method_34714 isOwner (Lnet/minecraft/class_1297;)Z
|
|
ARG 1 entity
|
|
METHOD method_37225 getEffectCause ()Lnet/minecraft/class_1297;
|
|
COMMENT {@return the cause entity of any effect applied by this projectile} If this
|
|
COMMENT projectile has an owner, the effect is attributed to the owner; otherwise, it
|
|
COMMENT is attributed to this projectile itself.
|
|
METHOD method_7432 setOwner (Lnet/minecraft/class_1297;)V
|
|
ARG 1 entity
|
|
METHOD method_7454 onEntityHit (Lnet/minecraft/class_3966;)V
|
|
ARG 1 entityHitResult
|
|
METHOD method_7485 setVelocity (DDDFF)V
|
|
COMMENT Sets velocity and updates rotation accordingly.
|
|
COMMENT
|
|
COMMENT <p>The velocity and rotation will be set to the same direction.
|
|
COMMENT
|
|
COMMENT <p>The direction is calculated as follows: Based on the direction vector
|
|
COMMENT {@code (x, y, z)}, a random vector is added, then multiplied by the
|
|
COMMENT {@code speed}.
|
|
ARG 1 x
|
|
COMMENT the X component of the direction vector
|
|
ARG 3 y
|
|
COMMENT the Y component of the direction vector
|
|
ARG 5 z
|
|
COMMENT the Z component of the direction vector
|
|
ARG 7 speed
|
|
COMMENT the speed
|
|
ARG 8 divergence
|
|
COMMENT the fuzziness added to the direction; player usages have 1.0 and other
|
|
COMMENT mobs/tools have higher values; some mobs have difficulty-adjusted
|
|
COMMENT values
|
|
METHOD method_7488 onCollision (Lnet/minecraft/class_239;)V
|
|
ARG 1 hitResult
|