public interface IMultiblockInfoContainer<T>
| Modifier and Type | Field and Description |
|---|---|
static HashMap<String,IMultiblockInfoContainer<?>> |
MULTIBLOCK_MAP |
| Modifier and Type | Method and Description |
|---|---|
void |
construct(ItemStack stackSize,
boolean hintsOnly,
T tileEntity,
ExtendedFacing aSide) |
static boolean |
contains(Class<?> tClass) |
static <T> IMultiblockInfoContainer<T> |
get(Class<?> tClass) |
String[] |
getDescription(ItemStack stackSize) |
static <T extends TileEntity> |
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.
|
default int |
survivalConstruct(ItemStack stackSize,
int elementBudge,
IItemSource source,
EntityPlayerMP actorProfile,
T tileEntity,
ExtendedFacing aSide)
|
static <T> ISurvivalConstructable |
toConstructable(IMultiblockInfoContainer<T> thiz,
T tileEntity,
ExtendedFacing aSide) |
default IConstructable |
toConstructable(T tileEntity,
ExtendedFacing aSide)
Override this and return
toConstructable(IMultiblockInfoContainer, Object, ExtendedFacing) if
survivalConstruct(ItemStack, int, IItemSource, EntityPlayerMP, Object, ExtendedFacing) isn't a stub |
static final HashMap<String,IMultiblockInfoContainer<?>> MULTIBLOCK_MAP
static <T extends TileEntity> void registerTileClass(Class<T> clazz, IMultiblockInfoContainer<?> info)
static <T> IMultiblockInfoContainer<T> get(Class<?> tClass)
static boolean contains(Class<?> tClass)
void construct(ItemStack stackSize, boolean hintsOnly, T tileEntity, ExtendedFacing aSide)
default int survivalConstruct(ItemStack stackSize, int elementBudge, IItemSource source, EntityPlayerMP actorProfile, T tileEntity, ExtendedFacing aSide)
IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, java.util.function.Consumer)default IConstructable toConstructable(T tileEntity, ExtendedFacing aSide)
toConstructable(IMultiblockInfoContainer, Object, ExtendedFacing) if
survivalConstruct(ItemStack, int, IItemSource, EntityPlayerMP, Object, ExtendedFacing) isn't a stubstatic <T> ISurvivalConstructable toConstructable(IMultiblockInfoContainer<T> thiz, T tileEntity, ExtendedFacing aSide)