Interface IMultiblockInfoContainer<T>
-
public interface IMultiblockInfoContainer<T>To implement IConstructable on not own TileEntities
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashMap<java.lang.String,IMultiblockInfoContainer<?>>MULTIBLOCK_MAP
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidconstruct(ItemStack stackSize, boolean hintsOnly, T tileEntity, ExtendedFacing aSide)static booleancontains(java.lang.Class<?> tClass)static <T> IMultiblockInfoContainer<T>get(java.lang.Class<?> tClass)java.lang.String[]getDescription(ItemStack stackSize)static <T extends TileEntity>
voidregisterTileClass(java.lang.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 Detail
-
MULTIBLOCK_MAP
static final java.util.HashMap<java.lang.String,IMultiblockInfoContainer<?>> MULTIBLOCK_MAP
-
-
Method Detail
-
registerTileClass
static <T extends TileEntity> void registerTileClass(java.lang.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
static <T> IMultiblockInfoContainer<T> get(java.lang.Class<?> tClass)
-
contains
static boolean contains(java.lang.Class<?> tClass)
-
construct
void construct(ItemStack stackSize, boolean hintsOnly, T tileEntity, ExtendedFacing aSide)
-
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
java.lang.String[] getDescription(ItemStack stackSize)
-
toConstructable
default ISurvivalConstructable toConstructable(T tileEntity, ExtendedFacing aSide)
-
-