Skip to content

Instantly share code, notes, and snippets.

@maxov
Created May 1, 2015 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxov/db310303e882d9684ade to your computer and use it in GitHub Desktop.
Save maxov/db310303e882d9684ade to your computer and use it in GitHub Desktop.
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);
// vs
entity.get(Props.damageForEntity(EntityTypes.Skeleton));
// or maybe another solution like another Prop type? idk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment