Created
August 22, 2019 11:06
-
-
Save AlexandreGerault/4b7c8c85083622a1e70f72b00a58764f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package io.github.alexandregerault.battleroyale.data; | |
import com.flowpowered.math.vector.Vector3i; | |
import com.google.common.reflect.TypeToken; | |
import io.github.alexandregerault.battleroyale.data.PlayerRole; | |
import javax.annotation.Generated; | |
import org.spongepowered.api.data.DataQuery; | |
import org.spongepowered.api.data.key.Key; | |
import org.spongepowered.api.data.value.mutable.OptionalValue; | |
import org.spongepowered.api.data.value.mutable.Value; | |
import org.spongepowered.api.util.TypeTokens; | |
import org.spongepowered.api.world.extent.ArchetypeVolume; | |
@Generated(value = "flavor.pie.generator.data.DataManipulatorGenerator", date = "2019-08-22T10:09:46.967Z") | |
public class PlayerKeys { | |
private PlayerKeys() {} | |
public final static Key<Value<Integer>> KILLS; | |
public final static Key<OptionalValue<Vector3i>> SELECT_POSITION_ONE; | |
public final static Key<OptionalValue<Vector3i>> SELECT_POSITION_TWO; | |
public final static Key<OptionalValue<ArchetypeVolume>> CLIPBOARD; | |
public final static Key<Value<PlayerRole>> ROLE; | |
static { | |
KILLS = Key.builder() | |
.type(TypeTokens.INTEGER_VALUE_TOKEN) | |
.id("brp:kills") | |
.name("Kills") | |
.query(DataQuery.of('.', "brp.kills")) | |
.build(); | |
SELECT_POSITION_ONE = Key.builder() | |
.type(new TypeToken<OptionalValue<Vector3i>>(){}) | |
.id("brp:selectpositionone") | |
.name("Position One") | |
.query(DataQuery.of('.', "brp.selectpositionone")) | |
.build(); | |
SELECT_POSITION_TWO = Key.builder() | |
.type(new TypeToken<OptionalValue<Vector3i>>(){}) | |
.id("brp:selectpositiontwo") | |
.name("Position Two") | |
.query(DataQuery.of('.', "brp.selectpositiontwo")) | |
.build(); | |
CLIPBOARD = Key.builder() | |
.type(new TypeToken<OptionalValue<ArchetypeVolume>>(){}) | |
.id("brp:clipboard") | |
.name("Clipboard") | |
.query(DataQuery.of('.', "brp.clipboard")) | |
.build(); | |
ROLE = Key.builder() | |
.type(new TypeToken<Value<PlayerRole>>(){}) | |
.id("brp:role") | |
.name("Clipboard") | |
.query(DataQuery.of('.', "brp.role")) | |
.build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment