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
Field recordedMemories.
hasInitializedMemories
Field hasInitializedMemories.
entityStoreRegistry
Field entityStoreRegistry.
npcMemoryProvider
Field npcMemoryProvider.
path
Field path.
config
Field config.
recordedMemoriesCount
Field recordedMemoriesCount.
memoriesAmountPerLevel
Field memoriesAmountPerLevel.
memoriesConfig
Field memoriesConfig.
memoriesLevel
Field memoriesLevel.
collectionRadius
Field collectionRadius.
playerComponent
Field playerComponent.
playerRefComponent
Field playerRefComponent.
playerMemoriesComponent
Field playerMemoriesComponent.
isFeatureUnlockedByPlayer
Field isFeatureUnlockedByPlayer.
playerConnection
Field playerConnection.
Method Detail
setup
void
setup
()
Method setup.
MemoriesCommand
new
MemoriesCommand
()
Method MemoriesCommand.
MemoriesPageSupplier
new
MemoriesPageSupplier
()
Method MemoriesPageSupplier.
PlayerAddedSystem
new
PlayerAddedSystem
()
Method PlayerAddedSystem.
TempleRespawnPlayersSystem
new
TempleRespawnPlayersSystem
()
Method TempleRespawnPlayersSystem.
start
void
start
()
Method start.
shutdown
void
shutdown
()
Method shutdown.
onAssetsLoad
void
onAssetsLoad
()
Method onAssetsLoad.
HashSet
new
HashSet
()
Method HashSet.
getConfig
MemoriesPluginConfig
getConfig
()
Method getConfig.
getPlayerMemoriesComponentType
PlayerMemories>
getPlayerMemoriesComponentType
()
Method getPlayerMemoriesComponentType.
registerMemoryProvider
Method registerMemoryProvider.
- Parameters:
final MemoryProvidermemoryProvider
getAllMemories
Set>
getAllMemories
()
Method getAllMemories.
getMemoriesForNextLevel
Method getMemoriesForNextLevel.
- Parameters:
@Nonnull final GameplayConfiggameplayConfig
recordPlayerMemories
Method recordPlayerMemories.
- Parameters:
@Nonnull final PlayerMemoriesplayerMemories
getRecordedMemories
Set
getRecordedMemories
()
Method getRecordedMemories.
clearRecordedMemories
void
clearRecordedMemories
()
Method clearRecordedMemories.
recordAllMemories
void
recordAllMemories
()
Method recordAllMemories.
getCollectionRadius
Object2DoubleMap
getCollectionRadius
()
Method getCollectionRadius.
SystemDependency
new
SystemDependency
(Order.AFTER, PlayerSystems.PlayerSpawnedSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERPlayerSystems.PlayerSpawnedSystem.classPlayerSystems.PlayerSpawnedSystem.class
getDependencies
Set>
getDependencies
()
Method getDependencies.
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
UpdateMemoriesFeatureStatus
new
UpdateMemoriesFeatureStatus
(isFeatureUnlockedByPlayer)
Method UpdateMemoriesFeatureStatus.
- Parameters:
isFeatureUnlockedByPlayerisFeatureUnlockedByPlayer
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer