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()));
}
}
}
}
Aggregations