Skip to content

Commit

Permalink
Cleanup method names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 12, 2024
1 parent 75d05b3 commit 0b11ab6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ public static boolean isStairsBlockToStandOn(TagsState tagsState, BlockState sta
return tagsState.is(state.blockType(), BlockTags.STAIRS) && !isHurtWhenStoodOn(state);
}

public static boolean isTopFullBlock(BlockShapeGroup type) {
for (var shape : type.blockShapes()) {
if (shape.isBlockXZCollision() && shape.maxY >= SAFE_BLOCK_MIN_HEIGHT) {
public static boolean isTopFullBlock(BlockShapeGroup shapeGroup) {
for (var shape : shapeGroup.blockShapes()) {
if (shape.isFullBlockXZ() && shape.maxY >= SAFE_BLOCK_MIN_HEIGHT) {
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public double diagonalXZLength() {
return Math.sqrt(x * x + z * z);
}

public boolean isBlockXZCollision() {
public boolean isFullBlockXZ() {
return minX == 0 && minZ == 0 && maxX == 1 && maxZ == 1;
}

Expand Down

0 comments on commit 0b11ab6

Please sign in to comment.