Skip to content

API reference / @jsprismarine/errors / prismarine/entity

prismarine/entity ​

Classes ​

Variables ​

PrismarineEntityErrors ​

const PrismarineEntityErrors: Readonly<{ EntityHasNoPlainRecord: typeof EntityHasNoPlainRecord; EntityNotInDimension: typeof EntityNotInDimension; EntityNotRestored: typeof EntityNotRestored; EntityRuntimeReadTooEarly: typeof EntityRuntimeReadTooEarly; InvalidHangingComponent: typeof InvalidHangingComponent; InvalidLoggedField: typeof InvalidLoggedField; InvalidPlayerField: typeof InvalidPlayerField; InvalidSavedGameMode: typeof InvalidSavedGameMode; InvalidSavedMeal: typeof InvalidSavedMeal; InvalidSavedMerchant: typeof InvalidSavedMerchant; InvalidSavedMining: typeof InvalidSavedMining; InvalidSavedSpawnPoint: typeof InvalidSavedSpawnPoint; ItemComponentFieldNotNumber: typeof ItemComponentFieldNotNumber; MembershipEntryHasNoRecord: typeof MembershipEntryHasNoRecord; MerchantHasNoPlainForm: typeof MerchantHasNoPlainForm; MissingItemComponent: typeof MissingItemComponent; NoEntityWriter: typeof NoEntityWriter; NoFieldWriter: typeof NoFieldWriter; NoWorldForEntities: typeof NoWorldForEntities; RuntimeIdsExhausted: typeof RuntimeIdsExhausted; StorePlayerAlreadyAttached: typeof StorePlayerAlreadyAttached; StorePlayerEntityMismatch: typeof StorePlayerEntityMismatch; UnsupportedMobEffect: typeof UnsupportedMobEffect; ValueHasNoPlainForm: typeof ValueHasNoPlainForm; }>

Defined in: packages/errors/src/prismarine/entity.ts:890

The errors the entity code of @jsprismarine/prismarine throws.