Skip to content

Commit

Permalink
everything works now
Browse files Browse the repository at this point in the history
  • Loading branch information
RealYusufIsmail committed Nov 29, 2023
1 parent 9e5783a commit 38eebb1
Show file tree
Hide file tree
Showing 15 changed files with 1,740 additions and 1,512 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.realyusufismail.temporalsmith.entities.hammer;
package io.github.realyusufismail.temporalsmith.entities.mjolnir;

import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright 2023 RealYusufIsmail.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.realyusufismail.temporalsmith.entities.mjolnir;

import io.github.realyusufismail.temporalsmith.entities.mjolnir.cube.*;
import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.CubeListBuilder;
import net.minecraft.client.model.geom.builders.PartDefinition;

public class Pattern {

protected PartDefinition creatBodyLayer(PartDefinition theSidePart) {
CubeListBuilder cubeListBuilder = CubeListBuilder.create();

cubeListBuilder = new PatternCubeOne(cubeListBuilder).build();
cubeListBuilder = new PatternCubeTwo(cubeListBuilder).build();
cubeListBuilder = new PatternCubeThree(cubeListBuilder).build();
cubeListBuilder = new PatternCubeFour(cubeListBuilder).build();
cubeListBuilder = new PatternCubeFive(cubeListBuilder).build();
cubeListBuilder = new PatternCubeSix(cubeListBuilder).build();

return theSidePart.addOrReplaceChild(
"Pattern", cubeListBuilder, PartPose.offset(-3.6F, 5.4F, -0.75F));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.realyusufismail.temporalsmith.entities.hammer;
package io.github.realyusufismail.temporalsmith.entities.mjolnir;

import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.CubeDeformation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.realyusufismail.temporalsmith.entities.hammer;
package io.github.realyusufismail.temporalsmith.entities.mjolnir;

import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.CubeDeformation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.realyusufismail.temporalsmith.entities.hammer;
package io.github.realyusufismail.temporalsmith.entities.mjolnir;

import lombok.val;
import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.CubeDeformation;
import net.minecraft.client.model.geom.builders.CubeListBuilder;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
/*
* Copyright 2023 RealYusufIsmail.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.realyusufismail.temporalsmith.entities.mjolnir.cube;

import net.minecraft.client.model.geom.builders.CubeDeformation;
import net.minecraft.client.model.geom.builders.CubeListBuilder;

public class PatternCubeFour {
private final CubeListBuilder builder;

public PatternCubeFour(CubeListBuilder builder) {
this.builder = builder;
}

public CubeListBuilder build() {
return builder
.texOffs(0, 0)
.addBox(6.8F, -8.0F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -10.225F, 0.25F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -10.225F, 0.25F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -7.8F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.8F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -4.775F, 0.25F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -4.775F, 0.25F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -7.8F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.8F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -10.225F, 0.15F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -10.225F, 0.15F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -7.7F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -7.7F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -4.775F, 0.15F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -4.775F, 0.15F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -7.7F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -7.7F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -10.225F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -10.225F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -7.6F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.6F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -4.775F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -4.775F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -7.6F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.6F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -10.225F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -10.225F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -7.6F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -7.6F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -4.775F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -4.775F, 0.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -7.6F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -7.6F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -10.225F, -0.15F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -10.225F, -0.15F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -7.5F, -2.775F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -7.5F, -2.775F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -4.775F, -0.15F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -4.775F, -0.15F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -7.5F, 2.675F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -7.5F, 2.675F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -10.225F, -0.35F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -10.225F, -0.35F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -7.3F, -2.775F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -7.3F, -2.775F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -4.775F, -0.35F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -4.775F, -0.35F, 0.1F, 0.1F, 0.2F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -7.3F, 2.675F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -7.3F, 2.675F, 0.1F, 0.2F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -10.225F, -0.45F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -10.225F, -0.45F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -7.1F, -2.775F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.1F, -2.775F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -4.775F, -0.45F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -4.775F, -0.45F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -7.1F, 2.675F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.1F, 2.675F, 0.2F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -10.225F, -0.55F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -10.225F, -0.55F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -7.0F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.0F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -4.775F, -0.55F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -4.775F, -0.55F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -7.0F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -7.0F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -10.225F, -0.65F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -10.225F, -0.65F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -6.9F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -6.9F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -4.775F, -0.65F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -4.775F, -0.65F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -6.9F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -6.9F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -10.225F, -0.85F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -10.225F, -0.85F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -6.7F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -6.7F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -4.775F, -0.85F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -4.775F, -0.85F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -6.7F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -6.7F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -10.225F, -0.95F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -10.225F, -0.95F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -6.6F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -6.6F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -4.775F, -0.95F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -4.775F, -0.95F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.1F, -6.6F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.8F, -6.6F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -10.225F, -1.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -10.225F, -1.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -6.5F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -6.5F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -4.775F, -1.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -4.775F, -1.05F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.3F, -6.5F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(7.0F, -6.5F, 2.675F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -10.225F, -1.15F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(6.9F, -10.225F, -1.15F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F))
.texOffs(0, 0)
.addBox(-1.2F, -6.4F, -2.775F, 0.1F, 0.1F, 0.1F, new CubeDeformation(0.0F));
}
}
Loading

0 comments on commit 38eebb1

Please sign in to comment.