Modifier and Type | Method and Description |
---|---|
static boolean |
isDangerousFromAbove(Material mat)
Determines if a block would be dangerous if above a player's head with
nothing but air inbetween, assuming no movement on part of the player
|
static boolean |
isHarmful(Material mat)
|
static boolean |
isLiquid(Material mat)
Determines if a material will be liquid when placed
|
static void |
updatePlayersInRange(Sign s)
Forcibly sends an update of sign text to any players within a close
enough range of the sign to render its text
|
public static void updatePlayersInRange(Sign s)
s
- The Sign
to updatepublic static boolean isHarmful(Material mat)
mat
- The Material
to comparetrue
if the material will harm the playerpublic static boolean isLiquid(Material mat)
mat
- The Material
to checktrue
if lava or water (non-contained of any kind)public static boolean isDangerousFromAbove(Material mat)
mat
- The Material
to checktrue
if a player could be harmedCopyright © 2017. All rights reserved.