ProjectileInteraction

public class ProjectileInteraction extends SimpleInstantInteraction implements BallisticDataProvider

Class ProjectileInteraction. Provides projectileinteraction functionality for the Hytale server.

java.lang.Object > SimpleInstantInteraction > ProjectileInteraction

Field Summary

config

protected String config

Field config.

clientState

final InteractionSyncData clientState

Field clientState.

ref

final Ref ref

Field ref.

commandBuffer

final CommandBuffer commandBuffer

Field commandBuffer.

hasClientState

final boolean hasClientState

Field hasClientState.

lookVec

final Vector3f lookVec

Field lookVec.

lookVec2

final Transform lookVec2

Field lookVec2.

state

final InteractionSyncData state

Field state.

rotation

final Vector3f rotation

Field rotation.

p

final com.hypixel.hytale.protocol.ProjectileInteraction p

Field p.

Method Detail

getConfig

public ProjectileConfig getConfig ()

Method getConfig.

getBallisticData

public BallisticData getBallisticData ()

Method getBallisticData.

getWaitForDataFrom

public WaitForDataFrom getWaitForDataFrom ()

Method getWaitForDataFrom.

needsRemoteSync

public boolean needsRemoteSync ()

Method needsRemoteSync.

firstRun

Method firstRun.

Parameters:
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nonnull final CooldownHandler cooldownHandler

Vector3d

public new Vector3d (lookVec.getYaw()

Method Vector3d.

Parameters:
lookVec.getYaw( lookVec.getYaw(

simulateFirstRun

protected void simulateFirstRun (@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nonnull final CooldownHandler cooldownHandler)

Method simulateFirstRun.

Parameters:
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nonnull final CooldownHandler cooldownHandler

Direction

public new Direction (rotation.getYaw()

Method Direction.

Parameters:
rotation.getYaw( rotation.getYaw(

generatePacket

protected com.hypixel.hytale.protocol.Interaction generatePacket ()

Method generatePacket.

configurePacket

protected void configurePacket (final com.hypixel.hytale.protocol.Interaction packet)

Method configurePacket.

Parameters:
final com.hypixel.hytale.protocol.Interaction packet

IllegalStateException

public new IllegalStateException ("ProjectileInteraction '" + this.getId()

Method IllegalStateException.

Parameters:
"ProjectileInteraction '" + this.getId(

KeyedCodec

public new KeyedCodec ("Config", Codec.STRING)

Method KeyedCodec.

Parameters:
"Config" "Config"
Codec.STRING Codec.STRING