-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.20.1: Fixed aether incompatibility Compostable buttercup # Conflicts: # common/src/main/resources/friendsandfoes.accesswidener
- Loading branch information
Showing
9 changed files
with
158 additions
and
139 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
41 changes: 41 additions & 0 deletions
41
...n/java/com/faboslav/friendsandfoes/common/world/processor/StructureProcessingContext.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 @@ | ||
package com.faboslav.friendsandfoes.common.world.processor; | ||
|
||
import net.minecraft.structure.StructurePlacementData; | ||
import net.minecraft.structure.StructureTemplate; | ||
import net.minecraft.util.Util; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.ServerWorldAccess; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* Originally from YUNG's API by. | ||
* YUNGNICKYOUNG (https://github.com/YUNG-GANG/YUNGs-API) | ||
*/ | ||
public record StructureProcessingContext( | ||
ServerWorldAccess serverWorldAccess, | ||
StructurePlacementData structurePlacementData, | ||
BlockPos structurePiecePos, | ||
BlockPos structurePiecePivotPos, | ||
List<StructureTemplate.StructureEntityInfo> rawEntityInfos) | ||
{ | ||
public StructureProcessingContext( | ||
ServerWorldAccess serverWorldAccess, | ||
StructurePlacementData structurePlacementData, | ||
BlockPos structurePiecePos, | ||
BlockPos structurePiecePivotPos, | ||
List<StructureTemplate.StructureEntityInfo> rawEntityInfos | ||
) { | ||
this.serverWorldAccess = serverWorldAccess; | ||
this.structurePlacementData = structurePlacementData; | ||
this.structurePiecePos = structurePiecePos; | ||
this.structurePiecePivotPos = structurePiecePivotPos; | ||
this.rawEntityInfos = Util.make(() -> { | ||
List<StructureTemplate.StructureEntityInfo> list = new ArrayList<>(rawEntityInfos.size()); | ||
rawEntityInfos.forEach((entityInfo) -> | ||
list.add(new StructureTemplate.StructureEntityInfo(entityInfo.pos, entityInfo.blockPos, entityInfo.nbt))); | ||
return list; | ||
}); | ||
} | ||
} |
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.