Search in sources :

Example 1 with PrimitiveMap

use of org.blockartistry.DynSurround.client.footsteps.implem.PrimitiveMap in project DynamicSurroundings by OreCruncher.

the class FootstepsRegistry method init.

@Override
public void init() {
    this.acousticsManager = new AcousticsManager();
    this.primitiveMap = new PrimitiveMap(this.acousticsManager);
    this.blockMap = new BlockMap(this.acousticsManager);
    this.FOOTPRINT_MATERIAL = new IdentityHashSet<>();
    this.FOOTPRINT_STATES = new IdentityHashSet<>();
    this.ARMOR_SOUND = new EnumMap<>(ArmorClass.class);
    this.ARMOR_SOUND_FOOT = new EnumMap<>(ArmorClass.class);
    this.variators = new HashMap<>();
    // Initialize the known materials that leave footprints
    this.FOOTPRINT_MATERIAL.add(Material.CLAY);
    this.FOOTPRINT_MATERIAL.add(Material.GRASS);
    this.FOOTPRINT_MATERIAL.add(Material.GROUND);
    this.FOOTPRINT_MATERIAL.add(Material.ICE);
    this.FOOTPRINT_MATERIAL.add(Material.PACKED_ICE);
    this.FOOTPRINT_MATERIAL.add(Material.SAND);
    this.FOOTPRINT_MATERIAL.add(Material.CRAFTED_SNOW);
    this.FOOTPRINT_MATERIAL.add(Material.SNOW);
    // It's a hack - needs refactor
    AcousticsManager.SWIM = null;
    AcousticsManager.JUMP = null;
    AcousticsManager.SPLASH = null;
    final List<Pack> repo = ResourcePacks.findResourcePacks();
    reloadAcoustics(repo);
    reloadPrimitiveMap(repo);
    seedMap();
}
Also used : AcousticsManager(org.blockartistry.DynSurround.client.footsteps.implem.AcousticsManager) BlockMap(org.blockartistry.DynSurround.client.footsteps.implem.BlockMap) PrimitiveMap(org.blockartistry.DynSurround.client.footsteps.implem.PrimitiveMap) Pack(org.blockartistry.DynSurround.packs.ResourcePacks.Pack)

Aggregations

AcousticsManager (org.blockartistry.DynSurround.client.footsteps.implem.AcousticsManager)1 BlockMap (org.blockartistry.DynSurround.client.footsteps.implem.BlockMap)1 PrimitiveMap (org.blockartistry.DynSurround.client.footsteps.implem.PrimitiveMap)1 Pack (org.blockartistry.DynSurround.packs.ResourcePacks.Pack)1