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

Method getPlayerInBed

src/main/java/net/minecraft/block/BlockBed.java:108–119  ·  view source on GitHub ↗
(World worldIn, BlockPos pos)

Source from the content-addressed store, hash-verified

106 }
107
108 private EntityPlayer getPlayerInBed(World worldIn, BlockPos pos)
109 {
110 for (EntityPlayer entityplayer : worldIn.playerEntities)
111 {
112 if (entityplayer.isPlayerSleeping() && entityplayer.playerLocation.equals(pos))
113 {
114 return entityplayer;
115 }
116 }
117
118 return null;
119 }
120
121 public boolean isFullCube()
122 {

Callers 1

onBlockActivatedMethod · 0.95

Calls 2

isPlayerSleepingMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected