-
-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7218e98
commit 00f8819
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...src/main/java/com/plotsquared/core/plot/flag/implementations/InteractionInteractFlag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.plotsquared.core.plot.flag.implementations; | ||
|
||
import com.plotsquared.core.configuration.caption.TranslatableCaption; | ||
import com.plotsquared.core.plot.flag.types.BooleanFlag; | ||
import org.checkerframework.checker.nullness.qual.NonNull; | ||
|
||
public class InteractionInteractFlag extends BooleanFlag<InteractionInteractFlag> { | ||
|
||
public static final InteractionInteractFlag INTERACTION_INTERACT_TRUE = new InteractionInteractFlag(true); | ||
public static final InteractionInteractFlag INTERACTION_INTERACT_FALSE = new InteractionInteractFlag(false); | ||
|
||
private InteractionInteractFlag(boolean value) { | ||
super(value, TranslatableCaption.of("flags.flag_description_interaction_interact")); | ||
} | ||
|
||
@Override | ||
protected InteractionInteractFlag flagOf(@NonNull Boolean value) { | ||
return value ? INTERACTION_INTERACT_TRUE : INTERACTION_INTERACT_FALSE; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters