Skip to content

Commit

Permalink
make it that blocks can be opaque
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Dec 30, 2021
1 parent fa66a75 commit 7f038f9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ public BlockBuilder notSolid() {
return this;
}

/**
* Sets that the block is opaque, like vanilla glass.
* @return The builder, used for method chaining.
*/
@ZenCodeType.Method
public BlockBuilder opaque() {
blockProperties.setOpaque((state, reader, pos) -> false);
return this;
}

/**
* Sets the slipperiness.
*
Expand Down

0 comments on commit 7f038f9

Please sign in to comment.