use of com.wuest.prefab.Config.Structures.InstantBridgeConfiguration in project MC-Prefab by Brian-Wuest.
the class StructureInstantBridge method BuildStructure.
/**
* This is the main building method for this structure.
*
* @param configuration The configuration the user updated.
* @param world The current world.
* @param originalPos The block the user clicked on.
* @param assumedNorth This should always be "NORTH" when the file is based on a scan.
* @param player The player requesting the structure.
* @return True if the build can occur, otherwise false.
*/
@Override
public boolean BuildStructure(StructureConfiguration configuration, World world, BlockPos originalPos, EnumFacing assumedNorth, EntityPlayer player) {
InstantBridgeConfiguration specificConfig = (InstantBridgeConfiguration) configuration;
this.setupClearSpace(specificConfig);
this.setupStructure(specificConfig, originalPos);
return super.BuildStructure(specificConfig, world, originalPos, assumedNorth, player);
}
Aggregations