本文整理汇总了Java中net.minecraft.network.play.server.S0EPacketSpawnObject类的典型用法代码示例。如果您正苦于以下问题:Java S0EPacketSpawnObject类的具体用法?Java S0EPacketSpawnObject怎么用?Java S0EPacketSpawnObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
S0EPacketSpawnObject类属于net.minecraft.network.play.server包,在下文中一共展示了S0EPacketSpawnObject类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: eventFunc_151260_c
import net.minecraft.network.play.server.S0EPacketSpawnObject; //导入依赖的package包/类
public static void eventFunc_151260_c(ReturnEventInfo<EntityTrackerEntry, Packet> event) {
EntityTrackerEntry entry = event.getSource();
if (!entry.trackedEntity.isDead) {
S0EPacketSpawnObject packet = null;
for (OverrideListener mod : overrideEventClients) {
S0EPacketSpawnObject modPacket = mod.onCreateSpawnPacket(entry.trackedEntity, packet != null);
if (modPacket != null) packet = modPacket;
}
if (packet != null) {
event.setReturnValue(packet);
}
}
}
示例2: handleSpawnObject
import net.minecraft.network.play.server.S0EPacketSpawnObject; //导入依赖的package包/类
/**
* Spawns an instance of the objecttype indicated by the packet and sets its position and momentum
*/
void handleSpawnObject(S0EPacketSpawnObject packetIn);
示例3: handleSpawnObject
import net.minecraft.network.play.server.S0EPacketSpawnObject; //导入依赖的package包/类
/**
* Spawns an instance of the objecttype indicated by the packet and sets its position and momentum
*/
void handleSpawnObject(S0EPacketSpawnObject var1);
示例4: onCreateSpawnPacket
import net.minecraft.network.play.server.S0EPacketSpawnObject; //导入依赖的package包/类
/**
* Creates a spawn packet for the given entity.
*
* @param entity The entity to create the spawn packet for.
* @param isHandled True if another mod has already created a packet for this entity.
* @return Return a spawn packet for the given entity, or null if none exists.
*/
public S0EPacketSpawnObject onCreateSpawnPacket(Entity entity, boolean isHandled);
示例5: handleSpawnObject
import net.minecraft.network.play.server.S0EPacketSpawnObject; //导入依赖的package包/类
void handleSpawnObject(S0EPacketSpawnObject p_147235_1_);