Package com.cryptomorin.xseries
Class NMSExtras
- java.lang.Object
-
- com.cryptomorin.xseries.NMSExtras
-
public final class NMSExtras extends Object
A class that provides various different essential features that the API didn't/doesn't support.All the parameters are non-null.
- Version:
- 5.1.0
- Author:
- Crypto Morin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNMSExtras.AnimationOrder of this enum should not be changed.static classNMSExtras.WorldlessBlockWrapper
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidanimation(Collection<? extends org.bukkit.entity.Player> players, org.bukkit.entity.LivingEntity entity, NMSExtras.Animation animation)static voidchest(org.bukkit.block.Block chest, boolean open)static voidlightning(Collection<org.bukkit.entity.Player> players, org.bukkit.Location location, boolean sound)https://minecraft.gamepedia.com/Damage#Lightning_damage Lightnings deal 5 damage.static voidlightning(org.bukkit.entity.Player player, org.bukkit.Location location, boolean sound)static voidopenSign(org.bukkit.entity.Player player, String[] lines)Currently only supports 1.17protected static voidsendBlockChange(org.bukkit.entity.Player player, org.bukkit.Chunk chunk, Map<NMSExtras.WorldlessBlockWrapper,Object> blocks)Deprecated.static voidsetExp(org.bukkit.entity.Player player, float bar, int lvl, int exp)
-
-
-
Field Detail
-
EXP_PACKET
public static final MethodHandle EXP_PACKET
-
ENTITY_PACKET
public static final MethodHandle ENTITY_PACKET
-
WORLD_HANDLE
public static final MethodHandle WORLD_HANDLE
-
ENTITY_HANDLE
public static final MethodHandle ENTITY_HANDLE
-
LIGHTNING_ENTITY
public static final MethodHandle LIGHTNING_ENTITY
-
VEC3D
public static final MethodHandle VEC3D
-
PACKET_PLAY_OUT_OPEN_SIGN_EDITOR
public static final MethodHandle PACKET_PLAY_OUT_OPEN_SIGN_EDITOR
-
PACKET_PLAY_OUT_BLOCK_CHANGE
public static final MethodHandle PACKET_PLAY_OUT_BLOCK_CHANGE
-
ANIMATION_PACKET
public static final MethodHandle ANIMATION_PACKET
-
ANIMATION_TYPE
public static final MethodHandle ANIMATION_TYPE
-
ANIMATION_ENTITY_ID
public static final MethodHandle ANIMATION_ENTITY_ID
-
PLAY_OUT_MULTI_BLOCK_CHANGE_PACKET
public static final MethodHandle PLAY_OUT_MULTI_BLOCK_CHANGE_PACKET
-
MULTI_BLOCK_CHANGE_INFO
public static final MethodHandle MULTI_BLOCK_CHANGE_INFO
-
CHUNK_WRAPPER_SET
public static final MethodHandle CHUNK_WRAPPER_SET
-
CHUNK_WRAPPER
public static final MethodHandle CHUNK_WRAPPER
-
SHORTS_OR_INFO
public static final MethodHandle SHORTS_OR_INFO
-
SET_BLOCK_DATA
public static final MethodHandle SET_BLOCK_DATA
-
BLOCK_POSITION
public static final MethodHandle BLOCK_POSITION
-
PLAY_BLOCK_ACTION
public static final MethodHandle PLAY_BLOCK_ACTION
-
GET_BUKKIT_ENTITY
public static final MethodHandle GET_BUKKIT_ENTITY
-
GET_BLOCK_TYPE
public static final MethodHandle GET_BLOCK_TYPE
-
GET_BLOCK
public static final MethodHandle GET_BLOCK
-
GET_IBLOCK_DATA
public static final MethodHandle GET_IBLOCK_DATA
-
SANITIZE_LINES
public static final MethodHandle SANITIZE_LINES
-
TILE_ENTITY_SIGN
public static final MethodHandle TILE_ENTITY_SIGN
-
TILE_ENTITY_SIGN__GET_UPDATE_PACKET
public static final MethodHandle TILE_ENTITY_SIGN__GET_UPDATE_PACKET
-
TILE_ENTITY_SIGN__SET_LINE
public static final MethodHandle TILE_ENTITY_SIGN__SET_LINE
-
MULTI_BLOCK_CHANGE_INFO_CLASS
public static final Class<?> MULTI_BLOCK_CHANGE_INFO_CLASS
-
BLOCK_DATA
public static final Class<?> BLOCK_DATA
-
-
Method Detail
-
setExp
public static void setExp(org.bukkit.entity.Player player, float bar, int lvl, int exp)
-
lightning
public static void lightning(org.bukkit.entity.Player player, org.bukkit.Location location, boolean sound)
-
lightning
public static void lightning(Collection<org.bukkit.entity.Player> players, org.bukkit.Location location, boolean sound)
https://minecraft.gamepedia.com/Damage#Lightning_damage Lightnings deal 5 damage.- Parameters:
players- the players to send the packet to.location- the location to spawn the lightning.sound- if the lightning should have a sound or be silent.
-
animation
public static void animation(Collection<? extends org.bukkit.entity.Player> players, org.bukkit.entity.LivingEntity entity, NMSExtras.Animation animation)
-
chest
public static void chest(org.bukkit.block.Block chest, boolean open)
-
sendBlockChange
@Deprecated protected static void sendBlockChange(org.bukkit.entity.Player player, org.bukkit.Chunk chunk, Map<NMSExtras.WorldlessBlockWrapper,Object> blocks)
Deprecated.Not completed yet. I have no idea.
-
openSign
public static void openSign(org.bukkit.entity.Player player, String[] lines)Currently only supports 1.17
-
-