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
package com.gmail.socraticphoenix.planet9; | |
import com.gmail.socraticphoenix.planet9.grammar.line.lines.SourceExtendsStatement; | |
import com.gmail.socraticphoenix.planet9.grammar.line.lines.SourceIsStatement; | |
import java.io.IOException; | |
public class Test { | |
public static void main(String[] args) throws IOException { |
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
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2015 socraticphoenix@gmail.com | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
* associated documentation files (the "Software"), to deal in the Software without restriction, | |
* including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
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
import java.util.Arrays; | |
public class Test { | |
public static void main(String... args) { | |
Test.testArray(p(""), ""); | |
Test.testArray(p("h"), "h"); | |
Test.testArray(p("hi"), "hi"); | |
Test.testArray(p("fun"), "fun"); | |
Test.testArray(p("bye"), "bye"); |
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
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2015 socraticphoenix@gmail.com | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
* associated documentation files (the "Software"), to deal in the Software without restriction, | |
* including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
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
class TestSink extends MessageSink { | |
private MessageSink parent; | |
public TestSink(MessageSink parent) { | |
super(); | |
this.parent = parent; | |
} | |
@Override | |
public Text transformMessage(CommandSource target, Text text) { |
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
game= @serialized:{ | |
serializer= "com.gmail.socraticphoenix.plasma.file.jlsc.serialization.JLSCAnnotatedSerializer" | |
type= "com.gmail.socraticphoenix.textchamber.Game" | |
values= { | |
startingDimension= "spawn" | |
playerDimension= "spawn" | |
playerRoom= com.gmail.socraticphoenix.plasma.math.matrix.Position(@integer:0, @integer:0) | |
dimension= @serialized:{ | |
serializer= "com.gmail.socraticphoenix.plasma.file.jlsc.serialization.JLSCMapSerializer" | |
type= "java.util.HashMap" |
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
package com.gmail.socraticphoenix.sponge.star.data; | |
import com.gmail.socraticphoenix.plasma.file.cif.cifc.CIFCConfiguration; | |
import com.gmail.socraticphoenix.plasma.file.cif.cifc.io.CIFCReader; | |
import com.gmail.socraticphoenix.plasma.file.cif.io.CIFException; | |
import org.spongepowered.api.data.DataHolder; | |
import org.spongepowered.api.data.DataView; | |
import org.spongepowered.api.data.manipulator.DataManipulatorBuilder; | |
import org.spongepowered.api.service.persistence.InvalidDataException; |
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
@Listener | |
public void onDamage(DamageEntityEvent event) { | |
if(this.lobby.is(event.getTargetEntity().getWorld())) { | |
event.setCancelled(true); | |
if (event.getCause().any(DamageSource.class) && event.getCause().first(DamageSource.class).get() == DamageSources.VOID && event.getTargetEntity() instanceof Player) { | |
event.getTargetEntity().setLocation(this.lobby.getSpawn()); | |
} | |
} | |
} |
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
package com.gmail.socraticphoenix.teamfight.weapon.ability; | |
import com.flowpowered.math.vector.Vector3d; | |
import com.gmail.socraticphoenix.sponge.star.scheduler.SpongeRunnable; | |
import java.util.Collection; | |
import org.spongepowered.api.data.key.Keys; | |
import org.spongepowered.api.entity.Entity; | |
import org.spongepowered.api.entity.Item; | |
import org.spongepowered.api.entity.living.player.Player; | |
import org.spongepowered.api.world.Location; |
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
Could not pass DisplaceEntityEvent$Move$TargetPlayer$Impl to SpongePlugin:Split Inventories{unknown} | |
java.lang.AbstractMethodError: Method net/minecraft/entity/player/EntityPlayerMP.getInventory()Lorg/spongepowered/api/item/inventory/type/CarriedInventory; is abstract | |
at net.minecraft.entity.player.EntityPlayerMP.getInventory(EntityPlayerMP.java) ~[qw.class:?] | |
at com.gmail.socraticphoenix.sponge.splitinventories.SplitInventories.exactInventorySave(SplitInventories.java:156) ~[SplitInventories.class:?] | |
at com.gmail.socraticphoenix.sponge.splitinventories.SplitInventories.saveInventory(SplitInventories.java:141) ~[SplitInventories.class:?] | |
at com.gmail.socraticphoenix.sponge.splitinventories.SplitInventories.onWorldChange(SplitInventories.java:117) ~[SplitInventories.class:?] | |
at org.spongepowered.common.event.listener.MoveListener_SplitInventories_onWorldChange10.handle(Unknown Source) ~[?:?] | |
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:92) ~[RegisteredListener.class |