mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -04:00
reformat code
This commit is contained in:
parent
a5d26a6448
commit
5fe7c73a6e
@ -267,7 +267,7 @@ public enum EntityMetaDataFields {
|
||||
|
||||
THROWN_EYE_OF_ENDER_ITEM;
|
||||
|
||||
final Object defaultValue;
|
||||
private final Object defaultValue;
|
||||
|
||||
EntityMetaDataFields() {
|
||||
defaultValue = null;
|
||||
|
@ -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());
|
||||
|
@ -430,6 +430,7 @@ public enum BlockProperties {
|
||||
PROPERTIES_MAPPING.get(property.getGroup()).put(property.getValue(), property);
|
||||
}
|
||||
}
|
||||
|
||||
final String group;
|
||||
final String value;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user