public class PacketBufferForestry
extends net.minecraft.network.PacketBuffer
| Modifier and Type | Class and Description |
|---|---|
static interface |
PacketBufferForestry.IStreamableFactory<T extends IStreamable> |
| Constructor and Description |
|---|
PacketBufferForestry(io.netty.buffer.ByteBuf wrapped) |
| Modifier and Type | Method and Description |
|---|---|
IClimateState |
readClimateState() |
net.minecraft.entity.Entity |
readEntityById(net.minecraft.world.World world) |
<T extends java.lang.Enum<T>> |
readEnum(T[] enumValues) |
net.minecraftforge.fluids.FluidStack |
readFluidStack() |
void |
readInventory(net.minecraft.inventory.IInventory inventory) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
readItemStacks() |
<T extends IStreamable> |
readStreamable(PacketBufferForestry.IStreamableFactory<T> factory) |
<T extends IStreamable> |
readStreamables(java.util.List<T> outputList,
PacketBufferForestry.IStreamableFactory<T> factory) |
java.lang.String |
readString() |
void |
writeClimateState(IClimateState climateState) |
void |
writeEntityById(net.minecraft.entity.Entity entity) |
<T extends java.lang.Enum<T>> |
writeEnum(T enumValue,
T[] enumValues) |
void |
writeFluidStack(net.minecraftforge.fluids.FluidStack fluidStack) |
void |
writeInventory(net.minecraft.inventory.IInventory inventory) |
void |
writeItemStacks(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> itemStacks) |
void |
writeStreamable(IStreamable streamable) |
void |
writeStreamable(java.lang.Object object) |
<T extends IStreamable> |
writeStreamables(java.util.List<T> streamables) |
alloc, array, arrayOffset, asReadOnly, bytesBefore, bytesBefore, bytesBefore, capacity, capacity, clear, compareTo, copy, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureWritable, ensureWritable, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getChar, getCharSequence, getDouble, getFloat, getInt, getIntLE, getLong, getLongLE, getMedium, getMediumLE, getShort, getShortLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedMedium, getUnsignedMediumLE, getUnsignedShort, getUnsignedShortLE, getVarIntSize, hasArray, hashCode, hasMemoryAddress, indexOf, internalNioBuffer, isDirect, isReadable, isReadable, isReadOnly, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxWritableBytes, memoryAddress, nioBuffer, nioBuffer, nioBufferCount, nioBuffers, nioBuffers, order, order, readableBytes, readBlockPos, readBoolean, readByte, readByteArray, readByteArray, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readCharSequence, readCompoundTag, readDouble, readEnumValue, readerIndex, readerIndex, readFloat, readInt, readIntLE, readItemStack, readLong, readLongArray, readLongArray, readLongLE, readMedium, readMediumLE, readResourceLocation, readRetainedSlice, readShort, readShortLE, readSlice, readString, readTextComponent, readTime, readUniqueId, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, readVarInt, readVarIntArray, readVarIntArray, readVarLong, refCnt, release, release, resetReaderIndex, resetWriterIndex, retain, retain, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setByte, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setInt, setIntLE, setLong, setLongLE, setMedium, setMediumLE, setShort, setShortLE, setZero, skipBytes, slice, slice, toString, toString, toString, touch, touch, unwrap, writableBytes, writeBlockPos, writeBoolean, writeByte, writeByteArray, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeCharSequence, writeCompoundTag, writeDouble, writeEnumValue, writeFloat, writeInt, writeIntLE, writeItemStack, writeLong, writeLongArray, writeLongLE, writeMedium, writeMediumLE, writeResourceLocation, writerIndex, writerIndex, writeShort, writeShortLE, writeString, writeTextComponent, writeTime, writeUniqueId, writeVarInt, writeVarIntArray, writeVarLong, writeZeropublic PacketBufferForestry(io.netty.buffer.ByteBuf wrapped)
public java.lang.String readString()
public void writeItemStacks(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> itemStacks)
public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> readItemStacks()
throws java.io.IOException
java.io.IOExceptionpublic void writeInventory(net.minecraft.inventory.IInventory inventory)
public void readInventory(net.minecraft.inventory.IInventory inventory)
throws java.io.IOException
java.io.IOExceptionpublic void writeFluidStack(@Nullable
net.minecraftforge.fluids.FluidStack fluidStack)
@Nullable public net.minecraftforge.fluids.FluidStack readFluidStack()
public void writeEntityById(net.minecraft.entity.Entity entity)
@Nullable public net.minecraft.entity.Entity readEntityById(net.minecraft.world.World world)
public <T extends java.lang.Enum<T>> void writeEnum(T enumValue,
T[] enumValues)
public <T extends java.lang.Enum<T>> T readEnum(T[] enumValues)
public void writeStreamable(@Nullable
java.lang.Object object)
public void writeStreamable(@Nullable
IStreamable streamable)
@Nullable public <T extends IStreamable> T readStreamable(PacketBufferForestry.IStreamableFactory<T> factory) throws java.io.IOException
java.io.IOExceptionpublic <T extends IStreamable> void writeStreamables(@Nullable java.util.List<T> streamables)
public <T extends IStreamable> void readStreamables(java.util.List<T> outputList, PacketBufferForestry.IStreamableFactory<T> factory) throws java.io.IOException
java.io.IOExceptionpublic void writeClimateState(IClimateState climateState)
public IClimateState readClimateState()