MCPcopy Create free account
hub / github.com/cuberite/cuberite / CanBeAt

Method CanBeAt

src/Blocks/BlockButton.h:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
98 {
99 NIBBLETYPE Meta;
100 a_Chunk.UnboundedRelGetBlockMeta(a_RelX, a_RelY, a_RelZ, Meta);
101
102 AddFaceDirection(a_RelX, a_RelY, a_RelZ, BlockMetaDataToBlockFace(Meta), true);
103 BLOCKTYPE BlockIsOn; a_Chunk.UnboundedRelGetBlockType(a_RelX, a_RelY, a_RelZ, BlockIsOn);
104
105 return (a_RelY > 0) && (cBlockInfo::IsSolid(BlockIsOn));
106 }
107} ;
108
109

Callers

nothing calls this directly

Calls 3

AddFaceDirectionFunction · 0.85

Tested by

no test coverage detected