public class BlockStateModule extends JavaPlugin
Class BlockStateModule. Provides blockstatemodule functionality for the Hytale server.
java.lang.Object > JavaPlugin > BlockStateModule
Field Summary
id
Field id.
blockState
Field blockState.
index
Field index.
chunk
Field chunk.
position
Field position.
chunkX
Field chunkX.
chunkZ
Field chunkZ.
world
Field world.
worldChunk
Field worldChunk.
holder
Field holder.
x
Field x.
y
Field y.
z
Field z.
blockStateComponent
Field blockStateComponent.
blockStateInfoComponent
Field blockStateInfoComponent.
chunkStore
Field chunkStore.
worldChunkComponent
Field worldChunkComponent.
blockIndex
Field blockIndex.
blockType
Field blockType.
state
Field state.
Method Detail
getItemContainerSpatialResourceType
ChunkStore>>
getItemContainerSpatialResourceType
()
Method getItemContainerSpatialResourceType.
setup
void
setup
()
Method setup.
KDTree
new
KDTree
(Ref::isValid)
Method KDTree.
- Parameters:
Ref::isValidRef::isValid
ItemContainerStateSpatialSystem
new
ItemContainerStateSpatialSystem
(this.itemContainerSpatialResourceType)
Method ItemContainerStateSpatialSystem.
- Parameters:
this.itemContainerSpatialResourceTypethis.itemContainerSpatialResourceType
ItemContainerStateRefSystem
new
ItemContainerStateRefSystem
()
Method ItemContainerStateRefSystem.
registerBlockState
BlockStateRegistration
registerBlockState
(@Nonnull final Class clazz, @Nonnull final String key, final Codec codec)
Method registerBlockState.
- Parameters:
@Nonnull final Classclazz@Nonnull final Stringkeyfinal Codeccodec
LegacyLoadPacketBlockStateSystem
new
LegacyLoadPacketBlockStateSystem
((ComponentType BlockState> )
Method LegacyLoadPacketBlockStateSystem.
- Parameters:
(ComponentTypeBlockState>
LegacyUnloadPacketBlockStateSystem
new
LegacyUnloadPacketBlockStateSystem
((ComponentType BlockState> )
Method LegacyUnloadPacketBlockStateSystem.
- Parameters:
(ComponentTypeBlockState>
BlockStateRegistration
new
BlockStateRegistration
(clazz, ()
Method BlockStateRegistration.
- Parameters:
clazzclazz((
unregisterBlockState
void
unregisterBlockState
(final Class clazz, @Nullable final Class dataClass)
Method unregisterBlockState.
- Parameters:
final Classclazz@Nullable final ClassdataClass
createBlockState
T
createBlockState
(final Class clazz, final WorldChunk chunk, final Vector3i pos, final BlockType blockType)
Method createBlockState.
- Parameters:
final Classclazzfinal WorldChunkchunkfinal Vector3iposfinal BlockTypeblockType
BsonDocument
new
BsonDocument
()
Method BsonDocument.
getComponentType
T>
getComponentType
(@Nullable final Class entityClass)
Method getComponentType.
- Parameters:
@Nullable final ClassentityClass
LegacyBlockStateHolderSystem
Method LegacyBlockStateHolderSystem.
- Parameters:
final ComponentTypecomponentType
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
toString
String
toString
()
Method toString.
LegacyBlockStateRefSystem
Method LegacyBlockStateRefSystem.
- Parameters:
final ComponentTypecomponentType
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
Vector3i
new
Vector3i
(x, y, z)
Method Vector3i.
- Parameters:
xxyyzz
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
LegacyLateInitBlockStateSystem
Method LegacyLateInitBlockStateSystem.
- Parameters:
final ComponentTypecomponentType
getDependencies
Set>
getDependencies
()
Method getDependencies.
tick
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
LegacyTickingBlockStateSystem
Method LegacyTickingBlockStateSystem.
- Parameters:
final ComponentTypecomponentType
fetch
void
fetch
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, final Store store, final CommandBuffer commandBuffer, final PlayerRef player, final List results)
Method fetch.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunkfinal Storestorefinal CommandBuffercommandBufferfinal PlayerRefplayerfinal Listresults