Search in sources :

Example 1 with FarmNotification

use of crazypants.enderio.api.farm.FarmNotification in project EnderIO by SleepyTrousers.

the class FarmingStationSpecialRenderer method renderTileEntity.

@Override
protected void renderTileEntity(@Nonnull TileFarmStation te, @Nonnull IBlockState blockState, float partialTicks, int destroyStage) {
    float offset = 0;
    for (FarmNotification note : te.getNotification()) {
        RenderUtil.drawBillboardedText(new Vector3f(0.5, 1.5 + offset, 0.5), EnderIO.lang.localizeExact(note.getUnlocalizedName()), 0.25f);
        offset += 0.375f;
    }
}
Also used : Vector3f(com.enderio.core.common.vecmath.Vector3f) FarmNotification(crazypants.enderio.api.farm.FarmNotification)

Example 2 with FarmNotification

use of crazypants.enderio.api.farm.FarmNotification in project EnderIO by SleepyTrousers.

the class PacketUpdateNotification method toBytes.

@Override
public void toBytes(ByteBuf buf) {
    super.toBytes(buf);
    buf.writeByte(notification.size());
    for (FarmNotification farmNotification : notification) {
        buf.writeByte(farmNotification.ordinal());
    }
}
Also used : FarmNotification(crazypants.enderio.api.farm.FarmNotification)

Aggregations

FarmNotification (crazypants.enderio.api.farm.FarmNotification)2 Vector3f (com.enderio.core.common.vecmath.Vector3f)1