Skip to content

Instantly share code, notes, and snippets.

View Lanse505's full-sized avatar

Simon Stålnäbb Lanse505

  • Dalarna, Sweden
  • 04:45 (UTC +02:00)
View GitHub Profile
using System;
using System.Collections.Generic;
using Assignment_2_Submission.programs.user.table;
namespace Assignment_2_Submission.programs.user{
public class UserProgram : BaseProgram{
private struct PersonStruct{
public PersonStruct(DateTime dob, Gender gender, HairColor hairColor, int lengthOfHair, EyeColor eyeColor){
using System;
using System.Collections.Generic;
using System.Text;
namespace FirstAssignmentSubmission{
internal class Program{
private struct Person{
public Person(int index, string name, int age){
using System;
using System.Collections.Generic;
using System.Threading;
using FirstAssignment.Writer;
namespace FirstAssignment{
internal class Program{
private readonly struct Person{
public Person(int index, string name, int age, int ageInYears){
Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at FirstAssignment.Writer.TableWriter.<>c__DisplayClass11_0.<ToString>b__0(Int32 size) in F:\RiderProjects\FirstAssignment\FirstAssignment\Writer\TableWriter.cs:line 64
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.Aggregate[TSource](IEnumerable`1 source, Func`3 func)
at FirstAssignment.Writer.TableWriter.ToString() in F:\RiderProjects\FirstAssignment\FirstAssignment\Writer\TableWriter.cs:line 62
at FirstAssignment.Writer.TableWriter.Print() in F:\RiderProjects\FirstAssignment\FirstAssignment\Writer\TableWriter.cs:line 94
at FirstAssignment.Program.Main(String[] args) in F:\RiderProjects\FirstAssignment\Firs
/** Remove Padding and Margin **/
body {
padding: 0;
margin: 0;
}
/** Header CSS **/
/** Grid Container **/
.header_grid_container {
display: grid;
* {
margin: 0;
padding: 0;
}
body {
box-sizing: border-box;
background-image: url(media/background.jpg);
background-repeat: no-repeat;
background-size: cover;
// Attach plugins
plugins {
id 'net.minecraftforge.gradle' version '5.+'
id 'java-library'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'org.spongepowered.mixin' version '0.8+'
id 'org.parchementmc.librarian' version '1.0+'
}
// Standard Project Information
/**
* Determines whether the entity is able to be pushed by a fluid.
*
* @param state The fluid pushing the entity
* @return If the entity can be pushed, defaults to vanilla behavior for water
*/
default boolean isPushedByFluid(FluidState state)
{
return !(self() instanceof Player) || !((Player) self()).getAbilities().flying;
}
package net.minecraftforge.common.extensions;
import java.util.Set;
import javax.annotation.Nullable;
import com.mojang.math.Vector3d;
import net.minecraft.util.Mth;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.entity.LivingEntity;
[16:32:30.355] [Render thread/ERROR] [EventBus/EVENTBUS]: Exception caught during firing event: class net.minecraft.world.entity.projectile.ThrownPotion cannot be cast to class net.minecraft.world.entity.projectile.FishingHook (net.minecraft.world.entity.projectile.ThrownPotion and net.minecraft.world.entity.projectile.FishingHook are in module [email protected] of loader 'TRANSFORMER' @7aa9e414)
Index: 1
Listeners:
0: NORMAL
1: net.minecraftforge.eventbus.EventBus$$Lambda$4002/0x00000008015ada10@400bf062
java.lang.ClassCastException: class net.minecraft.world.entity.projectile.ThrownPotion cannot be cast to class net.minecraft.world.entity.projectile.FishingHook (net.minecraft.world.entity.projectile.ThrownPotion and net.minecraft.world.entity.projectile.FishingHook are in module [email protected] of loader 'TRANSFORMER' @7aa9e414)
at TRANSFORMER/containertypetest@1/net.minecraftforge.debug.entity.FishingBobberEventTest.handleImpact(FishingBobberEventTest.java:48)
at MC-BOOTSTRAP/[email protected]/net.min