Search in sources :

Example 1 with BlockInfo

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);
    }
}
Also used : IAcoustic(org.blockartistry.DynSurround.client.footsteps.interfaces.IAcoustic) BlockInfo(org.blockartistry.DynSurround.registry.BlockInfo)

Aggregations

IAcoustic (org.blockartistry.DynSurround.client.footsteps.interfaces.IAcoustic)1 BlockInfo (org.blockartistry.DynSurround.registry.BlockInfo)1