Interface IMultiblockInfoContainer<T>
public interface IMultiblockInfoContainer<T>
To implement IConstructable on not own TileEntities
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidconstruct(ItemStack stackSize, boolean hintsOnly, T tileEntity, ExtendedFacing aSide) static booleanstatic <T> IMultiblockInfoContainer<T> String[]getDescription(ItemStack stackSize) static <T extends TileEntity>
voidregisterTileClass(Class<T> clazz, IMultiblockInfoContainer<?> info) There is no specific loading phase restriction, but you should generally not call it before the tile entity is properly registered.intsurvivalConstruct(ItemStack stackSize, int elementBudge, ISurvivalBuildEnvironment env, T tileEntity, ExtendedFacing aSide) Construct the structure usingIStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)default ISurvivalConstructabletoConstructable(T tileEntity, ExtendedFacing aSide)
-
Field Details
-
MULTIBLOCK_MAP
-
-
Method Details
-
registerTileClass
static <T extends TileEntity> void registerTileClass(Class<T> clazz, IMultiblockInfoContainer<?> info) There is no specific loading phase restriction, but you should generally not call it before the tile entity is properly registered. -
get
-
contains
-
construct
-
survivalConstruct
int survivalConstruct(ItemStack stackSize, int elementBudge, ISurvivalBuildEnvironment env, T tileEntity, ExtendedFacing aSide) Construct the structure usingIStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)- Returns:
- -1 if done, a helping pointer
-
getDescription
-
toConstructable
-