当前位置: 首页>>代码示例>>Java>>正文


Java IMovableRegistry类代码示例

本文整理汇总了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
	}
}
 
开发者ID:ExtraCells,项目名称:ExtraCells1,代码行数:26,代码来源:CommonProxy.java

示例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() );
	}
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:12,代码来源:CommonProxy.java

示例3: movable

import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
/**
 * Use the movable registry to white list your tiles.
 */
IMovableRegistry movable();
 
开发者ID:amadornes,项目名称:Framez,代码行数:5,代码来源:IRegistryContainer.java

示例4: moveable

import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
/**
 * Use the movable registry to white list your tiles.
 */
IMovableRegistry moveable();
 
开发者ID:AgileMods,项目名称:MateriaMuto,代码行数:5,代码来源:IRegistryContainer.java

示例5: getMovableRegistry

import appeng.api.movable.IMovableRegistry; //导入依赖的package包/类
/**
 * Use the movable registry to white list your tiles.
 * @param c
 */
IMovableRegistry getMovableRegistry();
 
开发者ID:Sunstrike,项目名称:BuildDimension,代码行数:6,代码来源:IAppEngApi.java


注:本文中的appeng.api.movable.IMovableRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。