DelegateDataOutput .java

net.minecraft.util.DelegateDataOutput (class, 85 lines): members: writeChars, writeUTF, writeBoolean, writeDouble, writeByte, writeChar, writeLong, parent.

net.minecraft.utilclass85 linescommon1.8 KB

Implements

API Surface (14)

void write(final int b)
void write(final byte[] b)
void write(final byte[] b, final int off, final int len)
void writeBoolean(final boolean v)
void writeByte(final int v)
void writeShort(final int v)
void writeChar(final int v)
void writeInt(final int v)
void writeLong(final long v)
void writeFloat(final float v)
void writeDouble(final double v)
void writeBytes(final String s)
void writeChars(final String s)
void writeUTF(final String s)

Fields & Constants (1)

parent

String literals (1)

"Delegation is not use"

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

DelegateDataOutput.java85 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util;
2
3
import java.io.DataOutput;
4
import java.io.IOException;
5
import net.minecraft.SuppressForbidden;
6
7
public class DelegateDataOutput implements DataOutput {
8
	private final DataOutput parent;
9
10
	public DelegateDataOutput(final DataOutput parent) {
11
		this.parent = parent;
12
	}
13
14
	@Override
15
	public void write(final int b) throws IOException {
16
		this.parent.write(b);
17
	}
18
19
	@Override
20
	public void write(final byte[] b) throws IOException {
21
		this.parent.write(b);
22
	}
23
24
	@Override
25
	public void write(final byte[] b, final int off, final int len) throws IOException {
26
		this.parent.write(b, off, len);
27
	}
28
29
	@Override
30
	public void writeBoolean(final boolean v) throws IOException {
31
		this.parent.writeBoolean(v);
32
	}
33
34
	@Override
35
	public void writeByte(final int v) throws IOException {
36
		this.parent.writeByte(v);
37
	}
38
39
	@Override
40
	public void writeShort(final int v) throws IOException {
41
		this.parent.writeShort(v);
42
	}
43
44
	@Override
45
	public void writeChar(final int v) throws IOException {
46
		this.parent.writeChar(v);
47
	}
48
49
	@Override
50
	public void writeInt(final int v) throws IOException {
51
		this.parent.writeInt(v);
52
	}
53
54
	@Override
55
	public void writeLong(final long v) throws IOException {
56
		this.parent.writeLong(v);
57
	}
58
59
	@Override
60
	public void writeFloat(final float v) throws IOException {
61
		this.parent.writeFloat(v);
62
	}
63
64
	@Override
65
	public void writeDouble(final double v) throws IOException {
66
		this.parent.writeDouble(v);
67
	}
68
69
	@SuppressForbidden(reason = "Delegation is not use")
70
	@Override
71
	public void writeBytes(final String s) throws IOException {
72
		this.parent.writeBytes(s);
73
	}
74
75
	@Override
76
	public void writeChars(final String s) throws IOException {
77
		this.parent.writeChars(s);
78
	}
79
80
	@Override
81
	public void writeUTF(final String s) throws IOException {
82
		this.parent.writeUTF(s);
83
	}
84
}
85

Decompiled Minecraft 26.3 source of DelegateDataOutput (net/minecraft/util/DelegateDataOutput.java) with Mojang official mappings, stored verbatim on the site.