Fix formatting

This commit is contained in:
yueh
2020-07-28 11:44:57 +02:00
parent a65be62cd1
commit 0beab559a6
74 changed files with 221 additions and 188 deletions
+4 -5
View File
@@ -689,12 +689,11 @@ final class Registration {
public void registerStructures(RegistryEvent.Register<Structure<?>> evt) {
// Registering into the Forge registry is INSUFFICIENT!
// There's a bidirectional map in the Structure class itself primarily for the purposes of NBT serialization
StructureAccessor.register(
MeteoriteStructure.ID.toString(),
// There's a bidirectional map in the Structure class itself primarily for the
// purposes of NBT serialization
StructureAccessor.register(MeteoriteStructure.ID.toString(),
MeteoriteStructure.INSTANCE.setRegistryName(MeteoriteStructure.ID),
GenerationStage.Decoration.TOP_LAYER_MODIFICATION
);
GenerationStage.Decoration.TOP_LAYER_MODIFICATION);
}
public void registerBiomes(RegistryEvent.Register<Biome> evt) {
@@ -52,8 +52,8 @@ public class ApiClientHelper implements IClientHelper {
final ICellInventory<?> cellInventory = handler.getCellInv();
if (cellInventory != null) {
lines.add(new StringTextComponent(cellInventory.getUsedBytes() + " ")
.func_230529_a_(GuiText.Of.text()).func_240702_b_(" " + cellInventory.getTotalBytes() + " ")
lines.add(new StringTextComponent(cellInventory.getUsedBytes() + " ").func_230529_a_(GuiText.Of.text())
.func_240702_b_(" " + cellInventory.getTotalBytes() + " ")
.func_230529_a_(GuiText.BytesUsed.text()));
lines.add(new StringTextComponent(cellInventory.getStoredItemTypes() + " ")
@@ -66,11 +66,9 @@ public class ApiClientHelper implements IClientHelper {
: GuiText.Excluded).getLocal();
if (handler.isFuzzy()) {
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ")
.func_230529_a_(GuiText.Fuzzy.text()));
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ").func_230529_a_(GuiText.Fuzzy.text()));
} else {
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ")
.func_230529_a_(GuiText.Precise.text()));
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ").func_230529_a_(GuiText.Precise.text()));
}
}
@@ -118,8 +118,8 @@ public class NetworkHandler {
public void sendToAllAround(final BasePacket message, final TargetPoint point) {
IPacket<?> pkt = message.toPacket(NetworkDirection.PLAY_TO_CLIENT);
getServer().getPlayerList().sendToAllNearExcept(point.excluded, point.x, point.y, point.z, point.r2, point.world.func_234923_W_(),
pkt);
getServer().getPlayerList().sendToAllNearExcept(point.excluded, point.x, point.y, point.z, point.r2,
point.world.func_234923_W_(), pkt);
}
public void sendToServer(final BasePacket message) {
@@ -32,8 +32,7 @@ public class TargetPoint {
return new TargetPoint(x, y, z, r2, world);
}
public static TargetPoint at(ServerPlayerEntity excluded, double x, double y, double z, double r2,
World world) {
public static TargetPoint at(ServerPlayerEntity excluded, double x, double y, double z, double r2, World world) {
return new TargetPoint(excluded, x, y, z, r2, world);
}
}
@@ -62,8 +62,7 @@ public final class WorldData implements IWorldData {
// Attach shared data to the server's overworld dimension
if (overworld.func_234923_W_() != ServerWorld.field_234918_g_) {
throw new IllegalStateException(
"The server doesn't have an overworld we could store our data on!");
throw new IllegalStateException("The server doesn't have an overworld we could store our data on!");
}
final PlayerData playerData = overworld.getSavedData().getOrCreate(PlayerData::new, PlayerData.NAME);