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;
}
}
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());
}
}
Aggregations