SpongePowered / SpongeAPI

A Minecraft plugin API
http://www.spongepowered.org/
MIT License
1.14k stars 342 forks source link

Ongoing Minor Issue List (OCD list) #221

Closed phroa closed 8 years ago

phroa commented 10 years ago

Track at https://github.com/SpongePowered/SpongeAPI/pull/860

Minor Issues List

Checkstyle warnings

File Problem
caseif commented 9 years ago

GroundLumanceProperty is misspelled (should be GroundLuminanceProperty), and LightEmissionProperty is inconsistently named (it would make more sense to call it LuminanceProperty to match GroundLuminanceProperty and SkyLuminanceProperty.

Also, there should probably be a HumidityProperty for Locations.

ST-DDT commented 9 years ago
octylFractal commented 9 years ago
TheRaspPie commented 9 years ago
ST-DDT commented 9 years ago
+ public static final Key<SetValue<Achievement>> ACHIEVEMENTS = null;
- ImmutableSetValue<Achievement> achiements();
+ ImmutableSetValue<Achievement> achievements();

I can create a PR for this as well, but I consider this a too small/OCD change. Compare/Merge

ghost commented 9 years ago
- Value<Boolean> perists();
+ Value<Boolean> persists();
gabizou commented 9 years ago

Inventory.slots() should have a signature of Iterable slots(); because it always returns Slots. @Mumfrey

As mentioned here this is a big fat no:

Leaf nodes are currently guaranteed to be Slots but I definitely don't want this encoded in the API, because the entire point of this is that it can support future changes in minecraft's inventory system. This is why pretty much all generic signatures are , because the contract is designed around the core premise that you deal with Inventorys not any particular sub interface.

  • Mumfrey 2015
ryantheleach commented 9 years ago
ryantheleach commented 9 years ago
Rain336 commented 9 years ago
randombyte-developer commented 9 years ago

SPAWNER_REQURED_PLAYER_RANGE - typo

phroa commented 9 years ago

I already fixed that in #860.

JonathanBrouwer commented 9 years ago

https://github.com/SpongePowered/SpongeAPI/blob/master/src/main/java/org/spongepowered/api/entity/living/monster/Creeper.java line 30 creeepr -> creeper

phroa commented 9 years ago

That was also already fixed in my PR.

octylFractal commented 9 years ago

@bloodmc Might need discussion, but things related to BlockTrait values (like getTraitMap) should return ? extends Comparable since all values are Comparable.

For example:

// Current
Map<BlockTrait<?>, ?> getTraitMap();

// Proposed
Map<BlockTrait<?>, ? extends Comparable<?>> getTraitMap();
// or
Map<BlockTrait<?>, Comparable<?>> getTraitMap();
octylFractal commented 9 years ago

Inventory.poll() returns ItemStack, but the javadoc claims it can return Optional.empty()! link to relevant line (Fixed)

gabizou commented 8 years ago

@phroa mind updating the issue description of the various OCD things listed here?

ryantheleach commented 8 years ago
JBYoshi commented 8 years ago

@ryantheleach I think only one would be needed - the value of one is simply the opposite of the other.

ryantheleach commented 8 years ago
TheRaspPie commented 8 years ago
ghost commented 8 years ago
JBYoshi commented 8 years ago
ZephireNZ commented 8 years ago
Deamon5550 commented 8 years ago

@ryantheleach feature requests aren't minor changes, those should be an issue.

Deamon5550 commented 8 years ago

Creating a new OCD list for beta See #1000

Any still unresolved issues from here that I may have missed should be reported there.

Deamon5550 commented 8 years ago

@saladoc remake your concern as an issue as well

randombyte-developer commented 8 years ago

https://github.com/SpongePowered/SpongeAPI/blob/master/src/main/java/org/spongepowered/api/entity/EntityTypes.java#L64 shouldn't it be ZOMBIE_PIGMAN instead of PIG_ZOMBIE?