当前位置: 首页>>代码示例>>Java>>正文


Java S34PacketMaps类代码示例

本文整理汇总了Java中net.minecraft.network.play.server.S34PacketMaps的典型用法代码示例。如果您正苦于以下问题:Java S34PacketMaps类的具体用法?Java S34PacketMaps怎么用?Java S34PacketMaps使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


S34PacketMaps类属于net.minecraft.network.play.server包,在下文中一共展示了S34PacketMaps类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPacket

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
public Packet getPacket(ItemStack stack)
{
    if (this.field_176105_d)
    {
        this.field_176105_d = false;
        return new S34PacketMaps(stack.getMetadata(), MapData.this.scale, MapData.this.mapDecorations.values(), MapData.this.colors, this.minX, this.minY, this.maxX + 1 - this.minX, this.maxY + 1 - this.minY);
    }
    else
    {
        return this.field_176109_i++ % 5 == 0 ? new S34PacketMaps(stack.getMetadata(), MapData.this.scale, MapData.this.mapDecorations.values(), MapData.this.colors, 0, 0, 0, 0) : null;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:13,代码来源:MapData.java

示例2: handleMaps

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
/**
 * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a
 * MapItemRenderer for it
 */
public void handleMaps(S34PacketMaps packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    MapData mapdata = ItemMap.loadMapData(packetIn.getMapId(), this.gameController.theWorld);
    packetIn.setMapdataTo(mapdata);
    this.gameController.entityRenderer.getMapItemRenderer().updateMapTexture(mapdata);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:12,代码来源:NetHandlerPlayClient.java

示例3: handleMaps

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
/**
 * Updates the worlds MapStorage with the specified MapData for the specified
 * map-identifier and invokes a MapItemRenderer for it
 */
public void handleMaps(S34PacketMaps packetIn) {
	PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
	MapData mapdata = ItemMap.loadMapData(packetIn.getMapId(), this.gameController.theWorld);
	packetIn.setMapdataTo(mapdata);
	this.gameController.entityRenderer.getMapItemRenderer().updateMapTexture(mapdata);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:11,代码来源:NetHandlerPlayClient.java

示例4: handleMaps

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
/**
 * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a
 * MapItemRenderer for it
 */
public void handleMaps(S34PacketMaps p_147264_1_)
{
    MapData var2 = ItemMap.func_150912_a(p_147264_1_.func_149188_c(), this.gameController.theWorld);
    var2.updateMPMapData(p_147264_1_.func_149187_d());
    this.gameController.entityRenderer.getMapItemRenderer().func_148246_a(var2);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:11,代码来源:NetHandlerPlayClient.java

示例5: func_150911_c

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
public Packet func_150911_c(ItemStack p_150911_1_, World p_150911_2_, EntityPlayer p_150911_3_)
{
    byte[] var4 = this.getMapData(p_150911_1_, p_150911_2_).getUpdatePacketData(p_150911_1_, p_150911_2_, p_150911_3_);
    return var4 == null ? null : new S34PacketMaps(p_150911_1_.getItemDamage(), var4);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:6,代码来源:ItemMap.java

示例6: func_150911_c

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
public Packet func_150911_c(ItemStack p_150911_1_, World p_150911_2_, EntityPlayer p_150911_3_)
{
    byte[] abyte = this.getMapData(p_150911_1_, p_150911_2_).getUpdatePacketData(p_150911_1_, p_150911_2_, p_150911_3_);
    return abyte == null ? null : new S34PacketMaps(p_150911_1_.getItemDamage(), abyte);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:6,代码来源:ItemMap.java

示例7: handleMaps

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
public void handleMaps(S34PacketMaps p_147264_1_)
{
    MapData mapdata = ItemMap.func_150912_a(p_147264_1_.func_149188_c(), this.gameController.theWorld);
    mapdata.updateMPMapData(p_147264_1_.func_149187_d());
    this.gameController.entityRenderer.getMapItemRenderer().func_148246_a(mapdata);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:7,代码来源:NetHandlerPlayClient.java

示例8: handleMaps

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
/**
 * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a
 * MapItemRenderer for it
 */
void handleMaps(S34PacketMaps packetIn);
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:INetHandlerPlayClient.java

示例9: handleMaps

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
/**
 * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a
 * MapItemRenderer for it
 */
void handleMaps(S34PacketMaps var1);
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:6,代码来源:INetHandlerPlayClient.java

示例10: handleMaps

import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
void handleMaps(S34PacketMaps p_147264_1_); 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:2,代码来源:INetHandlerPlayClient.java


注:本文中的net.minecraft.network.play.server.S34PacketMaps类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。