Interface IMBStateSharer
- All Known Subinterfaces:
IExpandingMultiblock, IMovableMultiblock, IMultiBlock, IPreviewableMultiblock
- All Known Implementing Classes:
AbstractMultiBlock, AbstractStructureMultiBlock, DiamondStructureBlock, SimpleMultiBlock, TestBlock
public interface IMBStateSharer
-
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 voidshareBlockStates(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
Method Details
-
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