General cleanup

Dieser Commit ist enthalten in:
Wyatt Childers 2016-02-02 18:15:47 -05:00
Ursprung c62125cd70
Commit 5efbeec44f
2 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -46,6 +46,8 @@ import org.spongepowered.api.data.property.block.SkyLuminanceProperty;
import org.spongepowered.api.entity.EntitySnapshot; import org.spongepowered.api.entity.EntitySnapshot;
import org.spongepowered.api.entity.EntityTypes; import org.spongepowered.api.entity.EntityTypes;
import org.spongepowered.api.event.cause.Cause; import org.spongepowered.api.event.cause.Cause;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.channel.MessageChannel;
import org.spongepowered.api.world.World; import org.spongepowered.api.world.World;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
@ -170,16 +172,14 @@ public abstract class SpongeWorld extends AbstractWorld {
} }
} }
@Override @Override
public WorldData getWorldData() { public WorldData getWorldData() {
return ForgeWorldData.getInstance(); return SpongeWorldData.getInstance();
} }
@Override @Override
public boolean isValidBlockType(int id) { public boolean isValidBlockType(int id) {
return (id == 0) || (IDHelper.resolveItem(id) != null); return (id == 0) || (IDHelper.resolveBlock(id) != null);
} }
@Override @Override

Datei anzeigen

@ -25,9 +25,9 @@ import com.sk89q.worldedit.world.registry.LegacyWorldData;
/** /**
* World data for the Forge platform. * World data for the Forge platform.
*/ */
class ForgeWorldData extends LegacyWorldData { class SpongeWorldData extends LegacyWorldData {
private static final ForgeWorldData INSTANCE = new ForgeWorldData(); private static final SpongeWorldData INSTANCE = new SpongeWorldData();
private final BiomeRegistry biomeRegistry = new SpongeBiomeRegistry(); private final BiomeRegistry biomeRegistry = new SpongeBiomeRegistry();
@Override @Override
@ -40,7 +40,7 @@ class ForgeWorldData extends LegacyWorldData {
* *
* @return an instance * @return an instance
*/ */
public static ForgeWorldData getInstance() { public static SpongeWorldData getInstance() {
return INSTANCE; return INSTANCE;
} }