This file contains hidden or 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
package omtteam.omlib.tileentity; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.network.NetworkManager; | |
import net.minecraft.network.play.server.SPacketUpdateTileEntity; | |
import net.minecraft.tileentity.TileEntity; | |
import net.minecraft.util.math.BlockPos; | |
import net.minecraft.world.World; |
This file contains hidden or 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
package omtteam.openmodularturrets.client.render.renderers.blockitem; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.model.ModelBase; | |
import net.minecraft.util.ResourceLocation; | |
import omtteam.openmodularturrets.client.render.models.ModelDamageAmp; | |
import omtteam.openmodularturrets.client.render.models.ModelRedstoneReactor; | |
import omtteam.openmodularturrets.client.render.models.ModelSolarPanelAddon; | |
import omtteam.openmodularturrets.reference.Reference; | |
import omtteam.openmodularturrets.tileentity.turrets.TurretHead; |
This file contains hidden or 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
package omtteam.openmodularturrets.init; | |
import net.minecraft.util.ResourceLocation; | |
import net.minecraft.util.SoundEvent; | |
import java.lang.reflect.Field; | |
/** | |
* Created by Keridos on 24/11/16. |
This file contains hidden or 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
package omtteam.openmodularturrets.init; | |
import net.minecraft.block.Block; | |
import net.minecraftforge.fml.common.registry.GameRegistry; | |
import omtteam.omlib.util.IHasItemBlock; | |
import omtteam.openmodularturrets.blocks.BlockExpander; | |
import omtteam.openmodularturrets.blocks.BlockTurretBase; | |
import omtteam.openmodularturrets.blocks.LeverBlock; | |
import omtteam.openmodularturrets.blocks.turretheads.*; | |
import omtteam.openmodularturrets.handler.ConfigHandler; |
This file contains hidden or 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
package omtteam.omlib.util; | |
import net.minecraftforge.common.property.IUnlistedProperty; | |
/** | |
* Created by Keridos on 29/01/17. | |
* This Class | |
*/ | |
public class UnlistedPropertyOMT<T> implements IUnlistedProperty<T> { | |
private final String name; |
This file contains hidden or 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
package omtteam.openmodularturrets.client.render.models; | |
import com.google.common.base.Function; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.renderer.block.model.*; | |
import net.minecraft.client.renderer.block.statemap.StateMapperBase; | |
import net.minecraft.client.renderer.texture.TextureAtlasSprite; | |
import net.minecraft.client.renderer.vertex.VertexFormat; | |
import net.minecraft.client.resources.IResourceManager; |
This file contains hidden or 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
IMyTextPanel LCD = null; | |
void printLine(string message) { | |
LCD.WritePublicText(message + "\n", true); | |
} | |
void printAll(float solarPower, float batteryEnergy, float batteryInput, float batteryOutput, string scales) { | |
//LCD.WritePublicText("Main Base Energy System \n"); | |
printLine(""); | |
printLine(" Solar power (bugged): " + solarPower.ToString("F") + " " + scales[0].ToString().Replace(" ","") + "W"); | |
printLine(" Battery input (bugged): " + batteryInput.ToString("F") + " " + scales[1].ToString().Replace(" ","") + "W"); |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Sandbox.Game.EntityComponents; | |
using Sandbox.ModAPI.Ingame; | |
using Sandbox.ModAPI.Interfaces; | |
using SpaceEngineers.Game.ModAPI.Ingame; | |
using VRage.Collections; |
This file contains hidden or 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
from time import sleep | |
import keyboard | |
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
down = False | |
def onKeyboardDownEvent(): | |
global down |
This file contains hidden or 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
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println(" 6 fakultät : " + (long) (double) fakultaet(49L) / fakultaet(43L)); | |
System.out.println(" 6 über 49 : " + binomialKoeffizient(49L, 6L)); | |
System.out.println(" 6 über 49 Lottolösung : " + modLottoProblemLoesung(49, 6)); | |
} |