Skip to content

Commit ec32136

Browse files
committed
Polishing
1 parent 8058e8f commit ec32136

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/com/sonicether/soundphysics/SoundPhysics.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.sonicether.soundphysics.config.MaterialData;
55
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
66
import net.minecraft.block.BlockState;
7-
import net.minecraft.block.Blocks;//rm
7+
//import net.minecraft.block.Blocks;//rm
88
import net.minecraft.client.MinecraftClient;
99
// import net.minecraft.particle.ParticleTypes;
1010
import net.minecraft.sound.BlockSoundGroup;
@@ -34,8 +34,8 @@ public class SoundPhysics
3434
public static final Pattern stepPattern = Pattern.compile(".*step.*");
3535
private static final Pattern blockPattern = Pattern.compile(".*block..*");
3636
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
3939
entry(BlockSoundGroup.AMETHYST_CLUSTER, BlockSoundGroup.AMETHYST_BLOCK),
4040
entry(BlockSoundGroup.SMALL_AMETHYST_BUD, BlockSoundGroup.AMETHYST_BLOCK),
4141
entry(BlockSoundGroup.MEDIUM_AMETHYST_BUD, BlockSoundGroup.AMETHYST_BLOCK),
@@ -65,7 +65,7 @@ public class SoundPhysics
6565
entry(BlockSoundGroup.SCAFFOLDING, BlockSoundGroup.BAMBOO),
6666
entry(BlockSoundGroup.LODESTONE, BlockSoundGroup.NETHERITE),
6767
entry(BlockSoundGroup.LADDER, BlockSoundGroup.WOOD)
68-
);
68+
)/*</editor-fold>*/;
6969
//Private fields
7070
// ψ time ψ
7171
//public static double tt = 0;
@@ -132,7 +132,7 @@ private static MaterialData getBlockMaterialData(final BlockPos blockPos)
132132
String key;
133133

134134
// !!! Middle(wheel)-click "BlockSoundGroup" to see all groups !!! //rm
135-
Blocks b;//rm
135+
//Blocks b;//rm
136136
BlockSoundGroup soundType = blockState.getSoundGroup();
137137
soundType = redirectMap.getOrDefault(soundType, soundType);
138138

src/main/java/com/sonicether/soundphysics/config/SoundPhysicsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static class Material_Properties {
7272
@ConfigEntry.Gui.CollapsibleObject
7373
public Map<String, MaterialData> reflectivityMap = null;
7474

75-
@Comment("Like block.minecraft.stone")
75+
@Comment("Makes blocks use name (like block.minecraft.stone) instead of sound group to determine material")
7676
@ConfigEntry.Gui.CollapsibleObject
7777
public List<String> blockWhiteList = new ArrayList<>();
7878
}

0 commit comments

Comments
 (0)