-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: LocusAzzurro <[email protected]>
- Loading branch information
1 parent
c2266f4
commit 973cfab
Showing
68 changed files
with
180 additions
and
27 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
Binary file added
BIN
+131 Bytes
...ramarine/textures/block/black_main_roof_ridge_connection_front_snow_stage_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+138 Bytes
...ramarine/textures/block/black_main_roof_ridge_connection_front_snow_stage_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+136 Bytes
...ramarine/textures/block/black_main_roof_ridge_connection_front_snow_stage_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+141 Bytes
...ramarine/textures/block/black_main_roof_ridge_connection_front_snow_stage_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+126 Bytes
...ramarine/textures/block/black_main_roof_ridge_connection_front_snow_stage_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+241 Bytes
...s/ultramarine/textures/block/black_roof_ridge_connection_front_snow_stage_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+243 Bytes
...s/ultramarine/textures/block/black_roof_ridge_connection_front_snow_stage_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+227 Bytes
...s/ultramarine/textures/block/black_roof_ridge_connection_front_snow_stage_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 Bytes
...s/ultramarine/textures/block/black_roof_ridge_connection_front_snow_stage_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+216 Bytes
...s/ultramarine/textures/block/black_roof_ridge_connection_front_snow_stage_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+204 Bytes
...ts/ultramarine/textures/block/black_roof_ridge_connection_side_snow_stage_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+213 Bytes
...ts/ultramarine/textures/block/black_roof_ridge_connection_side_snow_stage_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+217 Bytes
...ts/ultramarine/textures/block/black_roof_ridge_connection_side_snow_stage_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+209 Bytes
...ts/ultramarine/textures/block/black_roof_ridge_connection_side_snow_stage_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 Bytes
...ts/ultramarine/textures/block/black_roof_ridge_connection_side_snow_stage_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+193 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_lower_side_snow_stage_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+196 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_lower_side_snow_stage_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+193 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_lower_side_snow_stage_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+179 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_lower_side_snow_stage_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+165 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_lower_side_snow_stage_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+224 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_upper_side_snow_stage_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+229 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_upper_side_snow_stage_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+224 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_upper_side_snow_stage_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+213 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_upper_side_snow_stage_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 Bytes
.../assets/ultramarine/textures/block/black_roof_ridge_upper_side_snow_stage_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+132 Bytes
...amarine/textures/block/yellow_main_roof_ridge_connection_front_snow_stage_1.png
Oops, something went wrong.
Binary file added
BIN
+139 Bytes
...amarine/textures/block/yellow_main_roof_ridge_connection_front_snow_stage_2.png
Oops, something went wrong.
Binary file added
BIN
+137 Bytes
...amarine/textures/block/yellow_main_roof_ridge_connection_front_snow_stage_3.png
Oops, something went wrong.
Binary file added
BIN
+142 Bytes
...amarine/textures/block/yellow_main_roof_ridge_connection_front_snow_stage_4.png
Oops, something went wrong.
Binary file added
BIN
+127 Bytes
...amarine/textures/block/yellow_main_roof_ridge_connection_front_snow_stage_5.png
Oops, something went wrong.
Binary file added
BIN
+246 Bytes
.../ultramarine/textures/block/yellow_roof_ridge_connection_front_snow_stage_1.png
Oops, something went wrong.
Binary file added
BIN
+249 Bytes
.../ultramarine/textures/block/yellow_roof_ridge_connection_front_snow_stage_2.png
Oops, something went wrong.
Binary file added
BIN
+231 Bytes
.../ultramarine/textures/block/yellow_roof_ridge_connection_front_snow_stage_3.png
Oops, something went wrong.
Binary file added
BIN
+229 Bytes
.../ultramarine/textures/block/yellow_roof_ridge_connection_front_snow_stage_4.png
Oops, something went wrong.
Binary file added
BIN
+220 Bytes
.../ultramarine/textures/block/yellow_roof_ridge_connection_front_snow_stage_5.png
Oops, something went wrong.
Binary file added
BIN
+207 Bytes
...s/ultramarine/textures/block/yellow_roof_ridge_connection_side_snow_stage_1.png
Oops, something went wrong.
Binary file added
BIN
+216 Bytes
...s/ultramarine/textures/block/yellow_roof_ridge_connection_side_snow_stage_2.png
Oops, something went wrong.
Binary file added
BIN
+221 Bytes
...s/ultramarine/textures/block/yellow_roof_ridge_connection_side_snow_stage_3.png
Oops, something went wrong.
Binary file added
BIN
+217 Bytes
...s/ultramarine/textures/block/yellow_roof_ridge_connection_side_snow_stage_4.png
Oops, something went wrong.
Binary file added
BIN
+201 Bytes
...s/ultramarine/textures/block/yellow_roof_ridge_connection_side_snow_stage_5.png
Oops, something went wrong.
Binary file added
BIN
+208 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_lower_side_snow_stage_1.png
Oops, something went wrong.
Binary file added
BIN
+215 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_lower_side_snow_stage_2.png
Oops, something went wrong.
Binary file added
BIN
+206 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_lower_side_snow_stage_3.png
Oops, something went wrong.
Binary file added
BIN
+191 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_lower_side_snow_stage_4.png
Oops, something went wrong.
Binary file added
BIN
+173 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_lower_side_snow_stage_5.png
Oops, something went wrong.
Binary file added
BIN
+233 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_upper_side_snow_stage_1.png
Oops, something went wrong.
Binary file added
BIN
+239 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_upper_side_snow_stage_2.png
Oops, something went wrong.
Binary file added
BIN
+231 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_upper_side_snow_stage_3.png
Oops, something went wrong.
Binary file added
BIN
+220 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_upper_side_snow_stage_4.png
Oops, something went wrong.
Binary file added
BIN
+200 Bytes
...assets/ultramarine/textures/block/yellow_roof_ridge_upper_side_snow_stage_5.png
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
43 changes: 43 additions & 0 deletions
43
src/main/java/com/voxelutopia/ultramarine/world/block/RoofRidge.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 @@ | ||
package com.voxelutopia.ultramarine.world.block; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.core.Direction; | ||
import net.minecraft.world.item.DyeColor; | ||
import net.minecraft.world.level.Level; | ||
import net.minecraft.world.level.biome.Biome; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import net.minecraft.world.level.block.state.StateDefinition; | ||
|
||
public class RoofRidge extends BaseBlock implements SnowRoofRidge{ | ||
|
||
private final DyeColor color; | ||
private final RoofRidgeType type; | ||
|
||
public RoofRidge(DyeColor color, RoofRidgeType type){ | ||
super(BaseBlockProperty.STONE); | ||
this.type = type; | ||
this.color = color; | ||
this.registerDefaultState(this.stateDefinition.any() | ||
.setValue(SNOW_LAYERS, 0)); | ||
} | ||
|
||
@Override | ||
public void handlePrecipitation(BlockState pState, Level pLevel, BlockPos pPos, Biome.Precipitation pPrecipitation) { | ||
//todo | ||
} | ||
|
||
@Override | ||
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> pBuilder) { | ||
super.createBlockStateDefinition(pBuilder); | ||
pBuilder.add(SNOW_LAYERS); | ||
} | ||
|
||
public DyeColor getColor() { | ||
return color; | ||
} | ||
|
||
public RoofRidgeType getType() { | ||
return type; | ||
} | ||
} |
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
37 changes: 37 additions & 0 deletions
37
src/main/java/com/voxelutopia/ultramarine/world/block/SnowRoofRidge.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,37 @@ | ||
package com.voxelutopia.ultramarine.world.block; | ||
|
||
import com.google.common.collect.ImmutableMap; | ||
import com.voxelutopia.ultramarine.world.block.state.ModBlockStateProperties; | ||
import net.minecraft.util.StringRepresentable; | ||
import net.minecraft.world.level.block.state.properties.IntegerProperty; | ||
|
||
import java.util.Map; | ||
|
||
public interface SnowRoofRidge { | ||
|
||
IntegerProperty SNOW_LAYERS = ModBlockStateProperties.SNOW_LAYERS; | ||
|
||
ImmutableMap<Integer, Integer> SNOW_STAGES = ImmutableMap.ofEntries( | ||
Map.entry(0, 0), Map.entry(1, 0), Map.entry(2, 1), Map.entry(3, 1), | ||
Map.entry(4, 1), Map.entry(5, 2), Map.entry(6, 2), Map.entry(7, 2), | ||
Map.entry(8, 3), Map.entry(9, 3), Map.entry(10, 3), Map.entry(11, 4), | ||
Map.entry(12, 4), Map.entry(13, 4), Map.entry(14, 5), Map.entry(15, 5)); | ||
|
||
int MAX_SNOW_STAGES = 5; | ||
|
||
enum RoofRidgeType implements StringRepresentable { | ||
UPPER("roof_ridge_upper"), LOWER("roof_ridge_lower"), CONNECTION("roof_ridge_connection"), MAIN_CONNECTION("main_roof_ridge_connection"); | ||
|
||
String name; | ||
|
||
RoofRidgeType(String name){ | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getSerializedName() { | ||
return name; | ||
} | ||
} | ||
|
||
} |
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
Binary file added
BIN
+1.59 KB
...in/resources/assets/ultramarine/textures/block/roof_ridge_side_snow_stage_1.png
Oops, something went wrong.
Binary file added
BIN
+1.6 KB
...in/resources/assets/ultramarine/textures/block/roof_ridge_side_snow_stage_2.png
Oops, something went wrong.
Binary file added
BIN
+1.61 KB
...in/resources/assets/ultramarine/textures/block/roof_ridge_side_snow_stage_3.png
Oops, something went wrong.
Binary file added
BIN
+1.61 KB
...in/resources/assets/ultramarine/textures/block/roof_ridge_side_snow_stage_4.png
Oops, something went wrong.
Binary file added
BIN
+1.59 KB
...in/resources/assets/ultramarine/textures/block/roof_ridge_side_snow_stage_5.png
Oops, something went wrong.
Binary file added
BIN
+1.61 KB
...ain/resources/assets/ultramarine/textures/block/roof_ridge_top_snow_stage_1.png
Oops, something went wrong.
Binary file added
BIN
+1.61 KB
...ain/resources/assets/ultramarine/textures/block/roof_ridge_top_snow_stage_2.png
Oops, something went wrong.
Binary file added
BIN
+1.72 KB
...ain/resources/assets/ultramarine/textures/block/roof_ridge_top_snow_stage_3.png
Oops, something went wrong.
Binary file added
BIN
+1.61 KB
...ain/resources/assets/ultramarine/textures/block/roof_ridge_top_snow_stage_4.png
Oops, something went wrong.
Binary file added
BIN
+1.72 KB
...ain/resources/assets/ultramarine/textures/block/roof_ridge_top_snow_stage_5.png
Oops, something went wrong.