Package net.thewinnt.cutscenes.util
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 -
Constructor Summary
ConstructorsConstructorDescriptionActionToggles(boolean disableDamage, boolean disableAttacking, boolean disablePickingBlocks, boolean disableBreakingBlocks, boolean disableUsingItems, boolean disableBlockInteractions, boolean disableEntityInteractions, boolean disablePerspectiveChanging, boolean considerSpectator, boolean hideSelf) Creates an instance of aActionTogglesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconsiderSpectatorrecord component.booleanReturns the value of thedisableAttackingrecord component.booleanReturns the value of thedisableBlockInteractionsrecord component.booleanReturns the value of thedisableBreakingBlocksrecord component.booleanReturns the value of thedisableDamagerecord component.booleanReturns the value of thedisableEntityInteractionsrecord component.booleanDeprecated.booleanReturns the value of thedisablePickingBlocksrecord component.booleanReturns the value of thedisableUsingItemsrecord component.final booleanIndicates whether some other object is "equal to" this one.static ActionTogglesfromJson(com.google.gson.JsonElement json) static ActionTogglesfromNetwork(net.minecraft.network.FriendlyByteBuf buf) final inthashCode()Returns a hash code value for this object.booleanhideSelf()Returns the value of thehideSelfrecord component.voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf) final StringtoString()Returns a string representation of this record class.
-
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 aActionTogglesrecord class.- Parameters:
disableDamage- the value for thedisableDamagerecord componentdisableAttacking- the value for thedisableAttackingrecord componentdisablePickingBlocks- the value for thedisablePickingBlocksrecord componentdisableBreakingBlocks- the value for thedisableBreakingBlocksrecord componentdisableUsingItems- the value for thedisableUsingItemsrecord componentdisableBlockInteractions- the value for thedisableBlockInteractionsrecord componentdisableEntityInteractions- the value for thedisableEntityInteractionsrecord componentdisablePerspectiveChanging- the value for thedisablePerspectiveChangingrecord componentconsiderSpectator- the value for theconsiderSpectatorrecord componenthideSelf- the value for thehideSelfrecord component
-
-
Method Details
-
toNetwork
public void toNetwork(net.minecraft.network.FriendlyByteBuf buf) -
fromNetwork
-
fromJson
-
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. -
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. -
equals
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 '=='. -
disableDamage
public boolean disableDamage()Returns the value of thedisableDamagerecord component.- Returns:
- the value of the
disableDamagerecord component
-
disableAttacking
public boolean disableAttacking()Returns the value of thedisableAttackingrecord component.- Returns:
- the value of the
disableAttackingrecord component
-
disablePickingBlocks
public boolean disablePickingBlocks()Returns the value of thedisablePickingBlocksrecord component.- Returns:
- the value of the
disablePickingBlocksrecord component
-
disableBreakingBlocks
public boolean disableBreakingBlocks()Returns the value of thedisableBreakingBlocksrecord component.- Returns:
- the value of the
disableBreakingBlocksrecord component
-
disableUsingItems
public boolean disableUsingItems()Returns the value of thedisableUsingItemsrecord component.- Returns:
- the value of the
disableUsingItemsrecord component
-
disableBlockInteractions
public boolean disableBlockInteractions()Returns the value of thedisableBlockInteractionsrecord component.- Returns:
- the value of the
disableBlockInteractionsrecord component
-
disableEntityInteractions
public boolean disableEntityInteractions()Returns the value of thedisableEntityInteractionsrecord component.- Returns:
- the value of the
disableEntityInteractionsrecord component
-
disablePerspectiveChanging
Deprecated.Returns the value of thedisablePerspectiveChangingrecord component.- Returns:
- the value of the
disablePerspectiveChangingrecord component
-
considerSpectator
public boolean considerSpectator()Returns the value of theconsiderSpectatorrecord component.- Returns:
- the value of the
considerSpectatorrecord component
-
hideSelf
public boolean hideSelf()Returns the value of thehideSelfrecord component.- Returns:
- the value of the
hideSelfrecord component
-