|
4 | 4 | import com.sonicether.soundphysics.config.MaterialData;
|
5 | 5 | import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
|
6 | 6 | import net.minecraft.block.BlockState;
|
7 |
| -import net.minecraft.block.Blocks;//rm |
| 7 | +//import net.minecraft.block.Blocks;//rm |
8 | 8 | import net.minecraft.client.MinecraftClient;
|
9 | 9 | // import net.minecraft.particle.ParticleTypes;
|
10 | 10 | import net.minecraft.sound.BlockSoundGroup;
|
@@ -34,8 +34,8 @@ public class SoundPhysics
|
34 | 34 | public static final Pattern stepPattern = Pattern.compile(".*step.*");
|
35 | 35 | private static final Pattern blockPattern = Pattern.compile(".*block..*");
|
36 | 36 | private static final Pattern uiPattern = Pattern.compile("ui..*");
|
37 |
| - public static final Map<BlockSoundGroup, BlockSoundGroup> redirectMap = Map.ofEntries( // !!!1 becomes 2!!! //rm |
38 |
| - entry(BlockSoundGroup.MOSS_CARPET, BlockSoundGroup.MOSS_BLOCK), |
| 37 | + public static final Map<BlockSoundGroup, BlockSoundGroup> redirectMap = /*<editor-fold desc="Map.ofEntries()">*/Map.ofEntries( |
| 38 | + entry(BlockSoundGroup.MOSS_CARPET, BlockSoundGroup.MOSS_BLOCK), // first becomes second |
39 | 39 | entry(BlockSoundGroup.AMETHYST_CLUSTER, BlockSoundGroup.AMETHYST_BLOCK),
|
40 | 40 | entry(BlockSoundGroup.SMALL_AMETHYST_BUD, BlockSoundGroup.AMETHYST_BLOCK),
|
41 | 41 | entry(BlockSoundGroup.MEDIUM_AMETHYST_BUD, BlockSoundGroup.AMETHYST_BLOCK),
|
@@ -65,7 +65,7 @@ public class SoundPhysics
|
65 | 65 | entry(BlockSoundGroup.SCAFFOLDING, BlockSoundGroup.BAMBOO),
|
66 | 66 | entry(BlockSoundGroup.LODESTONE, BlockSoundGroup.NETHERITE),
|
67 | 67 | entry(BlockSoundGroup.LADDER, BlockSoundGroup.WOOD)
|
68 |
| - ); |
| 68 | + )/*</editor-fold>*/; |
69 | 69 | //Private fields
|
70 | 70 | // ψ time ψ
|
71 | 71 | //public static double tt = 0;
|
@@ -132,7 +132,7 @@ private static MaterialData getBlockMaterialData(final BlockPos blockPos)
|
132 | 132 | String key;
|
133 | 133 |
|
134 | 134 | // !!! Middle(wheel)-click "BlockSoundGroup" to see all groups !!! //rm
|
135 |
| - Blocks b;//rm |
| 135 | + //Blocks b;//rm |
136 | 136 | BlockSoundGroup soundType = blockState.getSoundGroup();
|
137 | 137 | soundType = redirectMap.getOrDefault(soundType, soundType);
|
138 | 138 |
|
|
0 commit comments