This repository was archived by the owner on Jul 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/0.4' into feat/dev/0.4/teams-rewrite
- Loading branch information
Showing
120 changed files
with
3,893 additions
and
746 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
46 changes: 46 additions & 0 deletions
46
src/main/java/dev/galacticraft/api/accessor/ChunkOxygenAccessor.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,46 @@ | ||
/* | ||
* Copyright (c) 2019-2021 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.api.accessor; | ||
|
||
/** | ||
* @author <a href="https://github.com/TeamGalacticraft">TeamGalacticraft</a> | ||
*/ | ||
public interface ChunkOxygenAccessor { | ||
/** | ||
* Returns whether the supplied position in the chunk is breathable for entities | ||
* @param x the position to test on the X-axis, normalized from 0 to 15 | ||
* @param y the position to test on the Y-axis, will return {@code false} if it is outside the world's min/max height | ||
* @param z the position to test on the Z-axis, normalized from 0 to 15 | ||
* @return whether the supplied position in the chunk is breathable for entities | ||
*/ | ||
boolean isBreathable(int x, int y, int z); | ||
|
||
/** | ||
* Sets the breathable state for entities for the supplied position | ||
* @param x the position to test on the X-axis, normalized from 0 to 15 | ||
* @param y the position to test on the Y-axis, this method will do nothing if it is outside the world's min/max height | ||
* @param z the position to test on the Z-axis, normalized from 0 to 15 | ||
* @param value whether the supplied position is breathable | ||
*/ | ||
void setBreathable(int x, int y, int z, boolean value); | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/dev/galacticraft/api/accessor/ChunkSectionOxygenAccessor.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,32 @@ | ||
/* | ||
* Copyright (c) 2019-2021 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.api.accessor; | ||
|
||
/** | ||
* @author <a href="https://github.com/TeamGalacticraft">TeamGalacticraft</a> | ||
*/ | ||
public interface ChunkSectionOxygenAccessor { | ||
boolean isBreathable(int x, int y, int z); | ||
|
||
void setBreathable(int x, int y, int z, boolean value); | ||
} |
43 changes: 43 additions & 0 deletions
43
src/main/java/dev/galacticraft/api/accessor/GearInventoryProvider.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,43 @@ | ||
/* | ||
* Copyright (c) 2019-2021 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.api.accessor; | ||
|
||
import alexiil.mc.lib.attributes.item.FixedItemInv; | ||
import net.minecraft.nbt.NbtCompound; | ||
|
||
/** | ||
* @author <a href="https://github.com/TeamGalacticraft">TeamGalacticraft</a> | ||
*/ | ||
public interface GearInventoryProvider { | ||
FixedItemInv getGearInv(); | ||
|
||
FixedItemInv getOxygenTanks(); | ||
|
||
FixedItemInv getThermalArmor(); | ||
|
||
FixedItemInv getAccessories(); | ||
|
||
NbtCompound writeGearToNbt(NbtCompound tag); | ||
|
||
void readGearFromNbt(NbtCompound tag); | ||
} |
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
33 changes: 33 additions & 0 deletions
33
src/main/java/dev/galacticraft/api/accessor/SoundSystemAccessor.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,33 @@ | ||
/* | ||
* Copyright (c) 2019-2021 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.api.accessor; | ||
|
||
import org.jetbrains.annotations.ApiStatus; | ||
|
||
/** | ||
* @author <a href="https://github.com/TeamGalacticraft">TeamGalacticraft</a> | ||
*/ | ||
@ApiStatus.Internal | ||
public interface SoundSystemAccessor { | ||
void gc_updateAtmosphericMultiplier(float multiplier); | ||
} |
39 changes: 39 additions & 0 deletions
39
src/main/java/dev/galacticraft/api/accessor/WorldOxygenAccessor.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,39 @@ | ||
/* | ||
* Copyright (c) 2019-2021 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.api.accessor; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
|
||
/** | ||
* @author <a href="https://github.com/TeamGalacticraft">TeamGalacticraft</a> | ||
*/ | ||
public interface WorldOxygenAccessor { | ||
/** | ||
* Returns whether the supplied position in this world is breathable for entities | ||
* @param pos the position to test | ||
* @return whether the supplied position in the chunk is breathable for entities | ||
*/ | ||
boolean isBreathable(BlockPos pos); | ||
|
||
void setBreathable(BlockPos pos, boolean value); | ||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/dev/galacticraft/api/attribute/GcApiAttributes.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,41 @@ | ||
/* | ||
* Copyright (c) 2019-2021 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.api.attribute; | ||
|
||
import alexiil.mc.lib.attributes.Attributes; | ||
import alexiil.mc.lib.attributes.DefaultedAttribute; | ||
import dev.galacticraft.api.attribute.oxygen.EmptyOxygenTank; | ||
import dev.galacticraft.api.attribute.oxygen.OxygenTank; | ||
import dev.galacticraft.api.attribute.oxygen.extractable.EmptyOxygenExtractable; | ||
import dev.galacticraft.api.attribute.oxygen.extractable.OxygenExtractable; | ||
import dev.galacticraft.api.attribute.oxygen.insertable.OxygenInsertable; | ||
import dev.galacticraft.api.attribute.oxygen.insertable.RejectingOxygenInsertable; | ||
import dev.galacticraft.api.attribute.oxygen.transferable.EmptyOxygenTransferable; | ||
import dev.galacticraft.api.attribute.oxygen.transferable.OxygenTransferable; | ||
|
||
public class GcApiAttributes { | ||
public static final DefaultedAttribute<OxygenTank> OXYGEN_TANK = Attributes.createDefaulted(OxygenTank.class, EmptyOxygenTank.NULL); | ||
public static final DefaultedAttribute<OxygenInsertable> OXYGEN_INSERTABLE = Attributes.createDefaulted(OxygenInsertable.class, RejectingOxygenInsertable.NULL); | ||
public static final DefaultedAttribute<OxygenExtractable> OXYGEN_EXTRACTABLE = Attributes.createDefaulted(OxygenExtractable.class, EmptyOxygenExtractable.NULL); | ||
public static final DefaultedAttribute<OxygenTransferable> OXYGEN_TRANSFERABLE = Attributes.createDefaulted(OxygenTransferable.class, EmptyOxygenTransferable.NULL); | ||
} |
Oops, something went wrong.