MCPcopy Create free account
hub / github.com/boxbeam/RedLib / getState

Method getState

src/redempt/redlib/multiblock/StructureData.java:94–105  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

setBlockMethod · 0.45
forEachBlockMethod · 0.45
getDataMethod · 0.45

Calls 1

getDataMethod · 0.45

Tested by

no test coverage detected