Search in sources :

Example 1 with TileFiller

use of buildcraft.builders.TileFiller in project BuildCraft by BuildCraft.

the class BuildersActionProvider method addExternalActions.

@Override
public void addExternalActions(Collection<IActionExternal> actions, EnumFacing side, TileEntity tile) {
    if (tile instanceof TileFiller) {
        for (IFillerPattern p : FillerManager.registry.getPatterns()) {
            if (p instanceof FillerPattern) {
                FillerPattern pattern = (FillerPattern) p;
                if (!actionMap.containsKey(p.getUniqueTag())) {
                    actionMap.put(p.getUniqueTag(), ActionFiller.getForPattern(pattern));
                }
                actions.add(actionMap.get(p.getUniqueTag()));
            }
        }
    }
}
Also used : TileFiller(buildcraft.builders.TileFiller) IFillerPattern(buildcraft.api.filler.IFillerPattern) IFillerPattern(buildcraft.api.filler.IFillerPattern) FillerPattern(buildcraft.core.builders.patterns.FillerPattern)

Aggregations

IFillerPattern (buildcraft.api.filler.IFillerPattern)1 TileFiller (buildcraft.builders.TileFiller)1 FillerPattern (buildcraft.core.builders.patterns.FillerPattern)1