{ "Ticker": "IBM" }
<json:object>
<json:string name="Ticker">IBM</json:string>
</json:object>
// data api | |
Optional<DisplayNameData> wrappedDisplayName = entity.getData(DisplayNameData.class); | |
if (wrappedDisplayName.isPresent()) { | |
DisplayNameData displayname = wrappedDisplayName.get(); | |
displayname.setDisplayName(Texts.of(displayName.get(), "hai!")); | |
entity.offer(displayname); | |
} | |
// equivalent POJO | |
if (entity.displayName != null) { |
public static final Prop<Double, DamagingData> DAMAGE = null; | |
// TODO yes the capitals are bad style, but it makes sense for consistency | |
public static Prop<Double, DamagingData> DAMAGE_FOR_ENTITY(EntityType type) { | |
return null; | |
} | |
entity.get(Props.DAMAGE); | |
entity.get(Props.DAMAGE_FOR_ENTITY(EntityTypes.SKELETON); |
public abstract class HList { | |
public abstract int length(); | |
public static H0 of() { | |
return Nil; | |
} | |
public static <T1> H1<T1> of(T1 v1) { | |
return new H1<T1>(v1); |
{ "Ticker": "IBM" }
<json:object>
<json:string name="Ticker">IBM</json:string>
</json:object>
interface DataManipulator { | |
void clear(); | |
void from(DataHolder holder); | |
} | |
interface DisplayNameData extends DataManipulator { |
project.getGradle().buildFinished { result -> | |
def failure = result.getFailure() | |
if (failure) { | |
def cause = failure.getCause().getCause().getCause() | |
throw new RuntimeException("no, this is what I want it to say!") | |
} | |
} |
{ | |
"name": "my-plugin", | |
"owner": "gratimax", | |
"version": "1.0-SNAPSHOT", | |
"dependencies": [ | |
["Lapis", "Commons", "1.0-SNAPSHOT"] | |
], | |
"maven": { | |
"repositories": { | |
"sponge": "https://repo.spongepowered.org/maven", |
// All lists are immutable | |
public ComputedMessage computeAll(@Nullable Message parent) { | |
Message self = null; | |
if (parent == null) { | |
self = this; | |
} else { | |
self = Messages.compute(parent, self); | |
} |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/max/proj/sponge/Soak/Cli/build.gradle' line: 3 | |
* What went wrong: | |
Error resolving plugin [id: 'com.github.hierynomus.license', version: '0.11.0'] | |
> Plugin 'com.github.hierynomus.license' is already on the script classpath. Plugins on the script classpath cannot be applied in the plugins {} block. Add "apply plugin: 'com.github.hierynomus.license'" to the body of the script to use the plugin. |