Created
May 1, 2015 17:46
-
-
Save maxov/db310303e882d9684ade to your computer and use it in GitHub Desktop.
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
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