Gets the BlockState to set for a given block @param block The Block to get the BlockState at @return The BlockState that would be set
(Block block)
| 92 | * @return The BlockState that would be set |
| 93 | */ |
| 94 | public BlockState getState(Block block) { |
| 95 | if (RedLib.MID_VERSION >= 13) { |
| 96 | BlockState state = block.getState(); |
| 97 | state.setBlockData(data); |
| 98 | return state; |
| 99 | } else { |
| 100 | BlockState state = block.getState(); |
| 101 | state.setType(mdata.getItemType()); |
| 102 | state.setRawData(mdata.getData()); |
| 103 | return state; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Sends a fake block change to a Player |
no test coverage detected