use of org.blockartistry.DynSurround.registry.BlockInfo in project DynamicSurroundings by OreCruncher.
the class BlockMap method put.
private void put(@Nonnull final Block block, final int meta, @Nonnull final String substrate, @Nonnull final String value) {
final Substrate s = Substrate.get(substrate);
final IAcoustic[] acoustics = this.acousticsManager.compileAcoustics(value);
final BlockInfo info = new BlockInfo(block, meta);
if (s == null) {
this.metaMap.put(info, acoustics);
} else {
BlockAcousticMap sub = this.substrateMap.get(s);
if (sub == null)
this.substrateMap.put(s, sub = new BlockAcousticMap());
sub.put(info, acoustics);
}
}