mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e1e8f52e0 | ||
|
|
f10f7502c8 |
No files matched your search
@@ -27,8 +27,8 @@ public class ModAnnotation
|
|||||||
{
|
{
|
||||||
public class EnumHolder
|
public class EnumHolder
|
||||||
{
|
{
|
||||||
private String desc;
|
private final String desc;
|
||||||
private String value;
|
private final String value;
|
||||||
|
|
||||||
public EnumHolder(String desc, String value)
|
public EnumHolder(String desc, String value)
|
||||||
{
|
{
|
||||||
@@ -36,6 +36,15 @@ public class ModAnnotation
|
|||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDesc()
|
||||||
|
{
|
||||||
|
return desc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue()
|
||||||
|
{
|
||||||
|
return value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
AnnotationType type;
|
AnnotationType type;
|
||||||
Type asmType;
|
Type asmType;
|
||||||
@@ -100,7 +109,7 @@ public class ModAnnotation
|
|||||||
|
|
||||||
public void addEnumProperty(String key, String enumName, String value)
|
public void addEnumProperty(String key, String enumName, String value)
|
||||||
{
|
{
|
||||||
values.put(key, new EnumHolder(enumName, value));
|
addProperty(key, new EnumHolder(enumName, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void endArray()
|
public void endArray()
|
||||||
@@ -111,10 +120,7 @@ public class ModAnnotation
|
|||||||
public ModAnnotation addChildAnnotation(String name, String desc)
|
public ModAnnotation addChildAnnotation(String name, String desc)
|
||||||
{
|
{
|
||||||
ModAnnotation child = new ModAnnotation(AnnotationType.SUBTYPE, Type.getType(desc), this);
|
ModAnnotation child = new ModAnnotation(AnnotationType.SUBTYPE, Type.getType(desc), this);
|
||||||
if (arrayList != null)
|
addProperty(name, child.getValues());
|
||||||
{
|
|
||||||
arrayList.add(child.getValues());
|
|
||||||
}
|
|
||||||
return child;
|
return child;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<Console name="SysOut" target="SYSTEM_OUT">
|
<Console name="SysOut" target="SYSTEM_OUT">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
||||||
</Console>
|
</Console>
|
||||||
<Queue name="ServerGuiConsole">
|
<Queue name="ServerGuiConsole" ignoreExceptions="true">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level] [%logger]: %msg%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level] [%logger]: %msg%n" />
|
||||||
</Queue>
|
</Queue>
|
||||||
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</TerminalConsole>
|
</TerminalConsole>
|
||||||
<!-- Keep a console appender open so log4j2 doesn't close our main out stream if we redirect System.out to the logger -->
|
<!-- Keep a console appender open so log4j2 doesn't close our main out stream if we redirect System.out to the logger -->
|
||||||
<Console name="SysOut" target="SYSTEM_OUT"/>
|
<Console name="SysOut" target="SYSTEM_OUT"/>
|
||||||
<Queue name="ServerGuiConsole">
|
<Queue name="ServerGuiConsole" ignoreExceptions="true">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level] [%logger]: %replace{%msg}{(?i)\u00A7[0-9A-FK-OR]}{}%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level] [%logger]: %replace{%msg}{(?i)\u00A7[0-9A-FK-OR]}{}%n" />
|
||||||
</Queue>
|
</Queue>
|
||||||
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
||||||
|
|||||||
Reference in new issue
Block a user