public boolean setColor(int color, ForgeDirection... sides) { for (ForgeDirection side : sides) { final int sideId = side.ordinal(); baseColors.setValue(sideId, color); } boolean hasChanged = baseColors.isDirty(); if (!worldObj.isRemote) sync(); return hasChanged; }
public int getColor(int renderSide) { return baseColors.getValue(renderSide); }