-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'architectury-1.20' into architectury-1.20.2
# Conflicts: # fabric/src/main/java/com/unlikepaladin/pfm/mixin/fabric/PFMModResourcePackCreatorMixin.java # forge/src/main/java/com/unlikepaladin/pfm/compat/imm_ptl/forge/shape/BlockPortalShape.java # forge/src/main/java/com/unlikepaladin/pfm/forge/PaladinFurnitureModForge.java # forge/src/main/java/com/unlikepaladin/pfm/registry/forge/NetworkRegistryForge.java
- Loading branch information
Showing
445 changed files
with
6,928 additions
and
3,558 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
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
46 changes: 46 additions & 0 deletions
46
common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/PFMBedBlockEntity.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 @@ | ||
package com.unlikepaladin.pfm.blocks.blockentities; | ||
|
||
import com.unlikepaladin.pfm.registry.BlockEntities; | ||
import net.minecraft.block.BedBlock; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.entity.BedBlockEntity; | ||
import net.minecraft.block.entity.BlockEntityType; | ||
import net.minecraft.nbt.NbtCompound; | ||
import net.minecraft.util.DyeColor; | ||
import net.minecraft.util.math.BlockPos; | ||
|
||
public class PFMBedBlockEntity extends BedBlockEntity implements DyeableFurnitureBlockEntity<PFMBedBlockEntity> { | ||
public PFMBedBlockEntity(BlockPos pos, BlockState state, DyeColor color) { | ||
super(pos, state, color); | ||
} | ||
|
||
public PFMBedBlockEntity(BlockPos pos, BlockState state) { | ||
super(pos, state); | ||
} | ||
|
||
@Override | ||
public void setPFMColor(DyeColor color) { | ||
this.setColor(color); | ||
} | ||
|
||
@Override | ||
public DyeColor getPFMColor() { | ||
return getColor(); | ||
} | ||
|
||
@Override | ||
public NbtCompound writeColor(NbtCompound nbt) { | ||
nbt.putString("color", getColor().asString()); | ||
return nbt; | ||
} | ||
|
||
@Override | ||
public PFMBedBlockEntity getEntity() { | ||
return this; | ||
} | ||
|
||
@Override | ||
public BlockEntityType<?> getType() { | ||
return BlockEntities.BED_BLOCK_ENTITY; | ||
} | ||
} |
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.