public class ProjectileInteraction extendsSimpleInstantInteractionimplementsBallisticDataProvider
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
needsRemoteSync
public
boolean
needsRemoteSync
()
Method needsRemoteSync.
firstRun
protected
void
firstRun
(@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nonnull final CooldownHandler cooldownHandler)
Method firstRun.
- Parameters:
@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nonnull final CooldownHandlercooldownHandler
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 InteractionTypetype@Nonnull final InteractionContextcontext@Nonnull final CooldownHandlercooldownHandler
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.Interactionpacket
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.STRINGCodec.STRING