generated from NeoForgeMDKs/MDK-1.21-NeoGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c10e08
commit b0bc1e3
Showing
53 changed files
with
545 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// 1.21.1 2024-12-15T19:56:36.865469462 Languages: en_us | ||
2b776d2e529ff9f3da361d89a83dcc9c16fcd923 assets/nautec/lang/en_us.json | ||
// 1.21.1 2024-12-15T20:55:07.97208459 Languages: en_us | ||
02e2bf78f797075e71df78423d05779abc093c05 assets/nautec/lang/en_us.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
src/generated/resources/assets/nautec/models/item/eas_bucket.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "nautec:item/eas_bucket" | ||
} | ||
"parent": "neoforge:item/bucket", | ||
"fluid": "nautec:eas", | ||
"loader": "neoforge:fluid_container" | ||
} |
7 changes: 3 additions & 4 deletions
7
src/generated/resources/assets/nautec/models/item/etching_acid_bucket.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "nautec:item/etching_acid_bucket" | ||
} | ||
"parent": "neoforge:item/bucket", | ||
"fluid": "nautec:etching_acid", | ||
"loader": "neoforge:fluid_container" | ||
} |
6 changes: 0 additions & 6 deletions
6
src/generated/resources/assets/nautec/models/item/salt_water_bucket.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/portingdeadmods/nautec/api/bacteria/BaseBacteriaStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.portingdeadmods.nautec.api.bacteria; | ||
|
||
import net.minecraft.world.item.Item; | ||
|
||
public interface BaseBacteriaStats { | ||
Item resource(); | ||
|
||
float growthRate(); | ||
|
||
float mutationResistance(); | ||
|
||
float productionRate(); | ||
|
||
int lifespan(); | ||
|
||
int color(); | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/portingdeadmods/nautec/api/fluids/FluidTemplate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.portingdeadmods.nautec.api.fluids; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
|
||
public interface FluidTemplate { | ||
ResourceLocation getStillTexture(); | ||
|
||
ResourceLocation getFlowingTexture(); | ||
|
||
ResourceLocation getOverlayTexture(); | ||
} |
71 changes: 71 additions & 0 deletions
71
src/main/java/com/portingdeadmods/nautec/api/fluids/NTFluid.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package com.portingdeadmods.nautec.api.fluids; | ||
import net.minecraft.core.Vec3i; | ||
import net.minecraft.world.item.BucketItem; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.Items; | ||
import net.minecraft.world.level.block.LiquidBlock; | ||
import net.minecraft.world.level.block.state.BlockBehaviour; | ||
import net.neoforged.neoforge.fluids.BaseFlowingFluid; | ||
import net.neoforged.neoforge.fluids.FluidType; | ||
import net.neoforged.neoforge.registries.DeferredItem; | ||
import org.joml.Vector4i; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public abstract class NTFluid { | ||
public Supplier<BaseFlowingFluid.Source> stillFluid; | ||
public Supplier<BaseFlowingFluid.Flowing> flowingFluid; | ||
|
||
public Supplier<FluidType> fluidType; | ||
|
||
public Supplier<LiquidBlock> block; | ||
public Supplier<BucketItem> bucket; | ||
public DeferredItem<BucketItem> deferredBucket; | ||
|
||
protected BaseFlowingFluid.Properties properties; | ||
|
||
protected final String name; | ||
|
||
public NTFluid(String name) { | ||
this.stillFluid = () -> new BaseFlowingFluid.Source(fluidProperties()); | ||
this.flowingFluid = () -> new BaseFlowingFluid.Flowing(fluidProperties()); | ||
this.name = name; | ||
} | ||
|
||
public BlockBehaviour.Properties blockProperties() { | ||
return BlockBehaviour.Properties.of(); | ||
} | ||
|
||
public BaseFlowingFluid.Properties fluidProperties() { | ||
return new BaseFlowingFluid.Properties(fluidType, stillFluid, flowingFluid); | ||
} | ||
|
||
public BaseFlowingFluid.Source getStillFluid() { | ||
return stillFluid.get(); | ||
} | ||
|
||
public BaseFlowingFluid.Flowing getFlowingFluid() { | ||
return flowingFluid.get(); | ||
} | ||
|
||
public Supplier<FluidType> getFluidType() { | ||
return fluidType; | ||
} | ||
|
||
public Item getBucket() { | ||
return getDeferredBucket().get(); | ||
} | ||
|
||
public DeferredItem<BucketItem> getDeferredBucket() { | ||
return deferredBucket; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public Supplier<FluidType> registerFluidType(FluidType.Properties properties, Vector4i color, FluidTemplate template) { | ||
return () -> new BaseFluidType(template.getStillTexture(), template.getFlowingTexture(), template.getOverlayTexture(), color, properties); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.