MemoriesPlugin

public class MemoriesPlugin extends JavaPlugin

The main plugin class for Memories. This plugin provides gameplay features for the Hytale server. Extend this class to create a plugin.

java.lang.Object > JavaPlugin > MemoriesPlugin

Field Summary

recordedMemories

private RecordedMemories recordedMemories

Field recordedMemories.

hasInitializedMemories

private boolean hasInitializedMemories

Field hasInitializedMemories.

entityStoreRegistry

final ComponentRegistryProxy entityStoreRegistry

Field entityStoreRegistry.

npcMemoryProvider

final NPCMemoryProvider npcMemoryProvider

Field npcMemoryProvider.

path

final Path path

Field path.

config

final MemoriesGameplayConfig config

Field config.

recordedMemoriesCount

final int recordedMemoriesCount

Field recordedMemoriesCount.

memoriesAmountPerLevel

final int[] memoriesAmountPerLevel

Field memoriesAmountPerLevel.

memoriesConfig

final MemoriesGameplayConfig memoriesConfig

Field memoriesConfig.

memoriesLevel

final int memoriesLevel

Field memoriesLevel.

collectionRadius

private Object2DoubleMap collectionRadius

Field collectionRadius.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

playerMemoriesComponent

final PlayerMemories playerMemoriesComponent

Field playerMemoriesComponent.

isFeatureUnlockedByPlayer

final boolean isFeatureUnlockedByPlayer

Field isFeatureUnlockedByPlayer.

playerConnection

final PacketHandler playerConnection

Field playerConnection.

Method Detail

get

static MemoriesPlugin get ()

Method get.

MemoriesPlugin

public public MemoriesPlugin (@Nonnull final JavaPluginInit init)

Method MemoriesPlugin.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

MemoriesCommand

public new MemoriesCommand ()

Method MemoriesCommand.

MemoriesPageSupplier

public new MemoriesPageSupplier ()

Method MemoriesPageSupplier.

PlayerAddedSystem

public new PlayerAddedSystem ()

Method PlayerAddedSystem.

TempleRespawnPlayersSystem

public new TempleRespawnPlayersSystem ()

Method TempleRespawnPlayersSystem.

start

protected void start ()

Method start.

shutdown

protected void shutdown ()

Method shutdown.

onAssetsLoad

private void onAssetsLoad ()

Method onAssetsLoad.

HashSet

public new HashSet ()

Method HashSet.

getConfig

public MemoriesPluginConfig getConfig ()

Method getConfig.

getPlayerMemoriesComponentType

public PlayerMemories> getPlayerMemoriesComponentType ()

Method getPlayerMemoriesComponentType.

registerMemoryProvider

public void registerMemoryProvider (final MemoryProvider memoryProvider)

Method registerMemoryProvider.

Parameters:
final MemoryProvider memoryProvider

getAllMemories

public Set> getAllMemories ()

Method getAllMemories.

getMemoriesLevel

public int getMemoriesLevel (@Nonnull final GameplayConfig gameplayConfig)

Method getMemoriesLevel.

Parameters:
@Nonnull final GameplayConfig gameplayConfig

getMemoriesForNextLevel

public int getMemoriesForNextLevel (@Nonnull final GameplayConfig gameplayConfig)

Method getMemoriesForNextLevel.

Parameters:
@Nonnull final GameplayConfig gameplayConfig

hasRecordedMemory

public boolean hasRecordedMemory (final Memory memory)

Method hasRecordedMemory.

Parameters:
final Memory memory

recordPlayerMemories

public boolean recordPlayerMemories (@Nonnull final PlayerMemories playerMemories)

Method recordPlayerMemories.

Parameters:
@Nonnull final PlayerMemories playerMemories

getRecordedMemories

public Set getRecordedMemories ()

Method getRecordedMemories.

clearRecordedMemories

public void clearRecordedMemories ()

Method clearRecordedMemories.

recordAllMemories

public void recordAllMemories ()

Method recordAllMemories.

getCollectionRadius

public Object2DoubleMap getCollectionRadius ()

Method getCollectionRadius.

SystemDependency

public new SystemDependency (Order.AFTER, PlayerSystems.PlayerSpawnedSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
PlayerSystems.PlayerSpawnedSystem.class PlayerSystems.PlayerSpawnedSystem.class

getQuery

public Query getQuery ()

Method getQuery.

getDependencies

public Set> getDependencies ()

Method getDependencies.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

UpdateMemoriesFeatureStatus

public new UpdateMemoriesFeatureStatus (isFeatureUnlockedByPlayer)

Method UpdateMemoriesFeatureStatus.

Parameters:
isFeatureUnlockedByPlayer isFeatureUnlockedByPlayer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer