Record Class ActionToggles

java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.util.ActionToggles

public record ActionToggles(boolean disableDamage, boolean disableAttacking, boolean disablePickingBlocks, boolean disableBreakingBlocks, boolean disableUsingItems, boolean disableBlockInteractions, boolean disableEntityInteractions, boolean disablePerspectiveChanging, boolean considerSpectator, boolean hideSelf) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActionToggles(boolean disableDamage, boolean disableAttacking, boolean disablePickingBlocks, boolean disableBreakingBlocks, boolean disableUsingItems, boolean disableBlockInteractions, boolean disableEntityInteractions, boolean disablePerspectiveChanging, boolean considerSpectator, boolean hideSelf)
    Creates an instance of a ActionToggles record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the considerSpectator record component.
    boolean
    Returns the value of the disableAttacking record component.
    boolean
    Returns the value of the disableBlockInteractions record component.
    boolean
    Returns the value of the disableBreakingBlocks record component.
    boolean
    Returns the value of the disableDamage record component.
    boolean
    Returns the value of the disableEntityInteractions record component.
    boolean
    Deprecated.
    boolean
    Returns the value of the disablePickingBlocks record component.
    boolean
    Returns the value of the disableUsingItems record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    fromJson(com.google.gson.JsonElement json)
     
    fromNetwork(net.minecraft.network.FriendlyByteBuf buf)
     
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hideSelf record component.
    void
    toNetwork(net.minecraft.network.FriendlyByteBuf buf)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ActionToggles

      public ActionToggles(boolean disableDamage, boolean disableAttacking, boolean disablePickingBlocks, boolean disableBreakingBlocks, boolean disableUsingItems, boolean disableBlockInteractions, boolean disableEntityInteractions, @Deprecated boolean disablePerspectiveChanging, boolean considerSpectator, boolean hideSelf)
      Creates an instance of a ActionToggles record class.
      Parameters:
      disableDamage - the value for the disableDamage record component
      disableAttacking - the value for the disableAttacking record component
      disablePickingBlocks - the value for the disablePickingBlocks record component
      disableBreakingBlocks - the value for the disableBreakingBlocks record component
      disableUsingItems - the value for the disableUsingItems record component
      disableBlockInteractions - the value for the disableBlockInteractions record component
      disableEntityInteractions - the value for the disableEntityInteractions record component
      disablePerspectiveChanging - the value for the disablePerspectiveChanging record component
      considerSpectator - the value for the considerSpectator record component
      hideSelf - the value for the hideSelf record component
  • Method Details

    • toNetwork

      public void toNetwork(net.minecraft.network.FriendlyByteBuf buf)
    • fromNetwork

      public static ActionToggles fromNetwork(net.minecraft.network.FriendlyByteBuf buf)
    • fromJson

      public static ActionToggles fromJson(com.google.gson.JsonElement json)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • disableDamage

      public boolean disableDamage()
      Returns the value of the disableDamage record component.
      Returns:
      the value of the disableDamage record component
    • disableAttacking

      public boolean disableAttacking()
      Returns the value of the disableAttacking record component.
      Returns:
      the value of the disableAttacking record component
    • disablePickingBlocks

      public boolean disablePickingBlocks()
      Returns the value of the disablePickingBlocks record component.
      Returns:
      the value of the disablePickingBlocks record component
    • disableBreakingBlocks

      public boolean disableBreakingBlocks()
      Returns the value of the disableBreakingBlocks record component.
      Returns:
      the value of the disableBreakingBlocks record component
    • disableUsingItems

      public boolean disableUsingItems()
      Returns the value of the disableUsingItems record component.
      Returns:
      the value of the disableUsingItems record component
    • disableBlockInteractions

      public boolean disableBlockInteractions()
      Returns the value of the disableBlockInteractions record component.
      Returns:
      the value of the disableBlockInteractions record component
    • disableEntityInteractions

      public boolean disableEntityInteractions()
      Returns the value of the disableEntityInteractions record component.
      Returns:
      the value of the disableEntityInteractions record component
    • disablePerspectiveChanging

      @Deprecated public boolean disablePerspectiveChanging()
      Deprecated.
      Returns the value of the disablePerspectiveChanging record component.
      Returns:
      the value of the disablePerspectiveChanging record component
    • considerSpectator

      public boolean considerSpectator()
      Returns the value of the considerSpectator record component.
      Returns:
      the value of the considerSpectator record component
    • hideSelf

      public boolean hideSelf()
      Returns the value of the hideSelf record component.
      Returns:
      the value of the hideSelf record component