Interface RealInvisibilityEvents.Allow

Enclosing class:
RealInvisibilityEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RealInvisibilityEvents.Allow
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allow(@NotNull net.minecraft.server.level.ServerPlayer player, int entityId, @NotNull icu.suc.kkw557.realinvisibility.common.Setting setting)
    Called when a value in the packet to be modified.
  • Method Details

    • allow

      boolean allow(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, int entityId, @NotNull @NotNull icu.suc.kkw557.realinvisibility.common.Setting setting)
      Called when a value in the packet to be modified.
      Parameters:
      player - the player
      entityId - the entity id
      setting - the setting
      Returns:
      true if the value should be modified, otherwise false