HyCodeYourTale
classpublicPriority 1

ProjectileComponent

com.hypixel.hytale.server.core.entity.entities.ProjectileComponent

implements Component

14

Methods

14

Public Methods

8

Fields

3

Constructors

Constants

BuilderCodec<ProjectileComponent>CODEC= BuilderCodec.builder(ProjectileComponent.class, ProjectileComponent::new) .append( ...
doubleDEFAULT_DESPAWN_SECONDS= 60.0

Constructors

private
ProjectileComponent()
public
ProjectileComponent(String projectileAssetName)
public
ProjectileComponent(ProjectileComponent other)

Methods

Public Methods (14)

public
void applyBrokenPenalty(float penalty)
public
Component<EntityStore> clone()
@Nonnull@Override
public
boolean consumeDeadTimer(float dt)
public
String getAppearance()
publicstatic
ComponentType<EntityStore, ProjectileComponent> getComponentType()
@Nonnull
public
Projectile getProjectile()
@Nullable
public
String getProjectileAssetName()
public
SimplePhysicsProvider getSimplePhysicsProvider()
public
boolean initialize()
public
void initializePhysics(BoundingBox boundingBox)
public
boolean isOnGround()
public
void onProjectileBounce(Vector3d position, ComponentAccessor<EntityStore> componentAccessor)
public
void onProjectileDeath(Ref<EntityStore> ref, Vector3d position, CommandBuffer<EntityStore> commandBuffer)
public
void shoot(Holder<EntityStore> holder, UUID creatorUuid, double x, double y, double z, float yaw, float pitch)

Fields

Private/Package Fields (8)

privatetransient String appearance
privatefloat brokenDamageModifier
privateUUID creatorUuid
privatedouble deadTimer
privateboolean haveHit
privateVector3d lastBouncePosition
privatetransient Projectile projectile
privateString projectileAssetName

Related Classes