本文整理汇总了Java中net.minecraft.tileentity.TileEntityBeacon.getLevels方法的典型用法代码示例。如果您正苦于以下问题:Java TileEntityBeacon.getLevels方法的具体用法?Java TileEntityBeacon.getLevels怎么用?Java TileEntityBeacon.getLevels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.tileentity.TileEntityBeacon
的用法示例。
在下文中一共展示了TileEntityBeacon.getLevels方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ContainerBeacon
import net.minecraft.tileentity.TileEntityBeacon; //导入方法依赖的package包/类
public ContainerBeacon(InventoryPlayer p_i1802_1_, TileEntityBeacon p_i1802_2_)
{
player = p_i1802_1_; // CraftBukkit
this.tileBeacon = p_i1802_2_;
this.addSlotToContainer(this.beaconSlot = new ContainerBeacon.BeaconSlot(p_i1802_2_, 0, 136, 110));
byte b0 = 36;
short short1 = 137;
int i;
for (i = 0; i < 3; ++i)
{
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(p_i1802_1_, j + i * 9 + 9, b0 + j * 18, short1 + i * 18));
}
}
for (i = 0; i < 9; ++i)
{
this.addSlotToContainer(new Slot(p_i1802_1_, i, b0 + i * 18, 58 + short1));
}
this.field_82865_g = p_i1802_2_.getLevels();
this.field_82867_h = p_i1802_2_.getPrimaryEffect();
this.field_82868_i = p_i1802_2_.getSecondaryEffect();
}
示例2: ContainerBeacon
import net.minecraft.tileentity.TileEntityBeacon; //导入方法依赖的package包/类
public ContainerBeacon(InventoryPlayer p_i1802_1_, TileEntityBeacon p_i1802_2_)
{
this.tileBeacon = p_i1802_2_;
this.addSlotToContainer(this.beaconSlot = new ContainerBeacon.BeaconSlot(p_i1802_2_, 0, 136, 110));
byte b0 = 36;
short short1 = 137;
int i;
for (i = 0; i < 3; ++i)
{
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(p_i1802_1_, j + i * 9 + 9, b0 + j * 18, short1 + i * 18));
}
}
for (i = 0; i < 9; ++i)
{
this.addSlotToContainer(new Slot(p_i1802_1_, i, b0 + i * 18, 58 + short1));
}
this.field_82865_g = p_i1802_2_.getLevels();
this.field_82867_h = p_i1802_2_.getPrimaryEffect();
this.field_82868_i = p_i1802_2_.getSecondaryEffect();
}
示例3: ContainerBeacon
import net.minecraft.tileentity.TileEntityBeacon; //导入方法依赖的package包/类
public ContainerBeacon(InventoryPlayer par1InventoryPlayer, TileEntityBeacon par2TileEntityBeacon)
{
this.theBeacon = par2TileEntityBeacon;
this.addSlotToContainer(this.beaconSlot = new SlotBeacon(this, par2TileEntityBeacon, 0, 136, 110));
byte b0 = 36;
short short1 = 137;
int i;
for (i = 0; i < 3; ++i)
{
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(par1InventoryPlayer, j + i * 9 + 9, b0 + j * 18, short1 + i * 18));
}
}
for (i = 0; i < 9; ++i)
{
this.addSlotToContainer(new Slot(par1InventoryPlayer, i, b0 + i * 18, 58 + short1));
}
this.field_82865_g = par2TileEntityBeacon.getLevels();
this.field_82867_h = par2TileEntityBeacon.getPrimaryEffect();
this.field_82868_i = par2TileEntityBeacon.getSecondaryEffect();
}
示例4: getLevels
import net.minecraft.tileentity.TileEntityBeacon; //导入方法依赖的package包/类
@ScriptCallable(returnTypes = ReturnType.NUMBER, description = "Get the height of the beacon's pyramid")
public int getLevels(TileEntityBeacon beacon) {
return beacon.getLevels();
}