Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isClimbing() {
- if (this.isSpectator()) {
- return false;
- } else {
- BlockPos blockPos = this.getBlockPos();
- BlockState blockState = this.getBlockState();
- Block block = blockState.getBlock();
- if (block.isIn(BlockTags.CLIMBABLE)) {
- this.field_22418 = Optional.of(blockPos);
- return true;
- } else if (block instanceof TrapdoorBlock && this.canEnterTrapdoor(blockPos, blockState)) {
- this.field_22418 = Optional.of(blockPos);
- return true;
- } else {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement