Class TunnelFlapPacket
java.lang.Object
com.simibubi.create.foundation.networking.BlockEntityDataPacket<BeltTunnelBlockEntity>
com.simibubi.create.content.logistics.tunnel.TunnelFlapPacket
- All Implemented Interfaces:
net.createmod.catnip.net.base.BasePacketPayload,net.createmod.catnip.net.base.ClientboundPacketPayload,net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.createmod.catnip.net.base.BasePacketPayload
net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProviderNested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, TunnelFlapPacket> Fields inherited from class com.simibubi.create.foundation.networking.BlockEntityDataPacket
pos -
Constructor Summary
ConstructorsConstructorDescriptionTunnelFlapPacket(BeltTunnelBlockEntity blockEntity, List<com.mojang.datafixers.util.Pair<net.minecraft.core.Direction, Boolean>> flaps) -
Method Summary
Modifier and TypeMethodDescriptionnet.createmod.catnip.net.base.BasePacketPayload.PacketTypeProviderprotected voidhandlePacket(BeltTunnelBlockEntity blockEntity) Methods inherited from class com.simibubi.create.foundation.networking.BlockEntityDataPacket
handleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.createmod.catnip.net.base.BasePacketPayload
typeMethods inherited from interface net.createmod.catnip.net.base.ClientboundPacketPayload
handleInternalMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,TunnelFlapPacket> STREAM_CODEC
-
-
Constructor Details
-
TunnelFlapPacket
public TunnelFlapPacket(BeltTunnelBlockEntity blockEntity, List<com.mojang.datafixers.util.Pair<net.minecraft.core.Direction, Boolean>> flaps)
-
-
Method Details
-
handlePacket
- Specified by:
handlePacketin classBlockEntityDataPacket<BeltTunnelBlockEntity>
-
getTypeProvider
public net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider getTypeProvider()
-