Skip to content

Conversation

@Patbox
Copy link
Member

@Patbox Patbox commented Aug 24, 2025

Makes stripping behaviour bit more configurable, by removing the restriction of requiring AXIS property, while also allowing to define the way stripped state should be created.

Existing StrippableBlockRegistry#register(Block input, Block stripped) still only copies AXIS property.
A new StrippableBlockRegistry#registerCopyState(Block input, Block stripped) makes it copy all compatible properties.
If someone needs bit more control, they can use StrippableBlockRegistry#register(Block input, Block stripped, StrippingTransformer transformer) to define how and what is copied.

@modmuss50 modmuss50 added enhancement New feature or request status: last call If you care, make yourself heard right away! status: merge me please Pull requests that are ready to merge labels Aug 26, 2025
@modmuss50 modmuss50 merged commit c75de69 into FabricMC:1.21.8 Aug 29, 2025
4 checks passed
modmuss50 pushed a commit that referenced this pull request Aug 29, 2025
* More customisable StrippableBlockRegistry

* Replace lambda Inject with ModifyArg, mark result of StrippingTransformer#getStrippedBlockState as nullable

(cherry picked from commit c75de69)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request status: last call If you care, make yourself heard right away! status: merge me please Pull requests that are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants