Java源码示例:cn.nukkit.inventory.ContainerInventory

示例1
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityBrewingStand) {
        return ContainerInventory.calculateRedstone(((BlockEntityBrewingStand) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例2
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityChest) {
        return ContainerInventory.calculateRedstone(((BlockEntityChest) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例3
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityFurnace) {
        return ContainerInventory.calculateRedstone(((BlockEntityFurnace) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例4
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityHopper) {
        return ContainerInventory.calculateRedstone(((BlockEntityHopper) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例5
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityBrewingStand) {
        return ContainerInventory.calculateRedstone(((BlockEntityBrewingStand) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例6
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityChest) {
        return ContainerInventory.calculateRedstone(((BlockEntityChest) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例7
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityFurnace) {
        return ContainerInventory.calculateRedstone(((BlockEntityFurnace) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例8
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityHopper) {
        return ContainerInventory.calculateRedstone(((BlockEntityHopper) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例9
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityBrewingStand) {
        return ContainerInventory.calculateRedstone(((BlockEntityBrewingStand) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例10
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityChest) {
        return ContainerInventory.calculateRedstone(((BlockEntityChest) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例11
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityFurnace) {
        return ContainerInventory.calculateRedstone(((BlockEntityFurnace) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}
 
示例12
@Override
public int getComparatorInputOverride() {
    BlockEntity blockEntity = this.level.getBlockEntity(this);

    if (blockEntity instanceof BlockEntityHopper) {
        return ContainerInventory.calculateRedstone(((BlockEntityHopper) blockEntity).getInventory());
    }

    return super.getComparatorInputOverride();
}