Contents
Class GroundFollowPhysicsConfig
java.lang.Object
com.hypixel.hytale.server.core.modules.projectile.config.StandardPhysicsConfig
com.hypixel.hytale.server.core.modules.projectile.config.GroundFollowPhysicsConfig
- All Implemented Interfaces:
NetworkSerializable<PhysicsConfig>, PhysicsConfig
Standard projectile physics plus terrain following: instead of colliding with the
ground, the projectile snaps to the surface ahead each tick, climbing up to MaxClimb
blocks and dropping up to MaxDrop blocks. A taller wall or deeper cliff ends its course
and runs its miss chain there (e.g. a ground wave erupting where it stops). Server-side
movement only: spawn ground-follow projectiles unpredicted (e.g. LaunchAbilityProjectile); a
predicting client would simulate them as Standard.
-
Field Summary
FieldsFields inherited from class StandardPhysicsConfig
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Holder<EntityStore> holder, Ref<EntityStore> creatorRef, org.joml.Vector3d velocity, ComponentAccessor<EntityStore> componentAccessor, boolean predicted) Called to apply the physics to the given entity store holder.Methods inherited from class StandardPhysicsConfig
getBounceCount, getBounceLimit, getBounciness, getGravity, getHitWaterImpulseLoss, getRollingFrictionFactor, getSwimmingDampingFactor, isAllowRolling, isSticksVertically, toPacket
-
Field Details
-
CODEC
-
-
Constructor Details
-
GroundFollowPhysicsConfig
public GroundFollowPhysicsConfig()
-
-
Method Details
-
apply
public void apply(@Nonnull Holder<EntityStore> holder, @Nullable Ref<EntityStore> creatorRef, @Nonnull org.joml.Vector3d velocity, @Nonnull ComponentAccessor<EntityStore> componentAccessor, boolean predicted) Description copied from interface:PhysicsConfigCalled to apply the physics to the given entity store holder.- Specified by:
applyin interfacePhysicsConfig- Overrides:
applyin classStandardPhysicsConfig- Parameters:
holder- The entity holder of the projectile.creatorRef- The entity reference of the instigating entity.velocity- The initial velocity of the projectile.componentAccessor- TheComponentAccessor<EntityStore>for component access.predicted- Whether the physics is being applied in a predicted context.
-