本文整理汇总了Java中appeng.api.movable.IMovableRegistry类的典型用法代码示例。如果您正苦于以下问题:Java IMovableRegistry类的具体用法?Java IMovableRegistry怎么用?Java IMovableRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IMovableRegistry类属于appeng.api.movable包,在下文中一共展示了IMovableRegistry类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerMovables
import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
public void registerMovables()
{
try
{
IMovableRegistry registry = Util.getAppEngApi().getMovableRegistry();
registry.whiteListTileEntity(TileEntitySolderingStation.class);
registry.whiteListTileEntity(TileEntityMEDropper.class);
registry.whiteListTileEntity(TileEntityMEBattery.class);
registry.whiteListTileEntity(TileEntityHardMEDrive.class);
registry.whiteListTileEntity(TileEntityBusFluidImport.class);
registry.whiteListTileEntity(TileEntityBusFluidExport.class);
registry.whiteListTileEntity(TileEntityBusFluidStorage.class);
registry.whiteListTileEntity(TileEntityTerminalFluid.class);
registry.whiteListTileEntity(TileEntityTransitionPlaneFluid.class);
registry.whiteListTileEntity(TileEntityCertusTank.class);
registry.whiteListTileEntity(TileEntityWalrus.class);
registry.whiteListTileEntity(TileEntityLevelEmitterFluid.class);
registry.whiteListTileEntity(TileEntityVoidFluid.class);
registry.whiteListTileEntity(TileEntityInterfaceFluid.class);
registry.whiteListTileEntity(TileEntityMonitorStorageFluid.class);
} catch (Throwable e)
{
// Doesn't register because AE13 is installed instead of AE14
}
}
示例2: registerSpatialIOMovables
import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
/**
* Adds tile entities to the AppEng2 SpatialIO whitelist
*/
public void registerSpatialIOMovables()
{
IMovableRegistry movableRegistry = AEApi.instance().registries().movable();
for( TileEnum tile : TileEnum.values() )
{
movableRegistry.whiteListTileEntity( tile.getTileClass() );
}
}
示例3: movable
import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
/**
* Use the movable registry to white list your tiles.
*/
IMovableRegistry movable();
示例4: moveable
import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
/**
* Use the movable registry to white list your tiles.
*/
IMovableRegistry moveable();
示例5: getMovableRegistry
import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
/**
* Use the movable registry to white list your tiles.
* @param c
*/
IMovableRegistry getMovableRegistry();