Complete StairsBlock mapping (#1936)

```java
BlockState otherState = world.getBlockState(pos.offset(dir));
return !isStairs(otherState)
        || otherState.get(StairsBlock.FACING) != state.get(StairsBlock.FACING)
        || otherState.get(StairsBlock.HALF) != state.get(StairsBlock.HALF);
```

Pretty self-explanatory.

The `isStairs(otherState)` case is irrelevant and only exists to avoid exceptions, this function should only receive other stair blocks.
I don't see a need for `isDifferentlyOrientatedStair` because of this.
This commit is contained in:
yyny 2020-12-26 00:25:43 +01:00 committed by GitHub
parent 992926dd04
commit 839e771f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ CLASS net/minecraft/class_2510 net/minecraft/block/StairsBlock
ARG 2 pos
METHOD method_10676 isStairs (Lnet/minecraft/class_2680;)Z
ARG 0 state
METHOD method_10678 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
METHOD method_10678 isDifferentOrientation (Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
ARG 0 state
ARG 1 world
ARG 2 pos