Package org.core.platform
Interface Platform
public interface Platform
Info about the platform TranslateCore is running on
-
Method Summary
Modifier and TypeMethodDescriptionboolean
<E extends CustomEvent>
EcallEvent(E event)
<T> UnspecificParser<T>
get(UnspecificParsers<T> itemStack)
Deprecated.<E extends LiveEntity, S extends EntitySnapshot<E>>
@NotNull Singleton<EntityType<E,S>>get(EntityTypes<E,S> entityId)
@NotNull Singleton<ParrotType>
get(ParrotTypes parrotID)
get(ItemTypeCommon itemId)
@NotNull Singleton<PatternLayerType>
get(PatternLayerTypes id)
@NotNull Singleton<ApplyPhysicsFlag>
get(ApplyPhysicsFlags flags)
Stream<EntityType<? extends LiveEntity,? extends EntitySnapshot<? extends LiveEntity>>>
@NotNull Collection<ApplyPhysicsFlag>
@NotNull Optional<ApplyPhysicsFlag>
getApplyPhysics(String id)
default @NotNull Optional<BlockGroup>
getBlockGroup(@NotNull String id)
default @NotNull Collection<BlockGroup>
Deprecated, for removal: This API element is subject to removal in a future version.getBlockType(String id)
default @NotNull Collection<BlockType>
Deprecated, for removal: This API element is subject to removal in a future version.@NotNull ConfigurationFormat
@NotNull Collection<TileEntitySnapshot<? extends TileEntity>>
default @NotNull Optional<TileEntitySnapshot<? extends TileEntity>>
getDefaultTileEntity(@NotNull BlockType type)
@NotNull PlatformDetails
getDyeType(String id)
@NotNull Collection<DyeType>
<E extends LiveEntity>
@NotNull Optional<EntityType<E,? extends EntitySnapshot<E>>>getEntityType(String id)
default @NotNull Collection<EntityType<? extends LiveEntity,? extends EntitySnapshot<? extends LiveEntity>>>
Deprecated, for removal: This API element is subject to removal in a future version.@NotNull PlatformDetails
getItemType(String id)
default @NotNull Collection<ItemType>
Deprecated, for removal: This API element is subject to removal in a future version.@NotNull CorePluginVersion
@NotNull Collection<ParrotType>
@NotNull Optional<ParrotType>
getParrotType(String id)
@NotNull Optional<PatternLayerType>
@NotNull Collection<PatternLayerType>
default @NotNull Collection<Permission>
Deprecated, for removal: This API element is subject to removal in a future version.@NotNull File
@NotNull File
Deprecated, for removal: This API element is subject to removal in a future version.@NotNull Collection<Structure>
default @NotNull File
default @NotNull TranslateCorePlatformDetails
default @NotNull File
@NotNull Optional<UnspecificParser<?>>
Deprecated.@NotNull Collection<UnspecificParser<?>>
Deprecated.default <O extends UpdateOption>
@NotNull Optional<PlatformUpdate<O>>getUpdateChecker(@NotNull String idName)
@NotNull Collection<PlatformUpdate<?>>
@NotNull Permission
Deprecated.@NotNull CorePermission
register(CorePermission permissionNode)
@NotNull Structure
register(StructureBuilder builder)
@NotNull Structure
register(StructureFileBuilder builder)
void
setDeveloperCommandsEnabled(boolean enabled)
-
Method Details
-
areDeveloperCommandsEnabled
boolean areDeveloperCommandsEnabled() -
setDeveloperCommandsEnabled
void setDeveloperCommandsEnabled(boolean enabled) -
getImplementationDetails
-
getUpdateCheckers
-
get
-
get
-
get
-
get
Deprecated. -
get
-
get
-
get
@NotNull <E extends LiveEntity, S extends EntitySnapshot<E>> @NotNull Singleton<EntityType<E,S>> get(EntityTypes<E,S> entityId) -
getEntityType
@NotNull <E extends LiveEntity> @NotNull Optional<EntityType<E,? extends EntitySnapshot<E>>> getEntityType(String id) -
getBlockType
-
getItemType
-
getDyeType
-
getPatternLayerType
-
getParrotType
-
getApplyPhysics
-
getUnspecifiedParser
Deprecated. -
getEntityTypes
@Deprecated(forRemoval=true) @NotNull default @NotNull Collection<EntityType<? extends LiveEntity,? extends EntitySnapshot<? extends LiveEntity>>> getEntityTypes()Deprecated, for removal: This API element is subject to removal in a future version. -
getAllEntityTypes
Stream<EntityType<? extends LiveEntity,? extends EntitySnapshot<? extends LiveEntity>>> getAllEntityTypes() -
getBlockTypes
Deprecated, for removal: This API element is subject to removal in a future version. -
getAllBlockTypes
-
getItemTypes
Deprecated, for removal: This API element is subject to removal in a future version. -
getAllItemTypes
-
getDyeTypes
-
getPatternLayerTypes
-
getBlockGroups
Deprecated, for removal: This API element is subject to removal in a future version. -
getAllBlockGroups
Stream<BlockGroup> getAllBlockGroups() -
getParrotType
-
getApplyPhysics
-
getPermissions
Deprecated, for removal: This API element is subject to removal in a future version. -
getAllPermissions
Stream<Permission> getAllPermissions() -
getStructures
-
register
-
register
- Throws:
IOException
-
register
Deprecated. -
register
-
getUnspecifiedParsers
Deprecated. -
getDefaultTileEntities
-
getMinecraftVersion
-
getDetails
-
getConfigFormat
-
getPlugins
Deprecated, for removal: This API element is subject to removal in a future version. -
getAllPlugins
-
getPlatformPluginsFolder
-
getPlatformConfigFolder
-
getTranslatePluginsFolder
-
getTranslateConfigFolder
-
callEvent
-
getBlockGroup
-
getPlugin
-
getDefaultTileEntity
@NotNull default @NotNull Optional<TileEntitySnapshot<? extends TileEntity>> getDefaultTileEntity(@NotNull @NotNull BlockType type) -
getUpdateChecker
@NotNull default <O extends UpdateOption> @NotNull Optional<PlatformUpdate<O>> getUpdateChecker(@NotNull @NotNull String idName) -
getTranslateCoreDetails
-