Skip to content

Commit

Permalink
docs: add javadoc for EntityBaseComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Sep 22, 2024
1 parent 8bd15fb commit 361dc5b
Show file tree
Hide file tree
Showing 8 changed files with 560 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.allaymc.api.block.component;

import com.google.common.base.Preconditions;
import org.allaymc.api.block.BlockBehavior;
import org.allaymc.api.block.data.BlockFace;
import org.allaymc.api.block.dto.BlockStateWithPos;
Expand Down Expand Up @@ -165,7 +164,7 @@ default double calculateBreakTime(BlockState blockState, ItemStack usedItem, Ent
var efficiencyLevel = 0;

if (entity != null) {
isInWater = entity.isInWater();
isInWater = entity.isEyesInWater();
isOnGround = entity.isOnGround();
hasteEffectLevel = entity.getEffectLevel(EffectTypes.HASTE);
// Conduit Power ensures at least level 2 haste effect
Expand Down
Loading

0 comments on commit 361dc5b

Please sign in to comment.