public static interface Sitable.Situation
| 限定符和类型 | 方法和说明 |
|---|---|
float |
offsetHorizontal() |
float |
offsetVertical() |
boolean |
shouldSit(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.BlockPos block)
Decide if a player should sit on a specific position
|
boolean shouldSit(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.BlockPos block)
player - The player will be sit.block - The position of the block.float offsetVertical()
float offsetHorizontal()