net.minecraft.src.forge
Interface ISleepHandler


public interface ISleepHandler


Method Summary
 net.minecraft.src.EnumStatus sleepInBedAt(net.minecraft.src.EntityPlayer player, int i, int j, int k)
          This is called before a player sleeps in a bed.
 

Method Detail

sleepInBedAt

net.minecraft.src.EnumStatus sleepInBedAt(net.minecraft.src.EntityPlayer player,
                                          int i,
                                          int j,
                                          int k)
This is called before a player sleeps in a bed. If it returns a non-null result, then the normal sleeping process will be skipped, and the value returned by this method will be returned to BlockBed.blockActivated.

See Also:
MinecraftForge.registerSleepHandler(ISleepHandler)