Skip to content

Commit

Permalink
Add bool to canPotentiallyExecuteCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Dec 18, 2024
1 parent 91bc217 commit c14aaf0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c14aaf0

Please sign in to comment.