Hierarchy

  • Server

Constructors

  • Parameters

    • __namedParameters: { config: Config; logger?: Logger; version: string }

    Returns Server

Properties

instance: Server

Deprecated

Methods

  • Parameters

    • Optional serverIp: string
    • Optional port: number

    Returns Promise<void>

  • Type Parameters

    Parameters

    • dataPacket: T

    Returns Promise<void>

  • Returns the current TPS

    Returns { five: number; one: number; ten: number }

    • five: number
    • one: number
    • ten: number
  • Returns the ban manager

    Returns BanManager

  • Returns the block manager

    Returns BlockManager

  • Returns the chat manager

    Returns ChatManager

  • Returns the config

    Returns Config

  • Returns the console instance

    Returns default

  • Returns the event manager

    Returns { emit: any; on: any; once: any; removeAllListeners: any; removeListener: any } & EventManagerWithoutEventEmitterishMethods

  • Returns { ActorEventPacket: number; ActorFallPacket: number; ActorPickRequestPacket: number; AddActorPacket: number; AddBehaviorTreePacket: number; AddEntityPacket: number; AddItemActorPacket: number; AddPaintingPacket: number; AddPlayerPacket: number; AdventureSettingsPacket: number; AnimateEntityPacket: number; AnimatePacket: number; AnvilDamagePacket: number; AutomationClientConnectPacket: number; AvailableActorIdentifiersPacket: number; AvailableCommandsPacket: number; BiomeDefinitionListPacket: number; BlockActorDataPacket: number; BlockEventPacket: number; BlockPickRequestPacket: number; BookEditPacket: number; BossEventPacket: number; CameraPacket: number; CameraShakePacket: number; ChangeDimensionPacket: number; ChunkRadiusUpdatedPacket: number; ClientCacheBlobStatusPacket: number; ClientCacheMissResponsePacket: number; ClientCacheStatusPacket: number; ClientToServerHandshakePacket: number; ClientboundDebugRendererPacket: number; ClientboundMapItemDataPacket: number; CodeBuilderPacket: number; CommandBlockUpdatePacket: number; CommandOutputPacket: number; CommandRequestPacket: number; CompletedUsingItemPacket: number; ContainerClosePacket: number; ContainerOpenPacket: number; ContainerSetDataPacket: number; CorrectPlayerMovePredictionPacket: number; CraftingDataPacket: number; CraftingEventPacket: number; CreativeContentPacket: number; DebugInfoPacket: number; DisconnectPacket: number; EducationSettingsPacket: number; EmoteListPacket: number; EmotePacket: number; EventPacket: number; FilterTextPacket: number; GameRulesChangedPacket: number; GuiDataPickItemPacket: number; HurtArmorPacket: number; InteractPacket: number; InventoryContentPacket: number; InventorySlotPacket: number; InventoryTransactionPacket: number; ItemComponentPacket: number; ItemFrameDropItemPacket: number; ItemStackRequestPacket: number; ItemStackResponsePacket: number; LabTablePacket: number; LecternUpdatePacket: number; LevelChunkPacket: number; LevelEventGenericPacket: number; LevelSoundEventPacket: number; LevelSoundEventPacketV1: number; LevelSoundEventPacketV2: number; LoginPacket: number; MapCreateLockedCopyPacket: number; MapInfoRequestPacket: number; MinecraftVersion: string; MobArmorEquipmentPacket: number; MobEffectPacket: number; MobEquipmentPacket: number; ModalFormRequestPacket: number; ModalFormResponsePacket: number; MotionPredictionHintsPacket: number; MoveActorAbsolutePacket: number; MoveActorDeltaPacket: number; MovePlayerPacket: number; MultiplayerSettingsPacket: number; NPCRequestPacket: number; NetworkChunkPublisherUpdatePacket: number; NetworkSettingsPacket: number; NetworkStackLatencyPacket: number; OnScreenTextureAnimationPacket: number; PacketViolationWarningPacket: number; PhotoTransferPacket: number; PlaySoundPacket: number; PlayStatusPacket: number; PlayerActionPacket: number; PlayerArmorDamagePacket: number; PlayerAuthInputPacket: number; PlayerEnchantOptionsPacket: number; PlayerFogPacket: number; PlayerHotbarPacket: number; PlayerInputPacket: number; PlayerListPacket: number; PlayerSkinPacket: number; PositionTrackingDBClientRequestPacket: number; PositionTrackingDBServerBroadcastPacket: number; Protocol: number; PurchaseReceiptPacket: number; RemoveActorPacket: number; RemoveEntityPacket: number; RemoveObjectivePacket: number; RequestChunkRadiusPacket: number; ResourcePackChunkDataPacket: number; ResourcePackChunkRequestPacket: number; ResourcePackDataInfoPacket: number; ResourcePackResponsePacket: number; ResourcePackStackPacket: number; ResourcePacksInfoPacket: number; RespawnPacket: number; RiderJumpPacket: number; ScriptCustomEventPacket: number; ServerSettingsRequestPacket: number; ServerSettingsResponsePacket: number; ServerToClientHandshakePacket: number; SetActorDataPacket: number; SetActorLinkPacket: number; SetActorMotionPacket: number; SetCommandsEnabledPacket: number; SetDefaultGameTypePacket: number; SetDifficultyPacket: number; SetDisplayObjectivePacket: number; SetHealthPacket: number; SetLastHurtByPacket: number; SetLocalPlayerAsInitializedPacket: number; SetPlayerGameTypePacket: number; SetScorePacket: number; SetScoreboardIdentityPacket: number; SetSpawnPositionPacket: number; SetTimePacket: number; SetTitlePacket: number; SettingsCommandPacket: number; ShowCreditsPacket: number; ShowProfilePacket: number; ShowStoreOfferPacket: number; SimpleEventPacket: number; SpawnExperienceOrbPacket: number; SpawnParticleEffectPacket: number; StartGamePacket: number; StopSoundPacket: number; StructureBlockUpdatePacket: number; StructureTemplateDataRequestPacket: number; StructureTemplateDataResponsePacket: number; SubClientLoginPacket: number; TakeItemActorPacket: number; TextPacket: number; TickSyncPacket: number; TransferPacket: number; UpdateAttributesPacket: number; UpdateBlockPacket: number; UpdateBlockPropertiesPacket: number; UpdateBlockSyncedPacket: number; UpdateEquipPacket: number; UpdatePlayerGameTypePacket: number; UpdateSoftEnumPacket: number; UpdateTradePacket: number; WorldEventPacket: number }

    • ActorEventPacket: number
    • ActorFallPacket: number
    • ActorPickRequestPacket: number
    • AddActorPacket: number
    • AddBehaviorTreePacket: number
    • AddEntityPacket: number
    • AddItemActorPacket: number
    • AddPaintingPacket: number
    • AddPlayerPacket: number
    • AdventureSettingsPacket: number
    • AnimateEntityPacket: number
    • AnimatePacket: number
    • AnvilDamagePacket: number
    • AutomationClientConnectPacket: number
    • AvailableActorIdentifiersPacket: number
    • AvailableCommandsPacket: number
    • BiomeDefinitionListPacket: number
    • BlockActorDataPacket: number
    • BlockEventPacket: number
    • BlockPickRequestPacket: number
    • BookEditPacket: number
    • BossEventPacket: number
    • CameraPacket: number
    • CameraShakePacket: number
    • ChangeDimensionPacket: number
    • ChunkRadiusUpdatedPacket: number
    • ClientCacheBlobStatusPacket: number
    • ClientCacheMissResponsePacket: number
    • ClientCacheStatusPacket: number
    • ClientToServerHandshakePacket: number
    • ClientboundDebugRendererPacket: number
    • ClientboundMapItemDataPacket: number
    • CodeBuilderPacket: number
    • CommandBlockUpdatePacket: number
    • CommandOutputPacket: number
    • CommandRequestPacket: number
    • CompletedUsingItemPacket: number
    • ContainerClosePacket: number
    • ContainerOpenPacket: number
    • ContainerSetDataPacket: number
    • CorrectPlayerMovePredictionPacket: number
    • CraftingDataPacket: number
    • CraftingEventPacket: number
    • CreativeContentPacket: number
    • DebugInfoPacket: number
    • DisconnectPacket: number
    • EducationSettingsPacket: number
    • EmoteListPacket: number
    • EmotePacket: number
    • EventPacket: number
    • FilterTextPacket: number
    • GameRulesChangedPacket: number
    • GuiDataPickItemPacket: number
    • HurtArmorPacket: number
    • InteractPacket: number
    • InventoryContentPacket: number
    • InventorySlotPacket: number
    • InventoryTransactionPacket: number
    • ItemComponentPacket: number
    • ItemFrameDropItemPacket: number
    • ItemStackRequestPacket: number
    • ItemStackResponsePacket: number
    • LabTablePacket: number
    • LecternUpdatePacket: number
    • LevelChunkPacket: number
    • LevelEventGenericPacket: number
    • LevelSoundEventPacket: number
    • LevelSoundEventPacketV1: number
    • LevelSoundEventPacketV2: number
    • LoginPacket: number
    • MapCreateLockedCopyPacket: number
    • MapInfoRequestPacket: number
    • MinecraftVersion: string
    • MobArmorEquipmentPacket: number
    • MobEffectPacket: number
    • MobEquipmentPacket: number
    • ModalFormRequestPacket: number
    • ModalFormResponsePacket: number
    • MotionPredictionHintsPacket: number
    • MoveActorAbsolutePacket: number
    • MoveActorDeltaPacket: number
    • MovePlayerPacket: number
    • MultiplayerSettingsPacket: number
    • NPCRequestPacket: number
    • NetworkChunkPublisherUpdatePacket: number
    • NetworkSettingsPacket: number
    • NetworkStackLatencyPacket: number
    • OnScreenTextureAnimationPacket: number
    • PacketViolationWarningPacket: number
    • PhotoTransferPacket: number
    • PlaySoundPacket: number
    • PlayStatusPacket: number
    • PlayerActionPacket: number
    • PlayerArmorDamagePacket: number
    • PlayerAuthInputPacket: number
    • PlayerEnchantOptionsPacket: number
    • PlayerFogPacket: number
    • PlayerHotbarPacket: number
    • PlayerInputPacket: number
    • PlayerListPacket: number
    • PlayerSkinPacket: number
    • PositionTrackingDBClientRequestPacket: number
    • PositionTrackingDBServerBroadcastPacket: number
    • Protocol: number
    • PurchaseReceiptPacket: number
    • RemoveActorPacket: number
    • RemoveEntityPacket: number
    • RemoveObjectivePacket: number
    • RequestChunkRadiusPacket: number
    • ResourcePackChunkDataPacket: number
    • ResourcePackChunkRequestPacket: number
    • ResourcePackDataInfoPacket: number
    • ResourcePackResponsePacket: number
    • ResourcePackStackPacket: number
    • ResourcePacksInfoPacket: number
    • RespawnPacket: number
    • RiderJumpPacket: number
    • ScriptCustomEventPacket: number
    • ServerSettingsRequestPacket: number
    • ServerSettingsResponsePacket: number
    • ServerToClientHandshakePacket: number
    • SetActorDataPacket: number
    • SetActorLinkPacket: number
    • SetActorMotionPacket: number
    • SetCommandsEnabledPacket: number
    • SetDefaultGameTypePacket: number
    • SetDifficultyPacket: number
    • SetDisplayObjectivePacket: number
    • SetHealthPacket: number
    • SetLastHurtByPacket: number
    • SetLocalPlayerAsInitializedPacket: number
    • SetPlayerGameTypePacket: number
    • SetScorePacket: number
    • SetScoreboardIdentityPacket: number
    • SetSpawnPositionPacket: number
    • SetTimePacket: number
    • SetTitlePacket: number
    • SettingsCommandPacket: number
    • ShowCreditsPacket: number
    • ShowProfilePacket: number
    • ShowStoreOfferPacket: number
    • SimpleEventPacket: number
    • SpawnExperienceOrbPacket: number
    • SpawnParticleEffectPacket: number
    • StartGamePacket: number
    • StopSoundPacket: number
    • StructureBlockUpdatePacket: number
    • StructureTemplateDataRequestPacket: number
    • StructureTemplateDataResponsePacket: number
    • SubClientLoginPacket: number
    • TakeItemActorPacket: number
    • TextPacket: number
    • TickSyncPacket: number
    • TransferPacket: number
    • UpdateAttributesPacket: number
    • UpdateBlockPacket: number
    • UpdateBlockPropertiesPacket: number
    • UpdateBlockSyncedPacket: number
    • UpdateEquipPacket: number
    • UpdatePlayerGameTypePacket: number
    • UpdateSoftEnumPacket: number
    • UpdateTradePacket: number
    • WorldEventPacket: number
  • Returns the item manager

    Returns ItemManager

  • Returns the logger

    Returns undefined | Logger

  • Returns the packet registry

    Returns default

  • Returns the plugin manager

    Returns PluginManager

  • Returns the query manager

    Returns QueryManager

  • Returns this Prismarine instance

    Returns Server

  • Returns the player manager

    Returns default

  • Returns the current TPS

    Returns number

  • Returns string

  • Returns the world manager

    Returns WorldManager

  • Returns Promise<void>

  • Kills the server asynchronously.

    Parameters

    • Optional options: { crash?: boolean; withoutSaving?: boolean }
      • Optional crash?: boolean
      • Optional withoutSaving?: boolean

    Returns Promise<void>

Generated using TypeDoc