WIP 1.20.1 port
2 new squirrel anims tons of stuff
This commit is contained in:
1 parent
94c3676dea
commit
58e504cf1d
264 files changed
+14996
-3287
No files matched your search
+4
@@ -57,24 +57,28 @@ public final class AntarchyConfigModuleNeoforge {
|
||||
AntarchySettings.setAntsStealFromChests(AntarchyMobsConfig.antsStealFromChests());
|
||||
|
||||
AntarchySettings.setBrownAntRequiresReagent(AntarchyMobsConfig.brownAntRequiresReagent());
|
||||
AntarchySettings.setBrownAntRightClickDimension(AntarchyMobsConfig.brownAntRightClickDimension());
|
||||
AntarchySettings.setBrownAntHealth(AntarchyMobsConfig.brownAntHealth());
|
||||
AntarchySettings.setBrownAntMovementSpeed(AntarchyMobsConfig.brownAntMovementSpeed());
|
||||
AntarchySettings.setBrownAntAttackDamage(AntarchyMobsConfig.brownAntAttackDamage());
|
||||
AntarchySettings.setBrownAntDestinationDimension(AntarchyMobsConfig.brownAntDestinationDimension());
|
||||
|
||||
AntarchySettings.setRedAntRequiresReagent(AntarchyMobsConfig.redAntRequiresReagent());
|
||||
AntarchySettings.setRedAntRightClickDimension(AntarchyMobsConfig.redAntRightClickDimension());
|
||||
AntarchySettings.setRedAntHealth(AntarchyMobsConfig.redAntHealth());
|
||||
AntarchySettings.setRedAntMovementSpeed(AntarchyMobsConfig.redAntMovementSpeed());
|
||||
AntarchySettings.setRedAntAttackDamage(AntarchyMobsConfig.redAntAttackDamage());
|
||||
AntarchySettings.setRedAntDestinationDimension(AntarchyMobsConfig.redAntDestinationDimension());
|
||||
|
||||
AntarchySettings.setRainbowAntRequiresReagent(AntarchyMobsConfig.rainbowAntRequiresReagent());
|
||||
AntarchySettings.setRainbowAntRightClickDimension(AntarchyMobsConfig.rainbowAntRightClickDimension());
|
||||
AntarchySettings.setRainbowAntHealth(AntarchyMobsConfig.rainbowAntHealth());
|
||||
AntarchySettings.setRainbowAntMovementSpeed(AntarchyMobsConfig.rainbowAntMovementSpeed());
|
||||
AntarchySettings.setRainbowAntAttackDamage(AntarchyMobsConfig.rainbowAntAttackDamage());
|
||||
AntarchySettings.setRainbowAntNonInfinityFallbackDimension(AntarchyMobsConfig.rainbowAntNonInfinityFallbackDimension());
|
||||
|
||||
AntarchySettings.setTermiteRequiresReagent(AntarchyMobsConfig.termiteRequiresReagent());
|
||||
AntarchySettings.setTermiteRightClickDimension(AntarchyMobsConfig.termiteRightClickDimension());
|
||||
AntarchySettings.setTermiteHealth(AntarchyMobsConfig.termiteHealth());
|
||||
AntarchySettings.setTermiteMovementSpeed(AntarchyMobsConfig.termiteMovementSpeed());
|
||||
AntarchySettings.setTermiteAttackDamage(AntarchyMobsConfig.termiteAttackDamage());
|
||||
|
||||
+20
@@ -11,24 +11,28 @@ public final class AntarchyMobsConfig {
|
||||
private static final ModConfigSpec.BooleanValue ANTS_STEAL_FROM_CHESTS;
|
||||
|
||||
private static final ModConfigSpec.BooleanValue BROWN_ANT_REQUIRES_REAGENT;
|
||||
private static final ModConfigSpec.BooleanValue BROWN_ANT_RIGHT_CLICK_DIMENSION;
|
||||
private static final ModConfigSpec.DoubleValue BROWN_ANT_HEALTH;
|
||||
private static final ModConfigSpec.DoubleValue BROWN_ANT_MOVEMENT_SPEED;
|
||||
private static final ModConfigSpec.DoubleValue BROWN_ANT_ATTACK_DAMAGE;
|
||||
private static final ModConfigSpec.ConfigValue<String> BROWN_ANT_DESTINATION_DIMENSION;
|
||||
|
||||
private static final ModConfigSpec.BooleanValue RED_ANT_REQUIRES_REAGENT;
|
||||
private static final ModConfigSpec.BooleanValue RED_ANT_RIGHT_CLICK_DIMENSION;
|
||||
private static final ModConfigSpec.DoubleValue RED_ANT_HEALTH;
|
||||
private static final ModConfigSpec.DoubleValue RED_ANT_MOVEMENT_SPEED;
|
||||
private static final ModConfigSpec.DoubleValue RED_ANT_ATTACK_DAMAGE;
|
||||
private static final ModConfigSpec.ConfigValue<String> RED_ANT_DESTINATION_DIMENSION;
|
||||
|
||||
private static final ModConfigSpec.BooleanValue RAINBOW_ANT_REQUIRES_REAGENT;
|
||||
private static final ModConfigSpec.BooleanValue RAINBOW_ANT_RIGHT_CLICK_DIMENSION;
|
||||
private static final ModConfigSpec.DoubleValue RAINBOW_ANT_HEALTH;
|
||||
private static final ModConfigSpec.DoubleValue RAINBOW_ANT_MOVEMENT_SPEED;
|
||||
private static final ModConfigSpec.DoubleValue RAINBOW_ANT_ATTACK_DAMAGE;
|
||||
private static final ModConfigSpec.ConfigValue<String> RAINBOW_ANT_NON_INFINITY_FALLBACK_DIMENSION;
|
||||
|
||||
private static final ModConfigSpec.BooleanValue TERMITE_REQUIRES_REAGENT;
|
||||
private static final ModConfigSpec.BooleanValue TERMITE_RIGHT_CLICK_DIMENSION;
|
||||
private static final ModConfigSpec.DoubleValue TERMITE_HEALTH;
|
||||
private static final ModConfigSpec.DoubleValue TERMITE_MOVEMENT_SPEED;
|
||||
private static final ModConfigSpec.DoubleValue TERMITE_ATTACK_DAMAGE;
|
||||
@@ -278,6 +282,9 @@ public final class AntarchyMobsConfig {
|
||||
"Breeding foods tag: data/antarchy/tags/item/brown_ant_breeding_foods.json"
|
||||
)
|
||||
.define("requiresReagent", false);
|
||||
BROWN_ANT_RIGHT_CLICK_DIMENSION = b
|
||||
.comment("If false, right-clicking brown ants will never teleport players.")
|
||||
.define("rightClickDimension", true);
|
||||
BROWN_ANT_HEALTH = b.comment("Base max health.") .defineInRange("health", 5.0D, 0.1D, 1024.0D);
|
||||
BROWN_ANT_MOVEMENT_SPEED = b.comment("Base movement speed.") .defineInRange("movementSpeed", 0.28D, 0.0D, 10.0D);
|
||||
BROWN_ANT_ATTACK_DAMAGE = b.comment("Base attack damage.") .defineInRange("attackDamage", 1.0D, 0.0D, 1024.0D);
|
||||
@@ -294,6 +301,9 @@ public final class AntarchyMobsConfig {
|
||||
"Breeding foods tag: data/antarchy/tags/item/red_ant_breeding_foods.json"
|
||||
)
|
||||
.define("requiresReagent", false);
|
||||
RED_ANT_RIGHT_CLICK_DIMENSION = b
|
||||
.comment("If false, right-clicking red ants will never teleport players.")
|
||||
.define("rightClickDimension", true);
|
||||
RED_ANT_HEALTH = b.comment("Base max health.") .defineInRange("health", 5.0D, 0.1D, 1024.0D);
|
||||
RED_ANT_MOVEMENT_SPEED = b.comment("Base movement speed.") .defineInRange("movementSpeed", 0.30D, 0.0D, 10.0D);
|
||||
RED_ANT_ATTACK_DAMAGE = b.comment("Base attack damage.") .defineInRange("attackDamage", 3.0D, 0.0D, 1024.0D);
|
||||
@@ -310,6 +320,9 @@ public final class AntarchyMobsConfig {
|
||||
"Breeding foods tag: data/antarchy/tags/item/rainbow_ant_breeding_foods.json"
|
||||
)
|
||||
.define("requiresReagent", true);
|
||||
RAINBOW_ANT_RIGHT_CLICK_DIMENSION = b
|
||||
.comment("If false, right-clicking rainbow ants will never teleport players.")
|
||||
.define("rightClickDimension", true);
|
||||
RAINBOW_ANT_HEALTH = b.comment("Base max health.") .defineInRange("health", 5.0D, 0.1D, 1024.0D);
|
||||
RAINBOW_ANT_MOVEMENT_SPEED = b.comment("Base movement speed.") .defineInRange("movementSpeed", 0.28D, 0.0D, 10.0D);
|
||||
RAINBOW_ANT_ATTACK_DAMAGE = b.comment("Base attack damage.") .defineInRange("attackDamage", 1.0D, 0.0D, 1024.0D);
|
||||
@@ -326,6 +339,9 @@ public final class AntarchyMobsConfig {
|
||||
"Breeding foods tag: data/antarchy/tags/item/termite_breeding_foods.json"
|
||||
)
|
||||
.define("requiresReagent", false);
|
||||
TERMITE_RIGHT_CLICK_DIMENSION = b
|
||||
.comment("If false, right-clicking termites will never teleport players.")
|
||||
.define("rightClickDimension", true);
|
||||
TERMITE_HEALTH = b.comment("Base max health.") .defineInRange("health", 5.0D, 0.1D, 1024.0D);
|
||||
TERMITE_MOVEMENT_SPEED = b.comment("Base movement speed.") .defineInRange("movementSpeed", 0.28D, 0.0D, 10.0D);
|
||||
TERMITE_ATTACK_DAMAGE = b.comment("Base attack damage.") .defineInRange("attackDamage", 1.0D, 0.0D, 1024.0D);
|
||||
@@ -625,24 +641,28 @@ public final class AntarchyMobsConfig {
|
||||
static boolean antsStealFromChests() { return ANTS_STEAL_FROM_CHESTS.get(); }
|
||||
|
||||
static boolean brownAntRequiresReagent() { return BROWN_ANT_REQUIRES_REAGENT.get(); }
|
||||
static boolean brownAntRightClickDimension() { return BROWN_ANT_RIGHT_CLICK_DIMENSION.get(); }
|
||||
static double brownAntHealth() { return BROWN_ANT_HEALTH.get(); }
|
||||
static double brownAntMovementSpeed() { return BROWN_ANT_MOVEMENT_SPEED.get(); }
|
||||
static double brownAntAttackDamage() { return BROWN_ANT_ATTACK_DAMAGE.get(); }
|
||||
static String brownAntDestinationDimension() { return BROWN_ANT_DESTINATION_DIMENSION.get(); }
|
||||
|
||||
static boolean redAntRequiresReagent() { return RED_ANT_REQUIRES_REAGENT.get(); }
|
||||
static boolean redAntRightClickDimension() { return RED_ANT_RIGHT_CLICK_DIMENSION.get(); }
|
||||
static double redAntHealth() { return RED_ANT_HEALTH.get(); }
|
||||
static double redAntMovementSpeed() { return RED_ANT_MOVEMENT_SPEED.get(); }
|
||||
static double redAntAttackDamage() { return RED_ANT_ATTACK_DAMAGE.get(); }
|
||||
static String redAntDestinationDimension() { return RED_ANT_DESTINATION_DIMENSION.get(); }
|
||||
|
||||
static boolean rainbowAntRequiresReagent() { return RAINBOW_ANT_REQUIRES_REAGENT.get(); }
|
||||
static boolean rainbowAntRightClickDimension() { return RAINBOW_ANT_RIGHT_CLICK_DIMENSION.get(); }
|
||||
static double rainbowAntHealth() { return RAINBOW_ANT_HEALTH.get(); }
|
||||
static double rainbowAntMovementSpeed() { return RAINBOW_ANT_MOVEMENT_SPEED.get(); }
|
||||
static double rainbowAntAttackDamage() { return RAINBOW_ANT_ATTACK_DAMAGE.get(); }
|
||||
static String rainbowAntNonInfinityFallbackDimension() { return RAINBOW_ANT_NON_INFINITY_FALLBACK_DIMENSION.get(); }
|
||||
|
||||
static boolean termiteRequiresReagent() { return TERMITE_REQUIRES_REAGENT.get(); }
|
||||
static boolean termiteRightClickDimension() { return TERMITE_RIGHT_CLICK_DIMENSION.get(); }
|
||||
static double termiteHealth() { return TERMITE_HEALTH.get(); }
|
||||
static double termiteMovementSpeed() { return TERMITE_MOVEMENT_SPEED.get(); }
|
||||
static double termiteAttackDamage() { return TERMITE_ATTACK_DAMAGE.get(); }
|
||||
|
||||
+13
-2
@@ -9,6 +9,7 @@ import com.craisinlord.antarchy.content.AntarchySoundEvents;
|
||||
import com.craisinlord.antarchy.content.item.BloodCrystalKatanaItem;
|
||||
import com.craisinlord.antarchy.content.item.ScorpionWhipTetherSync;
|
||||
import com.craisinlord.antarchy.content.network.BloodCrystalKatanaTrailPayload;
|
||||
import com.craisinlord.antarchy.content.tigereye.TigerEyeCamouflageSync;
|
||||
import com.craisinlord.antarchy.content.portal.PermanentPortalType;
|
||||
import com.craisinlord.antarchy.neoforge.registry.*;
|
||||
import com.craisinlord.antarchy.neoforge.network.AntarchyGravityNetworking;
|
||||
@@ -200,6 +201,11 @@ public class AntarchyNeoforge {
|
||||
player,
|
||||
new BloodCrystalKatanaTrailPayload(player.getId(), durationTicks)
|
||||
));
|
||||
TigerEyeCamouflageSync.setSendToPlayer(PacketDistributor::sendToPlayer);
|
||||
TigerEyeCamouflageSync.setSyncSelfAndTracking(player -> PacketDistributor.sendToPlayersTrackingEntityAndSelf(
|
||||
player,
|
||||
TigerEyeCamouflageSync.payload(player)
|
||||
));
|
||||
com.craisinlord.antarchy.content.gravity.AntarchyGravityApi.setSyncDispatcher(AntarchyGravityNetworking::syncEntity);
|
||||
if (isSupportedInfinityLoaded()) {
|
||||
InfinityCompat.bind(new NeoForgeInfinityCompat());
|
||||
@@ -242,6 +248,8 @@ public class AntarchyNeoforge {
|
||||
|
||||
private static void bindCommonObjects() {
|
||||
com.craisinlord.antarchy.content.entity.UpwardFallingBlockEntity.TYPE = AntarchyNeoforgeEntites.UPWARD_FALLING_BLOCK;
|
||||
AntarchyObjects.setLucidAnchor(() -> AntarchyNeoforgeBlocks.LUCID_ANCHOR.get());
|
||||
AntarchyObjects.setLucidAnchorBlockEntity(() -> AntarchyNeoforgeBlocks.LUCID_ANCHOR_BLOCK_ENTITY.get());
|
||||
PermanentPortalType.bindBlocks(
|
||||
() -> AntarchyNeoforgeBlocks.MOSSY_OURANWOOD_WOOD.get(),
|
||||
() -> AntarchyNeoforgeBlocks.ELYTHIA_PORTAL.get(),
|
||||
@@ -303,8 +311,8 @@ public class AntarchyNeoforge {
|
||||
() -> AntarchyNeoforgeBlocks.TRIFFID_GOO_BLOCK.get(),
|
||||
() -> AntarchyNeoforgeBlocks.PALE_NYXITE.get(),
|
||||
() -> AntarchyNeoforgeBlocks.NYXITE_SPIKE.get(),
|
||||
() -> AntarchyNeoforgeBlocks.CHITEN_BLOCK.get(),
|
||||
() -> AntarchyNeoforgeBlocks.CHITEN_SPIKE.get(),
|
||||
() -> AntarchyNeoforgeBlocks.CHITIN_BLOCK.get(),
|
||||
() -> AntarchyNeoforgeBlocks.CHITIN_SPIKE.get(),
|
||||
() -> AntarchyNeoforgeBlocks.POTENT_NYXITE.get(),
|
||||
() -> AntarchyNeoforgeBlocks.ANTIMETAL.get(),
|
||||
() -> AntarchyNeoforgeBlocks.POLISHED_ANTIMETAL.get(),
|
||||
@@ -354,6 +362,8 @@ public class AntarchyNeoforge {
|
||||
);
|
||||
AntarchyObjects.setOctopusBomb(AntarchyNeoforgeEntites.OCTOPUS_BOMB);
|
||||
AntarchyObjects.setTentacle(AntarchyNeoforgeEntites.TENTACLE);
|
||||
AntarchyObjects.setNightmarePortal(AntarchyNeoforgeEntites.NIGHTMARE_PORTAL);
|
||||
AntarchyObjects.setNightmareBite(AntarchyNeoforgeEntites.NIGHTMARE_BITE);
|
||||
AntarchyObjects.setKrakensGraspTrident(AntarchyNeoforgeEntites.KRAKENS_GRASP_TRIDENT);
|
||||
AntarchyObjects.setLotus(() -> AntarchyNeoforgeBlocks.LOTUS.get());
|
||||
AntarchyObjects.setKrakenTentacle(() -> AntarchyNeoforgeItems.KRAKEN_TENTACLE.get());
|
||||
@@ -361,6 +371,7 @@ public class AntarchyNeoforge {
|
||||
AntarchyObjects.setOuranwoodDeer(AntarchyNeoforgeEntites.OURANWOOD_DEER);
|
||||
AntarchyObjects.setGlimmer(AntarchyNeoforgeEntites.GLIMMER);
|
||||
AntarchyObjects.setSpiritApple(() -> AntarchyNeoforgeItems.SPIRIT_APPLE.get());
|
||||
AntarchyObjects.setGlimmeringEffect(() -> AntarchyNeoforgeMisc.GLIMMERING);
|
||||
AntarchyObjects.setElka(AntarchyNeoforgeEntites.ELKA);
|
||||
AntarchyObjects.setPeach(() -> AntarchyNeoforgeItems.PEACH.get());
|
||||
AntarchyObjects.setCorn(() -> AntarchyNeoforgeItems.CORN.get());
|
||||
|
||||
+12
@@ -44,6 +44,13 @@ public final class AntarchyKeyBindings {
|
||||
InputConstants.KEY_R,
|
||||
CATEGORY
|
||||
);
|
||||
public static final KeyMapping TIGERS_EYE_CAMOUFLAGE = new KeyMapping(
|
||||
"key.antarchy.tigers_eye_camouflage",
|
||||
KeyConflictContext.IN_GAME,
|
||||
InputConstants.Type.KEYSYM,
|
||||
InputConstants.UNKNOWN.getValue(),
|
||||
CATEGORY
|
||||
);
|
||||
|
||||
private AntarchyKeyBindings() {}
|
||||
|
||||
@@ -53,9 +60,14 @@ public final class AntarchyKeyBindings {
|
||||
event.register(DORRIE_CHARGE_JUMP);
|
||||
event.register(HERCULES_BEETLE_CHARGE);
|
||||
event.register(HERCULES_BEETLE_FLIGHT_TOGGLE);
|
||||
event.register(TIGERS_EYE_CAMOUFLAGE);
|
||||
}
|
||||
|
||||
public static boolean isHerculesBeetleFlightTogglePressed() {
|
||||
return HERCULES_BEETLE_FLIGHT_TOGGLE.isDown();
|
||||
}
|
||||
|
||||
public static boolean consumeTigerEyeCamouflagePressed() {
|
||||
return TIGERS_EYE_CAMOUFLAGE.consumeClick();
|
||||
}
|
||||
}
|
||||
+31
-1
@@ -3,6 +3,7 @@ package com.craisinlord.antarchy.neoforge.client;
|
||||
import com.craisinlord.antarchy.Antarchy;
|
||||
import com.craisinlord.antarchy.content.client.GoopedHudRenderer;
|
||||
import com.craisinlord.antarchy.content.client.HordeHudRenderer;
|
||||
import com.craisinlord.antarchy.content.client.TigerEyeClientHooks;
|
||||
import com.craisinlord.antarchy.content.client.hud.BloodglassHudRenderer;
|
||||
import com.craisinlord.antarchy.content.client.particle.*;
|
||||
import com.craisinlord.antarchy.content.client.renderer.*;
|
||||
@@ -57,6 +58,7 @@ import net.neoforged.neoforge.client.event.RegisterParticleProvidersEvent;
|
||||
import net.neoforged.neoforge.client.event.RegisterColorHandlersEvent;
|
||||
import net.neoforged.neoforge.client.event.RegisterMenuScreensEvent;
|
||||
import net.neoforged.neoforge.client.event.EntityRenderersEvent;
|
||||
import net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent;
|
||||
import net.neoforged.neoforge.client.event.RegisterGuiLayersEvent;
|
||||
import net.neoforged.neoforge.client.gui.VanillaGuiLayers;
|
||||
import net.neoforged.neoforge.client.extensions.common.IClientItemExtensions;
|
||||
@@ -89,6 +91,7 @@ public final class AntarchyNeoForgeClient {
|
||||
public static void registerRenderers(EntityRenderersEvent.RegisterRenderers event) {
|
||||
event.registerBlockEntityRenderer(AntarchyNeoforgeBlocks.DREAM_CAMPFIRE_BLOCK_ENTITY.get(), CampfireRenderer::new);
|
||||
event.registerBlockEntityRenderer(AntarchyNeoforgeBlocks.SEASHELL_BLOCK_ENTITY.get(), SeashellRenderer::new);
|
||||
event.registerBlockEntityRenderer(AntarchyNeoforgeBlocks.LUCID_ANCHOR_BLOCK_ENTITY.get(), LucidAnchorBlockEntityRenderer::new);
|
||||
event.registerBlockEntityRenderer(AntarchyNeoforgeBlocks.CRITTER_CAGE_BLOCK_ENTITY.get(), CritterCageRenderer::new);
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.EASTER_BUNNY.get(), context -> withParalyzedGeoLayer(new EasterBunnyRenderer(context)));
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.FLYING_SQUIRREL.get(), context -> withParalyzedGeoLayer(new FlyingSquirrelRenderer(context)));
|
||||
@@ -120,6 +123,8 @@ public final class AntarchyNeoForgeClient {
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.MISSILE_SQUID.get(), context -> withParalyzedGeoLayer(new MissileSquidRenderer(context)));
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.OCTOPUS_BOMB.get(), context -> withParalyzedGeoLayer(new OctopusBombRenderer(context)));
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.NIGHTMARE.get(), context -> withParalyzedGeoLayer(new NightmareRenderer(context)));
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.NIGHTMARE_PORTAL.get(), NightmarePortalRenderer::new);
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.NIGHTMARE_BITE.get(), NightmareBiteRenderer::new);
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.LUCID.get(), context -> withParalyzedGeoLayer(new LucidRenderer(context)));
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.BED_BUG.get(), context -> withParalyzedGeoLayer(new BedBugRenderer(context)));
|
||||
event.registerEntityRenderer(AntarchyNeoforgeEntites.WASP.get(), context -> withParalyzedGeoLayer(new WaspRenderer(context)));
|
||||
@@ -162,7 +167,9 @@ public final class AntarchyNeoForgeClient {
|
||||
(LivingEntityRenderer<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>>) event.getSkin(skin);
|
||||
if (renderer != null) {
|
||||
renderer.addLayer(new ParalyzedStonePlayerLayer(renderer));
|
||||
renderer.addLayer(new TigerEyeCamouflagePlayerLayer(renderer));
|
||||
renderer.addLayer(new GoopedLivingLayer(renderer));
|
||||
renderer.addLayer(new GlimmeringLivingLayer(renderer));
|
||||
renderer.addLayer(new BrutalflyElytraLayer(renderer));
|
||||
renderer.addLayer(new FallenKingCrownLayer(renderer));
|
||||
}
|
||||
@@ -200,6 +207,7 @@ public final class AntarchyNeoForgeClient {
|
||||
}
|
||||
((LivingEntityRenderer) livingRenderer).addLayer(new ParalyzedStoneLivingLayer<>(livingRenderer));
|
||||
((LivingEntityRenderer) livingRenderer).addLayer(new GoopedLivingLayer<>(livingRenderer));
|
||||
((LivingEntityRenderer) livingRenderer).addLayer(new GlimmeringLivingLayer<>(livingRenderer));
|
||||
}
|
||||
|
||||
private static <T extends LivingEntity & GeoAnimatable> GeoEntityRenderer<T> withParalyzedGeoLayer(GeoEntityRenderer<T> renderer) {
|
||||
@@ -313,6 +321,10 @@ public final class AntarchyNeoForgeClient {
|
||||
ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "gooped_tint"),
|
||||
(guiGraphics, partialTick) -> GoopedHudRenderer.render(guiGraphics)
|
||||
);
|
||||
event.registerAboveAll(
|
||||
ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "glimmering_tint"),
|
||||
(guiGraphics, partialTick) -> com.craisinlord.antarchy.content.client.GlimmeringHudRenderer.render(guiGraphics)
|
||||
);
|
||||
event.registerAboveAll(
|
||||
ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "brutalfly_elytra"),
|
||||
(guiGraphics, partialTick) -> BrutalflyElytraHudRenderer.render(guiGraphics)
|
||||
@@ -540,6 +552,7 @@ public final class AntarchyNeoForgeClient {
|
||||
@SubscribeEvent
|
||||
public static void onClientSetup(FMLClientSetupEvent event) {
|
||||
event.enqueueWork(() -> {
|
||||
TigerEyeClientHooks.setCamouflageKeyTextSupplier(() -> AntarchyKeyBindings.TIGERS_EYE_CAMOUFLAGE.getTranslatedKeyMessage());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.ANTIMETAL_RAIL.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.ANTIMETAL_POWERED_RAIL.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.ANTIMETAL_DETECTOR_RAIL.get(), RenderType.cutout());
|
||||
@@ -559,6 +572,7 @@ public final class AntarchyNeoForgeClient {
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.ORANGE_MILKWEED.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.PINK_MILKWEED.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.AMBER_LICHEN.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.MUCUS.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.CREEPVINE.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.CAMELLIA.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.SPIDER_LILY.get(), RenderType.cutout());
|
||||
@@ -574,7 +588,7 @@ public final class AntarchyNeoForgeClient {
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.ANTIMETAL_SCAFFOLDING.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.UMBRAL_MOSS_CARPET.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.NYXITE_SPIKE.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.CHITEN_SPIKE.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.CHITIN_SPIKE.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.STAR_CORAL.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.STAR_CORAL_FAN.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.STAR_CORAL_WALL_FAN.get(), RenderType.cutout());
|
||||
@@ -598,6 +612,7 @@ public final class AntarchyNeoForgeClient {
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.DREAM_CEILING_FIRE.get(), RenderType.cutout());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.ANTIWATER_BLOCK.get(), RenderType.translucent());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.LUMEN_BLOCK.get(), RenderType.translucent());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.LUCID_ANCHOR.get(), RenderType.translucent());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.ELYTHIA_PORTAL.get(), RenderType.translucent());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.THORAXIS_PORTAL.get(), RenderType.translucent());
|
||||
ItemBlockRenderTypes.setRenderLayer(AntarchyNeoforgeBlocks.TRIFFID_GOO_BLOCK.get(), RenderType.translucent());
|
||||
@@ -621,6 +636,21 @@ public final class AntarchyNeoForgeClient {
|
||||
});
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public static void registerClientReloadListeners(RegisterClientReloadListenersEvent event) {
|
||||
event.registerReloadListener(new net.minecraft.server.packs.resources.SimplePreparableReloadListener<Void>() {
|
||||
@Override
|
||||
protected Void prepare(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply(Void object, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler) {
|
||||
TigerEyeCamouflageClientHandler.clearClientCaches();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private static void registerUltimateBowProperties() {
|
||||
ItemProperties.register(
|
||||
AntarchyNeoforgeItems.ULTIMATE_BOW.get(),
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.craisinlord.antarchy.neoforge.client;
|
||||
|
||||
import com.craisinlord.antarchy.Antarchy;
|
||||
import com.craisinlord.antarchy.content.client.TigerEyeCamouflageClientState;
|
||||
import com.craisinlord.antarchy.content.client.renderer.TigerEyeCamouflageTextureResolver;
|
||||
import com.craisinlord.antarchy.content.network.ToggleTigerEyeCamouflagePayload;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.neoforged.api.distmarker.Dist;
|
||||
import net.neoforged.bus.api.SubscribeEvent;
|
||||
import net.neoforged.fml.common.EventBusSubscriber;
|
||||
import net.neoforged.neoforge.client.event.ClientTickEvent;
|
||||
import net.neoforged.neoforge.network.PacketDistributor;
|
||||
|
||||
@EventBusSubscriber(modid = Antarchy.MODID, value = Dist.CLIENT)
|
||||
public final class TigerEyeCamouflageClientHandler {
|
||||
private TigerEyeCamouflageClientHandler() {
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onClientTick(ClientTickEvent.Post event) {
|
||||
Minecraft minecraft = Minecraft.getInstance();
|
||||
if (minecraft.player == null || minecraft.level == null) {
|
||||
TigerEyeCamouflageClientState.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
while (AntarchyKeyBindings.consumeTigerEyeCamouflagePressed()) {
|
||||
PacketDistributor.sendToServer(new ToggleTigerEyeCamouflagePayload());
|
||||
}
|
||||
}
|
||||
|
||||
public static void clearClientCaches() {
|
||||
TigerEyeCamouflageClientState.clear();
|
||||
TigerEyeCamouflageTextureResolver.clearCache();
|
||||
}
|
||||
}
|
||||
+51
-2
@@ -26,6 +26,8 @@ import com.craisinlord.antarchy.content.item.ultimate.UltimateGearHelper;
|
||||
import com.craisinlord.antarchy.content.movement.DreamSandLowGravityAccess;
|
||||
import com.craisinlord.antarchy.content.AntarchyTags;
|
||||
import com.craisinlord.antarchy.content.portal.PermanentPortalManager;
|
||||
import com.craisinlord.antarchy.content.tigereye.TigerEyeCamouflageController;
|
||||
import com.craisinlord.antarchy.content.tigereye.TigerEyeCamouflageSync;
|
||||
import com.craisinlord.antarchy.neoforge.AntarchyNeoForgeFluidTypes;
|
||||
import com.craisinlord.antarchy.neoforge.entity.multipart.MultipartPartEntity;
|
||||
import com.craisinlord.antarchy.neoforge.network.AntarchyGravityNetworking;
|
||||
@@ -133,6 +135,12 @@ public final class AntarchyNeoForgeEvents {
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleDreadBedSleep);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleStartTracking);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleDreamSandLogout);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleTigerEyeLogout);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleTigerEyeDeath);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleTigerEyeRespawn);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleTigerEyeLogin);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::handleTigerEyeDimensionChange);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::tickTigerEyeCamouflage);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::registerReloadListeners);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::onVillagerTrades);
|
||||
NeoForge.EVENT_BUS.addListener(AntarchyNeoForgeEvents::onWandererTrades);
|
||||
@@ -272,6 +280,48 @@ public final class AntarchyNeoForgeEvents {
|
||||
}
|
||||
|
||||
AntarchyGravityNetworking.syncEntity(event.getTarget());
|
||||
if (event.getTarget() instanceof ServerPlayer trackedPlayer && event.getEntity() instanceof ServerPlayer trackingPlayer) {
|
||||
TigerEyeCamouflageSync.syncTo(trackingPlayer, trackedPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
static void handleTigerEyeLogout(PlayerEvent.PlayerLoggedOutEvent event) {
|
||||
if (event.getEntity() instanceof ServerPlayer player) {
|
||||
TigerEyeCamouflageController.deactivate(player, false);
|
||||
}
|
||||
}
|
||||
|
||||
static void handleTigerEyeDeath(LivingDeathEvent event) {
|
||||
if (event.getEntity() instanceof ServerPlayer player) {
|
||||
TigerEyeCamouflageController.deactivate(player, false);
|
||||
TigerEyeCamouflageSync.sync(player);
|
||||
}
|
||||
}
|
||||
|
||||
static void handleTigerEyeRespawn(PlayerEvent.PlayerRespawnEvent event) {
|
||||
if (event.getEntity() instanceof ServerPlayer player) {
|
||||
TigerEyeCamouflageController.deactivate(player, false);
|
||||
TigerEyeCamouflageSync.sync(player);
|
||||
}
|
||||
}
|
||||
|
||||
static void handleTigerEyeLogin(PlayerEvent.PlayerLoggedInEvent event) {
|
||||
if (event.getEntity() instanceof ServerPlayer player) {
|
||||
TigerEyeCamouflageSync.sync(player);
|
||||
}
|
||||
}
|
||||
|
||||
static void handleTigerEyeDimensionChange(PlayerEvent.PlayerChangedDimensionEvent event) {
|
||||
if (event.getEntity() instanceof ServerPlayer player) {
|
||||
TigerEyeCamouflageController.deactivate(player, false);
|
||||
TigerEyeCamouflageSync.sync(player);
|
||||
}
|
||||
}
|
||||
|
||||
static void tickTigerEyeCamouflage(PlayerTickEvent.Post event) {
|
||||
if (event.getEntity() instanceof ServerPlayer player && TigerEyeCamouflageController.validateOrDeactivate(player)) {
|
||||
TigerEyeCamouflageSync.sync(player);
|
||||
}
|
||||
}
|
||||
|
||||
private static final String DREAD_BED_BUG_NEXT_SPAWN_KEY = Antarchy.MODID + ":dread_bed_bug_next_spawn";
|
||||
@@ -430,8 +480,7 @@ public final class AntarchyNeoForgeEvents {
|
||||
for (int y = minY; y <= maxY; y++) {
|
||||
for (int z = minZ; z <= maxZ; z++) {
|
||||
net.minecraft.core.BlockPos crystalPos = new net.minecraft.core.BlockPos(x, y + 1, z);
|
||||
if (entity.level().getBlockState(crystalPos).is(AntarchyNeoforgeBlocks.ANTIMETAL.get())
|
||||
|| entity.level().getBlockState(crystalPos).is(AntarchyNeoforgeBlocks.POLISHED_ANTIMETAL.get())) {
|
||||
if (entity.level().getBlockState(crystalPos).is(com.craisinlord.antarchy.content.AntarchyTags.Blocks.ANTIMETAL_INVERSION_BLOCKS)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+45
-3
@@ -8,8 +8,10 @@ import com.craisinlord.antarchy.content.block.entity.AntNestBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.CritterCageBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.DreamCampfireBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.HushweedBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.LucidAnchorBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.PotentNyxiteBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.SeashellBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.UpperBlockEntity;
|
||||
import com.craisinlord.antarchy.content.block.entity.WaspNestBlockEntity;
|
||||
import com.craisinlord.antarchy.content.fluid.BileLiquidBlock;
|
||||
import com.craisinlord.antarchy.content.fluid.LumenLiquidBlock;
|
||||
@@ -97,6 +99,8 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new FlowerPotBlock(LOTUS.get(), BlockBehaviour.Properties.ofFullCopy(Blocks.POTTED_DANDELION)));
|
||||
public static final DeferredBlock<SeashellBlock> SEASHELL = BLOCKS.register("seashell",
|
||||
() -> new SeashellBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.TURTLE_EGG).noOcclusion()));
|
||||
public static final DeferredBlock<LucidAnchorBlock> LUCID_ANCHOR = BLOCKS.register("lucid_anchor",
|
||||
() -> new LucidAnchorBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.BEACON).strength(3.0F)));
|
||||
public static final DeferredBlock<CritterCageBlock> CRITTER_CAGE_BLOCK = BLOCKS.register("critter_cage_block",
|
||||
() -> new CritterCageBlock(BlockBehaviour.Properties.of().strength(5.0F, 6.0F).sound(net.minecraft.world.level.block.SoundType.METAL).noOcclusion()));
|
||||
public static final DeferredBlock<StandingSignBlock> OURANWOOD_SIGN = BLOCKS.register("ouranwood_sign",
|
||||
@@ -191,6 +195,8 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new SlabBlock(nyxiteProperties()));
|
||||
public static final DeferredBlock<WallBlock> NYXITE_BRICK_WALL = BLOCKS.register("nyxite_brick_wall",
|
||||
() -> new WallBlock(nyxiteProperties()));
|
||||
public static final DeferredBlock<RotatedPillarBlock> NYXITE_PILLAR = BLOCKS.register("nyxite_pillar",
|
||||
() -> new RotatedPillarBlock(nyxiteProperties()));
|
||||
public static final DeferredBlock<Block> SHELLSTONE = BLOCKS.register("shellstone",
|
||||
() -> new Block(AntarchyObjects.shellstoneProperties()));
|
||||
public static final DeferredBlock<Block> POLISHED_SHELLSTONE = BLOCKS.register("polished_shellstone",
|
||||
@@ -227,6 +233,8 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new SlabBlock(AntarchyObjects.shellstoneProperties()));
|
||||
public static final DeferredBlock<WallBlock> SHELLSTONE_BRICK_WALL = BLOCKS.register("shellstone_brick_wall",
|
||||
() -> new WallBlock(AntarchyObjects.shellstoneProperties()));
|
||||
public static final DeferredBlock<RotatedPillarBlock> SHELLSTONE_PILLAR = BLOCKS.register("shellstone_pillar",
|
||||
() -> new RotatedPillarBlock(AntarchyObjects.shellstoneProperties()));
|
||||
public static final DeferredBlock<com.craisinlord.antarchy.content.block.TriffidGooBlock> TRIFFID_GOO_BLOCK = BLOCKS.register("triffid_goo_block",
|
||||
() -> new com.craisinlord.antarchy.content.block.TriffidGooBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.SLIME_BLOCK).noOcclusion().isViewBlocking((s, l, p) -> false).isSuffocating((s, l, p) -> false)));
|
||||
public static final DeferredBlock<com.craisinlord.antarchy.content.block.CloudBlock> CLOUD_BLOCK = BLOCKS.register("cloud_block",
|
||||
@@ -244,8 +252,8 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new Block(nyxiteProperties()));
|
||||
public static final DeferredBlock<NyxiteSpikeBlock> NYXITE_SPIKE = BLOCKS.register("nyxite_spike",
|
||||
() -> new NyxiteSpikeBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.POINTED_DRIPSTONE)));
|
||||
public static final DeferredBlock<ChitenSpikeBlock> CHITEN_SPIKE = BLOCKS.register("chiten_spike",
|
||||
() -> new ChitenSpikeBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.POINTED_DRIPSTONE)));
|
||||
public static final DeferredBlock<ChitinSpikeBlock> CHITIN_SPIKE = BLOCKS.register("chitin_spike",
|
||||
() -> new ChitinSpikeBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.POINTED_DRIPSTONE)));
|
||||
public static final DeferredBlock<PotentNyxiteBlock> POTENT_NYXITE = BLOCKS.register("potent_nyxite",
|
||||
() -> new PotentNyxiteBlock(
|
||||
AntarchyNeoforgeItems::potentNyxiteBlockEntityType,
|
||||
@@ -289,11 +297,13 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new SlabBlock(broodstoneProperties()));
|
||||
public static final DeferredBlock<WallBlock> BROODSTONE_BRICK_WALL = BLOCKS.register("broodstone_brick_wall",
|
||||
() -> new WallBlock(broodstoneProperties()));
|
||||
public static final DeferredBlock<RotatedPillarBlock> BROODSTONE_PILLAR = BLOCKS.register("broodstone_pillar",
|
||||
() -> new RotatedPillarBlock(broodstoneProperties()));
|
||||
public static final DeferredBlock<Block> BROODSTONE_URANIUM_ORE = BLOCKS.register("broodstone_uranium_ore",
|
||||
() -> createOre(Blocks.DEEPSLATE_EMERALD_ORE, 4, 8, MapColor.COLOR_YELLOW));
|
||||
public static final DeferredBlock<Block> BROODSTONE_TITANIUM_ORE = BLOCKS.register("broodstone_titanium_ore",
|
||||
() -> createOre(Blocks.DEEPSLATE_DIAMOND_ORE, 4, 8, MapColor.COLOR_LIGHT_BLUE));
|
||||
public static final DeferredBlock<RotatedPillarBlock> CHITEN_BLOCK = BLOCKS.register("chiten_block",
|
||||
public static final DeferredBlock<RotatedPillarBlock> CHITIN_BLOCK = BLOCKS.register("chitin_block",
|
||||
() -> new RotatedPillarBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.BONE_BLOCK).requiresCorrectToolForDrops()));
|
||||
public static final DeferredBlock<UmbralMossBlock> UMBRAL_MOSS_BLOCK = BLOCKS.register("umbral_moss_block",
|
||||
() -> new UmbralMossBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.MOSS_BLOCK)));
|
||||
@@ -408,6 +418,8 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new BluestoneComparatorBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.COMPARATOR).mapColor(MapColor.COLOR_BLUE).noCollission(), AntarchyNeoforgeBlocks::bluestoneComparatorBlockEntityType));
|
||||
public static final DeferredBlock<BluestoneTorchBlock> BLUESTONE_TORCH = BLOCKS.register("bluestone_torch",
|
||||
() -> new BluestoneTorchBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.REDSTONE_TORCH).mapColor(MapColor.COLOR_BLUE).lightLevel(state -> state.getValue(BluestoneTorchBlock.LIT) ? 7 : 0).noCollission().instabreak()));
|
||||
public static final DeferredBlock<BluestoneLampBlock> BLUESTONE_LAMP = BLOCKS.register("bluestone_lamp",
|
||||
() -> new BluestoneLampBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.REDSTONE_LAMP).mapColor(MapColor.COLOR_BLUE)));
|
||||
public static final DeferredBlock<Block> URANIUM_BLOCK = BLOCKS.register("uranium_block",
|
||||
() -> createStorageBlock(Blocks.EMERALD_BLOCK, MapColor.COLOR_YELLOW));
|
||||
public static final DeferredBlock<Block> TITANIUM_BLOCK = BLOCKS.register("titanium_block",
|
||||
@@ -452,10 +464,20 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new RotatedPillarBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.BASALT)));
|
||||
public static final DeferredBlock<RotatedPillarBlock> POLISHED_ANTIMETAL = BLOCKS.register("polished_antimetal",
|
||||
() -> new RotatedPillarBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.POLISHED_BASALT)));
|
||||
public static final DeferredBlock<StairBlock> ANTIMETAL_STAIRS = BLOCKS.register("antimetal_stairs",
|
||||
() -> new StairBlock(ANTIMETAL.get().defaultBlockState(), BlockBehaviour.Properties.ofFullCopy(Blocks.BASALT)));
|
||||
public static final DeferredBlock<SlabBlock> ANTIMETAL_SLAB = BLOCKS.register("antimetal_slab",
|
||||
() -> new SlabBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.BASALT)));
|
||||
public static final DeferredBlock<StairBlock> POLISHED_ANTIMETAL_STAIRS = BLOCKS.register("polished_antimetal_stairs",
|
||||
() -> new StairBlock(POLISHED_ANTIMETAL.get().defaultBlockState(), BlockBehaviour.Properties.ofFullCopy(Blocks.POLISHED_BASALT)));
|
||||
public static final DeferredBlock<SlabBlock> POLISHED_ANTIMETAL_SLAB = BLOCKS.register("polished_antimetal_slab",
|
||||
() -> new SlabBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.POLISHED_BASALT)));
|
||||
public static final DeferredBlock<com.craisinlord.antarchy.content.block.AntimetalScaffoldingBlock> ANTIMETAL_SCAFFOLDING = BLOCKS.register("antimetal_scaffolding",
|
||||
() -> new com.craisinlord.antarchy.content.block.AntimetalScaffoldingBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.SCAFFOLDING)));
|
||||
public static final DeferredBlock<com.craisinlord.antarchy.content.block.AntimetalRailBlock> ANTIMETAL_RAIL = BLOCKS.register("antimetal_rail",
|
||||
() -> new com.craisinlord.antarchy.content.block.AntimetalRailBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.RAIL)));
|
||||
public static final DeferredBlock<UpperBlock> UPPER = BLOCKS.register("upper",
|
||||
() -> new UpperBlock(AntarchyNeoforgeBlocks::upperBlockEntityType, BlockBehaviour.Properties.ofFullCopy(Blocks.HOPPER)));
|
||||
public static final DeferredBlock<com.craisinlord.antarchy.content.block.AntimetalPoweredRailBlock> ANTIMETAL_POWERED_RAIL = BLOCKS.register("antimetal_powered_rail",
|
||||
() -> new com.craisinlord.antarchy.content.block.AntimetalPoweredRailBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.POWERED_RAIL)));
|
||||
public static final DeferredBlock<com.craisinlord.antarchy.content.block.AntimetalDetectorRailBlock> ANTIMETAL_DETECTOR_RAIL = BLOCKS.register("antimetal_detector_rail",
|
||||
@@ -501,6 +523,12 @@ public final class AntarchyNeoforgeBlocks {
|
||||
() -> new AmethystClusterBlock(7.0F, 3.0F, BlockBehaviour.Properties.ofFullCopy(Blocks.AMETHYST_CLUSTER)));
|
||||
public static final DeferredBlock<Block> DREAM_SAND = BLOCKS.register("dream_sand",
|
||||
() -> new DreamSandBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.SAND)));
|
||||
public static final DeferredBlock<AntigravelBlock> ANTIGRAVEL = BLOCKS.register("antigravel",
|
||||
() -> new AntigravelBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.GRAVEL)));
|
||||
public static final DeferredBlock<Block> LOAM = BLOCKS.register("loam",
|
||||
() -> new Block(BlockBehaviour.Properties.ofFullCopy(Blocks.MUD)));
|
||||
public static final DeferredBlock<MucusBlock> MUCUS = BLOCKS.register("mucus",
|
||||
() -> new MucusBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.GLOW_LICHEN).friction(0.98F).lightLevel(state -> 0).sound(SoundType.SLIME_BLOCK)));
|
||||
public static final DeferredBlock<Block> DREAM_SANDSTONE = BLOCKS.register("dream_sandstone",
|
||||
() -> new Block(BlockBehaviour.Properties.ofFullCopy(Blocks.SANDSTONE)));
|
||||
public static final DeferredBlock<Block> CHISELED_DREAM_SANDSTONE = BLOCKS.register("chiseled_dream_sandstone",
|
||||
@@ -572,6 +600,11 @@ public final class AntarchyNeoforgeBlocks {
|
||||
SeashellBlockEntity::new,
|
||||
SEASHELL.get()
|
||||
).build(null));
|
||||
public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<LucidAnchorBlockEntity>> LUCID_ANCHOR_BLOCK_ENTITY = BLOCK_ENTITY_TYPES.register("lucid_anchor",
|
||||
() -> BlockEntityType.Builder.of(
|
||||
LucidAnchorBlockEntity::new,
|
||||
LUCID_ANCHOR.get()
|
||||
).build(null));
|
||||
public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<CritterCageBlockEntity>> CRITTER_CAGE_BLOCK_ENTITY = BLOCK_ENTITY_TYPES.register("critter_cage_block",
|
||||
() -> BlockEntityType.Builder.of(
|
||||
CritterCageBlockEntity::new,
|
||||
@@ -582,6 +615,11 @@ public final class AntarchyNeoforgeBlocks {
|
||||
(pos, state) -> new com.craisinlord.antarchy.content.block.entity.BluestoneComparatorBlockEntity(pos, state, AntarchyNeoforgeBlocks::bluestoneComparatorBlockEntityType),
|
||||
BLUESTONE_COMPARATOR.get()
|
||||
).build(null));
|
||||
public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<UpperBlockEntity>> UPPER_BLOCK_ENTITY = BLOCK_ENTITY_TYPES.register("upper",
|
||||
() -> BlockEntityType.Builder.of(
|
||||
(pos, state) -> new UpperBlockEntity(pos, state, AntarchyNeoforgeBlocks::upperBlockEntityType),
|
||||
UPPER.get()
|
||||
).build(null));
|
||||
|
||||
private AntarchyNeoforgeBlocks() {}
|
||||
|
||||
@@ -645,6 +683,10 @@ public final class AntarchyNeoforgeBlocks {
|
||||
return BLUESTONE_COMPARATOR_BLOCK_ENTITY.get();
|
||||
}
|
||||
|
||||
private static BlockEntityType<UpperBlockEntity> upperBlockEntityType() {
|
||||
return UPPER_BLOCK_ENTITY.get();
|
||||
}
|
||||
|
||||
|
||||
private static final class SimpleHorizontalFacingBlock extends HorizontalDirectionalBlock {
|
||||
private static final MapCodec<SimpleHorizontalFacingBlock> CODEC = simpleCodec(SimpleHorizontalFacingBlock::new);
|
||||
|
||||
+3
-2
@@ -1,6 +1,5 @@
|
||||
package com.craisinlord.antarchy.neoforge.registry;
|
||||
|
||||
import com.craisinlord.antarchy.Antarchy;
|
||||
import com.craisinlord.antarchy.content.creative.CreativeTabContents;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.world.item.*;
|
||||
@@ -10,9 +9,11 @@ import net.neoforged.neoforge.registries.DeferredHolder;
|
||||
import net.neoforged.neoforge.registries.DeferredRegister;
|
||||
|
||||
public class AntarchyNeoforgeCreativeModeTabs {
|
||||
private static final String MODID = "antarchy";
|
||||
|
||||
private AntarchyNeoforgeCreativeModeTabs() {}
|
||||
|
||||
private static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, Antarchy.MODID);
|
||||
private static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, MODID);
|
||||
|
||||
public static void register(IEventBus modEventBus) {
|
||||
CREATIVE_MODE_TABS.register(modEventBus);
|
||||
|
||||
+14
@@ -57,6 +57,8 @@ import com.craisinlord.antarchy.content.entity.lucid.LucidBoltEntity;
|
||||
import com.craisinlord.antarchy.content.entity.lucid.LucidEntity;
|
||||
import com.craisinlord.antarchy.content.entity.lucid.LucidEyeProjectileEntity;
|
||||
import com.craisinlord.antarchy.content.entity.nightmare.NightmareEntity;
|
||||
import com.craisinlord.antarchy.content.entity.nightmare.NightmarePortalEntity;
|
||||
import com.craisinlord.antarchy.content.entity.nightmare.NightmareBiteEntity;
|
||||
import com.craisinlord.antarchy.content.entity.CheepEntity;
|
||||
import com.craisinlord.antarchy.content.entity.CreepingHorrorEntity;
|
||||
import com.craisinlord.antarchy.content.entity.DorrieEntity;
|
||||
@@ -266,6 +268,18 @@ public final class AntarchyNeoforgeEntites {
|
||||
.sized(3.2F, 3.8F)
|
||||
.clientTrackingRange(12)
|
||||
.build("nightmare"));
|
||||
public static final DeferredHolder<EntityType<?>, EntityType<NightmarePortalEntity>> NIGHTMARE_PORTAL = ENTITY_TYPES.register("nightmare_portal",
|
||||
() -> EntityType.Builder.of(NightmarePortalEntity::new, MobCategory.MISC)
|
||||
.sized(2.5F, 3.0F)
|
||||
.clientTrackingRange(10)
|
||||
.updateInterval(1)
|
||||
.build("nightmare_portal"));
|
||||
public static final DeferredHolder<EntityType<?>, EntityType<NightmareBiteEntity>> NIGHTMARE_BITE = ENTITY_TYPES.register("nightmare_bite",
|
||||
() -> EntityType.Builder.of(NightmareBiteEntity::new, MobCategory.MISC)
|
||||
.sized(2.5F, 2.0F)
|
||||
.clientTrackingRange(10)
|
||||
.updateInterval(1)
|
||||
.build("nightmare_bite"));
|
||||
public static final DeferredHolder<EntityType<?>, EntityType<LucidEntity>> LUCID = ENTITY_TYPES.register("lucid",
|
||||
() -> EntityType.Builder.of(LucidEntity::new, MobCategory.MONSTER)
|
||||
.sized(2.0F, 2.0F)
|
||||
|
||||
+60
-4
@@ -105,6 +105,16 @@ public final class AntarchyNeoforgeItems {
|
||||
0.0F,
|
||||
0.0F
|
||||
));
|
||||
private static final DeferredHolder<ArmorMaterial, ArmorMaterial> TIGERS_EYE_ARMOR_MATERIAL = ARMOR_MATERIALS.register("tigers_eye",
|
||||
() -> new ArmorMaterial(
|
||||
createDiamondArmorDefense(),
|
||||
18,
|
||||
SoundEvents.ARMOR_EQUIP_GOLD,
|
||||
() -> Ingredient.of(BuiltInRegistries.ITEM.getOptional(ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "tigers_eye")).orElse(Items.AIR)),
|
||||
List.of(new ArmorMaterial.Layer(ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "tigers_eye"))),
|
||||
2.0F,
|
||||
0.0F
|
||||
));
|
||||
private static final DeferredHolder<ArmorMaterial, ArmorMaterial> MOGGLES_ARMOR_MATERIAL = ARMOR_MATERIALS.register("moggles",
|
||||
() -> new ArmorMaterial(
|
||||
createMogglesArmorDefense(),
|
||||
@@ -189,6 +199,8 @@ public final class AntarchyNeoforgeItems {
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> GIANT_LILY_PAD_ITEM = ITEMS.register("giant_lily_pad",
|
||||
() -> new com.craisinlord.antarchy.content.item.GiantLilyPadItem(AntarchyNeoforgeBlocks.GIANT_LILY_PAD.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SEASHELL_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SEASHELL);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> LUCID_ANCHOR_ITEM = ITEMS.register("lucid_anchor",
|
||||
() -> new LucidAnchorBlockItem(AntarchyNeoforgeBlocks.LUCID_ANCHOR.get(), new Item.Properties().rarity(Rarity.UNCOMMON)));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> LOTUS_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.LOTUS);
|
||||
public static final DeferredItem<net.minecraft.world.item.SignItem> OURANWOOD_SIGN_ITEM = ITEMS.register("ouranwood_sign",
|
||||
() -> new net.minecraft.world.item.SignItem(new Item.Properties().stacksTo(16), AntarchyNeoforgeBlocks.OURANWOOD_SIGN.get(), AntarchyNeoforgeBlocks.OURANWOOD_WALL_SIGN.get()));
|
||||
@@ -233,6 +245,7 @@ public final class AntarchyNeoforgeItems {
|
||||
() -> new CeilingPlacementTooltipBlockItem(AntarchyNeoforgeBlocks.BLUESTONE_COMPARATOR.get(), new Item.Properties()));
|
||||
public static final DeferredItem<CeilingPlacementTooltipBlockItem> BLUESTONE_TORCH_ITEM = ITEMS.register("bluestone_torch",
|
||||
() -> new CeilingPlacementTooltipBlockItem(AntarchyNeoforgeBlocks.BLUESTONE_TORCH.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> BLUESTONE_LAMP_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.BLUESTONE_LAMP);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> URANIUM_BLOCK_ITEM = ITEMS.register("uranium_block",
|
||||
() -> new net.minecraft.world.item.BlockItem(AntarchyNeoforgeBlocks.URANIUM_BLOCK.get(), new Item.Properties().rarity(Rarity.UNCOMMON)));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> TITANIUM_BLOCK_ITEM = ITEMS.register("titanium_block",
|
||||
@@ -277,6 +290,14 @@ public final class AntarchyNeoforgeItems {
|
||||
() -> new AntimetalBlockItem(AntarchyNeoforgeBlocks.ANTIMETAL.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> POLISHED_ANTIMETAL_ITEM = ITEMS.register("polished_antimetal",
|
||||
() -> new AntimetalBlockItem(AntarchyNeoforgeBlocks.POLISHED_ANTIMETAL.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> ANTIMETAL_STAIRS_ITEM = ITEMS.register("antimetal_stairs",
|
||||
() -> new AntimetalBlockItem(AntarchyNeoforgeBlocks.ANTIMETAL_STAIRS.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> ANTIMETAL_SLAB_ITEM = ITEMS.register("antimetal_slab",
|
||||
() -> new AntimetalBlockItem(AntarchyNeoforgeBlocks.ANTIMETAL_SLAB.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> POLISHED_ANTIMETAL_STAIRS_ITEM = ITEMS.register("polished_antimetal_stairs",
|
||||
() -> new AntimetalBlockItem(AntarchyNeoforgeBlocks.POLISHED_ANTIMETAL_STAIRS.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> POLISHED_ANTIMETAL_SLAB_ITEM = ITEMS.register("polished_antimetal_slab",
|
||||
() -> new AntimetalBlockItem(AntarchyNeoforgeBlocks.POLISHED_ANTIMETAL_SLAB.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> ANTIMETAL_SCAFFOLDING_ITEM = ITEMS.register("antimetal_scaffolding",
|
||||
() -> new AntimetalScaffoldingItem(AntarchyNeoforgeBlocks.ANTIMETAL_SCAFFOLDING.get(), new Item.Properties()));
|
||||
public static final DeferredItem<CeilingPlacementTooltipBlockItem> ANTIMETAL_RAIL_ITEM = ITEMS.register("antimetal_rail",
|
||||
@@ -287,6 +308,7 @@ public final class AntarchyNeoforgeItems {
|
||||
() -> new CeilingPlacementTooltipBlockItem(AntarchyNeoforgeBlocks.ANTIMETAL_DETECTOR_RAIL.get(), new Item.Properties()));
|
||||
public static final DeferredItem<CeilingPlacementTooltipBlockItem> ANTIMETAL_ACTIVATOR_RAIL_ITEM = ITEMS.register("antimetal_activator_rail",
|
||||
() -> new CeilingPlacementTooltipBlockItem(AntarchyNeoforgeBlocks.ANTIMETAL_ACTIVATOR_RAIL.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> UPPER_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.UPPER);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SMALL_BLOOD_CRYSTAL_BUD_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SMALL_BLOOD_CRYSTAL_BUD);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> MEDIUM_BLOOD_CRYSTAL_BUD_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.MEDIUM_BLOOD_CRYSTAL_BUD);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> LARGE_BLOOD_CRYSTAL_BUD_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.LARGE_BLOOD_CRYSTAL_BUD);
|
||||
@@ -295,6 +317,10 @@ public final class AntarchyNeoforgeItems {
|
||||
() -> new net.minecraft.world.item.BlockItem(AntarchyNeoforgeBlocks.BLOOD_CRYSTAL.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> BLOOD_CRYSTAL_CRYSTAL_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.BLOOD_CRYSTAL_CRYSTAL);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> DREAM_SAND_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.DREAM_SAND);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> ANTIGRAVEL_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.ANTIGRAVEL);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> LOAM_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.LOAM);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> MUCUS_ITEM = ITEMS.register("mucus",
|
||||
() -> new com.craisinlord.antarchy.content.item.MucusBlockItem(AntarchyNeoforgeBlocks.MUCUS.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> DREAM_SANDSTONE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.DREAM_SANDSTONE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> CHISELED_DREAM_SANDSTONE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.CHISELED_DREAM_SANDSTONE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> CUT_DREAM_SANDSTONE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.CUT_DREAM_SANDSTONE);
|
||||
@@ -336,6 +362,7 @@ public final class AntarchyNeoforgeItems {
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> BROODSTONE_BRICK_STAIRS_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.BROODSTONE_BRICK_STAIRS);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> BROODSTONE_BRICK_SLAB_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.BROODSTONE_BRICK_SLAB);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> BROODSTONE_BRICK_WALL_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.BROODSTONE_BRICK_WALL);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> BROODSTONE_PILLAR_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.BROODSTONE_PILLAR);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> MYRMITE_COAL_ORE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.MYRMITE_COAL_ORE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> BROODSTONE_URANIUM_ORE_ITEM = ITEMS.register("broodstone_uranium_ore",
|
||||
() -> new net.minecraft.world.item.BlockItem(AntarchyNeoforgeBlocks.BROODSTONE_URANIUM_ORE.get(), new Item.Properties().rarity(Rarity.UNCOMMON)));
|
||||
@@ -344,7 +371,7 @@ public final class AntarchyNeoforgeItems {
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> POLISHED_NYXITE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.POLISHED_NYXITE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> CHISELED_NYXITE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.CHISELED_NYXITE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_BRICKS_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_BRICKS);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> CHITEN_BLOCK_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.CHITEN_BLOCK);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> CHITIN_BLOCK_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.CHITIN_BLOCK);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_STAIRS_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_STAIRS);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_SLAB_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_SLAB);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_WALL_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_WALL);
|
||||
@@ -357,6 +384,7 @@ public final class AntarchyNeoforgeItems {
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_BRICK_STAIRS_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_BRICK_STAIRS);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_BRICK_SLAB_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_BRICK_SLAB);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_BRICK_WALL_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_BRICK_WALL);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_PILLAR_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_PILLAR);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SHELLSTONE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SHELLSTONE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> POLISHED_SHELLSTONE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.POLISHED_SHELLSTONE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SHELLSTONE_BRICKS_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SHELLSTONE_BRICKS);
|
||||
@@ -375,11 +403,12 @@ public final class AntarchyNeoforgeItems {
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SHELLSTONE_BRICK_STAIRS_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SHELLSTONE_BRICK_STAIRS);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SHELLSTONE_BRICK_SLAB_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SHELLSTONE_BRICK_SLAB);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SHELLSTONE_BRICK_WALL_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SHELLSTONE_BRICK_WALL);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> SHELLSTONE_PILLAR_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.SHELLSTONE_PILLAR);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> TRIFFID_GOO_BLOCK_ITEM = ITEMS.register("triffid_goo_block",
|
||||
() -> new com.craisinlord.antarchy.content.item.TriffidGooBlockItem(AntarchyNeoforgeBlocks.TRIFFID_GOO_BLOCK.get(), new Item.Properties()));
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> PALE_NYXITE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.PALE_NYXITE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> NYXITE_SPIKE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.NYXITE_SPIKE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> CHITEN_SPIKE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.CHITEN_SPIKE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> CHITIN_SPIKE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.CHITIN_SPIKE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> POTENT_NYXITE_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.POTENT_NYXITE);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> UMBRAL_MOSS_BLOCK_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.UMBRAL_MOSS_BLOCK);
|
||||
public static final DeferredItem<net.minecraft.world.item.BlockItem> UMBRAL_MOSS_CARPET_ITEM = ITEMS.registerSimpleBlockItem(AntarchyNeoforgeBlocks.UMBRAL_MOSS_CARPET);
|
||||
@@ -437,6 +466,15 @@ public final class AntarchyNeoforgeItems {
|
||||
() -> new BloodCrystalArmorItem(BLOOD_CRYSTAL_ARMOR_MATERIAL, ArmorItem.Type.LEGGINGS, new Item.Properties().rarity(Rarity.RARE)));
|
||||
public static final DeferredItem<BloodCrystalArmorItem> BLOOD_CRYSTAL_BOOTS = ITEMS.register("blood_crystal_boots",
|
||||
() -> new BloodCrystalArmorItem(BLOOD_CRYSTAL_ARMOR_MATERIAL, ArmorItem.Type.BOOTS, new Item.Properties().rarity(Rarity.RARE)));
|
||||
public static final DeferredItem<Item> TIGERS_EYE = ITEMS.registerSimpleItem("tigers_eye", new Item.Properties().rarity(Rarity.UNCOMMON));
|
||||
public static final DeferredItem<com.craisinlord.antarchy.content.item.TigerEyeArmorItem> TIGERS_EYE_HELMET = ITEMS.register("tigers_eye_helmet",
|
||||
() -> new com.craisinlord.antarchy.content.item.TigerEyeArmorItem(TIGERS_EYE_ARMOR_MATERIAL, ArmorItem.Type.HELMET, new Item.Properties().rarity(Rarity.UNCOMMON)));
|
||||
public static final DeferredItem<com.craisinlord.antarchy.content.item.TigerEyeArmorItem> TIGERS_EYE_CHESTPLATE = ITEMS.register("tigers_eye_chestplate",
|
||||
() -> new com.craisinlord.antarchy.content.item.TigerEyeArmorItem(TIGERS_EYE_ARMOR_MATERIAL, ArmorItem.Type.CHESTPLATE, new Item.Properties().rarity(Rarity.UNCOMMON)));
|
||||
public static final DeferredItem<com.craisinlord.antarchy.content.item.TigerEyeArmorItem> TIGERS_EYE_LEGGINGS = ITEMS.register("tigers_eye_leggings",
|
||||
() -> new com.craisinlord.antarchy.content.item.TigerEyeArmorItem(TIGERS_EYE_ARMOR_MATERIAL, ArmorItem.Type.LEGGINGS, new Item.Properties().rarity(Rarity.UNCOMMON)));
|
||||
public static final DeferredItem<com.craisinlord.antarchy.content.item.TigerEyeArmorItem> TIGERS_EYE_BOOTS = ITEMS.register("tigers_eye_boots",
|
||||
() -> new com.craisinlord.antarchy.content.item.TigerEyeArmorItem(TIGERS_EYE_ARMOR_MATERIAL, ArmorItem.Type.BOOTS, new Item.Properties().rarity(Rarity.UNCOMMON)));
|
||||
public static final DeferredItem<BloodCrystalKatanaItem> BLOOD_CRYSTAL_KATANA = ITEMS.register("blood_crystal_katana",
|
||||
() -> new BloodCrystalKatanaItem(
|
||||
BLOOD_CRYSTAL_KATANA_TIER,
|
||||
@@ -451,14 +489,13 @@ public final class AntarchyNeoforgeItems {
|
||||
() -> new MobComingSoonTooltipItem(new Item.Properties().rarity(Rarity.RARE)));
|
||||
public static final DeferredItem<Item> QUEEN_SCALE = ITEMS.register("queen_scale",
|
||||
() -> new MobComingSoonTooltipItem(new Item.Properties().rarity(Rarity.RARE)));
|
||||
public static final DeferredItem<Item> CHITEN = ITEMS.registerSimpleItem("chiten", new Item.Properties().rarity(Rarity.UNCOMMON));
|
||||
public static final DeferredItem<Item> CHITIN = ITEMS.registerSimpleItem("chitin", new Item.Properties().rarity(Rarity.UNCOMMON));
|
||||
public static final DeferredItem<Item> JERRY_NUCLEUS = ITEMS.register("jerry_nucleus",
|
||||
() -> new com.craisinlord.antarchy.content.item.JerryNucleusItem(new Item.Properties().rarity(Rarity.UNCOMMON)
|
||||
.food(new FoodProperties.Builder()
|
||||
.nutrition(2)
|
||||
.saturationModifier(0.1F)
|
||||
.build())));
|
||||
public static final DeferredItem<Item> CARAPACE = ITEMS.registerSimpleItem("carapace", new Item.Properties().rarity(Rarity.UNCOMMON));
|
||||
public static final DeferredItem<Item> STINK_BUG = ITEMS.registerSimpleItem("stink_bug", new Item.Properties().rarity(Rarity.UNCOMMON));
|
||||
public static final DeferredItem<Item> JUMPY_BUG_LEG = ITEMS.registerSimpleItem("jumpy_bug_leg", new Item.Properties().rarity(Rarity.UNCOMMON));
|
||||
public static final DeferredItem<JumpyBootsItem> JUMPY_BOOTS = ITEMS.register("jumpy_boots",
|
||||
@@ -727,6 +764,14 @@ public final class AntarchyNeoforgeItems {
|
||||
|
||||
public static final DeferredItem<Item> KRAKEN_TENTACLE = ITEMS.registerSimpleItem("kraken_tentacle",
|
||||
new Item.Properties().rarity(Rarity.RARE));
|
||||
public static final DeferredItem<Item> KRAKEN_KALAMARI = ITEMS.register("kraken_kalamari",
|
||||
() -> new Item(new Item.Properties()
|
||||
.rarity(Rarity.EPIC)
|
||||
.food(new FoodProperties.Builder()
|
||||
.nutrition(20)
|
||||
.saturationModifier(1.2F)
|
||||
.alwaysEdible()
|
||||
.build())));
|
||||
|
||||
public static final DeferredItem<KrakensGraspItem> KRAKENS_GRASP = ITEMS.register("krakens_grasp",
|
||||
() -> new KrakensGraspItem(
|
||||
@@ -748,6 +793,7 @@ public final class AntarchyNeoforgeItems {
|
||||
.food(new FoodProperties.Builder()
|
||||
.nutrition(4)
|
||||
.saturationModifier(0.3F)
|
||||
.alwaysEdible()
|
||||
.build())));
|
||||
public static final DeferredItem<com.craisinlord.antarchy.content.item.GlimmerBottleItem> GLIMMER_BOTTLE = ITEMS.register("glimmer_bottle",
|
||||
com.craisinlord.antarchy.content.item.GlimmerBottleItem::new);
|
||||
@@ -924,6 +970,16 @@ public final class AntarchyNeoforgeItems {
|
||||
return defense;
|
||||
}
|
||||
|
||||
private static EnumMap<ArmorItem.Type, Integer> createDiamondArmorDefense() {
|
||||
EnumMap<ArmorItem.Type, Integer> defense = new EnumMap<>(ArmorItem.Type.class);
|
||||
defense.put(ArmorItem.Type.BOOTS, 3);
|
||||
defense.put(ArmorItem.Type.LEGGINGS, 6);
|
||||
defense.put(ArmorItem.Type.CHESTPLATE, 8);
|
||||
defense.put(ArmorItem.Type.HELMET, 3);
|
||||
defense.put(ArmorItem.Type.BODY, 11);
|
||||
return defense;
|
||||
}
|
||||
|
||||
private static EnumMap<ArmorItem.Type, Integer> createMogglesArmorDefense() {
|
||||
EnumMap<ArmorItem.Type, Integer> defense = new EnumMap<>(ArmorItem.Type.class);
|
||||
defense.put(ArmorItem.Type.BOOTS, 0);
|
||||
|
||||
+6
-4
@@ -21,8 +21,8 @@ import com.craisinlord.antarchy.content.worldgen.cavaryn.CavarynCreepvineFeature
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.CavarynEggPatchFeature;
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.CavarynWallAmberMossFeature;
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.HangingCreeprootsFeature;
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.ChitenSpikeConfiguration;
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.ChitenSpikeFeature;
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.ChitinSpikeConfiguration;
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.ChitinSpikeFeature;
|
||||
import com.craisinlord.antarchy.content.worldgen.cavaryn.MoltingVinesFeature;
|
||||
import com.craisinlord.antarchy.content.worldgen.ocean.SeashellFeature;
|
||||
import com.craisinlord.antarchy.content.worldgen.elythia.*;
|
||||
@@ -128,6 +128,8 @@ public final class AntarchyNeoforgeMisc {
|
||||
public static final DeferredHolder<MobEffect, StinkyMobEffect> STINKY = MOB_EFFECTS.register("stinky", StinkyMobEffect::new);
|
||||
public static final DeferredHolder<MobEffect, GoopedMobEffect> GOOPED = MOB_EFFECTS.register("gooped", GoopedMobEffect::new);
|
||||
public static final DeferredHolder<MobEffect, com.craisinlord.antarchy.content.effect.BloodglassWardEffect> BLOODGLASS_WARD = MOB_EFFECTS.register("bloodglass_ward", com.craisinlord.antarchy.content.effect.BloodglassWardEffect::new);
|
||||
|
||||
public static final DeferredHolder<MobEffect, com.craisinlord.antarchy.content.effect.GlimmeringMobEffect> GLIMMERING = MOB_EFFECTS.register("glimmering", com.craisinlord.antarchy.content.effect.GlimmeringMobEffect::new);
|
||||
public static final DeferredHolder<MobEffect, ShrinkMobEffect> SHRINKING_EFFECT = MOB_EFFECTS.register("shrinking", ShrinkMobEffect::new);
|
||||
public static final DeferredHolder<MobEffect, GrowthMobEffect> GROWTH_EFFECT = MOB_EFFECTS.register("growth", GrowthMobEffect::new);
|
||||
|
||||
@@ -300,8 +302,8 @@ public final class AntarchyNeoforgeMisc {
|
||||
() -> new ThoraxisSpikeFeature(ThoraxisSpikeConfiguration.CODEC));
|
||||
public static final DeferredHolder<Feature<?>, NyxiteSpikeFeature> NYXITE_SPIKES = FEATURES.register("nyxite_spikes",
|
||||
() -> new NyxiteSpikeFeature(NyxiteSpikeConfiguration.CODEC));
|
||||
public static final DeferredHolder<Feature<?>, ChitenSpikeFeature> CAVARYN_CHITEN_SPIKES = FEATURES.register("cavaryn_chiten_spikes",
|
||||
() -> new ChitenSpikeFeature(ChitenSpikeConfiguration.CODEC));
|
||||
public static final DeferredHolder<Feature<?>, ChitinSpikeFeature> CAVARYN_CHITIN_SPIKES = FEATURES.register("cavaryn_chitin_spikes",
|
||||
() -> new ChitinSpikeFeature(ChitinSpikeConfiguration.CODEC));
|
||||
public static final DeferredHolder<Feature<?>, CavarynBileVeinFeature> CAVARYN_BILE_VEINS = FEATURES.register("cavaryn_bile_veins",
|
||||
() -> new CavarynBileVeinFeature(NoneFeatureConfiguration.CODEC));
|
||||
public static final DeferredHolder<Feature<?>, CavarynBileCystFeature> CAVARYN_BILE_CYSTS = FEATURES.register("cavaryn_bile_cysts",
|
||||
|
||||
+38
@@ -1,6 +1,9 @@
|
||||
package com.craisinlord.antarchy.neoforge.registry;
|
||||
|
||||
import com.craisinlord.antarchy.content.network.BloodCrystalKatanaTrailPayload;
|
||||
import com.craisinlord.antarchy.content.network.ToggleTigerEyeCamouflagePayload;
|
||||
import com.craisinlord.antarchy.content.item.TigerEyeArmorUtil;
|
||||
import com.craisinlord.antarchy.content.tigereye.TigerEyeCamouflageController;
|
||||
import com.craisinlord.antarchy.neoforge.network.AntarchyGravityNetworking;
|
||||
import com.craisinlord.antarchy.neoforge.network.BrutalflyElytraNetworking;
|
||||
import com.craisinlord.antarchy.neoforge.network.DorrieJumpNetworking;
|
||||
@@ -31,6 +34,41 @@ public class AntarchyNeoforgePayloadHandlers {
|
||||
com.craisinlord.antarchy.content.client.BloodglassClientState.update(payload.shieldsActive(), payload.shieldsMax())
|
||||
)
|
||||
);
|
||||
registrar.playToClient(
|
||||
com.craisinlord.antarchy.content.network.TigerEyeCamouflageStatePayload.TYPE,
|
||||
com.craisinlord.antarchy.content.network.TigerEyeCamouflageStatePayload.STREAM_CODEC,
|
||||
(payload, ctx) -> ctx.enqueueWork(() ->
|
||||
com.craisinlord.antarchy.content.client.TigerEyeCamouflageClientState.update(payload.entityId(), payload.active(), payload.blockStateId())
|
||||
)
|
||||
);
|
||||
registrar.playToServer(
|
||||
ToggleTigerEyeCamouflagePayload.TYPE,
|
||||
ToggleTigerEyeCamouflagePayload.STREAM_CODEC,
|
||||
(payload, ctx) -> ctx.enqueueWork(() -> {
|
||||
if (!(ctx.player() instanceof net.minecraft.server.level.ServerPlayer player)) {
|
||||
return;
|
||||
}
|
||||
TigerEyeCamouflageController.ToggleResult result = TigerEyeCamouflageController.toggle(player);
|
||||
if (result != TigerEyeCamouflageController.ToggleResult.NO_CHANGE) {
|
||||
net.neoforged.neoforge.network.PacketDistributor.sendToPlayersTrackingEntityAndSelf(
|
||||
player,
|
||||
com.craisinlord.antarchy.content.tigereye.TigerEyeCamouflageSync.payload(player)
|
||||
);
|
||||
}
|
||||
String messageKey = switch (result) {
|
||||
case ACTIVATED -> "message.antarchy.tiger_eye_camouflage.activated";
|
||||
case DEACTIVATED -> "message.antarchy.tiger_eye_camouflage.disabled";
|
||||
case FULL_SET_REQUIRED -> TigerEyeArmorUtil.countEquippedPieces(player) > 0
|
||||
? "message.antarchy.tiger_eye_camouflage.full_set_required"
|
||||
: null;
|
||||
case INVALID_BLOCK -> "message.antarchy.tiger_eye_camouflage.invalid_block";
|
||||
case NO_CHANGE -> null;
|
||||
};
|
||||
if (messageKey != null) {
|
||||
player.displayClientMessage(net.minecraft.network.chat.Component.translatable(messageKey), true);
|
||||
}
|
||||
})
|
||||
);
|
||||
registrar.playToClient(
|
||||
BloodCrystalKatanaTrailPayload.TYPE,
|
||||
BloodCrystalKatanaTrailPayload.STREAM_CODEC,
|
||||
|
||||
+2
@@ -60,6 +60,7 @@ public final class AntarchyNeoforgeSounds {
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> THORAXIS_LUCID_POOLS_AMBIENT = registerSoundEvent("thoraxis_lucid_pools_ambient");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> THORAXIS_LUCID_POOLS_ADDITIONS = registerSoundEvent("thoraxis_lucid_pools_additions");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> THORAXIS_LUCID_POOLS_MOOD = registerSoundEvent("thoraxis_lucid_pools_mood");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> LUCID_LULLABY = registerSoundEvent("lucid_lullaby");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> LUCID_AMBIENT = registerSoundEvent("lucid_ambient");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> LUCID_FLYING = registerSoundEvent("lucid_flying");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> LUCID_ATTACK = registerSoundEvent("lucid_attack");
|
||||
@@ -137,6 +138,7 @@ public final class AntarchyNeoforgeSounds {
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> STINK_BUG_FART = registerSoundEvent("stink_bug_fart");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> STINK_BUG_IDLE = registerSoundEvent("stink_bug_idle");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> CAVARYN_HEARTBEAT = registerSoundEvent("cavaryn_heartbeat");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> VENENATUS = registerSoundEvent("venenatus");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> ROLLY_POLLY_IDLE = registerSoundEvent("rolly_polly_idle");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> ROLLY_POLLY_WHEEL_MODE = registerSoundEvent("rolly_polly_wheel_mode");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> ROLLY_POLLY_NORMAL_MODE = registerSoundEvent("rolly_polly_normal_mode");
|
||||
|
||||
Reference in new issue
Block a user