reformat code

This commit is contained in:
Bixilon 2020-11-21 15:12:22 +01:00
parent a5d26a6448
commit 5fe7c73a6e
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
9 changed files with 28 additions and 28 deletions

View File

@ -267,7 +267,7 @@ public enum EntityMetaDataFields {
THROWN_EYE_OF_ENDER_ITEM;
final Object defaultValue;
private final Object defaultValue;
EntityMetaDataFields() {
defaultValue = null;

View File

@ -229,6 +229,7 @@ public abstract class Entity {
public int getTicksFrozen() {
return metaData.getSets().getInt(EntityMetaDataFields.ENTITY_TICKS_FROZEN);
}
@Override
public String toString() {
return String.format("%s:%s", information.getMod(), information.getIdentifier());

View File

@ -430,6 +430,7 @@ public enum BlockProperties {
PROPERTIES_MAPPING.get(property.getGroup()).put(property.getValue(), property);
}
}
final String group;
final String value;

View File

@ -22,9 +22,9 @@ import java.text.SimpleDateFormat;
import java.util.concurrent.LinkedBlockingQueue;
public class Log {
public final static long MINOSOFT_START_TIME = System.currentTimeMillis();
final static SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
final static LinkedBlockingQueue<String> queue = new LinkedBlockingQueue<>();
public final static long MINOSOFT_START_TIME = System.currentTimeMillis();
static LogLevels level = LogLevels.PROTOCOL;
static {

View File

@ -146,8 +146,7 @@ public class OutByteBuffer {
public void writeVarInt(int value) {
// thanks https://wiki.vg/Protocol#VarInt_and_VarLong
do
{
do {
byte temp = (byte) (value & 0x7F);
value >>>= 7;
if (value != 0) {
@ -160,8 +159,7 @@ public class OutByteBuffer {
public void prefixVarInt(int value) {
int count = 0;
// thanks https://wiki.vg/Protocol#VarInt_and_VarLong
do
{
do {
byte temp = (byte) (value & 0x7F);
value >>>= 7;
if (value != 0) {