BeaconSupport

public class BeaconSupport extends MessageSupport implements Component

Class BeaconSupport. Provides beaconsupport functionality for the Hytale server.

java.lang.Object > MessageSupport > BeaconSupport

Field Summary

messageSlots

private NPCMessage[] messageSlots

Field messageSlots.

messageIndices

private Object2IntMap messageIndices

Field messageIndices.

indicesToMessages

private Int2ObjectMap indicesToMessages

Field indicesToMessages.

slot

final int slot

Field slot.

beacon

final NPCMessage beacon

Field beacon.

messages

final NPCMessage[] messages

Field messages.

beaconSupport

final BeaconSupport beaconSupport

Field beaconSupport.

Method Detail

getComponentType

public BeaconSupport> getComponentType ()

Method getComponentType.

postMessage

public void postMessage (final String message, final Ref target, final double age)

Method postMessage.

Parameters:
final String message
final Ref target
final double age

pollMessage

public Ref pollMessage (final int messageIndex)

Method pollMessage.

Parameters:
final int messageIndex

peekMessage

public Ref peekMessage (final int messageIndex)

Method peekMessage.

Parameters:
final int messageIndex

initialise

public void initialise (@Nonnull final Object2IntMap messageIndices)

Method initialise.

Parameters:
@Nonnull final Object2IntMap messageIndices

getMessageTextForIndex

public String getMessageTextForIndex (final int messageIndex)

Method getMessageTextForIndex.

Parameters:
final int messageIndex

getMessageSlots

public NPCMessage[] getMessageSlots ()

Method getMessageSlots.

clone

public Component clone ()

Method clone.