本文整理汇总了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);
}
}
}
开发者ID:warriordog,项目名称:BlazeLoader,代码行数:14,代码来源:EventHandlerClient.java
示例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);
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:INetHandlerPlayClient.java
示例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);
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:5,代码来源:INetHandlerPlayClient.java
示例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);
开发者ID:warriordog,项目名称:BlazeLoader,代码行数:9,代码来源:OverrideListener.java
示例5: handleSpawnObject
import net.minecraft.network.play.server.S0EPacketSpawnObject; //导入依赖的package包/类
void handleSpawnObject(S0EPacketSpawnObject p_147235_1_);
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:2,代码来源:INetHandlerPlayClient.java
注:本文中的net.minecraft.network.play.server.S0EPacketSpawnObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论