Tabnine Logo
EventValues
Code IndexAdd Tabnine to your IDE (free)

How to use
EventValues
in
ch.njol.skript.registrations

Best Java code snippets using ch.njol.skript.registrations.EventValues (Showing top 2 results out of 315)

origin: dzikoysk/WildSkript

EventValues.registerEventValue(EnchantItemEvent.class, ItemStack.class, new SerializableGetter<ItemStack, EnchantItemEvent>() {
  public ItemStack get(EnchantItemEvent event) {
    return event.getItem();
EventValues.registerEventValue(EnchantItemEvent.class, Player.class, new SerializableGetter<Player, EnchantItemEvent>() {
  public Player get(EnchantItemEvent event) {
    return event.getEnchanter();
EventValues.registerEventValue(InventoryClickEvent.class, ItemStack.class, new SerializableGetter<ItemStack, InventoryClickEvent>() {
  public ItemStack get(InventoryClickEvent event) {
    return event.getCurrentItem();
EventValues.registerEventValue(InventoryClickEvent.class, Player.class, new SerializableGetter<Player, InventoryClickEvent>() {
  public Player get(InventoryClickEvent event) {
    return (Player) event.getWhoClicked();
EventValues.registerEventValue(InventoryCloseEvent.class, Player.class, new SerializableGetter<Player, InventoryCloseEvent>() {
  public Player get(InventoryCloseEvent event) {
    return (Player) event.getPlayer();
EventValues.registerEventValue(ServerListPingEvent.class, String.class, new SerializableGetter<String, ServerListPingEvent>() {
  public String get(ServerListPingEvent event) {
    return event.getAddress().toString();
EventValues.registerEventValue(EvtJump.class, Player.class, new SerializableGetter<Player, EvtJump>() {
  public Player get(EvtJump event) {
    return event.getPlayer();
EventValues.registerEventValue(PrepareItemCraftEvent.class, Player.class, new SerializableGetter<Player, PrepareItemCraftEvent>() {
origin: elBukkit/MagicPlugin

ExprActiveSpell.register();
EventValues.registerEventValue(CastEvent.class, Player.class, new Getter<Player, CastEvent>() {
  @SuppressWarnings("null") // Eclipse bug
  @Nullable
EventValues.registerEventValue(CastEvent.class, Entity.class, new Getter<Entity, CastEvent>() {
  @SuppressWarnings("null") // Eclipse bug
  @Nullable
EventValues.registerEventValue(PreCastEvent.class, Player.class, new Getter<Player, PreCastEvent>() {
  @SuppressWarnings("null") // Eclipse bug
  @Nullable
EventValues.registerEventValue(PreCastEvent.class, Entity.class, new Getter<Entity, PreCastEvent>() {
  @SuppressWarnings("null") // Eclipse bug
  @Nullable
ch.njol.skript.registrationsEventValues

Most used methods

  • registerEventValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now