Interface IMBStateSyncer
- All Known Subinterfaces:
IExpandingMultiblock,IMovableMultiblock,IMultiBlock,IPreviewableMultiblock
- All Known Implementing Classes:
AbstractMultiBlock,TestBlock
public interface IMBStateSyncer
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidRegisters BlockStates to be automatically synced across the whole multiblockdefault List<PropertyWrapper<?>>static <T extends Comparable<T>>
voidsetBlockState(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 multiblockstatic <T extends Comparable<T>>
voidsetBlockStates(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 multiblockstatic <T extends Comparable<T>>
voidsetBlockStates(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, List<PropertyWrapper<?>> stateValuePairs) Updates the provided BlockStateProperties for each block in the multiblockdefault voidsyncBlockStates(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
Method Details
-
getSyncedStatePropertiesBuilder
SyncedStatePropertiesBuilder getSyncedStatePropertiesBuilder() -
getSyncedStateProperties
-
createSyncedBlockStates
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)
-