public class MultiblockUtil
extends java.lang.Object
| Constructor and Description |
|---|
MultiblockUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <C extends IMultiblockComponent> |
getComponent(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
java.lang.Class<C> componentClass) |
static <C extends IMultiblockComponent,L extends IMultiblockLogic,M extends IMultiblockController> |
getController(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
java.lang.Class<C> componentClass) |
static <C extends IMultiblockComponent,L extends IMultiblockLogic> |
getLogic(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
java.lang.Class<C> componentClass) |
static java.util.List<IMultiblockComponent> |
getNeighboringParts(net.minecraft.world.World world,
IMultiblockComponent part)
Returns an array containing references to neighboring IMultiblockComponent tile entities.
|
public static java.util.List<IMultiblockComponent> getNeighboringParts(net.minecraft.world.World world, IMultiblockComponent part)
This method is chunk-safe on the server; it will not query for parts in chunks that are unloaded. Note that no method is chunk-safe on the client, because ChunkProviderClient is stupid.
@Nullable public static <C extends IMultiblockComponent> C getComponent(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, java.lang.Class<C> componentClass)
@Nullable public static <C extends IMultiblockComponent,L extends IMultiblockLogic> L getLogic(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, java.lang.Class<C> componentClass)
@Nullable public static <C extends IMultiblockComponent,L extends IMultiblockLogic,M extends IMultiblockController> M getController(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, java.lang.Class<C> componentClass)