Klasse ServerScreenEffectManager

java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.util.ServerScreenEffectManager

public class ServerScreenEffectManager extends Object
  • Konstruktordetails

    • ServerScreenEffectManager

      public ServerScreenEffectManager()
  • Methodendetails

    • tick

      public static void tick()
    • inScreenEffect

      public static boolean inScreenEffect(net.minecraft.server.level.ServerPlayer player)
    • shouldPlayerBeProtected

      public static boolean shouldPlayerBeProtected(net.minecraft.server.level.ServerPlayer player)
      Returns true if the player is still protected by either tracker (screen effect or cutscene). The predicate is evaluated from both trackers in one place so the outcome does not depend on which tracker ticks first.
    • onPlayerDisconnect

      public static void onPlayerDisconnect(net.minecraft.server.level.ServerPlayer player)
      Clears this tracker for a player leaving the server.
    • addInstance

      public static void addInstance(net.minecraft.server.level.ServerPlayer player, int ticks)