Interface IMBStateSyncer

All Known Subinterfaces:
IExpandingMultiblock, IMovableMultiblock, IMultiBlock, IPreviewableMultiblock
All Known Implementing Classes:
AbstractMultiBlock, TestBlock

public interface IMBStateSyncer
  • Method Details

    • getSyncedStatePropertiesBuilder

      SyncedStatePropertiesBuilder getSyncedStatePropertiesBuilder()
    • getSyncedStateProperties

      default List<PropertyWrapper<?>> getSyncedStateProperties()
    • createSyncedBlockStates

      default void createSyncedBlockStates(SyncedStatePropertiesBuilder builder)
      Registers BlockStates to be automatically synced across the whole multiblock
    • setBlockStates

      static <T extends Comparable<T>> void setBlockStates(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, List<PropertyWrapper<?>> stateValuePairs)
      Updates the provided BlockStateProperties for each block in the multiblock
    • setBlockState

      static <T extends Comparable<T>> void setBlockState(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.properties.Property<T> property, T value)
      Updates the provided BlockStateProperty for each block in the multiblock
    • setBlockStates

      static <T extends Comparable<T>> void setBlockStates(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int flags, List<PropertyWrapper<?>> properties)
      Updates the provided BlockStateProperties for each block in the multiblock
    • syncBlockStates

      default void syncBlockStates(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)