-
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 status checks…
wallpapers
props - trash, trash(spread), puddle, pebbles, dust, gravel patch, driftwood mycelium foliage devtextures warped roots retexture warped stalks iron plating set hazard marker set metal ladder + sfx ??? glowing mushrooms jelly :3 some unused stuff
1 parent
a7cbb33
commit 0ae0441
Showing
269 changed files
with
3,794 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,4 @@ replay_*.log | |
# respack | ||
|
||
AAAA_v5_BLACKMESAINBOUND/ | ||
/schematics - Shortcut.lnk |
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
35 changes: 35 additions & 0 deletions
35
src/main/java/com/nuclearcrackhead/serverboss/content/block/Prop.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,35 @@ | ||
// | ||
// Source code recreated from a .class file by IntelliJ IDEA | ||
// (powered by FernFlower decompiler) | ||
// | ||
|
||
package com.nuclearcrackhead.serverboss.content.block; | ||
|
||
import com.mojang.serialization.MapCodec; | ||
import net.minecraft.block.*; | ||
import net.minecraft.fluid.FluidState; | ||
import net.minecraft.fluid.Fluids; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.shape.VoxelShape; | ||
import net.minecraft.world.BlockView; | ||
|
||
public class Prop extends PlantBlock { | ||
public static final MapCodec<Prop> CODEC = createCodec(Prop::new); | ||
protected static final VoxelShape SHAPE = Block.createCuboidShape((double)1.0F, (double)0.0F, (double)1.0F, (double)15.0F, (double)1.5F, (double)15.0F); | ||
|
||
public MapCodec<Prop> getCodec() { | ||
return CODEC; | ||
} | ||
|
||
public Prop(Settings settings) { | ||
super(settings); | ||
} | ||
|
||
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) { | ||
return SHAPE; | ||
} | ||
|
||
protected boolean canPlantOnTop(BlockState floor, BlockView world, BlockPos pos) { | ||
return true; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/main/java/com/nuclearcrackhead/serverboss/content/block/PropFloating.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,47 @@ | ||
// | ||
// Source code recreated from a .class file by IntelliJ IDEA | ||
// (powered by FernFlower decompiler) | ||
// | ||
|
||
package com.nuclearcrackhead.serverboss.content.block; | ||
|
||
import com.mojang.serialization.MapCodec; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.PlantBlock; | ||
import net.minecraft.block.ShapeContext; | ||
import net.minecraft.fluid.Fluids; | ||
import net.minecraft.item.ItemPlacementContext; | ||
import net.minecraft.state.StateManager; | ||
import net.minecraft.state.property.BooleanProperty; | ||
import net.minecraft.state.property.EnumProperty; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.Direction; | ||
import net.minecraft.util.shape.VoxelShape; | ||
import net.minecraft.world.BlockView; | ||
import net.minecraft.world.World; | ||
|
||
public class PropFloating extends Prop { | ||
public static final MapCodec<PropFloating> CODEC = createCodec(PropFloating::new); | ||
protected static final VoxelShape SHAPE = Block.createCuboidShape((double)1.0F, (double)0.0F, (double)1.0F, (double)15.0F, (double)1.5F, (double)15.0F); | ||
|
||
public static final BooleanProperty FLOATING = BooleanProperty.of("floating"); | ||
@Override | ||
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) { | ||
builder.add(FLOATING); | ||
} | ||
|
||
@Override | ||
public BlockState getPlacementState(ItemPlacementContext ctx) { | ||
BlockPos blockPos = ctx.getBlockPos(); | ||
World world = ctx.getWorld(); | ||
boolean ret = world.getFluidState(blockPos.add(0,-1,0)).isOf(Fluids.WATER); | ||
return this.getDefaultState().with(FLOATING, ret); | ||
} | ||
|
||
public PropFloating(Settings settings) { | ||
super(settings); | ||
} | ||
|
||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/nuclearcrackhead/serverboss/content/block/PropPuddle.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,28 @@ | ||
// | ||
// Source code recreated from a .class file by IntelliJ IDEA | ||
// (powered by FernFlower decompiler) | ||
// | ||
|
||
package com.nuclearcrackhead.serverboss.content.block; | ||
|
||
import com.mojang.serialization.MapCodec; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.PlantBlock; | ||
import net.minecraft.block.ShapeContext; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.shape.VoxelShape; | ||
import net.minecraft.world.BlockView; | ||
|
||
public class PropPuddle extends Prop { | ||
public static final MapCodec<PropPuddle> CODEC = createCodec(PropPuddle::new); | ||
protected static final VoxelShape SHAPE = Block.createCuboidShape((double)0.0F, (double)0.0F, (double)0.0F, (double)16.0F, (double)1.0F, (double)16.0F); | ||
|
||
public PropPuddle(Settings settings) { | ||
super(settings); | ||
} | ||
|
||
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) { | ||
return SHAPE; | ||
} | ||
} |
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.