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

Method setBlock

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

Sets this StructureData at the given location @param block The block to set

(Block block)

Source from the content-addressed store, hash-verified

75 * @param block The block to set
76 */
77 public void setBlock(Block block) {
78 if (RedLib.MID_VERSION >= 13) {
79 block.setBlockData(data, false);
80 } else {
81 BlockState state = block.getState();
82 state.setType(mdata.getItemType());
83 state.setRawData(mdata.getData());
84 state.update(true, false);
85 }
86 }
87
88 /**
89 * Gets the BlockState to set for a given block

Callers 2

buildAsyncMethod · 0.95
buildMethod · 0.80

Calls 3

getStateMethod · 0.45
getDataMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected