Class ShowOverlayPacket
-
- All Implemented Interfaces:
-
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public final class ShowOverlayPacket extends CodecPacket<ShowOverlayPacket, OverlayInfo>
-
-
Field Summary
Fields Modifier and Type Field Description private final ResourceLocationidprivate final CustomPacketPayload.Type<ShowOverlayPacket>packetTypeprivate OverlayInfodataprivate final Codec<OverlayInfo>codec
-
Constructor Summary
Constructors Constructor Description ShowOverlayPacket()
-
Method Summary
Modifier and Type Method Description ResourceLocationgetId()ShowOverlayPacketfactory()final ShowOverlayPacketof(ResourceLocation texture, Integer duration)final ShowOverlayPacketof(String texture, Integer duration)Unithandle(OverlayInfo data, IPayloadContext cx)-
Methods inherited from class dev.wendigodrip.thebrokenscript.api.network.CodecPacket
getCodec, getData, getPacketType, handle, of, read, setData, type, write -
Methods inherited from class net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getId
ResourceLocation getId()
-
factory
ShowOverlayPacket factory()
-
of
final ShowOverlayPacket of(ResourceLocation texture, Integer duration)
-
of
final ShowOverlayPacket of(String texture, Integer duration)
-
handle
Unit handle(OverlayInfo data, IPayloadContext cx)
-
-
-
-