类 NetworkHandler
java.lang.Object
committee.nova.mods.avaritia.init.handler.NetworkHandler
Description:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidinit(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event) static voidsendCompressorEjectPacket(net.minecraft.core.BlockPos pos) static voidsendCompressorLockPacket(net.minecraft.core.BlockPos pos, boolean locked) static voidsendNbtDataTo(net.minecraft.server.level.ServerPlayer pl, net.minecraft.nbt.CompoundTag tag) static voidsendNbtDataToServer(net.minecraft.nbt.CompoundTag tag) static voidsendSideConfigSync(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, SideConfiguration sideConfig) static voidsendSideConfigUpdate(net.minecraft.core.BlockPos blockPos, SideConfiguration sideConfig)
-
字段详细资料
-
CHANNEL
public static final net.minecraftforge.network.simple.SimpleChannel CHANNEL -
id
public static int id
-
-
构造器详细资料
-
NetworkHandler
public NetworkHandler()
-
-
方法详细资料
-
init
public static void init(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event) -
sendNbtDataToServer
public static void sendNbtDataToServer(net.minecraft.nbt.CompoundTag tag) -
sendNbtDataTo
public static void sendNbtDataTo(net.minecraft.server.level.ServerPlayer pl, net.minecraft.nbt.CompoundTag tag) -
sendCompressorLockPacket
public static void sendCompressorLockPacket(net.minecraft.core.BlockPos pos, boolean locked) -
sendCompressorEjectPacket
public static void sendCompressorEjectPacket(net.minecraft.core.BlockPos pos) -
sendSideConfigUpdate
public static void sendSideConfigUpdate(net.minecraft.core.BlockPos blockPos, SideConfiguration sideConfig) -
sendSideConfigSync
public static void sendSideConfigSync(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, SideConfiguration sideConfig)
-