Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- get()
- getMigrationSystemType()
- getBlockStateInfoComponentType()
- getLaunchPadComponentType()
- getRespawnBlockComponentType()
- getBlockMapMarkerComponentType()
- getBlockMapMarkersResourceType()
- getBlockStateInfoNeedRebuildResourceType()
- getItemContainerBlockComponentType()
- getItemContainerSpatialResourceType()
- getBlockEntity(World, int, int, int)
- getBlockEntity(ComponentAccessor, Ref, int, int, int)
- getComponent(ComponentType, World, int, int, int)
Class BlockModule
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.modules.block.BlockModule
- All Implemented Interfaces:
CommandOwner
A plugin that provides block-related components, resources, and systems.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classA component that represents the block state information for a block entity.static classA resource that tracks whether block state information needs to be rebuilt.static classA ref system that manages the references fromBlockModule.BlockStateInfocomponents to their respectiveBlockComponentSectioninstances.static classstatic classstatic classA migration system that performs data migrations for block-related components. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PluginManifestThe plugin manifest for theBlockModuleplugin.Fields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
ConstructorsConstructorDescriptionBlockModule(JavaPluginInit init) Default Constructor of aBlockModuleinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockModuleget()static Ref<ChunkStore> getBlockEntity(ComponentAccessor<ChunkStore> accessor, Ref<ChunkStore> sectionRef, int x, int y, int z) Looks up the live block entity at the given world position within an already-resolved section, for callers holding aStoreorCommandBufferrather than the world.static Ref<ChunkStore> getBlockEntity(World world, int x, int y, int z) static <T extends Component<ChunkStore>>
TgetComponent(ComponentType<ChunkStore, T> componentType, World world, int x, int y, int z) Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Field Details
-
MANIFEST
The plugin manifest for theBlockModuleplugin.
-
-
Constructor Details
-
BlockModule
Default Constructor of aBlockModuleinstance.- Parameters:
init- The plugin initialization step for this plugin.
-
-
Method Details
-
get
- Returns:
- the singleton instance of the
BlockModule.
-
getMigrationSystemType
- Returns:
- the component type for the
BlockModule.MigrationSystemcomponent.
-
getBlockStateInfoComponentType
- Returns:
- the component type for the
BlockModule.BlockStateInfocomponent.
-
getLaunchPadComponentType
- Returns:
- the component type for the
LaunchPadcomponent.
-
getRespawnBlockComponentType
- Returns:
- the component type for the
RespawnBlockcomponent.
-
getBlockMapMarkerComponentType
- Returns:
- the component type for the
BlockMapMarkercomponent.
-
getBlockMapMarkersResourceType
- Returns:
- the resource type for the
BlockMapMarkersResourceresource.
-
getBlockStateInfoNeedRebuildResourceType
public ResourceType<ChunkStore, BlockModule.BlockStateInfoNeedRebuild> getBlockStateInfoNeedRebuildResourceType()- Returns:
- the resource type for the
BlockModule.BlockStateInfoNeedRebuildresource.
-
getItemContainerBlockComponentType
-
getItemContainerSpatialResourceType
public ResourceType<ChunkStore, SpatialResource<Ref<ChunkStore>, ChunkStore>> getItemContainerSpatialResourceType() -
getBlockEntity
-
getBlockEntity
@Nullable public static Ref<ChunkStore> getBlockEntity(@Nonnull ComponentAccessor<ChunkStore> accessor, @Nonnull Ref<ChunkStore> sectionRef, int x, int y, int z) Looks up the live block entity at the given world position within an already-resolved section, for callers holding aStoreorCommandBufferrather than the world.- Returns:
- the block entity's validated reference, or
nullif the position has none.
-
getComponent
@Nullable public static <T extends Component<ChunkStore>> T getComponent(ComponentType<ChunkStore, T> componentType, World world, int x, int y, int z)
-