Package | Description |
---|---|
net.minecraft.entity.player | |
net.minecraftforge.event | |
net.minecraftforge.event.entity.player |
Modifier and Type | Method and Description |
---|---|
static PlayerEntity.SleepResult |
PlayerEntity.SleepResult.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlayerEntity.SleepResult[] |
PlayerEntity.SleepResult.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> |
PlayerEntity.trySleep(BlockPos at) |
com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> |
ServerPlayerEntity.trySleep(BlockPos at) |
Modifier and Type | Method and Description |
---|---|
static PlayerEntity.SleepResult |
ForgeEventFactory.onPlayerSleepInBed(PlayerEntity player,
java.util.Optional<BlockPos> pos) |
Modifier and Type | Field and Description |
---|---|
private PlayerEntity.SleepResult |
PlayerSleepInBedEvent.result |
Modifier and Type | Method and Description |
---|---|
PlayerEntity.SleepResult |
PlayerSleepInBedEvent.getResultStatus() |
Modifier and Type | Method and Description |
---|---|
void |
PlayerSleepInBedEvent.setResult(PlayerEntity.SleepResult result) |