Conversation
Minecraftschurli
commented
Nov 10, 2025
- Ports the mod to Minecraft 1.21.10
- Adds ageable copper variants of fancy lamps and fancy lanterns ([Suggestion] [1.21.9/1.21.10] Copper variants of fancy lamps and fancy lanterns #34)
abf484b to
a015f2a
Compare
a015f2a to
a8bc566
Compare
IchHabeHunger54
left a comment
There was a problem hiding this comment.
Looks good content-wise, some minor nitpicks. Also some code style changes I'd like to see applied:
- No
package-info.javas, they're insanely bloaty without really contributing anything imo. - All classes in the
datagenshould be final. - When putting annotations such as
@Nullableon a field or method, put it above, don't inline it after the access modifier. I marked this in some places, do it in other places as well. Also applies to e.g. the@Unmodifiableannotation. - Why are you using
@UnknownNullability? If I understand JSpecify correctly, that annotation shouldn't really be used since it's the default value anyway. - Run Optimize Imports on the entire thing after applying all other changes.
Also, why exactly are we doing feature flags...?
As a sidenote, due to the complexity of the changes and me not yet looking into them, I haven't had a look at the following so far:
- All BERs
- The various model changes, including datagen
- Some parts of the Fancy Crafter and the Printing Table
I will hopefully get to reviewing them soon.
| "dataRuntimeOnly"("curse.maven:blueprint-382216:6449863") | ||
| "dataRuntimeOnly"("curse.maven:buzzier-bees-355458:6449894") | ||
| } | ||
| //if (abnormalsCompat) { |
There was a problem hiding this comment.
Wouldn't just setting abnormalsCompat to false also work?
| copy(BCTags.Blocks.TYPEWRITERS, BCTags.Items.TYPEWRITERS); | ||
| tag(BCTags.Items.SEAT_BACKS).addTags(BCTags.Items.SEAT_BACKS_SMALL, BCTags.Items.SEAT_BACKS_RAISED, BCTags.Items.SEAT_BACKS_FLAT, BCTags.Items.SEAT_BACKS_TALL, BCTags.Items.SEAT_BACKS_FANCY); | ||
| tag(BCTags.Items.BOOKCASE_BOOKS).addTags(ItemTags.BOOKSHELF_BOOKS, ItemTags.LECTERN_BOOKS) | ||
| BCBlockItemTagsProvider.addBlockTags(blockTagKey -> new BlockToItemConverter(this.tag(BlockToItemConverter.blockTagToItemTag(blockTagKey)))); |
There was a problem hiding this comment.
I'm honestly not a fan of this. If it's not easily possible to copy the block tags, can we maybe just copypaste the block tag gen here and replace Block with Item? This BlockToItemConverter feels overengineered for no reason.
There was a problem hiding this comment.
this is copied vanilla code
...om/github/minecraftschurlimods/bibliocraft/content/fancyarmorstand/FancyArmorStandBlock.java
Outdated
Show resolved
Hide resolved
...hub/minecraftschurlimods/bibliocraft/content/fancyarmorstand/FancyArmorStandBlockEntity.java
Show resolved
Hide resolved
...m/github/minecraftschurlimods/bibliocraft/content/fancyarmorstand/FancyArmorStandEntity.java
Show resolved
Hide resolved
...n/java/com/github/minecraftschurlimods/bibliocraft/content/dinnerplate/DinnerPlateBlock.java
Outdated
Show resolved
Hide resolved
...thub/minecraftschurlimods/bibliocraft/content/fancylight/WeatheringCopperFancyLampBlock.java
Show resolved
Hide resolved
...b/minecraftschurlimods/bibliocraft/content/fancylight/WeatheringCopperFancyLanternBlock.java
Show resolved
Hide resolved
src/main/java/com/github/minecraftschurlimods/bibliocraft/util/holder/CopperSet.java
Outdated
Show resolved
Hide resolved
| return new Nested<>(name, k1 -> new GroupedHolder<>(k2 -> prefix.apply(k1, k2), name, (s,k2) -> register.registerBlock(s, p -> factory.apply(k1, k2, p), properties.apply(k1, k2)), keys2), keys1); | ||
| } | ||
|
|
||
| public static class Nested<K1, K2, R, T extends R> implements GroupingDeferredHolder<R, T> { |
There was a problem hiding this comment.
Move to a separate class, there really is no point of an inner class here.
There was a problem hiding this comment.
Except being nicer to read than a single long class name GroupedHolder.Nested > NestedGroupedHolder
We need to specify a default nullability somehow and we can't use
Not possible when using JSpecify
only if you don't have a
I was experimenting and hiding stuff that I didn't finish behind the flag |
a8bc566 to
9b4d4e7
Compare