-
Notifications
You must be signed in to change notification settings - Fork 86
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
Showing
43 changed files
with
1,139 additions
and
236 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
src/main/generated/assets/galacticraft/blockstates/fueling_pad.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"variants": { | ||
"part=center": { | ||
"model": "galacticraft:block/fueling_pad_center" | ||
}, | ||
"part=east": { | ||
"model": "galacticraft:block/fueling_pad_side", | ||
"y": 90 | ||
}, | ||
"part=none": { | ||
"model": "galacticraft:block/fueling_pad_center" | ||
}, | ||
"part=north": { | ||
"model": "galacticraft:block/fueling_pad_side" | ||
}, | ||
"part=north_east": { | ||
"model": "galacticraft:block/fueling_pad_corner", | ||
"y": 90 | ||
}, | ||
"part=north_west": { | ||
"model": "galacticraft:block/fueling_pad_corner" | ||
}, | ||
"part=south": { | ||
"model": "galacticraft:block/fueling_pad_side", | ||
"y": 180 | ||
}, | ||
"part=south_east": { | ||
"model": "galacticraft:block/fueling_pad_corner", | ||
"y": 180 | ||
}, | ||
"part=south_west": { | ||
"model": "galacticraft:block/fueling_pad_corner", | ||
"y": 270 | ||
}, | ||
"part=west": { | ||
"model": "galacticraft:block/fueling_pad_side", | ||
"y": 270 | ||
} | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
src/main/generated/assets/galacticraft/models/block/fueling_pad_corner.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parent": "galacticraft:block/rocket_launch_pad_part", | ||
"textures": { | ||
"bottom": "galacticraft:block/fueling_pad", | ||
"particle": "galacticraft:block/fueling_pad_corner", | ||
"side": "galacticraft:block/fueling_pad", | ||
"top": "galacticraft:block/fueling_pad_corner" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/generated/assets/galacticraft/models/block/fueling_pad_side.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parent": "galacticraft:block/rocket_launch_pad_part", | ||
"textures": { | ||
"bottom": "galacticraft:block/fueling_pad", | ||
"particle": "galacticraft:block/fueling_pad_side", | ||
"side": "galacticraft:block/fueling_pad", | ||
"top": "galacticraft:block/fueling_pad_side" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/generated/assets/galacticraft/models/item/fueling_pad.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"parent": "galacticraft:block/fueling_pad_center" | ||
} |
34 changes: 34 additions & 0 deletions
34
src/main/generated/data/galacticraft/advancements/recipes/transportation/fueling_pad.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_compressed_steel": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"galacticraft:compressed_steel" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "galacticraft:fueling_pad" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_compressed_steel" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"galacticraft:fueling_pad" | ||
] | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/main/generated/data/galacticraft/loot_tables/blocks/fueling_pad.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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "galacticraft:fueling_pad", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "none" | ||
} | ||
} | ||
], | ||
"name": "galacticraft:fueling_pad" | ||
} | ||
], | ||
"rolls": 1.0 | ||
}, | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "galacticraft:fueling_pad", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "center" | ||
} | ||
} | ||
], | ||
"name": "galacticraft:fueling_pad" | ||
} | ||
], | ||
"rolls": 9.0 | ||
} | ||
] | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/generated/data/galacticraft/recipes/fueling_pad.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"C": { | ||
"item": "galacticraft:compressed_steel" | ||
}, | ||
"I": { | ||
"item": "minecraft:iron_block" | ||
} | ||
}, | ||
"pattern": [ | ||
"CCC", | ||
"III" | ||
], | ||
"result": { | ||
"count": 9, | ||
"item": "galacticraft:fueling_pad" | ||
} | ||
} |
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
51 changes: 51 additions & 0 deletions
51
src/main/java/dev/galacticraft/mod/api/block/entity/FuelDock.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,51 @@ | ||
/* | ||
* Copyright (c) 2019-2024 Team Galacticraft | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
package dev.galacticraft.mod.api.block.entity; | ||
|
||
import dev.galacticraft.mod.api.entity.Dockable; | ||
import net.minecraft.core.BlockPos; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface FuelDock { | ||
/** | ||
* Gets the docked entity. | ||
* | ||
* @return the docked entity | ||
*/ | ||
@Nullable | ||
Dockable getDockedEntity(); | ||
|
||
/** | ||
* Dock entity. | ||
* | ||
* @param entity the entity | ||
*/ | ||
void setDockedEntity(Dockable entity); | ||
|
||
/** | ||
* Gets the position of the dock | ||
* | ||
* @return the dock position | ||
*/ | ||
BlockPos getDockPos(); | ||
} |
42 changes: 42 additions & 0 deletions
42
src/main/java/dev/galacticraft/mod/api/entity/CargoEntity.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,42 @@ | ||
/* | ||
* Copyright (c) 2019-2024 Team Galacticraft | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
package dev.galacticraft.mod.api.entity; | ||
|
||
import net.minecraft.world.item.ItemStack; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Implement into entities that can be loaded with cargo | ||
*/ | ||
public interface CargoEntity { | ||
enum CargoLoadingState { | ||
FULL, EMPTY, NO_TARGET, NO_INVENTORY, SUCCESS | ||
} | ||
|
||
record RemovalResult(CargoLoadingState resultState, @NotNull ItemStack resultStack) { | ||
} | ||
|
||
CargoLoadingState addCargo(ItemStack stack, boolean simulate); | ||
|
||
RemovalResult removeCargo(boolean simulate); | ||
} |
Oops, something went wrong.