MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / checkForDrop

Method checkForDrop

src/main/java/net/minecraft/block/BlockReed.java:97–109  ·  view source on GitHub ↗
(World worldIn, BlockPos pos, IBlockState state)

Source from the content-addressed store, hash-verified

95 }
96
97 protected final boolean checkForDrop(World worldIn, BlockPos pos, IBlockState state)
98 {
99 if (this.canBlockStay(worldIn, pos))
100 {
101 return true;
102 }
103 else
104 {
105 this.dropBlockAsItem(worldIn, pos, state, 0);
106 worldIn.setBlockToAir(pos);
107 return false;
108 }
109 }
110
111 public boolean canBlockStay(World worldIn, BlockPos pos)
112 {

Callers 2

updateTickMethod · 0.95
onNeighborBlockChangeMethod · 0.95

Calls 3

canBlockStayMethod · 0.95
dropBlockAsItemMethod · 0.80
setBlockToAirMethod · 0.80

Tested by

no test coverage detected