Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting canPotentiallyExecuteCommands in BE/E type builders #4302

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add bool to canPotentiallyExecuteCommands
modmuss50 committed Dec 18, 2024
commit c14aaf0e0527c808df3e7598e6ffbef3129d22a5
Original file line number Diff line number Diff line change
@@ -85,10 +85,11 @@ public FabricBlockEntityTypeBuilder<T> addBlocks(Collection<? extends Block> blo
* Makes the built {@link BlockEntityType} return {@code true} from
* {@link BlockEntityType#canPotentiallyExecuteCommands()}.
*
* @param canPotentiallyExecuteCommands whether the block entity is able to execute commands
* @return this builder
*/
public FabricBlockEntityTypeBuilder<T> canPotentiallyExecuteCommands() {
canPotentiallyExecuteCommands = true;
public FabricBlockEntityTypeBuilder<T> canPotentiallyExecuteCommands(boolean canPotentiallyExecuteCommands) {
this.canPotentiallyExecuteCommands = canPotentiallyExecuteCommands;
return this;
}