@Override protected ResourceLocation getEntityTexture(EntityBlizz par1Entity) { return HolidayHelper.isChristmas(5, 3) ? textureXmas : texture; }
@Override protected ResourceLocation getEntityTexture(EntityBlitz par1Entity) { return HolidayHelper.isChristmas(5, 3) ? textureXmas : texture; }
@Override protected ResourceLocation getEntityTexture(EntityBasalz entity) { return HolidayHelper.isChristmas(5, 3) ? textureXmas : texture; }
public static boolean isCAThanksgiving() { Calendar thanksgivingCal = Calendar.getInstance(); thanksgivingCal.clear(); thanksgivingCal.set(Calendar.YEAR, Calendar.getInstance().get(Calendar.YEAR)); thanksgivingCal.set(Calendar.MONTH, Calendar.OCTOBER); thanksgivingCal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); thanksgivingCal.set(Calendar.DAY_OF_WEEK_IN_MONTH, 2); setDate(holidayStart, Calendar.OCTOBER, thanksgivingCal.get(Calendar.DAY_OF_MONTH) - 1, false); setDate(holidayEnd, Calendar.OCTOBER, thanksgivingCal.get(Calendar.DAY_OF_MONTH) + 1, true); return dateCheck(); }
public static boolean isUSThanksgiving() { Calendar thanksgivingCal = Calendar.getInstance(); thanksgivingCal.clear(); thanksgivingCal.set(Calendar.YEAR, Calendar.getInstance().get(Calendar.YEAR)); thanksgivingCal.set(Calendar.MONTH, Calendar.NOVEMBER); thanksgivingCal.set(Calendar.DAY_OF_WEEK, Calendar.THURSDAY); thanksgivingCal.set(Calendar.DAY_OF_WEEK_IN_MONTH, 4); setDate(holidayStart, Calendar.NOVEMBER, thanksgivingCal.get(Calendar.DAY_OF_MONTH) - 1, false); setDate(holidayEnd, Calendar.NOVEMBER, thanksgivingCal.get(Calendar.DAY_OF_MONTH) + 1, true); return dateCheck(); }
easterSunCal = new GregorianCalendar(year, 3 - 1, n); // if March setDate(holidayStart, easterSunCal.get(Calendar.MONTH), easterSunCal.get(Calendar.DAY_OF_MONTH) - 1, false); setDate(holidayEnd, easterSunCal.get(Calendar.MONTH), easterSunCal.get(Calendar.DAY_OF_MONTH) + 1, true); return dateCheck();