本文整理汇总了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;
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
示例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);
示例10: handleMaps
import net.minecraft.network.play.server.S34PacketMaps; //导入依赖的package包/类
void handleMaps(S34PacketMaps p_147264_1_);